OSDN Git Service

Fix no pic
[uclinux-h8/uClinux-dist.git] / user / iptables / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for iptables 1.4.3.2.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241   emulate sh
242   NULLCMD=:
243   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244   # is contrary to our usage.  Disable this feature.
245   alias -g '${1+"$@"}'='"$@"'
246   setopt NO_GLOB_SUBST
247 else
248   case `(set -o) 2>/dev/null` in
249   *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258   CONFIG_SHELL=$as_shell
259                as_have_required=yes
260                if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278   (exit $1)
279 }
280 as_func_success () {
281   as_func_return 0
282 }
283 as_func_failure () {
284   as_func_return 1
285 }
286 as_func_ret_success () {
287   return 0
288 }
289 as_func_ret_failure () {
290   return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295   :
296 else
297   exitcode=1
298   echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302   exitcode=1
303   echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307   :
308 else
309   exitcode=1
310   echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314   exitcode=1
315   echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319   :
320 else
321   exitcode=1
322   echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328   as_lineno_1=$LINENO
329   as_lineno_2=$LINENO
330   test "x$as_lineno_1" != "x$as_lineno_2" &&
331   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335   break
336 fi
337
338 fi
339
340       done
341
342       if test "x$CONFIG_SHELL" != x; then
343   for as_var in BASH_ENV ENV
344         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345         done
346         export CONFIG_SHELL
347         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351     if test $as_have_required = no; then
352   echo This script requires a shell more modern than all the
353       echo shells that I found on your system.  Please install a
354       echo modern shell, or manually run the script under such a
355       echo shell if you do have one.
356       { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367   (exit \$1)
368 }
369 as_func_success () {
370   as_func_return 0
371 }
372 as_func_failure () {
373   as_func_return 1
374 }
375 as_func_ret_success () {
376   return 0
377 }
378 as_func_ret_failure () {
379   return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384   :
385 else
386   exitcode=1
387   echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391   exitcode=1
392   echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396   :
397 else
398   exitcode=1
399   echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403   exitcode=1
404   echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408   :
409 else
410   exitcode=1
411   echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415   echo No shell found that supports shell functions.
416   echo Please tell autoconf@gnu.org about your system,
417   echo including any error possibly output before this
418   echo message
419 }
420
421
422
423   as_lineno_1=$LINENO
424   as_lineno_2=$LINENO
425   test "x$as_lineno_1" != "x$as_lineno_2" &&
426   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429   # uniformly replaced by the line number.  The first 'sed' inserts a
430   # line-number line after each line using $LINENO; the second 'sed'
431   # does the real work.  The second script uses 'N' to pair each
432   # line-number line with the line containing $LINENO, and appends
433   # trailing '-' during substitution so that $LINENO is not a special
434   # case at line end.
435   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436   # scripts with optimization help from Paolo Bonzini.  Blame Lee
437   # E. McMahon (1931-1989) for sed's syntax.  :-)
438   sed -n '
439     p
440     /[$]LINENO/=
441   ' <$as_myself |
442     sed '
443       s/[$]LINENO.*/&-/
444       t lineno
445       b
446       :lineno
447       N
448       :loop
449       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450       t loop
451       s/-\n.*//
452     ' >$as_me.lineno &&
453   chmod +x "$as_me.lineno" ||
454     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455    { (exit 1); exit 1; }; }
456
457   # Don't try to exec as it changes $[0], causing all sort of problems
458   # (the dirname of $[0] is not the place where we might find the
459   # original and so on.  Autoconf is especially sensitive to this).
460   . "./$as_me.lineno"
461   # Exit status is that of the last command.
462   exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467   as_dirname=dirname
468 else
469   as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475   case `echo 'x\c'` in
476   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
477   *)   ECHO_C='\c';;
478   esac;;
479 *)
480   ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484    test "X`expr 00001 : '.*\(...\)'`" = X001; then
485   as_expr=expr
486 else
487   as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492   rm -f conf$$.dir/conf$$.file
493 else
494   rm -f conf$$.dir
495   mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499   as_ln_s='ln -s'
500   # ... but there are two gotchas:
501   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503   # In both cases, we have to default to `cp -p'.
504   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505     as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507   as_ln_s=ln
508 else
509   as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515   as_mkdir_p=:
516 else
517   test -d ./-p && rmdir ./-p
518   as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522   as_test_x='test -x'
523 else
524   if ls -dL / >/dev/null 2>&1; then
525     as_ls_L_option=L
526   else
527     as_ls_L_option=
528   fi
529   as_test_x='
530     eval sh -c '\''
531       if test -d "$1"; then
532         test -d "$1/.";
533       else
534         case $1 in
535         -*)set "./$1";;
536         esac;
537         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538         ???[sx]*):;;*)false;;esac;fi
539     '\'' sh
540   '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
555
556 case X$ECHO in
557 X*--fallback-echo)
558   # Remove one level of quotation (which was required for Make).
559   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
560   ;;
561 esac
562
563 echo=${ECHO-echo}
564 if test "X$1" = X--no-reexec; then
565   # Discard the --no-reexec flag, and continue.
566   shift
567 elif test "X$1" = X--fallback-echo; then
568   # Avoid inline document here, it may be left over
569   :
570 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
571   # Yippee, $echo works!
572   :
573 else
574   # Restart under the correct shell.
575   exec $SHELL "$0" --no-reexec ${1+"$@"}
576 fi
577
578 if test "X$1" = X--fallback-echo; then
579   # used as fallback echo
580   shift
581   cat <<EOF
582 $*
583 EOF
584   exit 0
585 fi
586
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
588 # if CDPATH is set.
589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
590
591 if test -z "$ECHO"; then
592 if test "X${echo_test_string+set}" != Xset; then
593 # find a string as large as possible, as long as the shell can cope with it
594   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
597        echo_test_string=`eval $cmd` &&
598        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
599     then
600       break
601     fi
602   done
603 fi
604
605 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
606    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
607    test "X$echo_testing_string" = "X$echo_test_string"; then
608   :
609 else
610   # The Solaris, AIX, and Digital Unix default echo programs unquote
611   # backslashes.  This makes it impossible to quote backslashes using
612   #   echo "$something" | sed 's/\\/\\\\/g'
613   #
614   # So, first we look for a working echo in the user's PATH.
615
616   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
617   for dir in $PATH /usr/ucb; do
618     IFS="$lt_save_ifs"
619     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
620        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
621        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
622        test "X$echo_testing_string" = "X$echo_test_string"; then
623       echo="$dir/echo"
624       break
625     fi
626   done
627   IFS="$lt_save_ifs"
628
629   if test "X$echo" = Xecho; then
630     # We didn't find a better echo, so look for alternatives.
631     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
632        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
633        test "X$echo_testing_string" = "X$echo_test_string"; then
634       # This shell has a builtin print -r that does the trick.
635       echo='print -r'
636     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
637          test "X$CONFIG_SHELL" != X/bin/ksh; then
638       # If we have ksh, try running configure again with it.
639       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
640       export ORIGINAL_CONFIG_SHELL
641       CONFIG_SHELL=/bin/ksh
642       export CONFIG_SHELL
643       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
644     else
645       # Try using printf.
646       echo='printf %s\n'
647       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
648          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
649          test "X$echo_testing_string" = "X$echo_test_string"; then
650         # Cool, printf works
651         :
652       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
653            test "X$echo_testing_string" = 'X\t' &&
654            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
655            test "X$echo_testing_string" = "X$echo_test_string"; then
656         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
657         export CONFIG_SHELL
658         SHELL="$CONFIG_SHELL"
659         export SHELL
660         echo="$CONFIG_SHELL $0 --fallback-echo"
661       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
662            test "X$echo_testing_string" = 'X\t' &&
663            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
664            test "X$echo_testing_string" = "X$echo_test_string"; then
665         echo="$CONFIG_SHELL $0 --fallback-echo"
666       else
667         # maybe with a smaller string...
668         prev=:
669
670         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
671           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
672           then
673             break
674           fi
675           prev="$cmd"
676         done
677
678         if test "$prev" != 'sed 50q "$0"'; then
679           echo_test_string=`eval $prev`
680           export echo_test_string
681           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
682         else
683           # Oops.  We lost completely, so just stick with echo.
684           echo=echo
685         fi
686       fi
687     fi
688   fi
689 fi
690 fi
691
692 # Copy echo and quote the copy suitably for passing to libtool from
693 # the Makefile, instead of quoting the original, which is used later.
694 ECHO=$echo
695 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
696    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
697 fi
698
699
700
701
702 tagnames=${tagnames+${tagnames},}CXX
703
704 tagnames=${tagnames+${tagnames},}F77
705
706 exec 7<&0 </dev/null 6>&1
707
708 # Name of the host.
709 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
710 # so uname gets run too.
711 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
712
713 #
714 # Initializations.
715 #
716 ac_default_prefix=/usr/local
717 ac_clean_files=
718 ac_config_libobj_dir=.
719 LIBOBJS=
720 cross_compiling=no
721 subdirs=
722 MFLAGS=
723 MAKEFLAGS=
724 SHELL=${CONFIG_SHELL-/bin/sh}
725
726 # Identity of this package.
727 PACKAGE_NAME='iptables'
728 PACKAGE_TARNAME='iptables'
729 PACKAGE_VERSION='1.4.3.2'
730 PACKAGE_STRING='iptables 1.4.3.2'
731 PACKAGE_BUGREPORT=''
732
733 # Factoring default headers for most tests.
734 ac_includes_default="\
735 #include <stdio.h>
736 #ifdef HAVE_SYS_TYPES_H
737 # include <sys/types.h>
738 #endif
739 #ifdef HAVE_SYS_STAT_H
740 # include <sys/stat.h>
741 #endif
742 #ifdef STDC_HEADERS
743 # include <stdlib.h>
744 # include <stddef.h>
745 #else
746 # ifdef HAVE_STDLIB_H
747 #  include <stdlib.h>
748 # endif
749 #endif
750 #ifdef HAVE_STRING_H
751 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
752 #  include <memory.h>
753 # endif
754 # include <string.h>
755 #endif
756 #ifdef HAVE_STRINGS_H
757 # include <strings.h>
758 #endif
759 #ifdef HAVE_INTTYPES_H
760 # include <inttypes.h>
761 #endif
762 #ifdef HAVE_STDINT_H
763 # include <stdint.h>
764 #endif
765 #ifdef HAVE_UNISTD_H
766 # include <unistd.h>
767 #endif"
768
769 ac_subst_vars='SHELL
770 PATH_SEPARATOR
771 PACKAGE_NAME
772 PACKAGE_TARNAME
773 PACKAGE_VERSION
774 PACKAGE_STRING
775 PACKAGE_BUGREPORT
776 exec_prefix
777 prefix
778 program_transform_name
779 bindir
780 sbindir
781 libexecdir
782 datarootdir
783 datadir
784 sysconfdir
785 sharedstatedir
786 localstatedir
787 includedir
788 oldincludedir
789 docdir
790 infodir
791 htmldir
792 dvidir
793 pdfdir
794 psdir
795 libdir
796 localedir
797 mandir
798 DEFS
799 ECHO_C
800 ECHO_N
801 ECHO_T
802 LIBS
803 build_alias
804 host_alias
805 target_alias
806 INSTALL_PROGRAM
807 INSTALL_SCRIPT
808 INSTALL_DATA
809 am__isrc
810 CYGPATH_W
811 PACKAGE
812 VERSION
813 ACLOCAL
814 AUTOCONF
815 AUTOMAKE
816 AUTOHEADER
817 MAKEINFO
818 install_sh
819 STRIP
820 INSTALL_STRIP_PROGRAM
821 mkdir_p
822 AWK
823 SET_MAKE
824 am__leading_dot
825 AMTAR
826 am__tar
827 am__untar
828 CC
829 CFLAGS
830 LDFLAGS
831 CPPFLAGS
832 ac_ct_CC
833 EXEEXT
834 OBJEXT
835 DEPDIR
836 am__include
837 am__quote
838 AMDEP_TRUE
839 AMDEP_FALSE
840 AMDEPBACKSLASH
841 CCDEPMODE
842 am__fastdepCC_TRUE
843 am__fastdepCC_FALSE
844 build
845 build_cpu
846 build_vendor
847 build_os
848 host
849 host_cpu
850 host_vendor
851 host_os
852 SED
853 GREP
854 EGREP
855 LN_S
856 ECHO
857 AR
858 RANLIB
859 DSYMUTIL
860 NMEDIT
861 CPP
862 CXX
863 CXXFLAGS
864 ac_ct_CXX
865 CXXDEPMODE
866 am__fastdepCXX_TRUE
867 am__fastdepCXX_FALSE
868 CXXCPP
869 F77
870 FFLAGS
871 ac_ct_F77
872 LIBTOOL
873 blacklist_modules
874 ENABLE_STATIC_TRUE
875 ENABLE_STATIC_FALSE
876 ENABLE_SHARED_TRUE
877 ENABLE_SHARED_FALSE
878 ENABLE_IPV4_TRUE
879 ENABLE_IPV4_FALSE
880 ENABLE_IPV6_TRUE
881 ENABLE_IPV6_FALSE
882 ENABLE_DEVEL_TRUE
883 ENABLE_DEVEL_FALSE
884 ENABLE_LIBIPQ_TRUE
885 ENABLE_LIBIPQ_FALSE
886 regular_CFLAGS
887 kinclude_CFLAGS
888 kbuilddir
889 ksourcedir
890 xtlibdir
891 pkgconfigdir
892 libxtables_vcurrent
893 libxtables_vage
894 libxtables_vmajor
895 LIBOBJS
896 LTLIBOBJS'
897 ac_subst_files=''
898       ac_precious_vars='build_alias
899 host_alias
900 target_alias
901 CC
902 CFLAGS
903 LDFLAGS
904 LIBS
905 CPPFLAGS
906 CPP
907 CXX
908 CXXFLAGS
909 CCC
910 CXXCPP
911 F77
912 FFLAGS'
913
914
915 # Initialize some variables set by options.
916 ac_init_help=
917 ac_init_version=false
918 # The variables have the same names as the options, with
919 # dashes changed to underlines.
920 cache_file=/dev/null
921 exec_prefix=NONE
922 no_create=
923 no_recursion=
924 prefix=NONE
925 program_prefix=NONE
926 program_suffix=NONE
927 program_transform_name=s,x,x,
928 silent=
929 site=
930 srcdir=
931 verbose=
932 x_includes=NONE
933 x_libraries=NONE
934
935 # Installation directory options.
936 # These are left unexpanded so users can "make install exec_prefix=/foo"
937 # and all the variables that are supposed to be based on exec_prefix
938 # by default will actually change.
939 # Use braces instead of parens because sh, perl, etc. also accept them.
940 # (The list follows the same order as the GNU Coding Standards.)
941 bindir='${exec_prefix}/bin'
942 sbindir='${exec_prefix}/sbin'
943 libexecdir='${exec_prefix}/libexec'
944 datarootdir='${prefix}/share'
945 datadir='${datarootdir}'
946 sysconfdir='${prefix}/etc'
947 sharedstatedir='${prefix}/com'
948 localstatedir='${prefix}/var'
949 includedir='${prefix}/include'
950 oldincludedir='/usr/include'
951 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
952 infodir='${datarootdir}/info'
953 htmldir='${docdir}'
954 dvidir='${docdir}'
955 pdfdir='${docdir}'
956 psdir='${docdir}'
957 libdir='${exec_prefix}/lib'
958 localedir='${datarootdir}/locale'
959 mandir='${datarootdir}/man'
960
961 ac_prev=
962 ac_dashdash=
963 for ac_option
964 do
965   # If the previous option needs an argument, assign it.
966   if test -n "$ac_prev"; then
967     eval $ac_prev=\$ac_option
968     ac_prev=
969     continue
970   fi
971
972   case $ac_option in
973   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
974   *)    ac_optarg=yes ;;
975   esac
976
977   # Accept the important Cygnus configure options, so we can diagnose typos.
978
979   case $ac_dashdash$ac_option in
980   --)
981     ac_dashdash=yes ;;
982
983   -bindir | --bindir | --bindi | --bind | --bin | --bi)
984     ac_prev=bindir ;;
985   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
986     bindir=$ac_optarg ;;
987
988   -build | --build | --buil | --bui | --bu)
989     ac_prev=build_alias ;;
990   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
991     build_alias=$ac_optarg ;;
992
993   -cache-file | --cache-file | --cache-fil | --cache-fi \
994   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
995     ac_prev=cache_file ;;
996   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
997   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
998     cache_file=$ac_optarg ;;
999
1000   --config-cache | -C)
1001     cache_file=config.cache ;;
1002
1003   -datadir | --datadir | --datadi | --datad)
1004     ac_prev=datadir ;;
1005   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1006     datadir=$ac_optarg ;;
1007
1008   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1009   | --dataroo | --dataro | --datar)
1010     ac_prev=datarootdir ;;
1011   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1012   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1013     datarootdir=$ac_optarg ;;
1014
1015   -disable-* | --disable-*)
1016     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
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=no ;;
1023
1024   -docdir | --docdir | --docdi | --doc | --do)
1025     ac_prev=docdir ;;
1026   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1027     docdir=$ac_optarg ;;
1028
1029   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1030     ac_prev=dvidir ;;
1031   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1032     dvidir=$ac_optarg ;;
1033
1034   -enable-* | --enable-*)
1035     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1036     # Reject names that are not valid shell variable names.
1037     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1038       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1039    { (exit 1); exit 1; }; }
1040     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1041     eval enable_$ac_feature=\$ac_optarg ;;
1042
1043   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1044   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1045   | --exec | --exe | --ex)
1046     ac_prev=exec_prefix ;;
1047   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1048   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1049   | --exec=* | --exe=* | --ex=*)
1050     exec_prefix=$ac_optarg ;;
1051
1052   -gas | --gas | --ga | --g)
1053     # Obsolete; use --with-gas.
1054     with_gas=yes ;;
1055
1056   -help | --help | --hel | --he | -h)
1057     ac_init_help=long ;;
1058   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1059     ac_init_help=recursive ;;
1060   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1061     ac_init_help=short ;;
1062
1063   -host | --host | --hos | --ho)
1064     ac_prev=host_alias ;;
1065   -host=* | --host=* | --hos=* | --ho=*)
1066     host_alias=$ac_optarg ;;
1067
1068   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1069     ac_prev=htmldir ;;
1070   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1071   | --ht=*)
1072     htmldir=$ac_optarg ;;
1073
1074   -includedir | --includedir | --includedi | --included | --include \
1075   | --includ | --inclu | --incl | --inc)
1076     ac_prev=includedir ;;
1077   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1078   | --includ=* | --inclu=* | --incl=* | --inc=*)
1079     includedir=$ac_optarg ;;
1080
1081   -infodir | --infodir | --infodi | --infod | --info | --inf)
1082     ac_prev=infodir ;;
1083   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1084     infodir=$ac_optarg ;;
1085
1086   -libdir | --libdir | --libdi | --libd)
1087     ac_prev=libdir ;;
1088   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1089     libdir=$ac_optarg ;;
1090
1091   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1092   | --libexe | --libex | --libe)
1093     ac_prev=libexecdir ;;
1094   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1095   | --libexe=* | --libex=* | --libe=*)
1096     libexecdir=$ac_optarg ;;
1097
1098   -localedir | --localedir | --localedi | --localed | --locale)
1099     ac_prev=localedir ;;
1100   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1101     localedir=$ac_optarg ;;
1102
1103   -localstatedir | --localstatedir | --localstatedi | --localstated \
1104   | --localstate | --localstat | --localsta | --localst | --locals)
1105     ac_prev=localstatedir ;;
1106   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1107   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1108     localstatedir=$ac_optarg ;;
1109
1110   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1111     ac_prev=mandir ;;
1112   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1113     mandir=$ac_optarg ;;
1114
1115   -nfp | --nfp | --nf)
1116     # Obsolete; use --without-fp.
1117     with_fp=no ;;
1118
1119   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1120   | --no-cr | --no-c | -n)
1121     no_create=yes ;;
1122
1123   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1124   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1125     no_recursion=yes ;;
1126
1127   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1128   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1129   | --oldin | --oldi | --old | --ol | --o)
1130     ac_prev=oldincludedir ;;
1131   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1132   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1133   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1134     oldincludedir=$ac_optarg ;;
1135
1136   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1137     ac_prev=prefix ;;
1138   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1139     prefix=$ac_optarg ;;
1140
1141   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1142   | --program-pre | --program-pr | --program-p)
1143     ac_prev=program_prefix ;;
1144   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1145   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1146     program_prefix=$ac_optarg ;;
1147
1148   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1149   | --program-suf | --program-su | --program-s)
1150     ac_prev=program_suffix ;;
1151   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1152   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1153     program_suffix=$ac_optarg ;;
1154
1155   -program-transform-name | --program-transform-name \
1156   | --program-transform-nam | --program-transform-na \
1157   | --program-transform-n | --program-transform- \
1158   | --program-transform | --program-transfor \
1159   | --program-transfo | --program-transf \
1160   | --program-trans | --program-tran \
1161   | --progr-tra | --program-tr | --program-t)
1162     ac_prev=program_transform_name ;;
1163   -program-transform-name=* | --program-transform-name=* \
1164   | --program-transform-nam=* | --program-transform-na=* \
1165   | --program-transform-n=* | --program-transform-=* \
1166   | --program-transform=* | --program-transfor=* \
1167   | --program-transfo=* | --program-transf=* \
1168   | --program-trans=* | --program-tran=* \
1169   | --progr-tra=* | --program-tr=* | --program-t=*)
1170     program_transform_name=$ac_optarg ;;
1171
1172   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1173     ac_prev=pdfdir ;;
1174   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1175     pdfdir=$ac_optarg ;;
1176
1177   -psdir | --psdir | --psdi | --psd | --ps)
1178     ac_prev=psdir ;;
1179   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1180     psdir=$ac_optarg ;;
1181
1182   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1183   | -silent | --silent | --silen | --sile | --sil)
1184     silent=yes ;;
1185
1186   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1187     ac_prev=sbindir ;;
1188   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1189   | --sbi=* | --sb=*)
1190     sbindir=$ac_optarg ;;
1191
1192   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1193   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1194   | --sharedst | --shareds | --shared | --share | --shar \
1195   | --sha | --sh)
1196     ac_prev=sharedstatedir ;;
1197   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1198   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1199   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1200   | --sha=* | --sh=*)
1201     sharedstatedir=$ac_optarg ;;
1202
1203   -site | --site | --sit)
1204     ac_prev=site ;;
1205   -site=* | --site=* | --sit=*)
1206     site=$ac_optarg ;;
1207
1208   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1209     ac_prev=srcdir ;;
1210   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1211     srcdir=$ac_optarg ;;
1212
1213   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1214   | --syscon | --sysco | --sysc | --sys | --sy)
1215     ac_prev=sysconfdir ;;
1216   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1217   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1218     sysconfdir=$ac_optarg ;;
1219
1220   -target | --target | --targe | --targ | --tar | --ta | --t)
1221     ac_prev=target_alias ;;
1222   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1223     target_alias=$ac_optarg ;;
1224
1225   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1226     verbose=yes ;;
1227
1228   -version | --version | --versio | --versi | --vers | -V)
1229     ac_init_version=: ;;
1230
1231   -with-* | --with-*)
1232     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1233     # Reject names that are not valid shell variable names.
1234     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1235       { echo "$as_me: error: invalid package name: $ac_package" >&2
1236    { (exit 1); exit 1; }; }
1237     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1238     eval with_$ac_package=\$ac_optarg ;;
1239
1240   -without-* | --without-*)
1241     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1242     # Reject names that are not valid shell variable names.
1243     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1244       { echo "$as_me: error: invalid package name: $ac_package" >&2
1245    { (exit 1); exit 1; }; }
1246     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1247     eval with_$ac_package=no ;;
1248
1249   --x)
1250     # Obsolete; use --with-x.
1251     with_x=yes ;;
1252
1253   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1254   | --x-incl | --x-inc | --x-in | --x-i)
1255     ac_prev=x_includes ;;
1256   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1257   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1258     x_includes=$ac_optarg ;;
1259
1260   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1261   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1262     ac_prev=x_libraries ;;
1263   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1264   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1265     x_libraries=$ac_optarg ;;
1266
1267   -*) { echo "$as_me: error: unrecognized option: $ac_option
1268 Try \`$0 --help' for more information." >&2
1269    { (exit 1); exit 1; }; }
1270     ;;
1271
1272   *=*)
1273     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1274     # Reject names that are not valid shell variable names.
1275     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1276       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1277    { (exit 1); exit 1; }; }
1278     eval $ac_envvar=\$ac_optarg
1279     export $ac_envvar ;;
1280
1281   *)
1282     # FIXME: should be removed in autoconf 3.0.
1283     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1284     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1285       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1286     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1287     ;;
1288
1289   esac
1290 done
1291
1292 if test -n "$ac_prev"; then
1293   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1294   { echo "$as_me: error: missing argument to $ac_option" >&2
1295    { (exit 1); exit 1; }; }
1296 fi
1297
1298 # Be sure to have absolute directory names.
1299 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1300                 datadir sysconfdir sharedstatedir localstatedir includedir \
1301                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1302                 libdir localedir mandir
1303 do
1304   eval ac_val=\$$ac_var
1305   case $ac_val in
1306     [\\/$]* | ?:[\\/]* )  continue;;
1307     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1308   esac
1309   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1310    { (exit 1); exit 1; }; }
1311 done
1312
1313 # There might be people who depend on the old broken behavior: `$host'
1314 # used to hold the argument of --host etc.
1315 # FIXME: To remove some day.
1316 build=$build_alias
1317 host=$host_alias
1318 target=$target_alias
1319
1320 # FIXME: To remove some day.
1321 if test "x$host_alias" != x; then
1322   if test "x$build_alias" = x; then
1323     cross_compiling=maybe
1324     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1325     If a cross compiler is detected then cross compile mode will be used." >&2
1326   elif test "x$build_alias" != "x$host_alias"; then
1327     cross_compiling=yes
1328   fi
1329 fi
1330
1331 ac_tool_prefix=
1332 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1333
1334 test "$silent" = yes && exec 6>/dev/null
1335
1336
1337 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1338 ac_ls_di=`ls -di .` &&
1339 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1340   { echo "$as_me: error: Working directory cannot be determined" >&2
1341    { (exit 1); exit 1; }; }
1342 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1343   { echo "$as_me: error: pwd does not report name of working directory" >&2
1344    { (exit 1); exit 1; }; }
1345
1346
1347 # Find the source files, if location was not specified.
1348 if test -z "$srcdir"; then
1349   ac_srcdir_defaulted=yes
1350   # Try the directory containing this script, then the parent directory.
1351   ac_confdir=`$as_dirname -- "$0" ||
1352 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1353          X"$0" : 'X\(//\)[^/]' \| \
1354          X"$0" : 'X\(//\)$' \| \
1355          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1356 echo X"$0" |
1357     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1358             s//\1/
1359             q
1360           }
1361           /^X\(\/\/\)[^/].*/{
1362             s//\1/
1363             q
1364           }
1365           /^X\(\/\/\)$/{
1366             s//\1/
1367             q
1368           }
1369           /^X\(\/\).*/{
1370             s//\1/
1371             q
1372           }
1373           s/.*/./; q'`
1374   srcdir=$ac_confdir
1375   if test ! -r "$srcdir/$ac_unique_file"; then
1376     srcdir=..
1377   fi
1378 else
1379   ac_srcdir_defaulted=no
1380 fi
1381 if test ! -r "$srcdir/$ac_unique_file"; then
1382   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1383   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1384    { (exit 1); exit 1; }; }
1385 fi
1386 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1387 ac_abs_confdir=`(
1388         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1389    { (exit 1); exit 1; }; }
1390         pwd)`
1391 # When building in place, set srcdir=.
1392 if test "$ac_abs_confdir" = "$ac_pwd"; then
1393   srcdir=.
1394 fi
1395 # Remove unnecessary trailing slashes from srcdir.
1396 # Double slashes in file names in object file debugging info
1397 # mess up M-x gdb in Emacs.
1398 case $srcdir in
1399 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1400 esac
1401 for ac_var in $ac_precious_vars; do
1402   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1403   eval ac_env_${ac_var}_value=\$${ac_var}
1404   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1405   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1406 done
1407
1408 #
1409 # Report the --help message.
1410 #
1411 if test "$ac_init_help" = "long"; then
1412   # Omit some internal or obsolete options to make the list less imposing.
1413   # This message is too long to be a string in the A/UX 3.1 sh.
1414   cat <<_ACEOF
1415 \`configure' configures iptables 1.4.3.2 to adapt to many kinds of systems.
1416
1417 Usage: $0 [OPTION]... [VAR=VALUE]...
1418
1419 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1420 VAR=VALUE.  See below for descriptions of some of the useful variables.
1421
1422 Defaults for the options are specified in brackets.
1423
1424 Configuration:
1425   -h, --help              display this help and exit
1426       --help=short        display options specific to this package
1427       --help=recursive    display the short help of all the included packages
1428   -V, --version           display version information and exit
1429   -q, --quiet, --silent   do not print \`checking...' messages
1430       --cache-file=FILE   cache test results in FILE [disabled]
1431   -C, --config-cache      alias for \`--cache-file=config.cache'
1432   -n, --no-create         do not create output files
1433       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1434
1435 Installation directories:
1436   --prefix=PREFIX         install architecture-independent files in PREFIX
1437                           [$ac_default_prefix]
1438   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1439                           [PREFIX]
1440
1441 By default, \`make install' will install all the files in
1442 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1443 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1444 for instance \`--prefix=\$HOME'.
1445
1446 For better control, use the options below.
1447
1448 Fine tuning of the installation directories:
1449   --bindir=DIR           user executables [EPREFIX/bin]
1450   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1451   --libexecdir=DIR       program executables [EPREFIX/libexec]
1452   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1453   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1454   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1455   --libdir=DIR           object code libraries [EPREFIX/lib]
1456   --includedir=DIR       C header files [PREFIX/include]
1457   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1458   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1459   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1460   --infodir=DIR          info documentation [DATAROOTDIR/info]
1461   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1462   --mandir=DIR           man documentation [DATAROOTDIR/man]
1463   --docdir=DIR           documentation root [DATAROOTDIR/doc/iptables]
1464   --htmldir=DIR          html documentation [DOCDIR]
1465   --dvidir=DIR           dvi documentation [DOCDIR]
1466   --pdfdir=DIR           pdf documentation [DOCDIR]
1467   --psdir=DIR            ps documentation [DOCDIR]
1468 _ACEOF
1469
1470   cat <<\_ACEOF
1471
1472 Program names:
1473   --program-prefix=PREFIX            prepend PREFIX to installed program names
1474   --program-suffix=SUFFIX            append SUFFIX to installed program names
1475   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1476
1477 System types:
1478   --build=BUILD     configure for building on BUILD [guessed]
1479   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1480 _ACEOF
1481 fi
1482
1483 if test -n "$ac_init_help"; then
1484   case $ac_init_help in
1485      short | recursive ) echo "Configuration of iptables 1.4.3.2:";;
1486    esac
1487   cat <<\_ACEOF
1488
1489 Optional Features:
1490   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1491   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1492   --disable-dependency-tracking  speeds up one-time build
1493   --enable-dependency-tracking   do not reject slow dependency extractors
1494   --enable-static[=PKGS]  build static libraries [default=no]
1495   --enable-shared[=PKGS]  build shared libraries [default=yes]
1496   --enable-fast-install[=PKGS]
1497                           optimize for fast installation [default=yes]
1498   --disable-libtool-lock  avoid locking (might break parallel builds)
1499   --disable-ipv4          Do not build iptables
1500   --disable-ipv6          Do not build ip6tables
1501   --enable-devel          Install Xtables development headers
1502   --enable-libipq         Build and install libipq
1503
1504 Optional Packages:
1505   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1506   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1507   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1508   --with-pic              try to use only PIC/non-PIC objects [default=use
1509                           both]
1510   --with-tags[=TAGS]      include additional configurations [automatic]
1511   --with-kernel=PATH      Path to kernel source/build directory
1512   --with-kbuild=PATH      Path to kernel build directory
1513                           [/lib/modules/CURRENT/build]
1514   --with-ksource=PATH     Path to kernel source directory
1515                           [/lib/modules/CURRENT/source]
1516   --with-xtlibdir=PATH    Path where to install Xtables extensions
1517                           [LIBEXECDIR/xtables]
1518   --with-pkgconfigdir=PATH
1519                           Path to the pkgconfig directory [LIBDIR/pkgconfig]
1520
1521 Some influential environment variables:
1522   CC          C compiler command
1523   CFLAGS      C compiler flags
1524   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1525               nonstandard directory <lib dir>
1526   LIBS        libraries to pass to the linker, e.g. -l<library>
1527   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1528               you have headers in a nonstandard directory <include dir>
1529   CPP         C preprocessor
1530   CXX         C++ compiler command
1531   CXXFLAGS    C++ compiler flags
1532   CXXCPP      C++ preprocessor
1533   F77         Fortran 77 compiler command
1534   FFLAGS      Fortran 77 compiler flags
1535
1536 Use these variables to override the choices made by `configure' or to help
1537 it to find libraries and programs with nonstandard names/locations.
1538
1539 _ACEOF
1540 ac_status=$?
1541 fi
1542
1543 if test "$ac_init_help" = "recursive"; then
1544   # If there are subdirs, report their specific --help.
1545   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1546     test -d "$ac_dir" || continue
1547     ac_builddir=.
1548
1549 case "$ac_dir" in
1550 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1551 *)
1552   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1553   # A ".." for each directory in $ac_dir_suffix.
1554   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1555   case $ac_top_builddir_sub in
1556   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1557   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1558   esac ;;
1559 esac
1560 ac_abs_top_builddir=$ac_pwd
1561 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1562 # for backward compatibility:
1563 ac_top_builddir=$ac_top_build_prefix
1564
1565 case $srcdir in
1566   .)  # We are building in place.
1567     ac_srcdir=.
1568     ac_top_srcdir=$ac_top_builddir_sub
1569     ac_abs_top_srcdir=$ac_pwd ;;
1570   [\\/]* | ?:[\\/]* )  # Absolute name.
1571     ac_srcdir=$srcdir$ac_dir_suffix;
1572     ac_top_srcdir=$srcdir
1573     ac_abs_top_srcdir=$srcdir ;;
1574   *) # Relative name.
1575     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1576     ac_top_srcdir=$ac_top_build_prefix$srcdir
1577     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1578 esac
1579 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1580
1581     cd "$ac_dir" || { ac_status=$?; continue; }
1582     # Check for guested configure.
1583     if test -f "$ac_srcdir/configure.gnu"; then
1584       echo &&
1585       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1586     elif test -f "$ac_srcdir/configure"; then
1587       echo &&
1588       $SHELL "$ac_srcdir/configure" --help=recursive
1589     else
1590       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1591     fi || ac_status=$?
1592     cd "$ac_pwd" || { ac_status=$?; break; }
1593   done
1594 fi
1595
1596 test -n "$ac_init_help" && exit $ac_status
1597 if $ac_init_version; then
1598   cat <<\_ACEOF
1599 iptables configure 1.4.3.2
1600 generated by GNU Autoconf 2.61
1601
1602 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1603 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1604 This configure script is free software; the Free Software Foundation
1605 gives unlimited permission to copy, distribute and modify it.
1606 _ACEOF
1607   exit
1608 fi
1609 cat >config.log <<_ACEOF
1610 This file contains any messages produced by compilers while
1611 running configure, to aid debugging if configure makes a mistake.
1612
1613 It was created by iptables $as_me 1.4.3.2, which was
1614 generated by GNU Autoconf 2.61.  Invocation command line was
1615
1616   $ $0 $@
1617
1618 _ACEOF
1619 exec 5>>config.log
1620 {
1621 cat <<_ASUNAME
1622 ## --------- ##
1623 ## Platform. ##
1624 ## --------- ##
1625
1626 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1627 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1628 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1629 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1630 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1631
1632 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1633 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1634
1635 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1636 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1637 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1638 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1639 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1640 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1641 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1642
1643 _ASUNAME
1644
1645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1646 for as_dir in $PATH
1647 do
1648   IFS=$as_save_IFS
1649   test -z "$as_dir" && as_dir=.
1650   echo "PATH: $as_dir"
1651 done
1652 IFS=$as_save_IFS
1653
1654 } >&5
1655
1656 cat >&5 <<_ACEOF
1657
1658
1659 ## ----------- ##
1660 ## Core tests. ##
1661 ## ----------- ##
1662
1663 _ACEOF
1664
1665
1666 # Keep a trace of the command line.
1667 # Strip out --no-create and --no-recursion so they do not pile up.
1668 # Strip out --silent because we don't want to record it for future runs.
1669 # Also quote any args containing shell meta-characters.
1670 # Make two passes to allow for proper duplicate-argument suppression.
1671 ac_configure_args=
1672 ac_configure_args0=
1673 ac_configure_args1=
1674 ac_must_keep_next=false
1675 for ac_pass in 1 2
1676 do
1677   for ac_arg
1678   do
1679     case $ac_arg in
1680     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1681     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1682     | -silent | --silent | --silen | --sile | --sil)
1683       continue ;;
1684     *\'*)
1685       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1686     esac
1687     case $ac_pass in
1688     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1689     2)
1690       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1691       if test $ac_must_keep_next = true; then
1692         ac_must_keep_next=false # Got value, back to normal.
1693       else
1694         case $ac_arg in
1695           *=* | --config-cache | -C | -disable-* | --disable-* \
1696           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1697           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1698           | -with-* | --with-* | -without-* | --without-* | --x)
1699             case "$ac_configure_args0 " in
1700               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1701             esac
1702             ;;
1703           -* ) ac_must_keep_next=true ;;
1704         esac
1705       fi
1706       ac_configure_args="$ac_configure_args '$ac_arg'"
1707       ;;
1708     esac
1709   done
1710 done
1711 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1712 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1713
1714 # When interrupted or exit'd, cleanup temporary files, and complete
1715 # config.log.  We remove comments because anyway the quotes in there
1716 # would cause problems or look ugly.
1717 # WARNING: Use '\'' to represent an apostrophe within the trap.
1718 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1719 trap 'exit_status=$?
1720   # Save into config.log some information that might help in debugging.
1721   {
1722     echo
1723
1724     cat <<\_ASBOX
1725 ## ---------------- ##
1726 ## Cache variables. ##
1727 ## ---------------- ##
1728 _ASBOX
1729     echo
1730     # The following way of writing the cache mishandles newlines in values,
1731 (
1732   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1733     eval ac_val=\$$ac_var
1734     case $ac_val in #(
1735     *${as_nl}*)
1736       case $ac_var in #(
1737       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1738 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1739       esac
1740       case $ac_var in #(
1741       _ | IFS | as_nl) ;; #(
1742       *) $as_unset $ac_var ;;
1743       esac ;;
1744     esac
1745   done
1746   (set) 2>&1 |
1747     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1748     *${as_nl}ac_space=\ *)
1749       sed -n \
1750         "s/'\''/'\''\\\\'\'''\''/g;
1751           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1752       ;; #(
1753     *)
1754       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1755       ;;
1756     esac |
1757     sort
1758 )
1759     echo
1760
1761     cat <<\_ASBOX
1762 ## ----------------- ##
1763 ## Output variables. ##
1764 ## ----------------- ##
1765 _ASBOX
1766     echo
1767     for ac_var in $ac_subst_vars
1768     do
1769       eval ac_val=\$$ac_var
1770       case $ac_val in
1771       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1772       esac
1773       echo "$ac_var='\''$ac_val'\''"
1774     done | sort
1775     echo
1776
1777     if test -n "$ac_subst_files"; then
1778       cat <<\_ASBOX
1779 ## ------------------- ##
1780 ## File substitutions. ##
1781 ## ------------------- ##
1782 _ASBOX
1783       echo
1784       for ac_var in $ac_subst_files
1785       do
1786         eval ac_val=\$$ac_var
1787         case $ac_val in
1788         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1789         esac
1790         echo "$ac_var='\''$ac_val'\''"
1791       done | sort
1792       echo
1793     fi
1794
1795     if test -s confdefs.h; then
1796       cat <<\_ASBOX
1797 ## ----------- ##
1798 ## confdefs.h. ##
1799 ## ----------- ##
1800 _ASBOX
1801       echo
1802       cat confdefs.h
1803       echo
1804     fi
1805     test "$ac_signal" != 0 &&
1806       echo "$as_me: caught signal $ac_signal"
1807     echo "$as_me: exit $exit_status"
1808   } >&5
1809   rm -f core *.core core.conftest.* &&
1810     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1811     exit $exit_status
1812 ' 0
1813 for ac_signal in 1 2 13 15; do
1814   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1815 done
1816 ac_signal=0
1817
1818 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1819 rm -f -r conftest* confdefs.h
1820
1821 # Predefined preprocessor variables.
1822
1823 cat >>confdefs.h <<_ACEOF
1824 #define PACKAGE_NAME "$PACKAGE_NAME"
1825 _ACEOF
1826
1827
1828 cat >>confdefs.h <<_ACEOF
1829 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1830 _ACEOF
1831
1832
1833 cat >>confdefs.h <<_ACEOF
1834 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1835 _ACEOF
1836
1837
1838 cat >>confdefs.h <<_ACEOF
1839 #define PACKAGE_STRING "$PACKAGE_STRING"
1840 _ACEOF
1841
1842
1843 cat >>confdefs.h <<_ACEOF
1844 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1845 _ACEOF
1846
1847
1848 # Let the site file select an alternate cache file if it wants to.
1849 # Prefer explicitly selected file to automatically selected ones.
1850 if test -n "$CONFIG_SITE"; then
1851   set x "$CONFIG_SITE"
1852 elif test "x$prefix" != xNONE; then
1853   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1854 else
1855   set x "$ac_default_prefix/share/config.site" \
1856         "$ac_default_prefix/etc/config.site"
1857 fi
1858 shift
1859 for ac_site_file
1860 do
1861   if test -r "$ac_site_file"; then
1862     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1863 echo "$as_me: loading site script $ac_site_file" >&6;}
1864     sed 's/^/| /' "$ac_site_file" >&5
1865     . "$ac_site_file"
1866   fi
1867 done
1868
1869 if test -r "$cache_file"; then
1870   # Some versions of bash will fail to source /dev/null (special
1871   # files actually), so we avoid doing that.
1872   if test -f "$cache_file"; then
1873     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1874 echo "$as_me: loading cache $cache_file" >&6;}
1875     case $cache_file in
1876       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1877       *)                      . "./$cache_file";;
1878     esac
1879   fi
1880 else
1881   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1882 echo "$as_me: creating cache $cache_file" >&6;}
1883   >$cache_file
1884 fi
1885
1886 # Check that the precious variables saved in the cache have kept the same
1887 # value.
1888 ac_cache_corrupted=false
1889 for ac_var in $ac_precious_vars; do
1890   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1891   eval ac_new_set=\$ac_env_${ac_var}_set
1892   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1893   eval ac_new_val=\$ac_env_${ac_var}_value
1894   case $ac_old_set,$ac_new_set in
1895     set,)
1896       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1897 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1898       ac_cache_corrupted=: ;;
1899     ,set)
1900       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1901 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1902       ac_cache_corrupted=: ;;
1903     ,);;
1904     *)
1905       if test "x$ac_old_val" != "x$ac_new_val"; then
1906         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1907 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1908         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1909 echo "$as_me:   former value:  $ac_old_val" >&2;}
1910         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1911 echo "$as_me:   current value: $ac_new_val" >&2;}
1912         ac_cache_corrupted=:
1913       fi;;
1914   esac
1915   # Pass precious variables to config.status.
1916   if test "$ac_new_set" = set; then
1917     case $ac_new_val in
1918     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1919     *) ac_arg=$ac_var=$ac_new_val ;;
1920     esac
1921     case " $ac_configure_args " in
1922       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1923       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1924     esac
1925   fi
1926 done
1927 if $ac_cache_corrupted; then
1928   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1929 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1930   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1931 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1932    { (exit 1); exit 1; }; }
1933 fi
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959 ac_ext=c
1960 ac_cpp='$CPP $CPPFLAGS'
1961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1964
1965
1966
1967 # See libtool.info "Libtool's versioning system"
1968 libxtables_vcurrent=2
1969 libxtables_vage=0
1970
1971 ac_config_headers="$ac_config_headers config.h"
1972
1973
1974 ac_aux_dir=
1975 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1976   if test -f "$ac_dir/install-sh"; then
1977     ac_aux_dir=$ac_dir
1978     ac_install_sh="$ac_aux_dir/install-sh -c"
1979     break
1980   elif test -f "$ac_dir/install.sh"; then
1981     ac_aux_dir=$ac_dir
1982     ac_install_sh="$ac_aux_dir/install.sh -c"
1983     break
1984   elif test -f "$ac_dir/shtool"; then
1985     ac_aux_dir=$ac_dir
1986     ac_install_sh="$ac_aux_dir/shtool install -c"
1987     break
1988   fi
1989 done
1990 if test -z "$ac_aux_dir"; then
1991   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1992 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1993    { (exit 1); exit 1; }; }
1994 fi
1995
1996 # These three variables are undocumented and unsupported,
1997 # and are intended to be withdrawn in a future Autoconf release.
1998 # They can cause serious problems if a builder's source tree is in a directory
1999 # whose full name contains unusual characters.
2000 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2001 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2002 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2003
2004
2005 # Find a good install program.  We prefer a C program (faster),
2006 # so one script is as good as another.  But avoid the broken or
2007 # incompatible versions:
2008 # SysV /etc/install, /usr/sbin/install
2009 # SunOS /usr/etc/install
2010 # IRIX /sbin/install
2011 # AIX /bin/install
2012 # AmigaOS /C/install, which installs bootblocks on floppy discs
2013 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2014 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2015 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2016 # OS/2's system install, which has a completely different semantic
2017 # ./install, which can be erroneously created by make from ./install.sh.
2018 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2019 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2020 if test -z "$INSTALL"; then
2021 if test "${ac_cv_path_install+set}" = set; then
2022   echo $ECHO_N "(cached) $ECHO_C" >&6
2023 else
2024   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2025 for as_dir in $PATH
2026 do
2027   IFS=$as_save_IFS
2028   test -z "$as_dir" && as_dir=.
2029   # Account for people who put trailing slashes in PATH elements.
2030 case $as_dir/ in
2031   ./ | .// | /cC/* | \
2032   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2033   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2034   /usr/ucb/* ) ;;
2035   *)
2036     # OSF1 and SCO ODT 3.0 have their own names for install.
2037     # Don't use installbsd from OSF since it installs stuff as root
2038     # by default.
2039     for ac_prog in ginstall scoinst install; do
2040       for ac_exec_ext in '' $ac_executable_extensions; do
2041         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2042           if test $ac_prog = install &&
2043             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2044             # AIX install.  It has an incompatible calling convention.
2045             :
2046           elif test $ac_prog = install &&
2047             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2048             # program-specific install script used by HP pwplus--don't use.
2049             :
2050           else
2051             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2052             break 3
2053           fi
2054         fi
2055       done
2056     done
2057     ;;
2058 esac
2059 done
2060 IFS=$as_save_IFS
2061
2062
2063 fi
2064   if test "${ac_cv_path_install+set}" = set; then
2065     INSTALL=$ac_cv_path_install
2066   else
2067     # As a last resort, use the slow shell script.  Don't cache a
2068     # value for INSTALL within a source directory, because that will
2069     # break other packages using the cache if that directory is
2070     # removed, or if the value is a relative name.
2071     INSTALL=$ac_install_sh
2072   fi
2073 fi
2074 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2075 echo "${ECHO_T}$INSTALL" >&6; }
2076
2077 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2078 # It thinks the first close brace ends the variable substitution.
2079 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2080
2081 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2082
2083 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2084
2085 am__api_version='1.10'
2086
2087 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2088 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2089 # Just in case
2090 sleep 1
2091 echo timestamp > conftest.file
2092 # Do `set' in a subshell so we don't clobber the current shell's
2093 # arguments.  Must try -L first in case configure is actually a
2094 # symlink; some systems play weird games with the mod time of symlinks
2095 # (eg FreeBSD returns the mod time of the symlink's containing
2096 # directory).
2097 if (
2098    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2099    if test "$*" = "X"; then
2100       # -L didn't work.
2101       set X `ls -t $srcdir/configure conftest.file`
2102    fi
2103    rm -f conftest.file
2104    if test "$*" != "X $srcdir/configure conftest.file" \
2105       && test "$*" != "X conftest.file $srcdir/configure"; then
2106
2107       # If neither matched, then we have a broken ls.  This can happen
2108       # if, for instance, CONFIG_SHELL is bash and it inherits a
2109       # broken ls alias from the environment.  This has actually
2110       # happened.  Such a system could not be considered "sane".
2111       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2112 alias in your environment" >&5
2113 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2114 alias in your environment" >&2;}
2115    { (exit 1); exit 1; }; }
2116    fi
2117
2118    test "$2" = conftest.file
2119    )
2120 then
2121    # Ok.
2122    :
2123 else
2124    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2125 Check your system clock" >&5
2126 echo "$as_me: error: newly created file is older than distributed files!
2127 Check your system clock" >&2;}
2128    { (exit 1); exit 1; }; }
2129 fi
2130 { echo "$as_me:$LINENO: result: yes" >&5
2131 echo "${ECHO_T}yes" >&6; }
2132 test "$program_prefix" != NONE &&
2133   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2134 # Use a double $ so make ignores it.
2135 test "$program_suffix" != NONE &&
2136   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2137 # Double any \ or $.  echo might interpret backslashes.
2138 # By default was `s,x,x', remove it if useless.
2139 cat <<\_ACEOF >conftest.sed
2140 s/[\\$]/&&/g;s/;s,x,x,$//
2141 _ACEOF
2142 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2143 rm -f conftest.sed
2144
2145 # expand $ac_aux_dir to an absolute path
2146 am_aux_dir=`cd $ac_aux_dir && pwd`
2147
2148 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2149 # Use eval to expand $SHELL
2150 if eval "$MISSING --run true"; then
2151   am_missing_run="$MISSING --run "
2152 else
2153   am_missing_run=
2154   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2155 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2156 fi
2157
2158 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2159 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2160 if test -z "$MKDIR_P"; then
2161   if test "${ac_cv_path_mkdir+set}" = set; then
2162   echo $ECHO_N "(cached) $ECHO_C" >&6
2163 else
2164   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2165 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2166 do
2167   IFS=$as_save_IFS
2168   test -z "$as_dir" && as_dir=.
2169   for ac_prog in mkdir gmkdir; do
2170          for ac_exec_ext in '' $ac_executable_extensions; do
2171            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2172            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2173              'mkdir (GNU coreutils) '* | \
2174              'mkdir (coreutils) '* | \
2175              'mkdir (fileutils) '4.1*)
2176                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2177                break 3;;
2178            esac
2179          done
2180        done
2181 done
2182 IFS=$as_save_IFS
2183
2184 fi
2185
2186   if test "${ac_cv_path_mkdir+set}" = set; then
2187     MKDIR_P="$ac_cv_path_mkdir -p"
2188   else
2189     # As a last resort, use the slow shell script.  Don't cache a
2190     # value for MKDIR_P within a source directory, because that will
2191     # break other packages using the cache if that directory is
2192     # removed, or if the value is a relative name.
2193     test -d ./--version && rmdir ./--version
2194     MKDIR_P="$ac_install_sh -d"
2195   fi
2196 fi
2197 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2198 echo "${ECHO_T}$MKDIR_P" >&6; }
2199
2200 mkdir_p="$MKDIR_P"
2201 case $mkdir_p in
2202   [\\/$]* | ?:[\\/]*) ;;
2203   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2204 esac
2205
2206 for ac_prog in gawk mawk nawk awk
2207 do
2208   # Extract the first word of "$ac_prog", so it can be a program name with args.
2209 set dummy $ac_prog; ac_word=$2
2210 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2212 if test "${ac_cv_prog_AWK+set}" = set; then
2213   echo $ECHO_N "(cached) $ECHO_C" >&6
2214 else
2215   if test -n "$AWK"; then
2216   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2217 else
2218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2219 for as_dir in $PATH
2220 do
2221   IFS=$as_save_IFS
2222   test -z "$as_dir" && as_dir=.
2223   for ac_exec_ext in '' $ac_executable_extensions; do
2224   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2225     ac_cv_prog_AWK="$ac_prog"
2226     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2227     break 2
2228   fi
2229 done
2230 done
2231 IFS=$as_save_IFS
2232
2233 fi
2234 fi
2235 AWK=$ac_cv_prog_AWK
2236 if test -n "$AWK"; then
2237   { echo "$as_me:$LINENO: result: $AWK" >&5
2238 echo "${ECHO_T}$AWK" >&6; }
2239 else
2240   { echo "$as_me:$LINENO: result: no" >&5
2241 echo "${ECHO_T}no" >&6; }
2242 fi
2243
2244
2245   test -n "$AWK" && break
2246 done
2247
2248 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2249 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2250 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2251 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2252   echo $ECHO_N "(cached) $ECHO_C" >&6
2253 else
2254   cat >conftest.make <<\_ACEOF
2255 SHELL = /bin/sh
2256 all:
2257         @echo '@@@%%%=$(MAKE)=@@@%%%'
2258 _ACEOF
2259 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2260 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2261   *@@@%%%=?*=@@@%%%*)
2262     eval ac_cv_prog_make_${ac_make}_set=yes;;
2263   *)
2264     eval ac_cv_prog_make_${ac_make}_set=no;;
2265 esac
2266 rm -f conftest.make
2267 fi
2268 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2269   { echo "$as_me:$LINENO: result: yes" >&5
2270 echo "${ECHO_T}yes" >&6; }
2271   SET_MAKE=
2272 else
2273   { echo "$as_me:$LINENO: result: no" >&5
2274 echo "${ECHO_T}no" >&6; }
2275   SET_MAKE="MAKE=${MAKE-make}"
2276 fi
2277
2278 rm -rf .tst 2>/dev/null
2279 mkdir .tst 2>/dev/null
2280 if test -d .tst; then
2281   am__leading_dot=.
2282 else
2283   am__leading_dot=_
2284 fi
2285 rmdir .tst 2>/dev/null
2286
2287 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2288   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2289   # is not polluted with repeated "-I."
2290   am__isrc=' -I$(srcdir)'
2291   # test to see if srcdir already configured
2292   if test -f $srcdir/config.status; then
2293     { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2294 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2295    { (exit 1); exit 1; }; }
2296   fi
2297 fi
2298
2299 # test whether we have cygpath
2300 if test -z "$CYGPATH_W"; then
2301   if (cygpath --version) >/dev/null 2>/dev/null; then
2302     CYGPATH_W='cygpath -w'
2303   else
2304     CYGPATH_W=echo
2305   fi
2306 fi
2307
2308
2309 # Define the identity of the package.
2310  PACKAGE='iptables'
2311  VERSION='1.4.3.2'
2312
2313
2314 cat >>confdefs.h <<_ACEOF
2315 #define PACKAGE "$PACKAGE"
2316 _ACEOF
2317
2318
2319 cat >>confdefs.h <<_ACEOF
2320 #define VERSION "$VERSION"
2321 _ACEOF
2322
2323 # Some tools Automake needs.
2324
2325 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2326
2327
2328 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2329
2330
2331 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2332
2333
2334 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2335
2336
2337 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2338
2339 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2340
2341 # Installed binaries are usually stripped using `strip' when the user
2342 # run `make install-strip'.  However `strip' might not be the right
2343 # tool to use in cross-compilation environments, therefore Automake
2344 # will honor the `STRIP' environment variable to overrule this program.
2345 if test "$cross_compiling" != no; then
2346   if test -n "$ac_tool_prefix"; then
2347   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2348 set dummy ${ac_tool_prefix}strip; ac_word=$2
2349 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2351 if test "${ac_cv_prog_STRIP+set}" = set; then
2352   echo $ECHO_N "(cached) $ECHO_C" >&6
2353 else
2354   if test -n "$STRIP"; then
2355   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2356 else
2357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2358 for as_dir in $PATH
2359 do
2360   IFS=$as_save_IFS
2361   test -z "$as_dir" && as_dir=.
2362   for ac_exec_ext in '' $ac_executable_extensions; do
2363   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2364     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2365     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2366     break 2
2367   fi
2368 done
2369 done
2370 IFS=$as_save_IFS
2371
2372 fi
2373 fi
2374 STRIP=$ac_cv_prog_STRIP
2375 if test -n "$STRIP"; then
2376   { echo "$as_me:$LINENO: result: $STRIP" >&5
2377 echo "${ECHO_T}$STRIP" >&6; }
2378 else
2379   { echo "$as_me:$LINENO: result: no" >&5
2380 echo "${ECHO_T}no" >&6; }
2381 fi
2382
2383
2384 fi
2385 if test -z "$ac_cv_prog_STRIP"; then
2386   ac_ct_STRIP=$STRIP
2387   # Extract the first word of "strip", so it can be a program name with args.
2388 set dummy strip; ac_word=$2
2389 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2391 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2392   echo $ECHO_N "(cached) $ECHO_C" >&6
2393 else
2394   if test -n "$ac_ct_STRIP"; then
2395   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2396 else
2397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2398 for as_dir in $PATH
2399 do
2400   IFS=$as_save_IFS
2401   test -z "$as_dir" && as_dir=.
2402   for ac_exec_ext in '' $ac_executable_extensions; do
2403   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2404     ac_cv_prog_ac_ct_STRIP="strip"
2405     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2406     break 2
2407   fi
2408 done
2409 done
2410 IFS=$as_save_IFS
2411
2412 fi
2413 fi
2414 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2415 if test -n "$ac_ct_STRIP"; then
2416   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2417 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2418 else
2419   { echo "$as_me:$LINENO: result: no" >&5
2420 echo "${ECHO_T}no" >&6; }
2421 fi
2422
2423   if test "x$ac_ct_STRIP" = x; then
2424     STRIP=":"
2425   else
2426     case $cross_compiling:$ac_tool_warned in
2427 yes:)
2428 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2429 whose name does not start with the host triplet.  If you think this
2430 configuration is useful to you, please write to autoconf@gnu.org." >&5
2431 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2432 whose name does not start with the host triplet.  If you think this
2433 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2434 ac_tool_warned=yes ;;
2435 esac
2436     STRIP=$ac_ct_STRIP
2437   fi
2438 else
2439   STRIP="$ac_cv_prog_STRIP"
2440 fi
2441
2442 fi
2443 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2444
2445 # We need awk for the "check" target.  The system "awk" is bad on
2446 # some platforms.
2447 # Always define AMTAR for backward compatibility.
2448
2449 AMTAR=${AMTAR-"${am_missing_run}tar"}
2450
2451 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2452
2453
2454
2455
2456
2457 ac_ext=c
2458 ac_cpp='$CPP $CPPFLAGS'
2459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2462 if test -n "$ac_tool_prefix"; then
2463   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2464 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2465 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2467 if test "${ac_cv_prog_CC+set}" = set; then
2468   echo $ECHO_N "(cached) $ECHO_C" >&6
2469 else
2470   if test -n "$CC"; then
2471   ac_cv_prog_CC="$CC" # Let the user override the test.
2472 else
2473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2474 for as_dir in $PATH
2475 do
2476   IFS=$as_save_IFS
2477   test -z "$as_dir" && as_dir=.
2478   for ac_exec_ext in '' $ac_executable_extensions; do
2479   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2480     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2481     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2482     break 2
2483   fi
2484 done
2485 done
2486 IFS=$as_save_IFS
2487
2488 fi
2489 fi
2490 CC=$ac_cv_prog_CC
2491 if test -n "$CC"; then
2492   { echo "$as_me:$LINENO: result: $CC" >&5
2493 echo "${ECHO_T}$CC" >&6; }
2494 else
2495   { echo "$as_me:$LINENO: result: no" >&5
2496 echo "${ECHO_T}no" >&6; }
2497 fi
2498
2499
2500 fi
2501 if test -z "$ac_cv_prog_CC"; then
2502   ac_ct_CC=$CC
2503   # Extract the first word of "gcc", so it can be a program name with args.
2504 set dummy gcc; ac_word=$2
2505 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2507 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2508   echo $ECHO_N "(cached) $ECHO_C" >&6
2509 else
2510   if test -n "$ac_ct_CC"; then
2511   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2512 else
2513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2514 for as_dir in $PATH
2515 do
2516   IFS=$as_save_IFS
2517   test -z "$as_dir" && as_dir=.
2518   for ac_exec_ext in '' $ac_executable_extensions; do
2519   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2520     ac_cv_prog_ac_ct_CC="gcc"
2521     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2522     break 2
2523   fi
2524 done
2525 done
2526 IFS=$as_save_IFS
2527
2528 fi
2529 fi
2530 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2531 if test -n "$ac_ct_CC"; then
2532   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2533 echo "${ECHO_T}$ac_ct_CC" >&6; }
2534 else
2535   { echo "$as_me:$LINENO: result: no" >&5
2536 echo "${ECHO_T}no" >&6; }
2537 fi
2538
2539   if test "x$ac_ct_CC" = x; then
2540     CC=""
2541   else
2542     case $cross_compiling:$ac_tool_warned in
2543 yes:)
2544 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2545 whose name does not start with the host triplet.  If you think this
2546 configuration is useful to you, please write to autoconf@gnu.org." >&5
2547 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2548 whose name does not start with the host triplet.  If you think this
2549 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2550 ac_tool_warned=yes ;;
2551 esac
2552     CC=$ac_ct_CC
2553   fi
2554 else
2555   CC="$ac_cv_prog_CC"
2556 fi
2557
2558 if test -z "$CC"; then
2559           if test -n "$ac_tool_prefix"; then
2560     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2561 set dummy ${ac_tool_prefix}cc; ac_word=$2
2562 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2564 if test "${ac_cv_prog_CC+set}" = set; then
2565   echo $ECHO_N "(cached) $ECHO_C" >&6
2566 else
2567   if test -n "$CC"; then
2568   ac_cv_prog_CC="$CC" # Let the user override the test.
2569 else
2570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2571 for as_dir in $PATH
2572 do
2573   IFS=$as_save_IFS
2574   test -z "$as_dir" && as_dir=.
2575   for ac_exec_ext in '' $ac_executable_extensions; do
2576   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2577     ac_cv_prog_CC="${ac_tool_prefix}cc"
2578     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2579     break 2
2580   fi
2581 done
2582 done
2583 IFS=$as_save_IFS
2584
2585 fi
2586 fi
2587 CC=$ac_cv_prog_CC
2588 if test -n "$CC"; then
2589   { echo "$as_me:$LINENO: result: $CC" >&5
2590 echo "${ECHO_T}$CC" >&6; }
2591 else
2592   { echo "$as_me:$LINENO: result: no" >&5
2593 echo "${ECHO_T}no" >&6; }
2594 fi
2595
2596
2597   fi
2598 fi
2599 if test -z "$CC"; then
2600   # Extract the first word of "cc", so it can be a program name with args.
2601 set dummy cc; ac_word=$2
2602 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2604 if test "${ac_cv_prog_CC+set}" = set; then
2605   echo $ECHO_N "(cached) $ECHO_C" >&6
2606 else
2607   if test -n "$CC"; then
2608   ac_cv_prog_CC="$CC" # Let the user override the test.
2609 else
2610   ac_prog_rejected=no
2611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2612 for as_dir in $PATH
2613 do
2614   IFS=$as_save_IFS
2615   test -z "$as_dir" && as_dir=.
2616   for ac_exec_ext in '' $ac_executable_extensions; do
2617   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2618     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2619        ac_prog_rejected=yes
2620        continue
2621      fi
2622     ac_cv_prog_CC="cc"
2623     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2624     break 2
2625   fi
2626 done
2627 done
2628 IFS=$as_save_IFS
2629
2630 if test $ac_prog_rejected = yes; then
2631   # We found a bogon in the path, so make sure we never use it.
2632   set dummy $ac_cv_prog_CC
2633   shift
2634   if test $# != 0; then
2635     # We chose a different compiler from the bogus one.
2636     # However, it has the same basename, so the bogon will be chosen
2637     # first if we set CC to just the basename; use the full file name.
2638     shift
2639     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2640   fi
2641 fi
2642 fi
2643 fi
2644 CC=$ac_cv_prog_CC
2645 if test -n "$CC"; then
2646   { echo "$as_me:$LINENO: result: $CC" >&5
2647 echo "${ECHO_T}$CC" >&6; }
2648 else
2649   { echo "$as_me:$LINENO: result: no" >&5
2650 echo "${ECHO_T}no" >&6; }
2651 fi
2652
2653
2654 fi
2655 if test -z "$CC"; then
2656   if test -n "$ac_tool_prefix"; then
2657   for ac_prog in cl.exe
2658   do
2659     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2660 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2661 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2663 if test "${ac_cv_prog_CC+set}" = set; then
2664   echo $ECHO_N "(cached) $ECHO_C" >&6
2665 else
2666   if test -n "$CC"; then
2667   ac_cv_prog_CC="$CC" # Let the user override the test.
2668 else
2669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2670 for as_dir in $PATH
2671 do
2672   IFS=$as_save_IFS
2673   test -z "$as_dir" && as_dir=.
2674   for ac_exec_ext in '' $ac_executable_extensions; do
2675   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2676     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2677     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2678     break 2
2679   fi
2680 done
2681 done
2682 IFS=$as_save_IFS
2683
2684 fi
2685 fi
2686 CC=$ac_cv_prog_CC
2687 if test -n "$CC"; then
2688   { echo "$as_me:$LINENO: result: $CC" >&5
2689 echo "${ECHO_T}$CC" >&6; }
2690 else
2691   { echo "$as_me:$LINENO: result: no" >&5
2692 echo "${ECHO_T}no" >&6; }
2693 fi
2694
2695
2696     test -n "$CC" && break
2697   done
2698 fi
2699 if test -z "$CC"; then
2700   ac_ct_CC=$CC
2701   for ac_prog in cl.exe
2702 do
2703   # Extract the first word of "$ac_prog", so it can be a program name with args.
2704 set dummy $ac_prog; ac_word=$2
2705 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2707 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2708   echo $ECHO_N "(cached) $ECHO_C" >&6
2709 else
2710   if test -n "$ac_ct_CC"; then
2711   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2712 else
2713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2714 for as_dir in $PATH
2715 do
2716   IFS=$as_save_IFS
2717   test -z "$as_dir" && as_dir=.
2718   for ac_exec_ext in '' $ac_executable_extensions; do
2719   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2720     ac_cv_prog_ac_ct_CC="$ac_prog"
2721     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2722     break 2
2723   fi
2724 done
2725 done
2726 IFS=$as_save_IFS
2727
2728 fi
2729 fi
2730 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2731 if test -n "$ac_ct_CC"; then
2732   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2733 echo "${ECHO_T}$ac_ct_CC" >&6; }
2734 else
2735   { echo "$as_me:$LINENO: result: no" >&5
2736 echo "${ECHO_T}no" >&6; }
2737 fi
2738
2739
2740   test -n "$ac_ct_CC" && break
2741 done
2742
2743   if test "x$ac_ct_CC" = x; then
2744     CC=""
2745   else
2746     case $cross_compiling:$ac_tool_warned in
2747 yes:)
2748 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2749 whose name does not start with the host triplet.  If you think this
2750 configuration is useful to you, please write to autoconf@gnu.org." >&5
2751 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2752 whose name does not start with the host triplet.  If you think this
2753 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2754 ac_tool_warned=yes ;;
2755 esac
2756     CC=$ac_ct_CC
2757   fi
2758 fi
2759
2760 fi
2761
2762
2763 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2764 See \`config.log' for more details." >&5
2765 echo "$as_me: error: no acceptable C compiler found in \$PATH
2766 See \`config.log' for more details." >&2;}
2767    { (exit 1); exit 1; }; }
2768
2769 # Provide some information about the compiler.
2770 echo "$as_me:$LINENO: checking for C compiler version" >&5
2771 ac_compiler=`set X $ac_compile; echo $2`
2772 { (ac_try="$ac_compiler --version >&5"
2773 case "(($ac_try" in
2774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2775   *) ac_try_echo=$ac_try;;
2776 esac
2777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2778   (eval "$ac_compiler --version >&5") 2>&5
2779   ac_status=$?
2780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781   (exit $ac_status); }
2782 { (ac_try="$ac_compiler -v >&5"
2783 case "(($ac_try" in
2784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2785   *) ac_try_echo=$ac_try;;
2786 esac
2787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2788   (eval "$ac_compiler -v >&5") 2>&5
2789   ac_status=$?
2790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791   (exit $ac_status); }
2792 { (ac_try="$ac_compiler -V >&5"
2793 case "(($ac_try" in
2794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2795   *) ac_try_echo=$ac_try;;
2796 esac
2797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2798   (eval "$ac_compiler -V >&5") 2>&5
2799   ac_status=$?
2800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801   (exit $ac_status); }
2802
2803 cat >conftest.$ac_ext <<_ACEOF
2804 /* confdefs.h.  */
2805 _ACEOF
2806 cat confdefs.h >>conftest.$ac_ext
2807 cat >>conftest.$ac_ext <<_ACEOF
2808 /* end confdefs.h.  */
2809
2810 int
2811 main ()
2812 {
2813
2814   ;
2815   return 0;
2816 }
2817 _ACEOF
2818 ac_clean_files_save=$ac_clean_files
2819 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2820 # Try to create an executable without -o first, disregard a.out.
2821 # It will help us diagnose broken compilers, and finding out an intuition
2822 # of exeext.
2823 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2824 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2825 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2826 #
2827 # List of possible output files, starting from the most likely.
2828 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2829 # only as a last resort.  b.out is created by i960 compilers.
2830 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2831 #
2832 # The IRIX 6 linker writes into existing files which may not be
2833 # executable, retaining their permissions.  Remove them first so a
2834 # subsequent execution test works.
2835 ac_rmfiles=
2836 for ac_file in $ac_files
2837 do
2838   case $ac_file in
2839     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2840     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2841   esac
2842 done
2843 rm -f $ac_rmfiles
2844
2845 if { (ac_try="$ac_link_default"
2846 case "(($ac_try" in
2847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2848   *) ac_try_echo=$ac_try;;
2849 esac
2850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2851   (eval "$ac_link_default") 2>&5
2852   ac_status=$?
2853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854   (exit $ac_status); }; then
2855   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2856 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2857 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2858 # so that the user can short-circuit this test for compilers unknown to
2859 # Autoconf.
2860 for ac_file in $ac_files ''
2861 do
2862   test -f "$ac_file" || continue
2863   case $ac_file in
2864     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2865         ;;
2866     [ab].out )
2867         # We found the default executable, but exeext='' is most
2868         # certainly right.
2869         break;;
2870     *.* )
2871         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2872         then :; else
2873            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2874         fi
2875         # We set ac_cv_exeext here because the later test for it is not
2876         # safe: cross compilers may not add the suffix if given an `-o'
2877         # argument, so we may need to know it at that point already.
2878         # Even if this section looks crufty: it has the advantage of
2879         # actually working.
2880         break;;
2881     * )
2882         break;;
2883   esac
2884 done
2885 test "$ac_cv_exeext" = no && ac_cv_exeext=
2886
2887 else
2888   ac_file=''
2889 fi
2890
2891 { echo "$as_me:$LINENO: result: $ac_file" >&5
2892 echo "${ECHO_T}$ac_file" >&6; }
2893 if test -z "$ac_file"; then
2894   echo "$as_me: failed program was:" >&5
2895 sed 's/^/| /' conftest.$ac_ext >&5
2896
2897 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2898 See \`config.log' for more details." >&5
2899 echo "$as_me: error: C compiler cannot create executables
2900 See \`config.log' for more details." >&2;}
2901    { (exit 77); exit 77; }; }
2902 fi
2903
2904 ac_exeext=$ac_cv_exeext
2905
2906 # Check that the compiler produces executables we can run.  If not, either
2907 # the compiler is broken, or we cross compile.
2908 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2909 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2910 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2911 # If not cross compiling, check that we can run a simple program.
2912 if test "$cross_compiling" != yes; then
2913   if { ac_try='./$ac_file'
2914   { (case "(($ac_try" in
2915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2916   *) ac_try_echo=$ac_try;;
2917 esac
2918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2919   (eval "$ac_try") 2>&5
2920   ac_status=$?
2921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2922   (exit $ac_status); }; }; then
2923     cross_compiling=no
2924   else
2925     if test "$cross_compiling" = maybe; then
2926         cross_compiling=yes
2927     else
2928         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2929 If you meant to cross compile, use \`--host'.
2930 See \`config.log' for more details." >&5
2931 echo "$as_me: error: cannot run C compiled programs.
2932 If you meant to cross compile, use \`--host'.
2933 See \`config.log' for more details." >&2;}
2934    { (exit 1); exit 1; }; }
2935     fi
2936   fi
2937 fi
2938 { echo "$as_me:$LINENO: result: yes" >&5
2939 echo "${ECHO_T}yes" >&6; }
2940
2941 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2942 ac_clean_files=$ac_clean_files_save
2943 # Check that the compiler produces executables we can run.  If not, either
2944 # the compiler is broken, or we cross compile.
2945 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2946 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2947 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2948 echo "${ECHO_T}$cross_compiling" >&6; }
2949
2950 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2951 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2952 if { (ac_try="$ac_link"
2953 case "(($ac_try" in
2954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2955   *) ac_try_echo=$ac_try;;
2956 esac
2957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2958   (eval "$ac_link") 2>&5
2959   ac_status=$?
2960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961   (exit $ac_status); }; then
2962   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2963 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2964 # work properly (i.e., refer to `conftest.exe'), while it won't with
2965 # `rm'.
2966 for ac_file in conftest.exe conftest conftest.*; do
2967   test -f "$ac_file" || continue
2968   case $ac_file in
2969     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2970     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2971           break;;
2972     * ) break;;
2973   esac
2974 done
2975 else
2976   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2977 See \`config.log' for more details." >&5
2978 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2979 See \`config.log' for more details." >&2;}
2980    { (exit 1); exit 1; }; }
2981 fi
2982
2983 rm -f conftest$ac_cv_exeext
2984 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2985 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2986
2987 rm -f conftest.$ac_ext
2988 EXEEXT=$ac_cv_exeext
2989 ac_exeext=$EXEEXT
2990 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2991 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2992 if test "${ac_cv_objext+set}" = set; then
2993   echo $ECHO_N "(cached) $ECHO_C" >&6
2994 else
2995   cat >conftest.$ac_ext <<_ACEOF
2996 /* confdefs.h.  */
2997 _ACEOF
2998 cat confdefs.h >>conftest.$ac_ext
2999 cat >>conftest.$ac_ext <<_ACEOF
3000 /* end confdefs.h.  */
3001
3002 int
3003 main ()
3004 {
3005
3006   ;
3007   return 0;
3008 }
3009 _ACEOF
3010 rm -f conftest.o conftest.obj
3011 if { (ac_try="$ac_compile"
3012 case "(($ac_try" in
3013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3014   *) ac_try_echo=$ac_try;;
3015 esac
3016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3017   (eval "$ac_compile") 2>&5
3018   ac_status=$?
3019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3020   (exit $ac_status); }; then
3021   for ac_file in conftest.o conftest.obj conftest.*; do
3022   test -f "$ac_file" || continue;
3023   case $ac_file in
3024     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3025     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3026        break;;
3027   esac
3028 done
3029 else
3030   echo "$as_me: failed program was:" >&5
3031 sed 's/^/| /' conftest.$ac_ext >&5
3032
3033 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3034 See \`config.log' for more details." >&5
3035 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3036 See \`config.log' for more details." >&2;}
3037    { (exit 1); exit 1; }; }
3038 fi
3039
3040 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3041 fi
3042 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3043 echo "${ECHO_T}$ac_cv_objext" >&6; }
3044 OBJEXT=$ac_cv_objext
3045 ac_objext=$OBJEXT
3046 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3047 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3048 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3049   echo $ECHO_N "(cached) $ECHO_C" >&6
3050 else
3051   cat >conftest.$ac_ext <<_ACEOF
3052 /* confdefs.h.  */
3053 _ACEOF
3054 cat confdefs.h >>conftest.$ac_ext
3055 cat >>conftest.$ac_ext <<_ACEOF
3056 /* end confdefs.h.  */
3057
3058 int
3059 main ()
3060 {
3061 #ifndef __GNUC__
3062        choke me
3063 #endif
3064
3065   ;
3066   return 0;
3067 }
3068 _ACEOF
3069 rm -f conftest.$ac_objext
3070 if { (ac_try="$ac_compile"
3071 case "(($ac_try" in
3072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3073   *) ac_try_echo=$ac_try;;
3074 esac
3075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3076   (eval "$ac_compile") 2>conftest.er1
3077   ac_status=$?
3078   grep -v '^ *+' conftest.er1 >conftest.err
3079   rm -f conftest.er1
3080   cat conftest.err >&5
3081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082   (exit $ac_status); } && {
3083          test -z "$ac_c_werror_flag" ||
3084          test ! -s conftest.err
3085        } && test -s conftest.$ac_objext; then
3086   ac_compiler_gnu=yes
3087 else
3088   echo "$as_me: failed program was:" >&5
3089 sed 's/^/| /' conftest.$ac_ext >&5
3090
3091         ac_compiler_gnu=no
3092 fi
3093
3094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3095 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3096
3097 fi
3098 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3099 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3100 GCC=`test $ac_compiler_gnu = yes && echo yes`
3101 ac_test_CFLAGS=${CFLAGS+set}
3102 ac_save_CFLAGS=$CFLAGS
3103 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3104 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3105 if test "${ac_cv_prog_cc_g+set}" = set; then
3106   echo $ECHO_N "(cached) $ECHO_C" >&6
3107 else
3108   ac_save_c_werror_flag=$ac_c_werror_flag
3109    ac_c_werror_flag=yes
3110    ac_cv_prog_cc_g=no
3111    CFLAGS="-g"
3112    cat >conftest.$ac_ext <<_ACEOF
3113 /* confdefs.h.  */
3114 _ACEOF
3115 cat confdefs.h >>conftest.$ac_ext
3116 cat >>conftest.$ac_ext <<_ACEOF
3117 /* end confdefs.h.  */
3118
3119 int
3120 main ()
3121 {
3122
3123   ;
3124   return 0;
3125 }
3126 _ACEOF
3127 rm -f conftest.$ac_objext
3128 if { (ac_try="$ac_compile"
3129 case "(($ac_try" in
3130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3131   *) ac_try_echo=$ac_try;;
3132 esac
3133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3134   (eval "$ac_compile") 2>conftest.er1
3135   ac_status=$?
3136   grep -v '^ *+' conftest.er1 >conftest.err
3137   rm -f conftest.er1
3138   cat conftest.err >&5
3139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140   (exit $ac_status); } && {
3141          test -z "$ac_c_werror_flag" ||
3142          test ! -s conftest.err
3143        } && test -s conftest.$ac_objext; then
3144   ac_cv_prog_cc_g=yes
3145 else
3146   echo "$as_me: failed program was:" >&5
3147 sed 's/^/| /' conftest.$ac_ext >&5
3148
3149         CFLAGS=""
3150       cat >conftest.$ac_ext <<_ACEOF
3151 /* confdefs.h.  */
3152 _ACEOF
3153 cat confdefs.h >>conftest.$ac_ext
3154 cat >>conftest.$ac_ext <<_ACEOF
3155 /* end confdefs.h.  */
3156
3157 int
3158 main ()
3159 {
3160
3161   ;
3162   return 0;
3163 }
3164 _ACEOF
3165 rm -f conftest.$ac_objext
3166 if { (ac_try="$ac_compile"
3167 case "(($ac_try" in
3168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3169   *) ac_try_echo=$ac_try;;
3170 esac
3171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3172   (eval "$ac_compile") 2>conftest.er1
3173   ac_status=$?
3174   grep -v '^ *+' conftest.er1 >conftest.err
3175   rm -f conftest.er1
3176   cat conftest.err >&5
3177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178   (exit $ac_status); } && {
3179          test -z "$ac_c_werror_flag" ||
3180          test ! -s conftest.err
3181        } && test -s conftest.$ac_objext; then
3182   :
3183 else
3184   echo "$as_me: failed program was:" >&5
3185 sed 's/^/| /' conftest.$ac_ext >&5
3186
3187         ac_c_werror_flag=$ac_save_c_werror_flag
3188          CFLAGS="-g"
3189          cat >conftest.$ac_ext <<_ACEOF
3190 /* confdefs.h.  */
3191 _ACEOF
3192 cat confdefs.h >>conftest.$ac_ext
3193 cat >>conftest.$ac_ext <<_ACEOF
3194 /* end confdefs.h.  */
3195
3196 int
3197 main ()
3198 {
3199
3200   ;
3201   return 0;
3202 }
3203 _ACEOF
3204 rm -f conftest.$ac_objext
3205 if { (ac_try="$ac_compile"
3206 case "(($ac_try" in
3207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3208   *) ac_try_echo=$ac_try;;
3209 esac
3210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3211   (eval "$ac_compile") 2>conftest.er1
3212   ac_status=$?
3213   grep -v '^ *+' conftest.er1 >conftest.err
3214   rm -f conftest.er1
3215   cat conftest.err >&5
3216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3217   (exit $ac_status); } && {
3218          test -z "$ac_c_werror_flag" ||
3219          test ! -s conftest.err
3220        } && test -s conftest.$ac_objext; then
3221   ac_cv_prog_cc_g=yes
3222 else
3223   echo "$as_me: failed program was:" >&5
3224 sed 's/^/| /' conftest.$ac_ext >&5
3225
3226
3227 fi
3228
3229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3230 fi
3231
3232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3233 fi
3234
3235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3236    ac_c_werror_flag=$ac_save_c_werror_flag
3237 fi
3238 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3239 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3240 if test "$ac_test_CFLAGS" = set; then
3241   CFLAGS=$ac_save_CFLAGS
3242 elif test $ac_cv_prog_cc_g = yes; then
3243   if test "$GCC" = yes; then
3244     CFLAGS="-g -O2"
3245   else
3246     CFLAGS="-g"
3247   fi
3248 else
3249   if test "$GCC" = yes; then
3250     CFLAGS="-O2"
3251   else
3252     CFLAGS=
3253   fi
3254 fi
3255 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3256 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3257 if test "${ac_cv_prog_cc_c89+set}" = set; then
3258   echo $ECHO_N "(cached) $ECHO_C" >&6
3259 else
3260   ac_cv_prog_cc_c89=no
3261 ac_save_CC=$CC
3262 cat >conftest.$ac_ext <<_ACEOF
3263 /* confdefs.h.  */
3264 _ACEOF
3265 cat confdefs.h >>conftest.$ac_ext
3266 cat >>conftest.$ac_ext <<_ACEOF
3267 /* end confdefs.h.  */
3268 #include <stdarg.h>
3269 #include <stdio.h>
3270 #include <sys/types.h>
3271 #include <sys/stat.h>
3272 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3273 struct buf { int x; };
3274 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3275 static char *e (p, i)
3276      char **p;
3277      int i;
3278 {
3279   return p[i];
3280 }
3281 static char *f (char * (*g) (char **, int), char **p, ...)
3282 {
3283   char *s;
3284   va_list v;
3285   va_start (v,p);
3286   s = g (p, va_arg (v,int));
3287   va_end (v);
3288   return s;
3289 }
3290
3291 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3292    function prototypes and stuff, but not '\xHH' hex character constants.
3293    These don't provoke an error unfortunately, instead are silently treated
3294    as 'x'.  The following induces an error, until -std is added to get
3295    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3296    array size at least.  It's necessary to write '\x00'==0 to get something
3297    that's true only with -std.  */
3298 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3299
3300 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3301    inside strings and character constants.  */
3302 #define FOO(x) 'x'
3303 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3304
3305 int test (int i, double x);
3306 struct s1 {int (*f) (int a);};
3307 struct s2 {int (*f) (double a);};
3308 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3309 int argc;
3310 char **argv;
3311 int
3312 main ()
3313 {
3314 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3315   ;
3316   return 0;
3317 }
3318 _ACEOF
3319 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3320         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3321 do
3322   CC="$ac_save_CC $ac_arg"
3323   rm -f conftest.$ac_objext
3324 if { (ac_try="$ac_compile"
3325 case "(($ac_try" in
3326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3327   *) ac_try_echo=$ac_try;;
3328 esac
3329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3330   (eval "$ac_compile") 2>conftest.er1
3331   ac_status=$?
3332   grep -v '^ *+' conftest.er1 >conftest.err
3333   rm -f conftest.er1
3334   cat conftest.err >&5
3335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3336   (exit $ac_status); } && {
3337          test -z "$ac_c_werror_flag" ||
3338          test ! -s conftest.err
3339        } && test -s conftest.$ac_objext; then
3340   ac_cv_prog_cc_c89=$ac_arg
3341 else
3342   echo "$as_me: failed program was:" >&5
3343 sed 's/^/| /' conftest.$ac_ext >&5
3344
3345
3346 fi
3347
3348 rm -f core conftest.err conftest.$ac_objext
3349   test "x$ac_cv_prog_cc_c89" != "xno" && break
3350 done
3351 rm -f conftest.$ac_ext
3352 CC=$ac_save_CC
3353
3354 fi
3355 # AC_CACHE_VAL
3356 case "x$ac_cv_prog_cc_c89" in
3357   x)
3358     { echo "$as_me:$LINENO: result: none needed" >&5
3359 echo "${ECHO_T}none needed" >&6; } ;;
3360   xno)
3361     { echo "$as_me:$LINENO: result: unsupported" >&5
3362 echo "${ECHO_T}unsupported" >&6; } ;;
3363   *)
3364     CC="$CC $ac_cv_prog_cc_c89"
3365     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3366 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3367 esac
3368
3369
3370 ac_ext=c
3371 ac_cpp='$CPP $CPPFLAGS'
3372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3375 DEPDIR="${am__leading_dot}deps"
3376
3377 ac_config_commands="$ac_config_commands depfiles"
3378
3379
3380 am_make=${MAKE-make}
3381 cat > confinc << 'END'
3382 am__doit:
3383         @echo done
3384 .PHONY: am__doit
3385 END
3386 # If we don't find an include directive, just comment out the code.
3387 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3388 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3389 am__include="#"
3390 am__quote=
3391 _am_result=none
3392 # First try GNU make style include.
3393 echo "include confinc" > confmf
3394 # We grep out `Entering directory' and `Leaving directory'
3395 # messages which can occur if `w' ends up in MAKEFLAGS.
3396 # In particular we don't look at `^make:' because GNU make might
3397 # be invoked under some other name (usually "gmake"), in which
3398 # case it prints its new name instead of `make'.
3399 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3400    am__include=include
3401    am__quote=
3402    _am_result=GNU
3403 fi
3404 # Now try BSD make style include.
3405 if test "$am__include" = "#"; then
3406    echo '.include "confinc"' > confmf
3407    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3408       am__include=.include
3409       am__quote="\""
3410       _am_result=BSD
3411    fi
3412 fi
3413
3414
3415 { echo "$as_me:$LINENO: result: $_am_result" >&5
3416 echo "${ECHO_T}$_am_result" >&6; }
3417 rm -f confinc confmf
3418
3419 # Check whether --enable-dependency-tracking was given.
3420 if test "${enable_dependency_tracking+set}" = set; then
3421   enableval=$enable_dependency_tracking;
3422 fi
3423
3424 if test "x$enable_dependency_tracking" != xno; then
3425   am_depcomp="$ac_aux_dir/depcomp"
3426   AMDEPBACKSLASH='\'
3427 fi
3428  if test "x$enable_dependency_tracking" != xno; then
3429   AMDEP_TRUE=
3430   AMDEP_FALSE='#'
3431 else
3432   AMDEP_TRUE='#'
3433   AMDEP_FALSE=
3434 fi
3435
3436
3437
3438 depcc="$CC"   am_compiler_list=
3439
3440 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3441 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3442 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3443   echo $ECHO_N "(cached) $ECHO_C" >&6
3444 else
3445   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3446   # We make a subdir and do the tests there.  Otherwise we can end up
3447   # making bogus files that we don't know about and never remove.  For
3448   # instance it was reported that on HP-UX the gcc test will end up
3449   # making a dummy file named `D' -- because `-MD' means `put the output
3450   # in D'.
3451   mkdir conftest.dir
3452   # Copy depcomp to subdir because otherwise we won't find it if we're
3453   # using a relative directory.
3454   cp "$am_depcomp" conftest.dir
3455   cd conftest.dir
3456   # We will build objects and dependencies in a subdirectory because
3457   # it helps to detect inapplicable dependency modes.  For instance
3458   # both Tru64's cc and ICC support -MD to output dependencies as a
3459   # side effect of compilation, but ICC will put the dependencies in
3460   # the current directory while Tru64 will put them in the object
3461   # directory.
3462   mkdir sub
3463
3464   am_cv_CC_dependencies_compiler_type=none
3465   if test "$am_compiler_list" = ""; then
3466      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3467   fi
3468   for depmode in $am_compiler_list; do
3469     # Setup a source with many dependencies, because some compilers
3470     # like to wrap large dependency lists on column 80 (with \), and
3471     # we should not choose a depcomp mode which is confused by this.
3472     #
3473     # We need to recreate these files for each test, as the compiler may
3474     # overwrite some of them when testing with obscure command lines.
3475     # This happens at least with the AIX C compiler.
3476     : > sub/conftest.c
3477     for i in 1 2 3 4 5 6; do
3478       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3479       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3480       # Solaris 8's {/usr,}/bin/sh.
3481       touch sub/conftst$i.h
3482     done
3483     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3484
3485     case $depmode in
3486     nosideeffect)
3487       # after this tag, mechanisms are not by side-effect, so they'll
3488       # only be used when explicitly requested
3489       if test "x$enable_dependency_tracking" = xyes; then
3490         continue
3491       else
3492         break
3493       fi
3494       ;;
3495     none) break ;;
3496     esac
3497     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3498     # mode.  It turns out that the SunPro C++ compiler does not properly
3499     # handle `-M -o', and we need to detect this.
3500     if depmode=$depmode \
3501        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3502        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3503        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3504          >/dev/null 2>conftest.err &&
3505        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3506        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3507        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3508        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3509       # icc doesn't choke on unknown options, it will just issue warnings
3510       # or remarks (even with -Werror).  So we grep stderr for any message
3511       # that says an option was ignored or not supported.
3512       # When given -MP, icc 7.0 and 7.1 complain thusly:
3513       #   icc: Command line warning: ignoring option '-M'; no argument required
3514       # The diagnosis changed in icc 8.0:
3515       #   icc: Command line remark: option '-MP' not supported
3516       if (grep 'ignoring option' conftest.err ||
3517           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3518         am_cv_CC_dependencies_compiler_type=$depmode
3519         break
3520       fi
3521     fi
3522   done
3523
3524   cd ..
3525   rm -rf conftest.dir
3526 else
3527   am_cv_CC_dependencies_compiler_type=none
3528 fi
3529
3530 fi
3531 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3532 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3533 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3534
3535  if
3536   test "x$enable_dependency_tracking" != xno \
3537   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3538   am__fastdepCC_TRUE=
3539   am__fastdepCC_FALSE='#'
3540 else
3541   am__fastdepCC_TRUE='#'
3542   am__fastdepCC_FALSE=
3543 fi
3544
3545
3546 if test "x$CC" != xcc; then
3547   { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3548 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3549 else
3550   { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3551 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3552 fi
3553 set dummy $CC; ac_cc=`echo $2 |
3554                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3555 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3556   echo $ECHO_N "(cached) $ECHO_C" >&6
3557 else
3558   cat >conftest.$ac_ext <<_ACEOF
3559 /* confdefs.h.  */
3560 _ACEOF
3561 cat confdefs.h >>conftest.$ac_ext
3562 cat >>conftest.$ac_ext <<_ACEOF
3563 /* end confdefs.h.  */
3564
3565 int
3566 main ()
3567 {
3568
3569   ;
3570   return 0;
3571 }
3572 _ACEOF
3573 # Make sure it works both with $CC and with simple cc.
3574 # We do the test twice because some compilers refuse to overwrite an
3575 # existing .o file with -o, though they will create one.
3576 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3577 rm -f conftest2.*
3578 if { (case "(($ac_try" in
3579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3580   *) ac_try_echo=$ac_try;;
3581 esac
3582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3583   (eval "$ac_try") 2>&5
3584   ac_status=$?
3585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3586   (exit $ac_status); } &&
3587    test -f conftest2.$ac_objext && { (case "(($ac_try" in
3588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3589   *) ac_try_echo=$ac_try;;
3590 esac
3591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3592   (eval "$ac_try") 2>&5
3593   ac_status=$?
3594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595   (exit $ac_status); };
3596 then
3597   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3598   if test "x$CC" != xcc; then
3599     # Test first that cc exists at all.
3600     if { ac_try='cc -c conftest.$ac_ext >&5'
3601   { (case "(($ac_try" in
3602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3603   *) ac_try_echo=$ac_try;;
3604 esac
3605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3606   (eval "$ac_try") 2>&5
3607   ac_status=$?
3608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609   (exit $ac_status); }; }; then
3610       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3611       rm -f conftest2.*
3612       if { (case "(($ac_try" in
3613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3614   *) ac_try_echo=$ac_try;;
3615 esac
3616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3617   (eval "$ac_try") 2>&5
3618   ac_status=$?
3619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620   (exit $ac_status); } &&
3621          test -f conftest2.$ac_objext && { (case "(($ac_try" in
3622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3623   *) ac_try_echo=$ac_try;;
3624 esac
3625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3626   (eval "$ac_try") 2>&5
3627   ac_status=$?
3628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3629   (exit $ac_status); };
3630       then
3631         # cc works too.
3632         :
3633       else
3634         # cc exists but doesn't like -o.
3635         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3636       fi
3637     fi
3638   fi
3639 else
3640   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3641 fi
3642 rm -f core conftest*
3643
3644 fi
3645 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3646   { echo "$as_me:$LINENO: result: yes" >&5
3647 echo "${ECHO_T}yes" >&6; }
3648 else
3649   { echo "$as_me:$LINENO: result: no" >&5
3650 echo "${ECHO_T}no" >&6; }
3651
3652 cat >>confdefs.h <<\_ACEOF
3653 #define NO_MINUS_C_MINUS_O 1
3654 _ACEOF
3655
3656 fi
3657
3658 # FIXME: we rely on the cache variable name because
3659 # there is no other way.
3660 set dummy $CC
3661 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3662 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3663    # Losing compiler, so override with the script.
3664    # FIXME: It is wrong to rewrite CC.
3665    # But if we don't then we get into trouble of one sort or another.
3666    # A longer-term fix would be to have automake use am__CC in this case,
3667    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3668    CC="$am_aux_dir/compile $CC"
3669 fi
3670
3671
3672 # Check whether --enable-static was given.
3673 if test "${enable_static+set}" = set; then
3674   enableval=$enable_static; p=${PACKAGE-default}
3675     case $enableval in
3676     yes) enable_static=yes ;;
3677     no) enable_static=no ;;
3678     *)
3679      enable_static=no
3680       # Look at the argument we got.  We use all the common list separators.
3681       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3682       for pkg in $enableval; do
3683         IFS="$lt_save_ifs"
3684         if test "X$pkg" = "X$p"; then
3685           enable_static=yes
3686         fi
3687       done
3688       IFS="$lt_save_ifs"
3689       ;;
3690     esac
3691 else
3692   enable_static=no
3693 fi
3694
3695
3696
3697 # Check whether --enable-shared was given.
3698 if test "${enable_shared+set}" = set; then
3699   enableval=$enable_shared; p=${PACKAGE-default}
3700     case $enableval in
3701     yes) enable_shared=yes ;;
3702     no) enable_shared=no ;;
3703     *)
3704       enable_shared=no
3705       # Look at the argument we got.  We use all the common list separators.
3706       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3707       for pkg in $enableval; do
3708         IFS="$lt_save_ifs"
3709         if test "X$pkg" = "X$p"; then
3710           enable_shared=yes
3711         fi
3712       done
3713       IFS="$lt_save_ifs"
3714       ;;
3715     esac
3716 else
3717   enable_shared=yes
3718 fi
3719
3720
3721 # Check whether --enable-fast-install was given.
3722 if test "${enable_fast_install+set}" = set; then
3723   enableval=$enable_fast_install; p=${PACKAGE-default}
3724     case $enableval in
3725     yes) enable_fast_install=yes ;;
3726     no) enable_fast_install=no ;;
3727     *)
3728       enable_fast_install=no
3729       # Look at the argument we got.  We use all the common list separators.
3730       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3731       for pkg in $enableval; do
3732         IFS="$lt_save_ifs"
3733         if test "X$pkg" = "X$p"; then
3734           enable_fast_install=yes
3735         fi
3736       done
3737       IFS="$lt_save_ifs"
3738       ;;
3739     esac
3740 else
3741   enable_fast_install=yes
3742 fi
3743
3744
3745 # Make sure we can run config.sub.
3746 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3747   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3748 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3749    { (exit 1); exit 1; }; }
3750
3751 { echo "$as_me:$LINENO: checking build system type" >&5
3752 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3753 if test "${ac_cv_build+set}" = set; then
3754   echo $ECHO_N "(cached) $ECHO_C" >&6
3755 else
3756   ac_build_alias=$build_alias
3757 test "x$ac_build_alias" = x &&
3758   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3759 test "x$ac_build_alias" = x &&
3760   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3761 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3762    { (exit 1); exit 1; }; }
3763 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3764   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3765 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3766    { (exit 1); exit 1; }; }
3767
3768 fi
3769 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3770 echo "${ECHO_T}$ac_cv_build" >&6; }
3771 case $ac_cv_build in
3772 *-*-*) ;;
3773 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3774 echo "$as_me: error: invalid value of canonical build" >&2;}
3775    { (exit 1); exit 1; }; };;
3776 esac
3777 build=$ac_cv_build
3778 ac_save_IFS=$IFS; IFS='-'
3779 set x $ac_cv_build
3780 shift
3781 build_cpu=$1
3782 build_vendor=$2
3783 shift; shift
3784 # Remember, the first character of IFS is used to create $*,
3785 # except with old shells:
3786 build_os=$*
3787 IFS=$ac_save_IFS
3788 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3789
3790
3791 { echo "$as_me:$LINENO: checking host system type" >&5
3792 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3793 if test "${ac_cv_host+set}" = set; then
3794   echo $ECHO_N "(cached) $ECHO_C" >&6
3795 else
3796   if test "x$host_alias" = x; then
3797   ac_cv_host=$ac_cv_build
3798 else
3799   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3800     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3801 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3802    { (exit 1); exit 1; }; }
3803 fi
3804
3805 fi
3806 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3807 echo "${ECHO_T}$ac_cv_host" >&6; }
3808 case $ac_cv_host in
3809 *-*-*) ;;
3810 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3811 echo "$as_me: error: invalid value of canonical host" >&2;}
3812    { (exit 1); exit 1; }; };;
3813 esac
3814 host=$ac_cv_host
3815 ac_save_IFS=$IFS; IFS='-'
3816 set x $ac_cv_host
3817 shift
3818 host_cpu=$1
3819 host_vendor=$2
3820 shift; shift
3821 # Remember, the first character of IFS is used to create $*,
3822 # except with old shells:
3823 host_os=$*
3824 IFS=$ac_save_IFS
3825 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3826
3827
3828 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3829 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3830 if test "${lt_cv_path_SED+set}" = set; then
3831   echo $ECHO_N "(cached) $ECHO_C" >&6
3832 else
3833   # Loop through the user's path and test for sed and gsed.
3834 # Then use that list of sed's as ones to test for truncation.
3835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3836 for as_dir in $PATH
3837 do
3838   IFS=$as_save_IFS
3839   test -z "$as_dir" && as_dir=.
3840   for lt_ac_prog in sed gsed; do
3841     for ac_exec_ext in '' $ac_executable_extensions; do
3842       if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3843         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3844       fi
3845     done
3846   done
3847 done
3848 IFS=$as_save_IFS
3849 lt_ac_max=0
3850 lt_ac_count=0
3851 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3852 # along with /bin/sed that truncates output.
3853 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3854   test ! -f $lt_ac_sed && continue
3855   cat /dev/null > conftest.in
3856   lt_ac_count=0
3857   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3858   # Check for GNU sed and select it if it is found.
3859   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3860     lt_cv_path_SED=$lt_ac_sed
3861     break
3862   fi
3863   while true; do
3864     cat conftest.in conftest.in >conftest.tmp
3865     mv conftest.tmp conftest.in
3866     cp conftest.in conftest.nl
3867     echo >>conftest.nl
3868     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3869     cmp -s conftest.out conftest.nl || break
3870     # 10000 chars as input seems more than enough
3871     test $lt_ac_count -gt 10 && break
3872     lt_ac_count=`expr $lt_ac_count + 1`
3873     if test $lt_ac_count -gt $lt_ac_max; then
3874       lt_ac_max=$lt_ac_count
3875       lt_cv_path_SED=$lt_ac_sed
3876     fi
3877   done
3878 done
3879
3880 fi
3881
3882 SED=$lt_cv_path_SED
3883
3884 { echo "$as_me:$LINENO: result: $SED" >&5
3885 echo "${ECHO_T}$SED" >&6; }
3886
3887 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3888 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3889 if test "${ac_cv_path_GREP+set}" = set; then
3890   echo $ECHO_N "(cached) $ECHO_C" >&6
3891 else
3892   # Extract the first word of "grep ggrep" to use in msg output
3893 if test -z "$GREP"; then
3894 set dummy grep ggrep; ac_prog_name=$2
3895 if test "${ac_cv_path_GREP+set}" = set; then
3896   echo $ECHO_N "(cached) $ECHO_C" >&6
3897 else
3898   ac_path_GREP_found=false
3899 # Loop through the user's path and test for each of PROGNAME-LIST
3900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3901 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3902 do
3903   IFS=$as_save_IFS
3904   test -z "$as_dir" && as_dir=.
3905   for ac_prog in grep ggrep; do
3906   for ac_exec_ext in '' $ac_executable_extensions; do
3907     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3908     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3909     # Check for GNU ac_path_GREP and select it if it is found.
3910   # Check for GNU $ac_path_GREP
3911 case `"$ac_path_GREP" --version 2>&1` in
3912 *GNU*)
3913   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3914 *)
3915   ac_count=0
3916   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3917   while :
3918   do
3919     cat "conftest.in" "conftest.in" >"conftest.tmp"
3920     mv "conftest.tmp" "conftest.in"
3921     cp "conftest.in" "conftest.nl"
3922     echo 'GREP' >> "conftest.nl"
3923     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3924     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3925     ac_count=`expr $ac_count + 1`
3926     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3927       # Best one so far, save it but keep looking for a better one
3928       ac_cv_path_GREP="$ac_path_GREP"
3929       ac_path_GREP_max=$ac_count
3930     fi
3931     # 10*(2^10) chars as input seems more than enough
3932     test $ac_count -gt 10 && break
3933   done
3934   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3935 esac
3936
3937
3938     $ac_path_GREP_found && break 3
3939   done
3940 done
3941
3942 done
3943 IFS=$as_save_IFS
3944
3945
3946 fi
3947
3948 GREP="$ac_cv_path_GREP"
3949 if test -z "$GREP"; then
3950   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3951 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3952    { (exit 1); exit 1; }; }
3953 fi
3954
3955 else
3956   ac_cv_path_GREP=$GREP
3957 fi
3958
3959
3960 fi
3961 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3962 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3963  GREP="$ac_cv_path_GREP"
3964
3965
3966 { echo "$as_me:$LINENO: checking for egrep" >&5
3967 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3968 if test "${ac_cv_path_EGREP+set}" = set; then
3969   echo $ECHO_N "(cached) $ECHO_C" >&6
3970 else
3971   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3972    then ac_cv_path_EGREP="$GREP -E"
3973    else
3974      # Extract the first word of "egrep" to use in msg output
3975 if test -z "$EGREP"; then
3976 set dummy egrep; ac_prog_name=$2
3977 if test "${ac_cv_path_EGREP+set}" = set; then
3978   echo $ECHO_N "(cached) $ECHO_C" >&6
3979 else
3980   ac_path_EGREP_found=false
3981 # Loop through the user's path and test for each of PROGNAME-LIST
3982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3983 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3984 do
3985   IFS=$as_save_IFS
3986   test -z "$as_dir" && as_dir=.
3987   for ac_prog in egrep; do
3988   for ac_exec_ext in '' $ac_executable_extensions; do
3989     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3990     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3991     # Check for GNU ac_path_EGREP and select it if it is found.
3992   # Check for GNU $ac_path_EGREP
3993 case `"$ac_path_EGREP" --version 2>&1` in
3994 *GNU*)
3995   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3996 *)
3997   ac_count=0
3998   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3999   while :
4000   do
4001     cat "conftest.in" "conftest.in" >"conftest.tmp"
4002     mv "conftest.tmp" "conftest.in"
4003     cp "conftest.in" "conftest.nl"
4004     echo 'EGREP' >> "conftest.nl"
4005     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4006     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4007     ac_count=`expr $ac_count + 1`
4008     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4009       # Best one so far, save it but keep looking for a better one
4010       ac_cv_path_EGREP="$ac_path_EGREP"
4011       ac_path_EGREP_max=$ac_count
4012     fi
4013     # 10*(2^10) chars as input seems more than enough
4014     test $ac_count -gt 10 && break
4015   done
4016   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4017 esac
4018
4019
4020     $ac_path_EGREP_found && break 3
4021   done
4022 done
4023
4024 done
4025 IFS=$as_save_IFS
4026
4027
4028 fi
4029
4030 EGREP="$ac_cv_path_EGREP"
4031 if test -z "$EGREP"; then
4032   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4033 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4034    { (exit 1); exit 1; }; }
4035 fi
4036
4037 else
4038   ac_cv_path_EGREP=$EGREP
4039 fi
4040
4041
4042    fi
4043 fi
4044 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4045 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4046  EGREP="$ac_cv_path_EGREP"
4047
4048
4049
4050 # Check whether --with-gnu-ld was given.
4051 if test "${with_gnu_ld+set}" = set; then
4052   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4053 else
4054   with_gnu_ld=no
4055 fi
4056
4057 ac_prog=ld
4058 if test "$GCC" = yes; then
4059   # Check if gcc -print-prog-name=ld gives a path.
4060   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4061 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4062   case $host in
4063   *-*-mingw*)
4064     # gcc leaves a trailing carriage return which upsets mingw
4065     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4066   *)
4067     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4068   esac
4069   case $ac_prog in
4070     # Accept absolute paths.
4071     [\\/]* | ?:[\\/]*)
4072       re_direlt='/[^/][^/]*/\.\./'
4073       # Canonicalize the pathname of ld
4074       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4075       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4076         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4077       done
4078       test -z "$LD" && LD="$ac_prog"
4079       ;;
4080   "")
4081     # If it fails, then pretend we aren't using GCC.
4082     ac_prog=ld
4083     ;;
4084   *)
4085     # If it is relative, then search for the first ld in PATH.
4086     with_gnu_ld=unknown
4087     ;;
4088   esac
4089 elif test "$with_gnu_ld" = yes; then
4090   { echo "$as_me:$LINENO: checking for GNU ld" >&5
4091 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4092 else
4093   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4094 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4095 fi
4096 if test "${lt_cv_path_LD+set}" = set; then
4097   echo $ECHO_N "(cached) $ECHO_C" >&6
4098 else
4099   if test -z "$LD"; then
4100   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4101   for ac_dir in $PATH; do
4102     IFS="$lt_save_ifs"
4103     test -z "$ac_dir" && ac_dir=.
4104     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4105       lt_cv_path_LD="$ac_dir/$ac_prog"
4106       # Check to see if the program is GNU ld.  I'd rather use --version,
4107       # but apparently some variants of GNU ld only accept -v.
4108       # Break only if it was the GNU/non-GNU ld that we prefer.
4109       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4110       *GNU* | *'with BFD'*)
4111         test "$with_gnu_ld" != no && break
4112         ;;
4113       *)
4114         test "$with_gnu_ld" != yes && break
4115         ;;
4116       esac
4117     fi
4118   done
4119   IFS="$lt_save_ifs"
4120 else
4121   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4122 fi
4123 fi
4124
4125 LD="$lt_cv_path_LD"
4126 if test -n "$LD"; then
4127   { echo "$as_me:$LINENO: result: $LD" >&5
4128 echo "${ECHO_T}$LD" >&6; }
4129 else
4130   { echo "$as_me:$LINENO: result: no" >&5
4131 echo "${ECHO_T}no" >&6; }
4132 fi
4133 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4134 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4135    { (exit 1); exit 1; }; }
4136 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4137 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4138 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4139   echo $ECHO_N "(cached) $ECHO_C" >&6
4140 else
4141   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4142 case `$LD -v 2>&1 </dev/null` in
4143 *GNU* | *'with BFD'*)
4144   lt_cv_prog_gnu_ld=yes
4145   ;;
4146 *)
4147   lt_cv_prog_gnu_ld=no
4148   ;;
4149 esac
4150 fi
4151 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4152 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4153 with_gnu_ld=$lt_cv_prog_gnu_ld
4154
4155
4156 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4157 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4158 if test "${lt_cv_ld_reload_flag+set}" = set; then
4159   echo $ECHO_N "(cached) $ECHO_C" >&6
4160 else
4161   lt_cv_ld_reload_flag='-r'
4162 fi
4163 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4164 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4165 reload_flag=$lt_cv_ld_reload_flag
4166 case $reload_flag in
4167 "" | " "*) ;;
4168 *) reload_flag=" $reload_flag" ;;
4169 esac
4170 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4171 case $host_os in
4172   darwin*)
4173     if test "$GCC" = yes; then
4174       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4175     else
4176       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4177     fi
4178     ;;
4179 esac
4180
4181 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4182 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4183 if test "${lt_cv_path_NM+set}" = set; then
4184   echo $ECHO_N "(cached) $ECHO_C" >&6
4185 else
4186   if test -n "$NM"; then
4187   # Let the user override the test.
4188   lt_cv_path_NM="$NM"
4189 else
4190   lt_nm_to_check="${ac_tool_prefix}nm"
4191   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4192     lt_nm_to_check="$lt_nm_to_check nm"
4193   fi
4194   for lt_tmp_nm in $lt_nm_to_check; do
4195     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4196     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4197       IFS="$lt_save_ifs"
4198       test -z "$ac_dir" && ac_dir=.
4199       tmp_nm="$ac_dir/$lt_tmp_nm"
4200       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4201         # Check to see if the nm accepts a BSD-compat flag.
4202         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4203         #   nm: unknown option "B" ignored
4204         # Tru64's nm complains that /dev/null is an invalid object file
4205         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4206         */dev/null* | *'Invalid file or object type'*)
4207           lt_cv_path_NM="$tmp_nm -B"
4208           break
4209           ;;
4210         *)
4211           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4212           */dev/null*)
4213             lt_cv_path_NM="$tmp_nm -p"
4214             break
4215             ;;
4216           *)
4217             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4218             continue # so that we can try to find one that supports BSD flags
4219             ;;
4220           esac
4221           ;;
4222         esac
4223       fi
4224     done
4225     IFS="$lt_save_ifs"
4226   done
4227   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4228 fi
4229 fi
4230 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4231 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4232 NM="$lt_cv_path_NM"
4233
4234 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4235 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4236 LN_S=$as_ln_s
4237 if test "$LN_S" = "ln -s"; then
4238   { echo "$as_me:$LINENO: result: yes" >&5
4239 echo "${ECHO_T}yes" >&6; }
4240 else
4241   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4242 echo "${ECHO_T}no, using $LN_S" >&6; }
4243 fi
4244
4245 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4246 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4247 if test "${lt_cv_deplibs_check_method+set}" = set; then
4248   echo $ECHO_N "(cached) $ECHO_C" >&6
4249 else
4250   lt_cv_file_magic_cmd='$MAGIC_CMD'
4251 lt_cv_file_magic_test_file=
4252 lt_cv_deplibs_check_method='unknown'
4253 # Need to set the preceding variable on all platforms that support
4254 # interlibrary dependencies.
4255 # 'none' -- dependencies not supported.
4256 # `unknown' -- same as none, but documents that we really don't know.
4257 # 'pass_all' -- all dependencies passed with no checks.
4258 # 'test_compile' -- check by making test program.
4259 # 'file_magic [[regex]]' -- check by looking for files in library path
4260 # which responds to the $file_magic_cmd with a given extended regex.
4261 # If you have `file' or equivalent on your system and you're not sure
4262 # whether `pass_all' will *always* work, you probably want this one.
4263
4264 case $host_os in
4265 aix[4-9]*)
4266   lt_cv_deplibs_check_method=pass_all
4267   ;;
4268
4269 beos*)
4270   lt_cv_deplibs_check_method=pass_all
4271   ;;
4272
4273 bsdi[45]*)
4274   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4275   lt_cv_file_magic_cmd='/usr/bin/file -L'
4276   lt_cv_file_magic_test_file=/shlib/libc.so
4277   ;;
4278
4279 cygwin*)
4280   # func_win32_libid is a shell function defined in ltmain.sh
4281   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4282   lt_cv_file_magic_cmd='func_win32_libid'
4283   ;;
4284
4285 mingw* | pw32*)
4286   # Base MSYS/MinGW do not provide the 'file' command needed by
4287   # func_win32_libid shell function, so use a weaker test based on 'objdump',
4288   # unless we find 'file', for example because we are cross-compiling.
4289   if ( file / ) >/dev/null 2>&1; then
4290     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4291     lt_cv_file_magic_cmd='func_win32_libid'
4292   else
4293     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4294     lt_cv_file_magic_cmd='$OBJDUMP -f'
4295   fi
4296   ;;
4297
4298 darwin* | rhapsody*)
4299   lt_cv_deplibs_check_method=pass_all
4300   ;;
4301
4302 freebsd* | dragonfly*)
4303   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4304     case $host_cpu in
4305     i*86 )
4306       # Not sure whether the presence of OpenBSD here was a mistake.
4307       # Let's accept both of them until this is cleared up.
4308       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4309       lt_cv_file_magic_cmd=/usr/bin/file
4310       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4311       ;;
4312     esac
4313   else
4314     lt_cv_deplibs_check_method=pass_all
4315   fi
4316   ;;
4317
4318 gnu*)
4319   lt_cv_deplibs_check_method=pass_all
4320   ;;
4321
4322 hpux10.20* | hpux11*)
4323   lt_cv_file_magic_cmd=/usr/bin/file
4324   case $host_cpu in
4325   ia64*)
4326     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4327     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4328     ;;
4329   hppa*64*)
4330     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]'
4331     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4332     ;;
4333   *)
4334     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4335     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4336     ;;
4337   esac
4338   ;;
4339
4340 interix[3-9]*)
4341   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4342   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4343   ;;
4344
4345 irix5* | irix6* | nonstopux*)
4346   case $LD in
4347   *-32|*"-32 ") libmagic=32-bit;;
4348   *-n32|*"-n32 ") libmagic=N32;;
4349   *-64|*"-64 ") libmagic=64-bit;;
4350   *) libmagic=never-match;;
4351   esac
4352   lt_cv_deplibs_check_method=pass_all
4353   ;;
4354
4355 # This must be Linux ELF.
4356 linux* | k*bsd*-gnu)
4357   lt_cv_deplibs_check_method=pass_all
4358   ;;
4359
4360 netbsd* | netbsdelf*-gnu)
4361   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4362     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4363   else
4364     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4365   fi
4366   ;;
4367
4368 newos6*)
4369   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4370   lt_cv_file_magic_cmd=/usr/bin/file
4371   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4372   ;;
4373
4374 nto-qnx*)
4375   lt_cv_deplibs_check_method=unknown
4376   ;;
4377
4378 openbsd*)
4379   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4380     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4381   else
4382     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4383   fi
4384   ;;
4385
4386 osf3* | osf4* | osf5*)
4387   lt_cv_deplibs_check_method=pass_all
4388   ;;
4389
4390 rdos*)
4391   lt_cv_deplibs_check_method=pass_all
4392   ;;
4393
4394 solaris*)
4395   lt_cv_deplibs_check_method=pass_all
4396   ;;
4397
4398 sysv4 | sysv4.3*)
4399   case $host_vendor in
4400   motorola)
4401     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]'
4402     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4403     ;;
4404   ncr)
4405     lt_cv_deplibs_check_method=pass_all
4406     ;;
4407   sequent)
4408     lt_cv_file_magic_cmd='/bin/file'
4409     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4410     ;;
4411   sni)
4412     lt_cv_file_magic_cmd='/bin/file'
4413     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4414     lt_cv_file_magic_test_file=/lib/libc.so
4415     ;;
4416   siemens)
4417     lt_cv_deplibs_check_method=pass_all
4418     ;;
4419   pc)
4420     lt_cv_deplibs_check_method=pass_all
4421     ;;
4422   esac
4423   ;;
4424
4425 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4426   lt_cv_deplibs_check_method=pass_all
4427   ;;
4428 esac
4429
4430 fi
4431 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4432 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4433 file_magic_cmd=$lt_cv_file_magic_cmd
4434 deplibs_check_method=$lt_cv_deplibs_check_method
4435 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4436
4437
4438
4439
4440 # If no C compiler was specified, use CC.
4441 LTCC=${LTCC-"$CC"}
4442
4443 # If no C compiler flags were specified, use CFLAGS.
4444 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4445
4446 # Allow CC to be a program name with arguments.
4447 compiler=$CC
4448
4449
4450 # Check whether --enable-libtool-lock was given.
4451 if test "${enable_libtool_lock+set}" = set; then
4452   enableval=$enable_libtool_lock;
4453 fi
4454
4455 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4456
4457 # Some flags need to be propagated to the compiler or linker for good
4458 # libtool support.
4459 case $host in
4460 ia64-*-hpux*)
4461   # Find out which ABI we are using.
4462   echo 'int i;' > conftest.$ac_ext
4463   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4464   (eval $ac_compile) 2>&5
4465   ac_status=$?
4466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467   (exit $ac_status); }; then
4468     case `/usr/bin/file conftest.$ac_objext` in
4469     *ELF-32*)
4470       HPUX_IA64_MODE="32"
4471       ;;
4472     *ELF-64*)
4473       HPUX_IA64_MODE="64"
4474       ;;
4475     esac
4476   fi
4477   rm -rf conftest*
4478   ;;
4479 *-*-irix6*)
4480   # Find out which ABI we are using.
4481   echo '#line 4481 "configure"' > conftest.$ac_ext
4482   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4483   (eval $ac_compile) 2>&5
4484   ac_status=$?
4485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4486   (exit $ac_status); }; then
4487    if test "$lt_cv_prog_gnu_ld" = yes; then
4488     case `/usr/bin/file conftest.$ac_objext` in
4489     *32-bit*)
4490       LD="${LD-ld} -melf32bsmip"
4491       ;;
4492     *N32*)
4493       LD="${LD-ld} -melf32bmipn32"
4494       ;;
4495     *64-bit*)
4496       LD="${LD-ld} -melf64bmip"
4497       ;;
4498     esac
4499    else
4500     case `/usr/bin/file conftest.$ac_objext` in
4501     *32-bit*)
4502       LD="${LD-ld} -32"
4503       ;;
4504     *N32*)
4505       LD="${LD-ld} -n32"
4506       ;;
4507     *64-bit*)
4508       LD="${LD-ld} -64"
4509       ;;
4510     esac
4511    fi
4512   fi
4513   rm -rf conftest*
4514   ;;
4515
4516 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4517 s390*-*linux*|sparc*-*linux*)
4518   # Find out which ABI we are using.
4519   echo 'int i;' > conftest.$ac_ext
4520   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4521   (eval $ac_compile) 2>&5
4522   ac_status=$?
4523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4524   (exit $ac_status); }; then
4525     case `/usr/bin/file conftest.o` in
4526     *32-bit*)
4527       case $host in
4528         x86_64-*kfreebsd*-gnu)
4529           LD="${LD-ld} -m elf_i386_fbsd"
4530           ;;
4531         x86_64-*linux*)
4532           LD="${LD-ld} -m elf_i386"
4533           ;;
4534         ppc64-*linux*|powerpc64-*linux*)
4535           LD="${LD-ld} -m elf32ppclinux"
4536           ;;
4537         s390x-*linux*)
4538           LD="${LD-ld} -m elf_s390"
4539           ;;
4540         sparc64-*linux*)
4541           LD="${LD-ld} -m elf32_sparc"
4542           ;;
4543       esac
4544       ;;
4545     *64-bit*)
4546       case $host in
4547         x86_64-*kfreebsd*-gnu)
4548           LD="${LD-ld} -m elf_x86_64_fbsd"
4549           ;;
4550         x86_64-*linux*)
4551           LD="${LD-ld} -m elf_x86_64"
4552           ;;
4553         ppc*-*linux*|powerpc*-*linux*)
4554           LD="${LD-ld} -m elf64ppc"
4555           ;;
4556         s390*-*linux*)
4557           LD="${LD-ld} -m elf64_s390"
4558           ;;
4559         sparc*-*linux*)
4560           LD="${LD-ld} -m elf64_sparc"
4561           ;;
4562       esac
4563       ;;
4564     esac
4565   fi
4566   rm -rf conftest*
4567   ;;
4568
4569 *-*-sco3.2v5*)
4570   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4571   SAVE_CFLAGS="$CFLAGS"
4572   CFLAGS="$CFLAGS -belf"
4573   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4574 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4575 if test "${lt_cv_cc_needs_belf+set}" = set; then
4576   echo $ECHO_N "(cached) $ECHO_C" >&6
4577 else
4578   ac_ext=c
4579 ac_cpp='$CPP $CPPFLAGS'
4580 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4581 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4582 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4583
4584      cat >conftest.$ac_ext <<_ACEOF
4585 /* confdefs.h.  */
4586 _ACEOF
4587 cat confdefs.h >>conftest.$ac_ext
4588 cat >>conftest.$ac_ext <<_ACEOF
4589 /* end confdefs.h.  */
4590
4591 int
4592 main ()
4593 {
4594
4595   ;
4596   return 0;
4597 }
4598 _ACEOF
4599 rm -f conftest.$ac_objext conftest$ac_exeext
4600 if { (ac_try="$ac_link"
4601 case "(($ac_try" in
4602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4603   *) ac_try_echo=$ac_try;;
4604 esac
4605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4606   (eval "$ac_link") 2>conftest.er1
4607   ac_status=$?
4608   grep -v '^ *+' conftest.er1 >conftest.err
4609   rm -f conftest.er1
4610   cat conftest.err >&5
4611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4612   (exit $ac_status); } && {
4613          test -z "$ac_c_werror_flag" ||
4614          test ! -s conftest.err
4615        } && test -s conftest$ac_exeext &&
4616        $as_test_x conftest$ac_exeext; then
4617   lt_cv_cc_needs_belf=yes
4618 else
4619   echo "$as_me: failed program was:" >&5
4620 sed 's/^/| /' conftest.$ac_ext >&5
4621
4622         lt_cv_cc_needs_belf=no
4623 fi
4624
4625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4626       conftest$ac_exeext conftest.$ac_ext
4627      ac_ext=c
4628 ac_cpp='$CPP $CPPFLAGS'
4629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4632
4633 fi
4634 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4635 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4636   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4637     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4638     CFLAGS="$SAVE_CFLAGS"
4639   fi
4640   ;;
4641 sparc*-*solaris*)
4642   # Find out which ABI we are using.
4643   echo 'int i;' > conftest.$ac_ext
4644   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4645   (eval $ac_compile) 2>&5
4646   ac_status=$?
4647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4648   (exit $ac_status); }; then
4649     case `/usr/bin/file conftest.o` in
4650     *64-bit*)
4651       case $lt_cv_prog_gnu_ld in
4652       yes*) LD="${LD-ld} -m elf64_sparc" ;;
4653       *)
4654         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4655           LD="${LD-ld} -64"
4656         fi
4657         ;;
4658       esac
4659       ;;
4660     esac
4661   fi
4662   rm -rf conftest*
4663   ;;
4664
4665
4666 esac
4667
4668 need_locks="$enable_libtool_lock"
4669
4670
4671 ac_ext=c
4672 ac_cpp='$CPP $CPPFLAGS'
4673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4676 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4677 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4678 # On Suns, sometimes $CPP names a directory.
4679 if test -n "$CPP" && test -d "$CPP"; then
4680   CPP=
4681 fi
4682 if test -z "$CPP"; then
4683   if test "${ac_cv_prog_CPP+set}" = set; then
4684   echo $ECHO_N "(cached) $ECHO_C" >&6
4685 else
4686       # Double quotes because CPP needs to be expanded
4687     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4688     do
4689       ac_preproc_ok=false
4690 for ac_c_preproc_warn_flag in '' yes
4691 do
4692   # Use a header file that comes with gcc, so configuring glibc
4693   # with a fresh cross-compiler works.
4694   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4695   # <limits.h> exists even on freestanding compilers.
4696   # On the NeXT, cc -E runs the code through the compiler's parser,
4697   # not just through cpp. "Syntax error" is here to catch this case.
4698   cat >conftest.$ac_ext <<_ACEOF
4699 /* confdefs.h.  */
4700 _ACEOF
4701 cat confdefs.h >>conftest.$ac_ext
4702 cat >>conftest.$ac_ext <<_ACEOF
4703 /* end confdefs.h.  */
4704 #ifdef __STDC__
4705 # include <limits.h>
4706 #else
4707 # include <assert.h>
4708 #endif
4709                      Syntax error
4710 _ACEOF
4711 if { (ac_try="$ac_cpp conftest.$ac_ext"
4712 case "(($ac_try" in
4713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4714   *) ac_try_echo=$ac_try;;
4715 esac
4716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4717   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4718   ac_status=$?
4719   grep -v '^ *+' conftest.er1 >conftest.err
4720   rm -f conftest.er1
4721   cat conftest.err >&5
4722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723   (exit $ac_status); } >/dev/null && {
4724          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4725          test ! -s conftest.err
4726        }; then
4727   :
4728 else
4729   echo "$as_me: failed program was:" >&5
4730 sed 's/^/| /' conftest.$ac_ext >&5
4731
4732   # Broken: fails on valid input.
4733 continue
4734 fi
4735
4736 rm -f conftest.err conftest.$ac_ext
4737
4738   # OK, works on sane cases.  Now check whether nonexistent headers
4739   # can be detected and how.
4740   cat >conftest.$ac_ext <<_ACEOF
4741 /* confdefs.h.  */
4742 _ACEOF
4743 cat confdefs.h >>conftest.$ac_ext
4744 cat >>conftest.$ac_ext <<_ACEOF
4745 /* end confdefs.h.  */
4746 #include <ac_nonexistent.h>
4747 _ACEOF
4748 if { (ac_try="$ac_cpp conftest.$ac_ext"
4749 case "(($ac_try" in
4750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4751   *) ac_try_echo=$ac_try;;
4752 esac
4753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4754   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4755   ac_status=$?
4756   grep -v '^ *+' conftest.er1 >conftest.err
4757   rm -f conftest.er1
4758   cat conftest.err >&5
4759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760   (exit $ac_status); } >/dev/null && {
4761          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4762          test ! -s conftest.err
4763        }; then
4764   # Broken: success on invalid input.
4765 continue
4766 else
4767   echo "$as_me: failed program was:" >&5
4768 sed 's/^/| /' conftest.$ac_ext >&5
4769
4770   # Passes both tests.
4771 ac_preproc_ok=:
4772 break
4773 fi
4774
4775 rm -f conftest.err conftest.$ac_ext
4776
4777 done
4778 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4779 rm -f conftest.err conftest.$ac_ext
4780 if $ac_preproc_ok; then
4781   break
4782 fi
4783
4784     done
4785     ac_cv_prog_CPP=$CPP
4786
4787 fi
4788   CPP=$ac_cv_prog_CPP
4789 else
4790   ac_cv_prog_CPP=$CPP
4791 fi
4792 { echo "$as_me:$LINENO: result: $CPP" >&5
4793 echo "${ECHO_T}$CPP" >&6; }
4794 ac_preproc_ok=false
4795 for ac_c_preproc_warn_flag in '' yes
4796 do
4797   # Use a header file that comes with gcc, so configuring glibc
4798   # with a fresh cross-compiler works.
4799   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4800   # <limits.h> exists even on freestanding compilers.
4801   # On the NeXT, cc -E runs the code through the compiler's parser,
4802   # not just through cpp. "Syntax error" is here to catch this case.
4803   cat >conftest.$ac_ext <<_ACEOF
4804 /* confdefs.h.  */
4805 _ACEOF
4806 cat confdefs.h >>conftest.$ac_ext
4807 cat >>conftest.$ac_ext <<_ACEOF
4808 /* end confdefs.h.  */
4809 #ifdef __STDC__
4810 # include <limits.h>
4811 #else
4812 # include <assert.h>
4813 #endif
4814                      Syntax error
4815 _ACEOF
4816 if { (ac_try="$ac_cpp conftest.$ac_ext"
4817 case "(($ac_try" in
4818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4819   *) ac_try_echo=$ac_try;;
4820 esac
4821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4822   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4823   ac_status=$?
4824   grep -v '^ *+' conftest.er1 >conftest.err
4825   rm -f conftest.er1
4826   cat conftest.err >&5
4827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828   (exit $ac_status); } >/dev/null && {
4829          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4830          test ! -s conftest.err
4831        }; then
4832   :
4833 else
4834   echo "$as_me: failed program was:" >&5
4835 sed 's/^/| /' conftest.$ac_ext >&5
4836
4837   # Broken: fails on valid input.
4838 continue
4839 fi
4840
4841 rm -f conftest.err conftest.$ac_ext
4842
4843   # OK, works on sane cases.  Now check whether nonexistent headers
4844   # can be detected and how.
4845   cat >conftest.$ac_ext <<_ACEOF
4846 /* confdefs.h.  */
4847 _ACEOF
4848 cat confdefs.h >>conftest.$ac_ext
4849 cat >>conftest.$ac_ext <<_ACEOF
4850 /* end confdefs.h.  */
4851 #include <ac_nonexistent.h>
4852 _ACEOF
4853 if { (ac_try="$ac_cpp conftest.$ac_ext"
4854 case "(($ac_try" in
4855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4856   *) ac_try_echo=$ac_try;;
4857 esac
4858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4859   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4860   ac_status=$?
4861   grep -v '^ *+' conftest.er1 >conftest.err
4862   rm -f conftest.er1
4863   cat conftest.err >&5
4864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865   (exit $ac_status); } >/dev/null && {
4866          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4867          test ! -s conftest.err
4868        }; then
4869   # Broken: success on invalid input.
4870 continue
4871 else
4872   echo "$as_me: failed program was:" >&5
4873 sed 's/^/| /' conftest.$ac_ext >&5
4874
4875   # Passes both tests.
4876 ac_preproc_ok=:
4877 break
4878 fi
4879
4880 rm -f conftest.err conftest.$ac_ext
4881
4882 done
4883 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4884 rm -f conftest.err conftest.$ac_ext
4885 if $ac_preproc_ok; then
4886   :
4887 else
4888   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4889 See \`config.log' for more details." >&5
4890 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4891 See \`config.log' for more details." >&2;}
4892    { (exit 1); exit 1; }; }
4893 fi
4894
4895 ac_ext=c
4896 ac_cpp='$CPP $CPPFLAGS'
4897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4900
4901
4902 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4903 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4904 if test "${ac_cv_header_stdc+set}" = set; then
4905   echo $ECHO_N "(cached) $ECHO_C" >&6
4906 else
4907   cat >conftest.$ac_ext <<_ACEOF
4908 /* confdefs.h.  */
4909 _ACEOF
4910 cat confdefs.h >>conftest.$ac_ext
4911 cat >>conftest.$ac_ext <<_ACEOF
4912 /* end confdefs.h.  */
4913 #include <stdlib.h>
4914 #include <stdarg.h>
4915 #include <string.h>
4916 #include <float.h>
4917
4918 int
4919 main ()
4920 {
4921
4922   ;
4923   return 0;
4924 }
4925 _ACEOF
4926 rm -f conftest.$ac_objext
4927 if { (ac_try="$ac_compile"
4928 case "(($ac_try" in
4929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4930   *) ac_try_echo=$ac_try;;
4931 esac
4932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4933   (eval "$ac_compile") 2>conftest.er1
4934   ac_status=$?
4935   grep -v '^ *+' conftest.er1 >conftest.err
4936   rm -f conftest.er1
4937   cat conftest.err >&5
4938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4939   (exit $ac_status); } && {
4940          test -z "$ac_c_werror_flag" ||
4941          test ! -s conftest.err
4942        } && test -s conftest.$ac_objext; then
4943   ac_cv_header_stdc=yes
4944 else
4945   echo "$as_me: failed program was:" >&5
4946 sed 's/^/| /' conftest.$ac_ext >&5
4947
4948         ac_cv_header_stdc=no
4949 fi
4950
4951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4952
4953 if test $ac_cv_header_stdc = yes; then
4954   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4955   cat >conftest.$ac_ext <<_ACEOF
4956 /* confdefs.h.  */
4957 _ACEOF
4958 cat confdefs.h >>conftest.$ac_ext
4959 cat >>conftest.$ac_ext <<_ACEOF
4960 /* end confdefs.h.  */
4961 #include <string.h>
4962
4963 _ACEOF
4964 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4965   $EGREP "memchr" >/dev/null 2>&1; then
4966   :
4967 else
4968   ac_cv_header_stdc=no
4969 fi
4970 rm -f conftest*
4971
4972 fi
4973
4974 if test $ac_cv_header_stdc = yes; then
4975   # ISC 2.0.2 stdlib.h does not declare free, 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 <stdlib.h>
4983
4984 _ACEOF
4985 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4986   $EGREP "free" >/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   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4997   if test "$cross_compiling" = yes; then
4998   :
4999 else
5000   cat >conftest.$ac_ext <<_ACEOF
5001 /* confdefs.h.  */
5002 _ACEOF
5003 cat confdefs.h >>conftest.$ac_ext
5004 cat >>conftest.$ac_ext <<_ACEOF
5005 /* end confdefs.h.  */
5006 #include <ctype.h>
5007 #include <stdlib.h>
5008 #if ((' ' & 0x0FF) == 0x020)
5009 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5010 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5011 #else
5012 # define ISLOWER(c) \
5013                    (('a' <= (c) && (c) <= 'i') \
5014                      || ('j' <= (c) && (c) <= 'r') \
5015                      || ('s' <= (c) && (c) <= 'z'))
5016 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5017 #endif
5018
5019 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5020 int
5021 main ()
5022 {
5023   int i;
5024   for (i = 0; i < 256; i++)
5025     if (XOR (islower (i), ISLOWER (i))
5026         || toupper (i) != TOUPPER (i))
5027       return 2;
5028   return 0;
5029 }
5030 _ACEOF
5031 rm -f conftest$ac_exeext
5032 if { (ac_try="$ac_link"
5033 case "(($ac_try" in
5034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5035   *) ac_try_echo=$ac_try;;
5036 esac
5037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5038   (eval "$ac_link") 2>&5
5039   ac_status=$?
5040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5042   { (case "(($ac_try" in
5043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5044   *) ac_try_echo=$ac_try;;
5045 esac
5046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5047   (eval "$ac_try") 2>&5
5048   ac_status=$?
5049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5050   (exit $ac_status); }; }; then
5051   :
5052 else
5053   echo "$as_me: program exited with status $ac_status" >&5
5054 echo "$as_me: failed program was:" >&5
5055 sed 's/^/| /' conftest.$ac_ext >&5
5056
5057 ( exit $ac_status )
5058 ac_cv_header_stdc=no
5059 fi
5060 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5061 fi
5062
5063
5064 fi
5065 fi
5066 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5067 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5068 if test $ac_cv_header_stdc = yes; then
5069
5070 cat >>confdefs.h <<\_ACEOF
5071 #define STDC_HEADERS 1
5072 _ACEOF
5073
5074 fi
5075
5076 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5087                   inttypes.h stdint.h unistd.h
5088 do
5089 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5090 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5091 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5092 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5093   echo $ECHO_N "(cached) $ECHO_C" >&6
5094 else
5095   cat >conftest.$ac_ext <<_ACEOF
5096 /* confdefs.h.  */
5097 _ACEOF
5098 cat confdefs.h >>conftest.$ac_ext
5099 cat >>conftest.$ac_ext <<_ACEOF
5100 /* end confdefs.h.  */
5101 $ac_includes_default
5102
5103 #include <$ac_header>
5104 _ACEOF
5105 rm -f conftest.$ac_objext
5106 if { (ac_try="$ac_compile"
5107 case "(($ac_try" in
5108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5109   *) ac_try_echo=$ac_try;;
5110 esac
5111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5112   (eval "$ac_compile") 2>conftest.er1
5113   ac_status=$?
5114   grep -v '^ *+' conftest.er1 >conftest.err
5115   rm -f conftest.er1
5116   cat conftest.err >&5
5117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118   (exit $ac_status); } && {
5119          test -z "$ac_c_werror_flag" ||
5120          test ! -s conftest.err
5121        } && test -s conftest.$ac_objext; then
5122   eval "$as_ac_Header=yes"
5123 else
5124   echo "$as_me: failed program was:" >&5
5125 sed 's/^/| /' conftest.$ac_ext >&5
5126
5127         eval "$as_ac_Header=no"
5128 fi
5129
5130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5131 fi
5132 ac_res=`eval echo '${'$as_ac_Header'}'`
5133                { echo "$as_me:$LINENO: result: $ac_res" >&5
5134 echo "${ECHO_T}$ac_res" >&6; }
5135 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5136   cat >>confdefs.h <<_ACEOF
5137 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5138 _ACEOF
5139
5140 fi
5141
5142 done
5143
5144
5145
5146 for ac_header in dlfcn.h
5147 do
5148 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5149 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5150   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5151 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5153   echo $ECHO_N "(cached) $ECHO_C" >&6
5154 fi
5155 ac_res=`eval echo '${'$as_ac_Header'}'`
5156                { echo "$as_me:$LINENO: result: $ac_res" >&5
5157 echo "${ECHO_T}$ac_res" >&6; }
5158 else
5159   # Is the header compilable?
5160 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5161 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5162 cat >conftest.$ac_ext <<_ACEOF
5163 /* confdefs.h.  */
5164 _ACEOF
5165 cat confdefs.h >>conftest.$ac_ext
5166 cat >>conftest.$ac_ext <<_ACEOF
5167 /* end confdefs.h.  */
5168 $ac_includes_default
5169 #include <$ac_header>
5170 _ACEOF
5171 rm -f conftest.$ac_objext
5172 if { (ac_try="$ac_compile"
5173 case "(($ac_try" in
5174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5175   *) ac_try_echo=$ac_try;;
5176 esac
5177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5178   (eval "$ac_compile") 2>conftest.er1
5179   ac_status=$?
5180   grep -v '^ *+' conftest.er1 >conftest.err
5181   rm -f conftest.er1
5182   cat conftest.err >&5
5183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5184   (exit $ac_status); } && {
5185          test -z "$ac_c_werror_flag" ||
5186          test ! -s conftest.err
5187        } && test -s conftest.$ac_objext; then
5188   ac_header_compiler=yes
5189 else
5190   echo "$as_me: failed program was:" >&5
5191 sed 's/^/| /' conftest.$ac_ext >&5
5192
5193         ac_header_compiler=no
5194 fi
5195
5196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5197 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5198 echo "${ECHO_T}$ac_header_compiler" >&6; }
5199
5200 # Is the header present?
5201 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5202 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5203 cat >conftest.$ac_ext <<_ACEOF
5204 /* confdefs.h.  */
5205 _ACEOF
5206 cat confdefs.h >>conftest.$ac_ext
5207 cat >>conftest.$ac_ext <<_ACEOF
5208 /* end confdefs.h.  */
5209 #include <$ac_header>
5210 _ACEOF
5211 if { (ac_try="$ac_cpp conftest.$ac_ext"
5212 case "(($ac_try" in
5213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5214   *) ac_try_echo=$ac_try;;
5215 esac
5216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5217   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5218   ac_status=$?
5219   grep -v '^ *+' conftest.er1 >conftest.err
5220   rm -f conftest.er1
5221   cat conftest.err >&5
5222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5223   (exit $ac_status); } >/dev/null && {
5224          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5225          test ! -s conftest.err
5226        }; then
5227   ac_header_preproc=yes
5228 else
5229   echo "$as_me: failed program was:" >&5
5230 sed 's/^/| /' conftest.$ac_ext >&5
5231
5232   ac_header_preproc=no
5233 fi
5234
5235 rm -f conftest.err conftest.$ac_ext
5236 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5237 echo "${ECHO_T}$ac_header_preproc" >&6; }
5238
5239 # So?  What about this header?
5240 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5241   yes:no: )
5242     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5243 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5244     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5245 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5246     ac_header_preproc=yes
5247     ;;
5248   no:yes:* )
5249     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5250 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5251     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5252 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5253     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5254 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5255     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5256 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5257     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5258 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5259     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5260 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5261
5262     ;;
5263 esac
5264 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5265 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5266 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5267   echo $ECHO_N "(cached) $ECHO_C" >&6
5268 else
5269   eval "$as_ac_Header=\$ac_header_preproc"
5270 fi
5271 ac_res=`eval echo '${'$as_ac_Header'}'`
5272                { echo "$as_me:$LINENO: result: $ac_res" >&5
5273 echo "${ECHO_T}$ac_res" >&6; }
5274
5275 fi
5276 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5277   cat >>confdefs.h <<_ACEOF
5278 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5279 _ACEOF
5280
5281 fi
5282
5283 done
5284
5285 ac_ext=cpp
5286 ac_cpp='$CXXCPP $CPPFLAGS'
5287 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5288 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5289 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5290 if test -z "$CXX"; then
5291   if test -n "$CCC"; then
5292     CXX=$CCC
5293   else
5294     if test -n "$ac_tool_prefix"; then
5295   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5296   do
5297     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5298 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5299 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5301 if test "${ac_cv_prog_CXX+set}" = set; then
5302   echo $ECHO_N "(cached) $ECHO_C" >&6
5303 else
5304   if test -n "$CXX"; then
5305   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5306 else
5307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5308 for as_dir in $PATH
5309 do
5310   IFS=$as_save_IFS
5311   test -z "$as_dir" && as_dir=.
5312   for ac_exec_ext in '' $ac_executable_extensions; do
5313   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5314     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5315     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5316     break 2
5317   fi
5318 done
5319 done
5320 IFS=$as_save_IFS
5321
5322 fi
5323 fi
5324 CXX=$ac_cv_prog_CXX
5325 if test -n "$CXX"; then
5326   { echo "$as_me:$LINENO: result: $CXX" >&5
5327 echo "${ECHO_T}$CXX" >&6; }
5328 else
5329   { echo "$as_me:$LINENO: result: no" >&5
5330 echo "${ECHO_T}no" >&6; }
5331 fi
5332
5333
5334     test -n "$CXX" && break
5335   done
5336 fi
5337 if test -z "$CXX"; then
5338   ac_ct_CXX=$CXX
5339   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5340 do
5341   # Extract the first word of "$ac_prog", so it can be a program name with args.
5342 set dummy $ac_prog; ac_word=$2
5343 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5345 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5346   echo $ECHO_N "(cached) $ECHO_C" >&6
5347 else
5348   if test -n "$ac_ct_CXX"; then
5349   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5350 else
5351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5352 for as_dir in $PATH
5353 do
5354   IFS=$as_save_IFS
5355   test -z "$as_dir" && as_dir=.
5356   for ac_exec_ext in '' $ac_executable_extensions; do
5357   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5358     ac_cv_prog_ac_ct_CXX="$ac_prog"
5359     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5360     break 2
5361   fi
5362 done
5363 done
5364 IFS=$as_save_IFS
5365
5366 fi
5367 fi
5368 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5369 if test -n "$ac_ct_CXX"; then
5370   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5371 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5372 else
5373   { echo "$as_me:$LINENO: result: no" >&5
5374 echo "${ECHO_T}no" >&6; }
5375 fi
5376
5377
5378   test -n "$ac_ct_CXX" && break
5379 done
5380
5381   if test "x$ac_ct_CXX" = x; then
5382     CXX="g++"
5383   else
5384     case $cross_compiling:$ac_tool_warned in
5385 yes:)
5386 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5387 whose name does not start with the host triplet.  If you think this
5388 configuration is useful to you, please write to autoconf@gnu.org." >&5
5389 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5390 whose name does not start with the host triplet.  If you think this
5391 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5392 ac_tool_warned=yes ;;
5393 esac
5394     CXX=$ac_ct_CXX
5395   fi
5396 fi
5397
5398   fi
5399 fi
5400 # Provide some information about the compiler.
5401 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5402 ac_compiler=`set X $ac_compile; echo $2`
5403 { (ac_try="$ac_compiler --version >&5"
5404 case "(($ac_try" in
5405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5406   *) ac_try_echo=$ac_try;;
5407 esac
5408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5409   (eval "$ac_compiler --version >&5") 2>&5
5410   ac_status=$?
5411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5412   (exit $ac_status); }
5413 { (ac_try="$ac_compiler -v >&5"
5414 case "(($ac_try" in
5415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5416   *) ac_try_echo=$ac_try;;
5417 esac
5418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5419   (eval "$ac_compiler -v >&5") 2>&5
5420   ac_status=$?
5421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5422   (exit $ac_status); }
5423 { (ac_try="$ac_compiler -V >&5"
5424 case "(($ac_try" in
5425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5426   *) ac_try_echo=$ac_try;;
5427 esac
5428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5429   (eval "$ac_compiler -V >&5") 2>&5
5430   ac_status=$?
5431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5432   (exit $ac_status); }
5433
5434 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5435 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5436 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5437   echo $ECHO_N "(cached) $ECHO_C" >&6
5438 else
5439   cat >conftest.$ac_ext <<_ACEOF
5440 /* confdefs.h.  */
5441 _ACEOF
5442 cat confdefs.h >>conftest.$ac_ext
5443 cat >>conftest.$ac_ext <<_ACEOF
5444 /* end confdefs.h.  */
5445
5446 int
5447 main ()
5448 {
5449 #ifndef __GNUC__
5450        choke me
5451 #endif
5452
5453   ;
5454   return 0;
5455 }
5456 _ACEOF
5457 rm -f conftest.$ac_objext
5458 if { (ac_try="$ac_compile"
5459 case "(($ac_try" in
5460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5461   *) ac_try_echo=$ac_try;;
5462 esac
5463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5464   (eval "$ac_compile") 2>conftest.er1
5465   ac_status=$?
5466   grep -v '^ *+' conftest.er1 >conftest.err
5467   rm -f conftest.er1
5468   cat conftest.err >&5
5469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470   (exit $ac_status); } && {
5471          test -z "$ac_cxx_werror_flag" ||
5472          test ! -s conftest.err
5473        } && test -s conftest.$ac_objext; then
5474   ac_compiler_gnu=yes
5475 else
5476   echo "$as_me: failed program was:" >&5
5477 sed 's/^/| /' conftest.$ac_ext >&5
5478
5479         ac_compiler_gnu=no
5480 fi
5481
5482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5483 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5484
5485 fi
5486 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5487 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5488 GXX=`test $ac_compiler_gnu = yes && echo yes`
5489 ac_test_CXXFLAGS=${CXXFLAGS+set}
5490 ac_save_CXXFLAGS=$CXXFLAGS
5491 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5492 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5493 if test "${ac_cv_prog_cxx_g+set}" = set; then
5494   echo $ECHO_N "(cached) $ECHO_C" >&6
5495 else
5496   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5497    ac_cxx_werror_flag=yes
5498    ac_cv_prog_cxx_g=no
5499    CXXFLAGS="-g"
5500    cat >conftest.$ac_ext <<_ACEOF
5501 /* confdefs.h.  */
5502 _ACEOF
5503 cat confdefs.h >>conftest.$ac_ext
5504 cat >>conftest.$ac_ext <<_ACEOF
5505 /* end confdefs.h.  */
5506
5507 int
5508 main ()
5509 {
5510
5511   ;
5512   return 0;
5513 }
5514 _ACEOF
5515 rm -f conftest.$ac_objext
5516 if { (ac_try="$ac_compile"
5517 case "(($ac_try" in
5518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5519   *) ac_try_echo=$ac_try;;
5520 esac
5521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5522   (eval "$ac_compile") 2>conftest.er1
5523   ac_status=$?
5524   grep -v '^ *+' conftest.er1 >conftest.err
5525   rm -f conftest.er1
5526   cat conftest.err >&5
5527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5528   (exit $ac_status); } && {
5529          test -z "$ac_cxx_werror_flag" ||
5530          test ! -s conftest.err
5531        } && test -s conftest.$ac_objext; then
5532   ac_cv_prog_cxx_g=yes
5533 else
5534   echo "$as_me: failed program was:" >&5
5535 sed 's/^/| /' conftest.$ac_ext >&5
5536
5537         CXXFLAGS=""
5538       cat >conftest.$ac_ext <<_ACEOF
5539 /* confdefs.h.  */
5540 _ACEOF
5541 cat confdefs.h >>conftest.$ac_ext
5542 cat >>conftest.$ac_ext <<_ACEOF
5543 /* end confdefs.h.  */
5544
5545 int
5546 main ()
5547 {
5548
5549   ;
5550   return 0;
5551 }
5552 _ACEOF
5553 rm -f conftest.$ac_objext
5554 if { (ac_try="$ac_compile"
5555 case "(($ac_try" in
5556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5557   *) ac_try_echo=$ac_try;;
5558 esac
5559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5560   (eval "$ac_compile") 2>conftest.er1
5561   ac_status=$?
5562   grep -v '^ *+' conftest.er1 >conftest.err
5563   rm -f conftest.er1
5564   cat conftest.err >&5
5565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5566   (exit $ac_status); } && {
5567          test -z "$ac_cxx_werror_flag" ||
5568          test ! -s conftest.err
5569        } && test -s conftest.$ac_objext; then
5570   :
5571 else
5572   echo "$as_me: failed program was:" >&5
5573 sed 's/^/| /' conftest.$ac_ext >&5
5574
5575         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5576          CXXFLAGS="-g"
5577          cat >conftest.$ac_ext <<_ACEOF
5578 /* confdefs.h.  */
5579 _ACEOF
5580 cat confdefs.h >>conftest.$ac_ext
5581 cat >>conftest.$ac_ext <<_ACEOF
5582 /* end confdefs.h.  */
5583
5584 int
5585 main ()
5586 {
5587
5588   ;
5589   return 0;
5590 }
5591 _ACEOF
5592 rm -f conftest.$ac_objext
5593 if { (ac_try="$ac_compile"
5594 case "(($ac_try" in
5595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5596   *) ac_try_echo=$ac_try;;
5597 esac
5598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5599   (eval "$ac_compile") 2>conftest.er1
5600   ac_status=$?
5601   grep -v '^ *+' conftest.er1 >conftest.err
5602   rm -f conftest.er1
5603   cat conftest.err >&5
5604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605   (exit $ac_status); } && {
5606          test -z "$ac_cxx_werror_flag" ||
5607          test ! -s conftest.err
5608        } && test -s conftest.$ac_objext; then
5609   ac_cv_prog_cxx_g=yes
5610 else
5611   echo "$as_me: failed program was:" >&5
5612 sed 's/^/| /' conftest.$ac_ext >&5
5613
5614
5615 fi
5616
5617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5618 fi
5619
5620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5621 fi
5622
5623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5624    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5625 fi
5626 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5627 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5628 if test "$ac_test_CXXFLAGS" = set; then
5629   CXXFLAGS=$ac_save_CXXFLAGS
5630 elif test $ac_cv_prog_cxx_g = yes; then
5631   if test "$GXX" = yes; then
5632     CXXFLAGS="-g -O2"
5633   else
5634     CXXFLAGS="-g"
5635   fi
5636 else
5637   if test "$GXX" = yes; then
5638     CXXFLAGS="-O2"
5639   else
5640     CXXFLAGS=
5641   fi
5642 fi
5643 ac_ext=cpp
5644 ac_cpp='$CXXCPP $CPPFLAGS'
5645 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5646 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5647 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5648
5649 depcc="$CXX"  am_compiler_list=
5650
5651 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5652 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5653 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5654   echo $ECHO_N "(cached) $ECHO_C" >&6
5655 else
5656   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5657   # We make a subdir and do the tests there.  Otherwise we can end up
5658   # making bogus files that we don't know about and never remove.  For
5659   # instance it was reported that on HP-UX the gcc test will end up
5660   # making a dummy file named `D' -- because `-MD' means `put the output
5661   # in D'.
5662   mkdir conftest.dir
5663   # Copy depcomp to subdir because otherwise we won't find it if we're
5664   # using a relative directory.
5665   cp "$am_depcomp" conftest.dir
5666   cd conftest.dir
5667   # We will build objects and dependencies in a subdirectory because
5668   # it helps to detect inapplicable dependency modes.  For instance
5669   # both Tru64's cc and ICC support -MD to output dependencies as a
5670   # side effect of compilation, but ICC will put the dependencies in
5671   # the current directory while Tru64 will put them in the object
5672   # directory.
5673   mkdir sub
5674
5675   am_cv_CXX_dependencies_compiler_type=none
5676   if test "$am_compiler_list" = ""; then
5677      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5678   fi
5679   for depmode in $am_compiler_list; do
5680     # Setup a source with many dependencies, because some compilers
5681     # like to wrap large dependency lists on column 80 (with \), and
5682     # we should not choose a depcomp mode which is confused by this.
5683     #
5684     # We need to recreate these files for each test, as the compiler may
5685     # overwrite some of them when testing with obscure command lines.
5686     # This happens at least with the AIX C compiler.
5687     : > sub/conftest.c
5688     for i in 1 2 3 4 5 6; do
5689       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5690       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5691       # Solaris 8's {/usr,}/bin/sh.
5692       touch sub/conftst$i.h
5693     done
5694     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5695
5696     case $depmode in
5697     nosideeffect)
5698       # after this tag, mechanisms are not by side-effect, so they'll
5699       # only be used when explicitly requested
5700       if test "x$enable_dependency_tracking" = xyes; then
5701         continue
5702       else
5703         break
5704       fi
5705       ;;
5706     none) break ;;
5707     esac
5708     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5709     # mode.  It turns out that the SunPro C++ compiler does not properly
5710     # handle `-M -o', and we need to detect this.
5711     if depmode=$depmode \
5712        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5713        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5714        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5715          >/dev/null 2>conftest.err &&
5716        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5717        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5718        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5719        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5720       # icc doesn't choke on unknown options, it will just issue warnings
5721       # or remarks (even with -Werror).  So we grep stderr for any message
5722       # that says an option was ignored or not supported.
5723       # When given -MP, icc 7.0 and 7.1 complain thusly:
5724       #   icc: Command line warning: ignoring option '-M'; no argument required
5725       # The diagnosis changed in icc 8.0:
5726       #   icc: Command line remark: option '-MP' not supported
5727       if (grep 'ignoring option' conftest.err ||
5728           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5729         am_cv_CXX_dependencies_compiler_type=$depmode
5730         break
5731       fi
5732     fi
5733   done
5734
5735   cd ..
5736   rm -rf conftest.dir
5737 else
5738   am_cv_CXX_dependencies_compiler_type=none
5739 fi
5740
5741 fi
5742 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5743 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5744 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5745
5746  if
5747   test "x$enable_dependency_tracking" != xno \
5748   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5749   am__fastdepCXX_TRUE=
5750   am__fastdepCXX_FALSE='#'
5751 else
5752   am__fastdepCXX_TRUE='#'
5753   am__fastdepCXX_FALSE=
5754 fi
5755
5756
5757
5758
5759 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5760     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5761     (test "X$CXX" != "Xg++"))) ; then
5762   ac_ext=cpp
5763 ac_cpp='$CXXCPP $CPPFLAGS'
5764 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5765 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5766 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5767 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5768 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5769 if test -z "$CXXCPP"; then
5770   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5771   echo $ECHO_N "(cached) $ECHO_C" >&6
5772 else
5773       # Double quotes because CXXCPP needs to be expanded
5774     for CXXCPP in "$CXX -E" "/lib/cpp"
5775     do
5776       ac_preproc_ok=false
5777 for ac_cxx_preproc_warn_flag in '' yes
5778 do
5779   # Use a header file that comes with gcc, so configuring glibc
5780   # with a fresh cross-compiler works.
5781   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5782   # <limits.h> exists even on freestanding compilers.
5783   # On the NeXT, cc -E runs the code through the compiler's parser,
5784   # not just through cpp. "Syntax error" is here to catch this case.
5785   cat >conftest.$ac_ext <<_ACEOF
5786 /* confdefs.h.  */
5787 _ACEOF
5788 cat confdefs.h >>conftest.$ac_ext
5789 cat >>conftest.$ac_ext <<_ACEOF
5790 /* end confdefs.h.  */
5791 #ifdef __STDC__
5792 # include <limits.h>
5793 #else
5794 # include <assert.h>
5795 #endif
5796                      Syntax error
5797 _ACEOF
5798 if { (ac_try="$ac_cpp conftest.$ac_ext"
5799 case "(($ac_try" in
5800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5801   *) ac_try_echo=$ac_try;;
5802 esac
5803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5804   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5805   ac_status=$?
5806   grep -v '^ *+' conftest.er1 >conftest.err
5807   rm -f conftest.er1
5808   cat conftest.err >&5
5809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810   (exit $ac_status); } >/dev/null && {
5811          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5812          test ! -s conftest.err
5813        }; then
5814   :
5815 else
5816   echo "$as_me: failed program was:" >&5
5817 sed 's/^/| /' conftest.$ac_ext >&5
5818
5819   # Broken: fails on valid input.
5820 continue
5821 fi
5822
5823 rm -f conftest.err conftest.$ac_ext
5824
5825   # OK, works on sane cases.  Now check whether nonexistent headers
5826   # can be detected and how.
5827   cat >conftest.$ac_ext <<_ACEOF
5828 /* confdefs.h.  */
5829 _ACEOF
5830 cat confdefs.h >>conftest.$ac_ext
5831 cat >>conftest.$ac_ext <<_ACEOF
5832 /* end confdefs.h.  */
5833 #include <ac_nonexistent.h>
5834 _ACEOF
5835 if { (ac_try="$ac_cpp conftest.$ac_ext"
5836 case "(($ac_try" in
5837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5838   *) ac_try_echo=$ac_try;;
5839 esac
5840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5841   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5842   ac_status=$?
5843   grep -v '^ *+' conftest.er1 >conftest.err
5844   rm -f conftest.er1
5845   cat conftest.err >&5
5846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847   (exit $ac_status); } >/dev/null && {
5848          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5849          test ! -s conftest.err
5850        }; then
5851   # Broken: success on invalid input.
5852 continue
5853 else
5854   echo "$as_me: failed program was:" >&5
5855 sed 's/^/| /' conftest.$ac_ext >&5
5856
5857   # Passes both tests.
5858 ac_preproc_ok=:
5859 break
5860 fi
5861
5862 rm -f conftest.err conftest.$ac_ext
5863
5864 done
5865 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5866 rm -f conftest.err conftest.$ac_ext
5867 if $ac_preproc_ok; then
5868   break
5869 fi
5870
5871     done
5872     ac_cv_prog_CXXCPP=$CXXCPP
5873
5874 fi
5875   CXXCPP=$ac_cv_prog_CXXCPP
5876 else
5877   ac_cv_prog_CXXCPP=$CXXCPP
5878 fi
5879 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5880 echo "${ECHO_T}$CXXCPP" >&6; }
5881 ac_preproc_ok=false
5882 for ac_cxx_preproc_warn_flag in '' yes
5883 do
5884   # Use a header file that comes with gcc, so configuring glibc
5885   # with a fresh cross-compiler works.
5886   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5887   # <limits.h> exists even on freestanding compilers.
5888   # On the NeXT, cc -E runs the code through the compiler's parser,
5889   # not just through cpp. "Syntax error" is here to catch this case.
5890   cat >conftest.$ac_ext <<_ACEOF
5891 /* confdefs.h.  */
5892 _ACEOF
5893 cat confdefs.h >>conftest.$ac_ext
5894 cat >>conftest.$ac_ext <<_ACEOF
5895 /* end confdefs.h.  */
5896 #ifdef __STDC__
5897 # include <limits.h>
5898 #else
5899 # include <assert.h>
5900 #endif
5901                      Syntax error
5902 _ACEOF
5903 if { (ac_try="$ac_cpp conftest.$ac_ext"
5904 case "(($ac_try" in
5905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5906   *) ac_try_echo=$ac_try;;
5907 esac
5908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5909   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5910   ac_status=$?
5911   grep -v '^ *+' conftest.er1 >conftest.err
5912   rm -f conftest.er1
5913   cat conftest.err >&5
5914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5915   (exit $ac_status); } >/dev/null && {
5916          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5917          test ! -s conftest.err
5918        }; then
5919   :
5920 else
5921   echo "$as_me: failed program was:" >&5
5922 sed 's/^/| /' conftest.$ac_ext >&5
5923
5924   # Broken: fails on valid input.
5925 continue
5926 fi
5927
5928 rm -f conftest.err conftest.$ac_ext
5929
5930   # OK, works on sane cases.  Now check whether nonexistent headers
5931   # can be detected and how.
5932   cat >conftest.$ac_ext <<_ACEOF
5933 /* confdefs.h.  */
5934 _ACEOF
5935 cat confdefs.h >>conftest.$ac_ext
5936 cat >>conftest.$ac_ext <<_ACEOF
5937 /* end confdefs.h.  */
5938 #include <ac_nonexistent.h>
5939 _ACEOF
5940 if { (ac_try="$ac_cpp conftest.$ac_ext"
5941 case "(($ac_try" in
5942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5943   *) ac_try_echo=$ac_try;;
5944 esac
5945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5946   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5947   ac_status=$?
5948   grep -v '^ *+' conftest.er1 >conftest.err
5949   rm -f conftest.er1
5950   cat conftest.err >&5
5951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952   (exit $ac_status); } >/dev/null && {
5953          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5954          test ! -s conftest.err
5955        }; then
5956   # Broken: success on invalid input.
5957 continue
5958 else
5959   echo "$as_me: failed program was:" >&5
5960 sed 's/^/| /' conftest.$ac_ext >&5
5961
5962   # Passes both tests.
5963 ac_preproc_ok=:
5964 break
5965 fi
5966
5967 rm -f conftest.err conftest.$ac_ext
5968
5969 done
5970 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5971 rm -f conftest.err conftest.$ac_ext
5972 if $ac_preproc_ok; then
5973   :
5974 else
5975   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5976 See \`config.log' for more details." >&5
5977 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5978 See \`config.log' for more details." >&2;}
5979    { (exit 1); exit 1; }; }
5980 fi
5981
5982 ac_ext=cpp
5983 ac_cpp='$CXXCPP $CPPFLAGS'
5984 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5985 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5986 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5987
5988 fi
5989
5990
5991 ac_ext=f
5992 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5993 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5994 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5995 if test -n "$ac_tool_prefix"; then
5996   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
5997   do
5998     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5999 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6000 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6002 if test "${ac_cv_prog_F77+set}" = set; then
6003   echo $ECHO_N "(cached) $ECHO_C" >&6
6004 else
6005   if test -n "$F77"; then
6006   ac_cv_prog_F77="$F77" # Let the user override the test.
6007 else
6008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6009 for as_dir in $PATH
6010 do
6011   IFS=$as_save_IFS
6012   test -z "$as_dir" && as_dir=.
6013   for ac_exec_ext in '' $ac_executable_extensions; do
6014   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6015     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6016     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6017     break 2
6018   fi
6019 done
6020 done
6021 IFS=$as_save_IFS
6022
6023 fi
6024 fi
6025 F77=$ac_cv_prog_F77
6026 if test -n "$F77"; then
6027   { echo "$as_me:$LINENO: result: $F77" >&5
6028 echo "${ECHO_T}$F77" >&6; }
6029 else
6030   { echo "$as_me:$LINENO: result: no" >&5
6031 echo "${ECHO_T}no" >&6; }
6032 fi
6033
6034
6035     test -n "$F77" && break
6036   done
6037 fi
6038 if test -z "$F77"; then
6039   ac_ct_F77=$F77
6040   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
6041 do
6042   # Extract the first word of "$ac_prog", so it can be a program name with args.
6043 set dummy $ac_prog; ac_word=$2
6044 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6046 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6047   echo $ECHO_N "(cached) $ECHO_C" >&6
6048 else
6049   if test -n "$ac_ct_F77"; then
6050   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6051 else
6052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6053 for as_dir in $PATH
6054 do
6055   IFS=$as_save_IFS
6056   test -z "$as_dir" && as_dir=.
6057   for ac_exec_ext in '' $ac_executable_extensions; do
6058   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6059     ac_cv_prog_ac_ct_F77="$ac_prog"
6060     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6061     break 2
6062   fi
6063 done
6064 done
6065 IFS=$as_save_IFS
6066
6067 fi
6068 fi
6069 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6070 if test -n "$ac_ct_F77"; then
6071   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6072 echo "${ECHO_T}$ac_ct_F77" >&6; }
6073 else
6074   { echo "$as_me:$LINENO: result: no" >&5
6075 echo "${ECHO_T}no" >&6; }
6076 fi
6077
6078
6079   test -n "$ac_ct_F77" && break
6080 done
6081
6082   if test "x$ac_ct_F77" = x; then
6083     F77=""
6084   else
6085     case $cross_compiling:$ac_tool_warned in
6086 yes:)
6087 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6088 whose name does not start with the host triplet.  If you think this
6089 configuration is useful to you, please write to autoconf@gnu.org." >&5
6090 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6091 whose name does not start with the host triplet.  If you think this
6092 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6093 ac_tool_warned=yes ;;
6094 esac
6095     F77=$ac_ct_F77
6096   fi
6097 fi
6098
6099
6100 # Provide some information about the compiler.
6101 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6102 ac_compiler=`set X $ac_compile; echo $2`
6103 { (ac_try="$ac_compiler --version >&5"
6104 case "(($ac_try" in
6105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6106   *) ac_try_echo=$ac_try;;
6107 esac
6108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6109   (eval "$ac_compiler --version >&5") 2>&5
6110   ac_status=$?
6111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6112   (exit $ac_status); }
6113 { (ac_try="$ac_compiler -v >&5"
6114 case "(($ac_try" in
6115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6116   *) ac_try_echo=$ac_try;;
6117 esac
6118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6119   (eval "$ac_compiler -v >&5") 2>&5
6120   ac_status=$?
6121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122   (exit $ac_status); }
6123 { (ac_try="$ac_compiler -V >&5"
6124 case "(($ac_try" in
6125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6126   *) ac_try_echo=$ac_try;;
6127 esac
6128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6129   (eval "$ac_compiler -V >&5") 2>&5
6130   ac_status=$?
6131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132   (exit $ac_status); }
6133 rm -f a.out
6134
6135 # If we don't use `.F' as extension, the preprocessor is not run on the
6136 # input file.  (Note that this only needs to work for GNU compilers.)
6137 ac_save_ext=$ac_ext
6138 ac_ext=F
6139 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6140 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6141 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6142   echo $ECHO_N "(cached) $ECHO_C" >&6
6143 else
6144   cat >conftest.$ac_ext <<_ACEOF
6145       program main
6146 #ifndef __GNUC__
6147        choke me
6148 #endif
6149
6150       end
6151 _ACEOF
6152 rm -f conftest.$ac_objext
6153 if { (ac_try="$ac_compile"
6154 case "(($ac_try" in
6155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6156   *) ac_try_echo=$ac_try;;
6157 esac
6158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6159   (eval "$ac_compile") 2>conftest.er1
6160   ac_status=$?
6161   grep -v '^ *+' conftest.er1 >conftest.err
6162   rm -f conftest.er1
6163   cat conftest.err >&5
6164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6165   (exit $ac_status); } && {
6166          test -z "$ac_f77_werror_flag" ||
6167          test ! -s conftest.err
6168        } && test -s conftest.$ac_objext; then
6169   ac_compiler_gnu=yes
6170 else
6171   echo "$as_me: failed program was:" >&5
6172 sed 's/^/| /' conftest.$ac_ext >&5
6173
6174         ac_compiler_gnu=no
6175 fi
6176
6177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6178 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6179
6180 fi
6181 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6182 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6183 ac_ext=$ac_save_ext
6184 ac_test_FFLAGS=${FFLAGS+set}
6185 ac_save_FFLAGS=$FFLAGS
6186 FFLAGS=
6187 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6188 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6189 if test "${ac_cv_prog_f77_g+set}" = set; then
6190   echo $ECHO_N "(cached) $ECHO_C" >&6
6191 else
6192   FFLAGS=-g
6193 cat >conftest.$ac_ext <<_ACEOF
6194       program main
6195
6196       end
6197 _ACEOF
6198 rm -f conftest.$ac_objext
6199 if { (ac_try="$ac_compile"
6200 case "(($ac_try" in
6201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6202   *) ac_try_echo=$ac_try;;
6203 esac
6204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6205   (eval "$ac_compile") 2>conftest.er1
6206   ac_status=$?
6207   grep -v '^ *+' conftest.er1 >conftest.err
6208   rm -f conftest.er1
6209   cat conftest.err >&5
6210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6211   (exit $ac_status); } && {
6212          test -z "$ac_f77_werror_flag" ||
6213          test ! -s conftest.err
6214        } && test -s conftest.$ac_objext; then
6215   ac_cv_prog_f77_g=yes
6216 else
6217   echo "$as_me: failed program was:" >&5
6218 sed 's/^/| /' conftest.$ac_ext >&5
6219
6220         ac_cv_prog_f77_g=no
6221 fi
6222
6223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6224
6225 fi
6226 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6227 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6228 if test "$ac_test_FFLAGS" = set; then
6229   FFLAGS=$ac_save_FFLAGS
6230 elif test $ac_cv_prog_f77_g = yes; then
6231   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6232     FFLAGS="-g -O2"
6233   else
6234     FFLAGS="-g"
6235   fi
6236 else
6237   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6238     FFLAGS="-O2"
6239   else
6240     FFLAGS=
6241   fi
6242 fi
6243
6244 G77=`test $ac_compiler_gnu = yes && echo yes`
6245 ac_ext=c
6246 ac_cpp='$CPP $CPPFLAGS'
6247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6250
6251
6252
6253 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6254 # find the maximum length of command line arguments
6255 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6256 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6257 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6258   echo $ECHO_N "(cached) $ECHO_C" >&6
6259 else
6260     i=0
6261   teststring="ABCD"
6262
6263   case $build_os in
6264   msdosdjgpp*)
6265     # On DJGPP, this test can blow up pretty badly due to problems in libc
6266     # (any single argument exceeding 2000 bytes causes a buffer overrun
6267     # during glob expansion).  Even if it were fixed, the result of this
6268     # check would be larger than it should be.
6269     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6270     ;;
6271
6272   gnu*)
6273     # Under GNU Hurd, this test is not required because there is
6274     # no limit to the length of command line arguments.
6275     # Libtool will interpret -1 as no limit whatsoever
6276     lt_cv_sys_max_cmd_len=-1;
6277     ;;
6278
6279   cygwin* | mingw*)
6280     # On Win9x/ME, this test blows up -- it succeeds, but takes
6281     # about 5 minutes as the teststring grows exponentially.
6282     # Worse, since 9x/ME are not pre-emptively multitasking,
6283     # you end up with a "frozen" computer, even though with patience
6284     # the test eventually succeeds (with a max line length of 256k).
6285     # Instead, let's just punt: use the minimum linelength reported by
6286     # all of the supported platforms: 8192 (on NT/2K/XP).
6287     lt_cv_sys_max_cmd_len=8192;
6288     ;;
6289
6290   amigaos*)
6291     # On AmigaOS with pdksh, this test takes hours, literally.
6292     # So we just punt and use a minimum line length of 8192.
6293     lt_cv_sys_max_cmd_len=8192;
6294     ;;
6295
6296   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6297     # This has been around since 386BSD, at least.  Likely further.
6298     if test -x /sbin/sysctl; then
6299       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6300     elif test -x /usr/sbin/sysctl; then
6301       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6302     else
6303       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6304     fi
6305     # And add a safety zone
6306     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6307     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6308     ;;
6309
6310   interix*)
6311     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6312     lt_cv_sys_max_cmd_len=196608
6313     ;;
6314
6315   osf*)
6316     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6317     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6318     # nice to cause kernel panics so lets avoid the loop below.
6319     # First set a reasonable default.
6320     lt_cv_sys_max_cmd_len=16384
6321     #
6322     if test -x /sbin/sysconfig; then
6323       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6324         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6325       esac
6326     fi
6327     ;;
6328   sco3.2v5*)
6329     lt_cv_sys_max_cmd_len=102400
6330     ;;
6331   sysv5* | sco5v6* | sysv4.2uw2*)
6332     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6333     if test -n "$kargmax"; then
6334       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6335     else
6336       lt_cv_sys_max_cmd_len=32768
6337     fi
6338     ;;
6339   *)
6340     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6341     if test -n "$lt_cv_sys_max_cmd_len"; then
6342       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6343       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6344     else
6345       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6346       while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6347                = "XX$teststring") >/dev/null 2>&1 &&
6348               new_result=`expr "X$teststring" : ".*" 2>&1` &&
6349               lt_cv_sys_max_cmd_len=$new_result &&
6350               test $i != 17 # 1/2 MB should be enough
6351       do
6352         i=`expr $i + 1`
6353         teststring=$teststring$teststring
6354       done
6355       teststring=
6356       # Add a significant safety factor because C++ compilers can tack on massive
6357       # amounts of additional arguments before passing them to the linker.
6358       # It appears as though 1/2 is a usable value.
6359       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6360     fi
6361     ;;
6362   esac
6363
6364 fi
6365
6366 if test -n $lt_cv_sys_max_cmd_len ; then
6367   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6368 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6369 else
6370   { echo "$as_me:$LINENO: result: none" >&5
6371 echo "${ECHO_T}none" >&6; }
6372 fi
6373
6374
6375
6376
6377
6378 # Check for command to grab the raw symbol name followed by C symbol from nm.
6379 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6380 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6381 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6382   echo $ECHO_N "(cached) $ECHO_C" >&6
6383 else
6384
6385 # These are sane defaults that work on at least a few old systems.
6386 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6387
6388 # Character class describing NM global symbol codes.
6389 symcode='[BCDEGRST]'
6390
6391 # Regexp to match symbols that can be accessed directly from C.
6392 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6393
6394 # Transform an extracted symbol line into a proper C declaration
6395 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6396
6397 # Transform an extracted symbol line into symbol name and symbol address
6398 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'"
6399
6400 # Define system-specific variables.
6401 case $host_os in
6402 aix*)
6403   symcode='[BCDT]'
6404   ;;
6405 cygwin* | mingw* | pw32*)
6406   symcode='[ABCDGISTW]'
6407   ;;
6408 hpux*) # Its linker distinguishes data from code symbols
6409   if test "$host_cpu" = ia64; then
6410     symcode='[ABCDEGRST]'
6411   fi
6412   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6413   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'"
6414   ;;
6415 linux* | k*bsd*-gnu)
6416   if test "$host_cpu" = ia64; then
6417     symcode='[ABCDGIRSTW]'
6418     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6419     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'"
6420   fi
6421   ;;
6422 irix* | nonstopux*)
6423   symcode='[BCDEGRST]'
6424   ;;
6425 osf*)
6426   symcode='[BCDEGQRST]'
6427   ;;
6428 solaris*)
6429   symcode='[BDRT]'
6430   ;;
6431 sco3.2v5*)
6432   symcode='[DT]'
6433   ;;
6434 sysv4.2uw2*)
6435   symcode='[DT]'
6436   ;;
6437 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6438   symcode='[ABDT]'
6439   ;;
6440 sysv4)
6441   symcode='[DFNSTU]'
6442   ;;
6443 esac
6444
6445 # Handle CRLF in mingw tool chain
6446 opt_cr=
6447 case $build_os in
6448 mingw*)
6449   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6450   ;;
6451 esac
6452
6453 # If we're using GNU nm, then use its standard symbol codes.
6454 case `$NM -V 2>&1` in
6455 *GNU* | *'with BFD'*)
6456   symcode='[ABCDGIRSTW]' ;;
6457 esac
6458
6459 # Try without a prefix undercore, then with it.
6460 for ac_symprfx in "" "_"; do
6461
6462   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6463   symxfrm="\\1 $ac_symprfx\\2 \\2"
6464
6465   # Write the raw and C identifiers.
6466   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6467
6468   # Check to see that the pipe works correctly.
6469   pipe_works=no
6470
6471   rm -f conftest*
6472   cat > conftest.$ac_ext <<EOF
6473 #ifdef __cplusplus
6474 extern "C" {
6475 #endif
6476 char nm_test_var;
6477 void nm_test_func(){}
6478 #ifdef __cplusplus
6479 }
6480 #endif
6481 int main(){nm_test_var='a';nm_test_func();return(0);}
6482 EOF
6483
6484   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6485   (eval $ac_compile) 2>&5
6486   ac_status=$?
6487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6488   (exit $ac_status); }; then
6489     # Now try to grab the symbols.
6490     nlist=conftest.nm
6491     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6492   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6493   ac_status=$?
6494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6495   (exit $ac_status); } && test -s "$nlist"; then
6496       # Try sorting and uniquifying the output.
6497       if sort "$nlist" | uniq > "$nlist"T; then
6498         mv -f "$nlist"T "$nlist"
6499       else
6500         rm -f "$nlist"T
6501       fi
6502
6503       # Make sure that we snagged all the symbols we need.
6504       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6505         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6506           cat <<EOF > conftest.$ac_ext
6507 #ifdef __cplusplus
6508 extern "C" {
6509 #endif
6510
6511 EOF
6512           # Now generate the symbol file.
6513           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6514
6515           cat <<EOF >> conftest.$ac_ext
6516 #if defined (__STDC__) && __STDC__
6517 # define lt_ptr_t void *
6518 #else
6519 # define lt_ptr_t char *
6520 # define const
6521 #endif
6522
6523 /* The mapping between symbol names and symbols. */
6524 const struct {
6525   const char *name;
6526   lt_ptr_t address;
6527 }
6528 lt_preloaded_symbols[] =
6529 {
6530 EOF
6531           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6532           cat <<\EOF >> conftest.$ac_ext
6533   {0, (lt_ptr_t) 0}
6534 };
6535
6536 #ifdef __cplusplus
6537 }
6538 #endif
6539 EOF
6540           # Now try linking the two files.
6541           mv conftest.$ac_objext conftstm.$ac_objext
6542           lt_save_LIBS="$LIBS"
6543           lt_save_CFLAGS="$CFLAGS"
6544           LIBS="conftstm.$ac_objext"
6545           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6546           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6547   (eval $ac_link) 2>&5
6548   ac_status=$?
6549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6551             pipe_works=yes
6552           fi
6553           LIBS="$lt_save_LIBS"
6554           CFLAGS="$lt_save_CFLAGS"
6555         else
6556           echo "cannot find nm_test_func in $nlist" >&5
6557         fi
6558       else
6559         echo "cannot find nm_test_var in $nlist" >&5
6560       fi
6561     else
6562       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6563     fi
6564   else
6565     echo "$progname: failed program was:" >&5
6566     cat conftest.$ac_ext >&5
6567   fi
6568   rm -rf conftest* conftst*
6569
6570   # Do not use the global_symbol_pipe unless it works.
6571   if test "$pipe_works" = yes; then
6572     break
6573   else
6574     lt_cv_sys_global_symbol_pipe=
6575   fi
6576 done
6577
6578 fi
6579
6580 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6581   lt_cv_sys_global_symbol_to_cdecl=
6582 fi
6583 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6584   { echo "$as_me:$LINENO: result: failed" >&5
6585 echo "${ECHO_T}failed" >&6; }
6586 else
6587   { echo "$as_me:$LINENO: result: ok" >&5
6588 echo "${ECHO_T}ok" >&6; }
6589 fi
6590
6591 { echo "$as_me:$LINENO: checking for objdir" >&5
6592 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6593 if test "${lt_cv_objdir+set}" = set; then
6594   echo $ECHO_N "(cached) $ECHO_C" >&6
6595 else
6596   rm -f .libs 2>/dev/null
6597 mkdir .libs 2>/dev/null
6598 if test -d .libs; then
6599   lt_cv_objdir=.libs
6600 else
6601   # MS-DOS does not allow filenames that begin with a dot.
6602   lt_cv_objdir=_libs
6603 fi
6604 rmdir .libs 2>/dev/null
6605 fi
6606 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6607 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6608 objdir=$lt_cv_objdir
6609
6610
6611
6612
6613
6614 case $host_os in
6615 aix3*)
6616   # AIX sometimes has problems with the GCC collect2 program.  For some
6617   # reason, if we set the COLLECT_NAMES environment variable, the problems
6618   # vanish in a puff of smoke.
6619   if test "X${COLLECT_NAMES+set}" != Xset; then
6620     COLLECT_NAMES=
6621     export COLLECT_NAMES
6622   fi
6623   ;;
6624 esac
6625
6626 # Sed substitution that helps us do robust quoting.  It backslashifies
6627 # metacharacters that are still active within double-quoted strings.
6628 Xsed='sed -e 1s/^X//'
6629 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6630
6631 # Same as above, but do not quote variable references.
6632 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6633
6634 # Sed substitution to delay expansion of an escaped shell variable in a
6635 # double_quote_subst'ed string.
6636 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6637
6638 # Sed substitution to avoid accidental globbing in evaled expressions
6639 no_glob_subst='s/\*/\\\*/g'
6640
6641 # Constants:
6642 rm="rm -f"
6643
6644 # Global variables:
6645 default_ofile=libtool
6646 can_build_shared=yes
6647
6648 # All known linkers require a `.a' archive for static linking (except MSVC,
6649 # which needs '.lib').
6650 libext=a
6651 ltmain="$ac_aux_dir/ltmain.sh"
6652 ofile="$default_ofile"
6653 with_gnu_ld="$lt_cv_prog_gnu_ld"
6654
6655 if test -n "$ac_tool_prefix"; then
6656   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6657 set dummy ${ac_tool_prefix}ar; ac_word=$2
6658 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6660 if test "${ac_cv_prog_AR+set}" = set; then
6661   echo $ECHO_N "(cached) $ECHO_C" >&6
6662 else
6663   if test -n "$AR"; then
6664   ac_cv_prog_AR="$AR" # Let the user override the test.
6665 else
6666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6667 for as_dir in $PATH
6668 do
6669   IFS=$as_save_IFS
6670   test -z "$as_dir" && as_dir=.
6671   for ac_exec_ext in '' $ac_executable_extensions; do
6672   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6673     ac_cv_prog_AR="${ac_tool_prefix}ar"
6674     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6675     break 2
6676   fi
6677 done
6678 done
6679 IFS=$as_save_IFS
6680
6681 fi
6682 fi
6683 AR=$ac_cv_prog_AR
6684 if test -n "$AR"; then
6685   { echo "$as_me:$LINENO: result: $AR" >&5
6686 echo "${ECHO_T}$AR" >&6; }
6687 else
6688   { echo "$as_me:$LINENO: result: no" >&5
6689 echo "${ECHO_T}no" >&6; }
6690 fi
6691
6692
6693 fi
6694 if test -z "$ac_cv_prog_AR"; then
6695   ac_ct_AR=$AR
6696   # Extract the first word of "ar", so it can be a program name with args.
6697 set dummy ar; ac_word=$2
6698 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6700 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6701   echo $ECHO_N "(cached) $ECHO_C" >&6
6702 else
6703   if test -n "$ac_ct_AR"; then
6704   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6705 else
6706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6707 for as_dir in $PATH
6708 do
6709   IFS=$as_save_IFS
6710   test -z "$as_dir" && as_dir=.
6711   for ac_exec_ext in '' $ac_executable_extensions; do
6712   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6713     ac_cv_prog_ac_ct_AR="ar"
6714     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6715     break 2
6716   fi
6717 done
6718 done
6719 IFS=$as_save_IFS
6720
6721 fi
6722 fi
6723 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6724 if test -n "$ac_ct_AR"; then
6725   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6726 echo "${ECHO_T}$ac_ct_AR" >&6; }
6727 else
6728   { echo "$as_me:$LINENO: result: no" >&5
6729 echo "${ECHO_T}no" >&6; }
6730 fi
6731
6732   if test "x$ac_ct_AR" = x; then
6733     AR="false"
6734   else
6735     case $cross_compiling:$ac_tool_warned in
6736 yes:)
6737 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6738 whose name does not start with the host triplet.  If you think this
6739 configuration is useful to you, please write to autoconf@gnu.org." >&5
6740 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6741 whose name does not start with the host triplet.  If you think this
6742 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6743 ac_tool_warned=yes ;;
6744 esac
6745     AR=$ac_ct_AR
6746   fi
6747 else
6748   AR="$ac_cv_prog_AR"
6749 fi
6750
6751 if test -n "$ac_tool_prefix"; then
6752   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6753 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6754 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6756 if test "${ac_cv_prog_RANLIB+set}" = set; then
6757   echo $ECHO_N "(cached) $ECHO_C" >&6
6758 else
6759   if test -n "$RANLIB"; then
6760   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6761 else
6762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6763 for as_dir in $PATH
6764 do
6765   IFS=$as_save_IFS
6766   test -z "$as_dir" && as_dir=.
6767   for ac_exec_ext in '' $ac_executable_extensions; do
6768   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6769     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6770     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6771     break 2
6772   fi
6773 done
6774 done
6775 IFS=$as_save_IFS
6776
6777 fi
6778 fi
6779 RANLIB=$ac_cv_prog_RANLIB
6780 if test -n "$RANLIB"; then
6781   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6782 echo "${ECHO_T}$RANLIB" >&6; }
6783 else
6784   { echo "$as_me:$LINENO: result: no" >&5
6785 echo "${ECHO_T}no" >&6; }
6786 fi
6787
6788
6789 fi
6790 if test -z "$ac_cv_prog_RANLIB"; then
6791   ac_ct_RANLIB=$RANLIB
6792   # Extract the first word of "ranlib", so it can be a program name with args.
6793 set dummy ranlib; ac_word=$2
6794 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6796 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6797   echo $ECHO_N "(cached) $ECHO_C" >&6
6798 else
6799   if test -n "$ac_ct_RANLIB"; then
6800   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6801 else
6802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6803 for as_dir in $PATH
6804 do
6805   IFS=$as_save_IFS
6806   test -z "$as_dir" && as_dir=.
6807   for ac_exec_ext in '' $ac_executable_extensions; do
6808   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6809     ac_cv_prog_ac_ct_RANLIB="ranlib"
6810     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6811     break 2
6812   fi
6813 done
6814 done
6815 IFS=$as_save_IFS
6816
6817 fi
6818 fi
6819 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6820 if test -n "$ac_ct_RANLIB"; then
6821   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6822 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6823 else
6824   { echo "$as_me:$LINENO: result: no" >&5
6825 echo "${ECHO_T}no" >&6; }
6826 fi
6827
6828   if test "x$ac_ct_RANLIB" = x; then
6829     RANLIB=":"
6830   else
6831     case $cross_compiling:$ac_tool_warned in
6832 yes:)
6833 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6834 whose name does not start with the host triplet.  If you think this
6835 configuration is useful to you, please write to autoconf@gnu.org." >&5
6836 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6837 whose name does not start with the host triplet.  If you think this
6838 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6839 ac_tool_warned=yes ;;
6840 esac
6841     RANLIB=$ac_ct_RANLIB
6842   fi
6843 else
6844   RANLIB="$ac_cv_prog_RANLIB"
6845 fi
6846
6847 if test -n "$ac_tool_prefix"; then
6848   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6849 set dummy ${ac_tool_prefix}strip; ac_word=$2
6850 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6852 if test "${ac_cv_prog_STRIP+set}" = set; then
6853   echo $ECHO_N "(cached) $ECHO_C" >&6
6854 else
6855   if test -n "$STRIP"; then
6856   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6857 else
6858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6859 for as_dir in $PATH
6860 do
6861   IFS=$as_save_IFS
6862   test -z "$as_dir" && as_dir=.
6863   for ac_exec_ext in '' $ac_executable_extensions; do
6864   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6865     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6866     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6867     break 2
6868   fi
6869 done
6870 done
6871 IFS=$as_save_IFS
6872
6873 fi
6874 fi
6875 STRIP=$ac_cv_prog_STRIP
6876 if test -n "$STRIP"; then
6877   { echo "$as_me:$LINENO: result: $STRIP" >&5
6878 echo "${ECHO_T}$STRIP" >&6; }
6879 else
6880   { echo "$as_me:$LINENO: result: no" >&5
6881 echo "${ECHO_T}no" >&6; }
6882 fi
6883
6884
6885 fi
6886 if test -z "$ac_cv_prog_STRIP"; then
6887   ac_ct_STRIP=$STRIP
6888   # Extract the first word of "strip", so it can be a program name with args.
6889 set dummy strip; ac_word=$2
6890 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6892 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6893   echo $ECHO_N "(cached) $ECHO_C" >&6
6894 else
6895   if test -n "$ac_ct_STRIP"; then
6896   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6897 else
6898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6899 for as_dir in $PATH
6900 do
6901   IFS=$as_save_IFS
6902   test -z "$as_dir" && as_dir=.
6903   for ac_exec_ext in '' $ac_executable_extensions; do
6904   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6905     ac_cv_prog_ac_ct_STRIP="strip"
6906     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6907     break 2
6908   fi
6909 done
6910 done
6911 IFS=$as_save_IFS
6912
6913 fi
6914 fi
6915 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6916 if test -n "$ac_ct_STRIP"; then
6917   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6918 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6919 else
6920   { echo "$as_me:$LINENO: result: no" >&5
6921 echo "${ECHO_T}no" >&6; }
6922 fi
6923
6924   if test "x$ac_ct_STRIP" = x; then
6925     STRIP=":"
6926   else
6927     case $cross_compiling:$ac_tool_warned in
6928 yes:)
6929 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6930 whose name does not start with the host triplet.  If you think this
6931 configuration is useful to you, please write to autoconf@gnu.org." >&5
6932 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6933 whose name does not start with the host triplet.  If you think this
6934 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6935 ac_tool_warned=yes ;;
6936 esac
6937     STRIP=$ac_ct_STRIP
6938   fi
6939 else
6940   STRIP="$ac_cv_prog_STRIP"
6941 fi
6942
6943
6944 old_CC="$CC"
6945 old_CFLAGS="$CFLAGS"
6946
6947 # Set sane defaults for various variables
6948 test -z "$AR" && AR=ar
6949 test -z "$AR_FLAGS" && AR_FLAGS=cru
6950 test -z "$AS" && AS=as
6951 test -z "$CC" && CC=cc
6952 test -z "$LTCC" && LTCC=$CC
6953 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6954 test -z "$DLLTOOL" && DLLTOOL=dlltool
6955 test -z "$LD" && LD=ld
6956 test -z "$LN_S" && LN_S="ln -s"
6957 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6958 test -z "$NM" && NM=nm
6959 test -z "$SED" && SED=sed
6960 test -z "$OBJDUMP" && OBJDUMP=objdump
6961 test -z "$RANLIB" && RANLIB=:
6962 test -z "$STRIP" && STRIP=:
6963 test -z "$ac_objext" && ac_objext=o
6964
6965 # Determine commands to create old-style static archives.
6966 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6967 old_postinstall_cmds='chmod 644 $oldlib'
6968 old_postuninstall_cmds=
6969
6970 if test -n "$RANLIB"; then
6971   case $host_os in
6972   openbsd*)
6973     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6974     ;;
6975   *)
6976     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6977     ;;
6978   esac
6979   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6980 fi
6981
6982 for cc_temp in $compiler""; do
6983   case $cc_temp in
6984     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6985     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6986     \-*) ;;
6987     *) break;;
6988   esac
6989 done
6990 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6991
6992
6993 # Only perform the check for file, if the check method requires it
6994 case $deplibs_check_method in
6995 file_magic*)
6996   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6997     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6998 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6999 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7000   echo $ECHO_N "(cached) $ECHO_C" >&6
7001 else
7002   case $MAGIC_CMD in
7003 [\\/*] |  ?:[\\/]*)
7004   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7005   ;;
7006 *)
7007   lt_save_MAGIC_CMD="$MAGIC_CMD"
7008   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7009   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7010   for ac_dir in $ac_dummy; do
7011     IFS="$lt_save_ifs"
7012     test -z "$ac_dir" && ac_dir=.
7013     if test -f $ac_dir/${ac_tool_prefix}file; then
7014       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7015       if test -n "$file_magic_test_file"; then
7016         case $deplibs_check_method in
7017         "file_magic "*)
7018           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7019           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7020           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7021             $EGREP "$file_magic_regex" > /dev/null; then
7022             :
7023           else
7024             cat <<EOF 1>&2
7025
7026 *** Warning: the command libtool uses to detect shared libraries,
7027 *** $file_magic_cmd, produces output that libtool cannot recognize.
7028 *** The result is that libtool may fail to recognize shared libraries
7029 *** as such.  This will affect the creation of libtool libraries that
7030 *** depend on shared libraries, but programs linked with such libtool
7031 *** libraries will work regardless of this problem.  Nevertheless, you
7032 *** may want to report the problem to your system manager and/or to
7033 *** bug-libtool@gnu.org
7034
7035 EOF
7036           fi ;;
7037         esac
7038       fi
7039       break
7040     fi
7041   done
7042   IFS="$lt_save_ifs"
7043   MAGIC_CMD="$lt_save_MAGIC_CMD"
7044   ;;
7045 esac
7046 fi
7047
7048 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7049 if test -n "$MAGIC_CMD"; then
7050   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7051 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7052 else
7053   { echo "$as_me:$LINENO: result: no" >&5
7054 echo "${ECHO_T}no" >&6; }
7055 fi
7056
7057 if test -z "$lt_cv_path_MAGIC_CMD"; then
7058   if test -n "$ac_tool_prefix"; then
7059     { echo "$as_me:$LINENO: checking for file" >&5
7060 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7061 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7062   echo $ECHO_N "(cached) $ECHO_C" >&6
7063 else
7064   case $MAGIC_CMD in
7065 [\\/*] |  ?:[\\/]*)
7066   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7067   ;;
7068 *)
7069   lt_save_MAGIC_CMD="$MAGIC_CMD"
7070   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7071   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7072   for ac_dir in $ac_dummy; do
7073     IFS="$lt_save_ifs"
7074     test -z "$ac_dir" && ac_dir=.
7075     if test -f $ac_dir/file; then
7076       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7077       if test -n "$file_magic_test_file"; then
7078         case $deplibs_check_method in
7079         "file_magic "*)
7080           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7081           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7082           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7083             $EGREP "$file_magic_regex" > /dev/null; then
7084             :
7085           else
7086             cat <<EOF 1>&2
7087
7088 *** Warning: the command libtool uses to detect shared libraries,
7089 *** $file_magic_cmd, produces output that libtool cannot recognize.
7090 *** The result is that libtool may fail to recognize shared libraries
7091 *** as such.  This will affect the creation of libtool libraries that
7092 *** depend on shared libraries, but programs linked with such libtool
7093 *** libraries will work regardless of this problem.  Nevertheless, you
7094 *** may want to report the problem to your system manager and/or to
7095 *** bug-libtool@gnu.org
7096
7097 EOF
7098           fi ;;
7099         esac
7100       fi
7101       break
7102     fi
7103   done
7104   IFS="$lt_save_ifs"
7105   MAGIC_CMD="$lt_save_MAGIC_CMD"
7106   ;;
7107 esac
7108 fi
7109
7110 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7111 if test -n "$MAGIC_CMD"; then
7112   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7113 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7114 else
7115   { echo "$as_me:$LINENO: result: no" >&5
7116 echo "${ECHO_T}no" >&6; }
7117 fi
7118
7119   else
7120     MAGIC_CMD=:
7121   fi
7122 fi
7123
7124   fi
7125   ;;
7126 esac
7127
7128
7129   case $host_os in
7130     rhapsody* | darwin*)
7131     if test -n "$ac_tool_prefix"; then
7132   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7133 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7134 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7136 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7137   echo $ECHO_N "(cached) $ECHO_C" >&6
7138 else
7139   if test -n "$DSYMUTIL"; then
7140   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7141 else
7142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7143 for as_dir in $PATH
7144 do
7145   IFS=$as_save_IFS
7146   test -z "$as_dir" && as_dir=.
7147   for ac_exec_ext in '' $ac_executable_extensions; do
7148   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7149     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7150     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7151     break 2
7152   fi
7153 done
7154 done
7155 IFS=$as_save_IFS
7156
7157 fi
7158 fi
7159 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7160 if test -n "$DSYMUTIL"; then
7161   { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7162 echo "${ECHO_T}$DSYMUTIL" >&6; }
7163 else
7164   { echo "$as_me:$LINENO: result: no" >&5
7165 echo "${ECHO_T}no" >&6; }
7166 fi
7167
7168
7169 fi
7170 if test -z "$ac_cv_prog_DSYMUTIL"; then
7171   ac_ct_DSYMUTIL=$DSYMUTIL
7172   # Extract the first word of "dsymutil", so it can be a program name with args.
7173 set dummy dsymutil; ac_word=$2
7174 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7176 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7177   echo $ECHO_N "(cached) $ECHO_C" >&6
7178 else
7179   if test -n "$ac_ct_DSYMUTIL"; then
7180   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7181 else
7182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7183 for as_dir in $PATH
7184 do
7185   IFS=$as_save_IFS
7186   test -z "$as_dir" && as_dir=.
7187   for ac_exec_ext in '' $ac_executable_extensions; do
7188   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7189     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7190     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7191     break 2
7192   fi
7193 done
7194 done
7195 IFS=$as_save_IFS
7196
7197 fi
7198 fi
7199 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7200 if test -n "$ac_ct_DSYMUTIL"; then
7201   { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7202 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7203 else
7204   { echo "$as_me:$LINENO: result: no" >&5
7205 echo "${ECHO_T}no" >&6; }
7206 fi
7207
7208   if test "x$ac_ct_DSYMUTIL" = x; then
7209     DSYMUTIL=":"
7210   else
7211     case $cross_compiling:$ac_tool_warned in
7212 yes:)
7213 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7214 whose name does not start with the host triplet.  If you think this
7215 configuration is useful to you, please write to autoconf@gnu.org." >&5
7216 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7217 whose name does not start with the host triplet.  If you think this
7218 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7219 ac_tool_warned=yes ;;
7220 esac
7221     DSYMUTIL=$ac_ct_DSYMUTIL
7222   fi
7223 else
7224   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7225 fi
7226
7227     if test -n "$ac_tool_prefix"; then
7228   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7229 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7230 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7232 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7233   echo $ECHO_N "(cached) $ECHO_C" >&6
7234 else
7235   if test -n "$NMEDIT"; then
7236   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7237 else
7238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7239 for as_dir in $PATH
7240 do
7241   IFS=$as_save_IFS
7242   test -z "$as_dir" && as_dir=.
7243   for ac_exec_ext in '' $ac_executable_extensions; do
7244   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7245     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7246     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7247     break 2
7248   fi
7249 done
7250 done
7251 IFS=$as_save_IFS
7252
7253 fi
7254 fi
7255 NMEDIT=$ac_cv_prog_NMEDIT
7256 if test -n "$NMEDIT"; then
7257   { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7258 echo "${ECHO_T}$NMEDIT" >&6; }
7259 else
7260   { echo "$as_me:$LINENO: result: no" >&5
7261 echo "${ECHO_T}no" >&6; }
7262 fi
7263
7264
7265 fi
7266 if test -z "$ac_cv_prog_NMEDIT"; then
7267   ac_ct_NMEDIT=$NMEDIT
7268   # Extract the first word of "nmedit", so it can be a program name with args.
7269 set dummy nmedit; ac_word=$2
7270 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7272 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7273   echo $ECHO_N "(cached) $ECHO_C" >&6
7274 else
7275   if test -n "$ac_ct_NMEDIT"; then
7276   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7277 else
7278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7279 for as_dir in $PATH
7280 do
7281   IFS=$as_save_IFS
7282   test -z "$as_dir" && as_dir=.
7283   for ac_exec_ext in '' $ac_executable_extensions; do
7284   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7285     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7286     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7287     break 2
7288   fi
7289 done
7290 done
7291 IFS=$as_save_IFS
7292
7293 fi
7294 fi
7295 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7296 if test -n "$ac_ct_NMEDIT"; then
7297   { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7298 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7299 else
7300   { echo "$as_me:$LINENO: result: no" >&5
7301 echo "${ECHO_T}no" >&6; }
7302 fi
7303
7304   if test "x$ac_ct_NMEDIT" = x; then
7305     NMEDIT=":"
7306   else
7307     case $cross_compiling:$ac_tool_warned in
7308 yes:)
7309 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7310 whose name does not start with the host triplet.  If you think this
7311 configuration is useful to you, please write to autoconf@gnu.org." >&5
7312 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7313 whose name does not start with the host triplet.  If you think this
7314 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7315 ac_tool_warned=yes ;;
7316 esac
7317     NMEDIT=$ac_ct_NMEDIT
7318   fi
7319 else
7320   NMEDIT="$ac_cv_prog_NMEDIT"
7321 fi
7322
7323
7324     { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7325 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7326 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7327   echo $ECHO_N "(cached) $ECHO_C" >&6
7328 else
7329   lt_cv_apple_cc_single_mod=no
7330       if test -z "${LT_MULTI_MODULE}"; then
7331    # By default we will add the -single_module flag. You can override
7332    # by either setting the environment variable LT_MULTI_MODULE
7333    # non-empty at configure time, or by adding -multi_module to the
7334    # link flags.
7335    echo "int foo(void){return 1;}" > conftest.c
7336    $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7337      -dynamiclib ${wl}-single_module conftest.c
7338    if test -f libconftest.dylib; then
7339      lt_cv_apple_cc_single_mod=yes
7340      rm -rf libconftest.dylib*
7341    fi
7342    rm conftest.c
7343       fi
7344 fi
7345 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7346 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7347     { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7348 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7349 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7350   echo $ECHO_N "(cached) $ECHO_C" >&6
7351 else
7352   lt_cv_ld_exported_symbols_list=no
7353       save_LDFLAGS=$LDFLAGS
7354       echo "_main" > conftest.sym
7355       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7356       cat >conftest.$ac_ext <<_ACEOF
7357 /* confdefs.h.  */
7358 _ACEOF
7359 cat confdefs.h >>conftest.$ac_ext
7360 cat >>conftest.$ac_ext <<_ACEOF
7361 /* end confdefs.h.  */
7362
7363 int
7364 main ()
7365 {
7366
7367   ;
7368   return 0;
7369 }
7370 _ACEOF
7371 rm -f conftest.$ac_objext conftest$ac_exeext
7372 if { (ac_try="$ac_link"
7373 case "(($ac_try" in
7374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7375   *) ac_try_echo=$ac_try;;
7376 esac
7377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7378   (eval "$ac_link") 2>conftest.er1
7379   ac_status=$?
7380   grep -v '^ *+' conftest.er1 >conftest.err
7381   rm -f conftest.er1
7382   cat conftest.err >&5
7383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7384   (exit $ac_status); } && {
7385          test -z "$ac_c_werror_flag" ||
7386          test ! -s conftest.err
7387        } && test -s conftest$ac_exeext &&
7388        $as_test_x conftest$ac_exeext; then
7389   lt_cv_ld_exported_symbols_list=yes
7390 else
7391   echo "$as_me: failed program was:" >&5
7392 sed 's/^/| /' conftest.$ac_ext >&5
7393
7394         lt_cv_ld_exported_symbols_list=no
7395 fi
7396
7397 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7398       conftest$ac_exeext conftest.$ac_ext
7399    LDFLAGS="$save_LDFLAGS"
7400
7401 fi
7402 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7403 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7404     case $host_os in
7405     rhapsody* | darwin1.[0123])
7406       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7407     darwin1.*)
7408      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7409     darwin*)
7410       # if running on 10.5 or later, the deployment target defaults
7411       # to the OS version, if on x86, and 10.4, the deployment
7412       # target defaults to 10.4. Don't you love it?
7413       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7414    10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7415      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7416    10.[012]*)
7417      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7418    10.*)
7419      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7420       esac
7421     ;;
7422   esac
7423     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7424       _lt_dar_single_mod='$single_module'
7425     fi
7426     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7427       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7428     else
7429       _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7430     fi
7431     if test "$DSYMUTIL" != ":"; then
7432       _lt_dsymutil="~$DSYMUTIL \$lib || :"
7433     else
7434       _lt_dsymutil=
7435     fi
7436     ;;
7437   esac
7438
7439
7440 enable_dlopen=no
7441 enable_win32_dll=no
7442
7443 # Check whether --enable-libtool-lock was given.
7444 if test "${enable_libtool_lock+set}" = set; then
7445   enableval=$enable_libtool_lock;
7446 fi
7447
7448 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7449
7450
7451 # Check whether --with-pic was given.
7452 if test "${with_pic+set}" = set; then
7453   withval=$with_pic; pic_mode="$withval"
7454 else
7455   pic_mode=default
7456 fi
7457
7458 test -z "$pic_mode" && pic_mode=default
7459
7460 # Use C for the default configuration in the libtool script
7461 tagname=
7462 lt_save_CC="$CC"
7463 ac_ext=c
7464 ac_cpp='$CPP $CPPFLAGS'
7465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7468
7469
7470 # Source file extension for C test sources.
7471 ac_ext=c
7472
7473 # Object file extension for compiled C test sources.
7474 objext=o
7475 objext=$objext
7476
7477 # Code to be used in simple compile tests
7478 lt_simple_compile_test_code="int some_variable = 0;"
7479
7480 # Code to be used in simple link tests
7481 lt_simple_link_test_code='int main(){return(0);}'
7482
7483
7484 # If no C compiler was specified, use CC.
7485 LTCC=${LTCC-"$CC"}
7486
7487 # If no C compiler flags were specified, use CFLAGS.
7488 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7489
7490 # Allow CC to be a program name with arguments.
7491 compiler=$CC
7492
7493
7494 # save warnings/boilerplate of simple test code
7495 ac_outfile=conftest.$ac_objext
7496 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7497 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7498 _lt_compiler_boilerplate=`cat conftest.err`
7499 $rm conftest*
7500
7501 ac_outfile=conftest.$ac_objext
7502 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7503 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7504 _lt_linker_boilerplate=`cat conftest.err`
7505 $rm -r conftest*
7506
7507
7508
7509 lt_prog_compiler_no_builtin_flag=
7510
7511 if test "$GCC" = yes; then
7512   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7513
7514
7515 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7516 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7517 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7518   echo $ECHO_N "(cached) $ECHO_C" >&6
7519 else
7520   lt_cv_prog_compiler_rtti_exceptions=no
7521   ac_outfile=conftest.$ac_objext
7522    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7523    lt_compiler_flag="-fno-rtti -fno-exceptions"
7524    # Insert the option either (1) after the last *FLAGS variable, or
7525    # (2) before a word containing "conftest.", or (3) at the end.
7526    # Note that $ac_compile itself does not contain backslashes and begins
7527    # with a dollar sign (not a hyphen), so the echo should work correctly.
7528    # The option is referenced via a variable to avoid confusing sed.
7529    lt_compile=`echo "$ac_compile" | $SED \
7530    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7531    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7532    -e 's:$: $lt_compiler_flag:'`
7533    (eval echo "\"\$as_me:7533: $lt_compile\"" >&5)
7534    (eval "$lt_compile" 2>conftest.err)
7535    ac_status=$?
7536    cat conftest.err >&5
7537    echo "$as_me:7537: \$? = $ac_status" >&5
7538    if (exit $ac_status) && test -s "$ac_outfile"; then
7539      # The compiler can only warn and ignore the option if not recognized
7540      # So say no if there are warnings other than the usual output.
7541      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7542      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7543      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7544        lt_cv_prog_compiler_rtti_exceptions=yes
7545      fi
7546    fi
7547    $rm conftest*
7548
7549 fi
7550 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7551 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7552
7553 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7554     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7555 else
7556     :
7557 fi
7558
7559 fi
7560
7561 lt_prog_compiler_wl=
7562 lt_prog_compiler_pic=
7563 lt_prog_compiler_static=
7564
7565 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7566 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7567
7568   if test "$GCC" = yes; then
7569     lt_prog_compiler_wl='-Wl,'
7570     lt_prog_compiler_static='-static'
7571
7572     case $host_os in
7573       aix*)
7574       # All AIX code is PIC.
7575       if test "$host_cpu" = ia64; then
7576         # AIX 5 now supports IA64 processor
7577         lt_prog_compiler_static='-Bstatic'
7578       fi
7579       ;;
7580
7581     amigaos*)
7582       # FIXME: we need at least 68020 code to build shared libraries, but
7583       # adding the `-m68020' flag to GCC prevents building anything better,
7584       # like `-m68040'.
7585       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7586       ;;
7587
7588     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7589       # PIC is the default for these OSes.
7590       ;;
7591
7592     mingw* | cygwin* | pw32* | os2*)
7593       # This hack is so that the source file can tell whether it is being
7594       # built for inclusion in a dll (and should export symbols for example).
7595       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7596       # (--disable-auto-import) libraries
7597       lt_prog_compiler_pic='-DDLL_EXPORT'
7598       ;;
7599
7600     darwin* | rhapsody*)
7601       # PIC is the default on this platform
7602       # Common symbols not allowed in MH_DYLIB files
7603       lt_prog_compiler_pic='-fno-common'
7604       ;;
7605
7606     interix[3-9]*)
7607       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7608       # Instead, we relocate shared libraries at runtime.
7609       ;;
7610
7611     msdosdjgpp*)
7612       # Just because we use GCC doesn't mean we suddenly get shared libraries
7613       # on systems that don't support them.
7614       lt_prog_compiler_can_build_shared=no
7615       enable_shared=no
7616       ;;
7617
7618     sysv4*MP*)
7619       if test -d /usr/nec; then
7620         lt_prog_compiler_pic=-Kconform_pic
7621       fi
7622       ;;
7623
7624     hpux*)
7625       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7626       # not for PA HP-UX.
7627       case $host_cpu in
7628       hppa*64*|ia64*)
7629         # +Z the default
7630         ;;
7631       *)
7632         lt_prog_compiler_pic='-fPIC'
7633         ;;
7634       esac
7635       ;;
7636
7637     *)
7638       lt_prog_compiler_pic='-fPIC'
7639       ;;
7640     esac
7641   else
7642     # PORTME Check for flag to pass linker flags through the system compiler.
7643     case $host_os in
7644     aix*)
7645       lt_prog_compiler_wl='-Wl,'
7646       if test "$host_cpu" = ia64; then
7647         # AIX 5 now supports IA64 processor
7648         lt_prog_compiler_static='-Bstatic'
7649       else
7650         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7651       fi
7652       ;;
7653       darwin*)
7654         # PIC is the default on this platform
7655         # Common symbols not allowed in MH_DYLIB files
7656        case $cc_basename in
7657          xlc*)
7658          lt_prog_compiler_pic='-qnocommon'
7659          lt_prog_compiler_wl='-Wl,'
7660          ;;
7661        esac
7662        ;;
7663
7664     mingw* | cygwin* | pw32* | os2*)
7665       # This hack is so that the source file can tell whether it is being
7666       # built for inclusion in a dll (and should export symbols for example).
7667       lt_prog_compiler_pic='-DDLL_EXPORT'
7668       ;;
7669
7670     hpux9* | hpux10* | hpux11*)
7671       lt_prog_compiler_wl='-Wl,'
7672       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7673       # not for PA HP-UX.
7674       case $host_cpu in
7675       hppa*64*|ia64*)
7676         # +Z the default
7677         ;;
7678       *)
7679         lt_prog_compiler_pic='+Z'
7680         ;;
7681       esac
7682       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7683       lt_prog_compiler_static='${wl}-a ${wl}archive'
7684       ;;
7685
7686     irix5* | irix6* | nonstopux*)
7687       lt_prog_compiler_wl='-Wl,'
7688       # PIC (with -KPIC) is the default.
7689       lt_prog_compiler_static='-non_shared'
7690       ;;
7691
7692     newsos6)
7693       lt_prog_compiler_pic='-KPIC'
7694       lt_prog_compiler_static='-Bstatic'
7695       ;;
7696
7697     linux* | k*bsd*-gnu)
7698       case $cc_basename in
7699       icc* | ecc*)
7700         lt_prog_compiler_wl='-Wl,'
7701         lt_prog_compiler_pic='-KPIC'
7702         lt_prog_compiler_static='-static'
7703         ;;
7704       pgcc* | pgf77* | pgf90* | pgf95*)
7705         # Portland Group compilers (*not* the Pentium gcc compiler,
7706         # which looks to be a dead project)
7707         lt_prog_compiler_wl='-Wl,'
7708         lt_prog_compiler_pic='-fpic'
7709         lt_prog_compiler_static='-Bstatic'
7710         ;;
7711       ccc*)
7712         lt_prog_compiler_wl='-Wl,'
7713         # All Alpha code is PIC.
7714         lt_prog_compiler_static='-non_shared'
7715         ;;
7716       *)
7717         case `$CC -V 2>&1 | sed 5q` in
7718         *Sun\ C*)
7719           # Sun C 5.9
7720           lt_prog_compiler_pic='-KPIC'
7721           lt_prog_compiler_static='-Bstatic'
7722           lt_prog_compiler_wl='-Wl,'
7723           ;;
7724         *Sun\ F*)
7725           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7726           lt_prog_compiler_pic='-KPIC'
7727           lt_prog_compiler_static='-Bstatic'
7728           lt_prog_compiler_wl=''
7729           ;;
7730         esac
7731         ;;
7732       esac
7733       ;;
7734
7735     osf3* | osf4* | osf5*)
7736       lt_prog_compiler_wl='-Wl,'
7737       # All OSF/1 code is PIC.
7738       lt_prog_compiler_static='-non_shared'
7739       ;;
7740
7741     rdos*)
7742       lt_prog_compiler_static='-non_shared'
7743       ;;
7744
7745     solaris*)
7746       lt_prog_compiler_pic='-KPIC'
7747       lt_prog_compiler_static='-Bstatic'
7748       case $cc_basename in
7749       f77* | f90* | f95*)
7750         lt_prog_compiler_wl='-Qoption ld ';;
7751       *)
7752         lt_prog_compiler_wl='-Wl,';;
7753       esac
7754       ;;
7755
7756     sunos4*)
7757       lt_prog_compiler_wl='-Qoption ld '
7758       lt_prog_compiler_pic='-PIC'
7759       lt_prog_compiler_static='-Bstatic'
7760       ;;
7761
7762     sysv4 | sysv4.2uw2* | sysv4.3*)
7763       lt_prog_compiler_wl='-Wl,'
7764       lt_prog_compiler_pic='-KPIC'
7765       lt_prog_compiler_static='-Bstatic'
7766       ;;
7767
7768     sysv4*MP*)
7769       if test -d /usr/nec ;then
7770         lt_prog_compiler_pic='-Kconform_pic'
7771         lt_prog_compiler_static='-Bstatic'
7772       fi
7773       ;;
7774
7775     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7776       lt_prog_compiler_wl='-Wl,'
7777       lt_prog_compiler_pic='-KPIC'
7778       lt_prog_compiler_static='-Bstatic'
7779       ;;
7780
7781     unicos*)
7782       lt_prog_compiler_wl='-Wl,'
7783       lt_prog_compiler_can_build_shared=no
7784       ;;
7785
7786     uts4*)
7787       lt_prog_compiler_pic='-pic'
7788       lt_prog_compiler_static='-Bstatic'
7789       ;;
7790
7791     *)
7792       lt_prog_compiler_can_build_shared=no
7793       ;;
7794     esac
7795   fi
7796
7797 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7798 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7799
7800 #
7801 # Check to make sure the PIC flag actually works.
7802 #
7803 if test -n "$lt_prog_compiler_pic"; then
7804
7805 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7806 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7807 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7808   echo $ECHO_N "(cached) $ECHO_C" >&6
7809 else
7810   lt_cv_prog_compiler_pic_works=no
7811   ac_outfile=conftest.$ac_objext
7812    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7813    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7814    # Insert the option either (1) after the last *FLAGS variable, or
7815    # (2) before a word containing "conftest.", or (3) at the end.
7816    # Note that $ac_compile itself does not contain backslashes and begins
7817    # with a dollar sign (not a hyphen), so the echo should work correctly.
7818    # The option is referenced via a variable to avoid confusing sed.
7819    lt_compile=`echo "$ac_compile" | $SED \
7820    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7821    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7822    -e 's:$: $lt_compiler_flag:'`
7823    (eval echo "\"\$as_me:7823: $lt_compile\"" >&5)
7824    (eval "$lt_compile" 2>conftest.err)
7825    ac_status=$?
7826    cat conftest.err >&5
7827    echo "$as_me:7827: \$? = $ac_status" >&5
7828    if (exit $ac_status) && test -s "$ac_outfile"; then
7829      # The compiler can only warn and ignore the option if not recognized
7830      # So say no if there are warnings other than the usual output.
7831      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7832      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7833      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7834        lt_cv_prog_compiler_pic_works=yes
7835      fi
7836    fi
7837    $rm conftest*
7838
7839 fi
7840 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7841 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7842
7843 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7844     case $lt_prog_compiler_pic in
7845      "" | " "*) ;;
7846      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7847      esac
7848 else
7849     lt_prog_compiler_pic=
7850      lt_prog_compiler_can_build_shared=no
7851 fi
7852
7853 fi
7854 case $host_os in
7855   # For platforms which do not support PIC, -DPIC is meaningless:
7856   *djgpp*)
7857     lt_prog_compiler_pic=
7858     ;;
7859   *)
7860     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7861     ;;
7862 esac
7863
7864 #
7865 # Check to make sure the static flag actually works.
7866 #
7867 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7868 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7869 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7870 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7871   echo $ECHO_N "(cached) $ECHO_C" >&6
7872 else
7873   lt_cv_prog_compiler_static_works=no
7874    save_LDFLAGS="$LDFLAGS"
7875    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7876    echo "$lt_simple_link_test_code" > conftest.$ac_ext
7877    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7878      # The linker can only warn and ignore the option if not recognized
7879      # So say no if there are warnings
7880      if test -s conftest.err; then
7881        # Append any errors to the config.log.
7882        cat conftest.err 1>&5
7883        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7884        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7885        if diff conftest.exp conftest.er2 >/dev/null; then
7886          lt_cv_prog_compiler_static_works=yes
7887        fi
7888      else
7889        lt_cv_prog_compiler_static_works=yes
7890      fi
7891    fi
7892    $rm -r conftest*
7893    LDFLAGS="$save_LDFLAGS"
7894
7895 fi
7896 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7897 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
7898
7899 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7900     :
7901 else
7902     lt_prog_compiler_static=
7903 fi
7904
7905
7906 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7907 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7908 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7909   echo $ECHO_N "(cached) $ECHO_C" >&6
7910 else
7911   lt_cv_prog_compiler_c_o=no
7912    $rm -r conftest 2>/dev/null
7913    mkdir conftest
7914    cd conftest
7915    mkdir out
7916    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7917
7918    lt_compiler_flag="-o out/conftest2.$ac_objext"
7919    # Insert the option either (1) after the last *FLAGS variable, or
7920    # (2) before a word containing "conftest.", or (3) at the end.
7921    # Note that $ac_compile itself does not contain backslashes and begins
7922    # with a dollar sign (not a hyphen), so the echo should work correctly.
7923    lt_compile=`echo "$ac_compile" | $SED \
7924    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7925    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7926    -e 's:$: $lt_compiler_flag:'`
7927    (eval echo "\"\$as_me:7927: $lt_compile\"" >&5)
7928    (eval "$lt_compile" 2>out/conftest.err)
7929    ac_status=$?
7930    cat out/conftest.err >&5
7931    echo "$as_me:7931: \$? = $ac_status" >&5
7932    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7933    then
7934      # The compiler can only warn and ignore the option if not recognized
7935      # So say no if there are warnings
7936      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7937      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7938      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7939        lt_cv_prog_compiler_c_o=yes
7940      fi
7941    fi
7942    chmod u+w . 2>&5
7943    $rm conftest*
7944    # SGI C++ compiler will create directory out/ii_files/ for
7945    # template instantiation
7946    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7947    $rm out/* && rmdir out
7948    cd ..
7949    rmdir conftest
7950    $rm conftest*
7951
7952 fi
7953 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7954 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7955
7956
7957 hard_links="nottested"
7958 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7959   # do not overwrite the value of need_locks provided by the user
7960   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7961 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7962   hard_links=yes
7963   $rm conftest*
7964   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7965   touch conftest.a
7966   ln conftest.a conftest.b 2>&5 || hard_links=no
7967   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7968   { echo "$as_me:$LINENO: result: $hard_links" >&5
7969 echo "${ECHO_T}$hard_links" >&6; }
7970   if test "$hard_links" = no; then
7971     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7972 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7973     need_locks=warn
7974   fi
7975 else
7976   need_locks=no
7977 fi
7978
7979 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7980 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7981
7982   runpath_var=
7983   allow_undefined_flag=
7984   enable_shared_with_static_runtimes=no
7985   archive_cmds=
7986   archive_expsym_cmds=
7987   old_archive_From_new_cmds=
7988   old_archive_from_expsyms_cmds=
7989   export_dynamic_flag_spec=
7990   whole_archive_flag_spec=
7991   thread_safe_flag_spec=
7992   hardcode_libdir_flag_spec=
7993   hardcode_libdir_flag_spec_ld=
7994   hardcode_libdir_separator=
7995   hardcode_direct=no
7996   hardcode_minus_L=no
7997   hardcode_shlibpath_var=unsupported
7998   link_all_deplibs=unknown
7999   hardcode_automatic=no
8000   module_cmds=
8001   module_expsym_cmds=
8002   always_export_symbols=no
8003   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8004   # include_expsyms should be a list of space-separated symbols to be *always*
8005   # included in the symbol list
8006   include_expsyms=
8007   # exclude_expsyms can be an extended regexp of symbols to exclude
8008   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8009   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8010   # as well as any symbol that contains `d'.
8011   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8012   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8013   # platforms (ab)use it in PIC code, but their linkers get confused if
8014   # the symbol is explicitly referenced.  Since portable code cannot
8015   # rely on this symbol name, it's probably fine to never include it in
8016   # preloaded symbol tables.
8017   # Exclude shared library initialization/finalization symbols.
8018   extract_expsyms_cmds=
8019   # Just being paranoid about ensuring that cc_basename is set.
8020   for cc_temp in $compiler""; do
8021   case $cc_temp in
8022     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8023     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8024     \-*) ;;
8025     *) break;;
8026   esac
8027 done
8028 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8029
8030   case $host_os in
8031   cygwin* | mingw* | pw32*)
8032     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8033     # When not using gcc, we currently assume that we are using
8034     # Microsoft Visual C++.
8035     if test "$GCC" != yes; then
8036       with_gnu_ld=no
8037     fi
8038     ;;
8039   interix*)
8040     # we just hope/assume this is gcc and not c89 (= MSVC++)
8041     with_gnu_ld=yes
8042     ;;
8043   openbsd*)
8044     with_gnu_ld=no
8045     ;;
8046   esac
8047
8048   ld_shlibs=yes
8049   if test "$with_gnu_ld" = yes; then
8050     # If archive_cmds runs LD, not CC, wlarc should be empty
8051     wlarc='${wl}'
8052
8053     # Set some defaults for GNU ld with shared library support. These
8054     # are reset later if shared libraries are not supported. Putting them
8055     # here allows them to be overridden if necessary.
8056     runpath_var=LD_RUN_PATH
8057     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8058     export_dynamic_flag_spec='${wl}--export-dynamic'
8059     # ancient GNU ld didn't support --whole-archive et. al.
8060     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8061         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8062       else
8063         whole_archive_flag_spec=
8064     fi
8065     supports_anon_versioning=no
8066     case `$LD -v 2>/dev/null` in
8067       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8068       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8069       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8070       *\ 2.11.*) ;; # other 2.11 versions
8071       *) supports_anon_versioning=yes ;;
8072     esac
8073
8074     # See if GNU ld supports shared libraries.
8075     case $host_os in
8076     aix[3-9]*)
8077       # On AIX/PPC, the GNU linker is very broken
8078       if test "$host_cpu" != ia64; then
8079         ld_shlibs=no
8080         cat <<EOF 1>&2
8081
8082 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8083 *** to be unable to reliably create shared libraries on AIX.
8084 *** Therefore, libtool is disabling shared libraries support.  If you
8085 *** really care for shared libraries, you may want to modify your PATH
8086 *** so that a non-GNU linker is found, and then restart.
8087
8088 EOF
8089       fi
8090       ;;
8091
8092     amigaos*)
8093       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)'
8094       hardcode_libdir_flag_spec='-L$libdir'
8095       hardcode_minus_L=yes
8096
8097       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8098       # that the semantics of dynamic libraries on AmigaOS, at least up
8099       # to version 4, is to share data among multiple programs linked
8100       # with the same dynamic library.  Since this doesn't match the
8101       # behavior of shared libraries on other platforms, we can't use
8102       # them.
8103       ld_shlibs=no
8104       ;;
8105
8106     beos*)
8107       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8108         allow_undefined_flag=unsupported
8109         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8110         # support --undefined.  This deserves some investigation.  FIXME
8111         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8112       else
8113         ld_shlibs=no
8114       fi
8115       ;;
8116
8117     cygwin* | mingw* | pw32*)
8118       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8119       # as there is no search path for DLLs.
8120       hardcode_libdir_flag_spec='-L$libdir'
8121       allow_undefined_flag=unsupported
8122       always_export_symbols=no
8123       enable_shared_with_static_runtimes=yes
8124       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8125
8126       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8127         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8128         # If the export-symbols file already is a .def file (1st line
8129         # is EXPORTS), use it as is; otherwise, prepend...
8130         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8131           cp $export_symbols $output_objdir/$soname.def;
8132         else
8133           echo EXPORTS > $output_objdir/$soname.def;
8134           cat $export_symbols >> $output_objdir/$soname.def;
8135         fi~
8136         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8137       else
8138         ld_shlibs=no
8139       fi
8140       ;;
8141
8142     interix[3-9]*)
8143       hardcode_direct=no
8144       hardcode_shlibpath_var=no
8145       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8146       export_dynamic_flag_spec='${wl}-E'
8147       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8148       # Instead, shared libraries are loaded at an image base (0x10000000 by
8149       # default) and relocated if they conflict, which is a slow very memory
8150       # consuming and fragmenting process.  To avoid this, we pick a random,
8151       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8152       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8153       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8154       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'
8155       ;;
8156
8157     gnu* | linux* | k*bsd*-gnu)
8158       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8159         tmp_addflag=
8160         case $cc_basename,$host_cpu in
8161         pgcc*)                          # Portland Group C compiler
8162           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'
8163           tmp_addflag=' $pic_flag'
8164           ;;
8165         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8166           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'
8167           tmp_addflag=' $pic_flag -Mnomain' ;;
8168         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8169           tmp_addflag=' -i_dynamic' ;;
8170         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8171           tmp_addflag=' -i_dynamic -nofor_main' ;;
8172         ifc* | ifort*)                  # Intel Fortran compiler
8173           tmp_addflag=' -nofor_main' ;;
8174         esac
8175         case `$CC -V 2>&1 | sed 5q` in
8176         *Sun\ C*)                       # Sun C 5.9
8177           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'
8178           tmp_sharedflag='-G' ;;
8179         *Sun\ F*)                       # Sun Fortran 8.3
8180           tmp_sharedflag='-G' ;;
8181         *)
8182           tmp_sharedflag='-shared' ;;
8183         esac
8184         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8185
8186         if test $supports_anon_versioning = yes; then
8187           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8188   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8189   $echo "local: *; };" >> $output_objdir/$libname.ver~
8190           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8191         fi
8192         link_all_deplibs=no
8193       else
8194         ld_shlibs=no
8195       fi
8196       ;;
8197
8198     netbsd* | netbsdelf*-gnu)
8199       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8200         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8201         wlarc=
8202       else
8203         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8204         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8205       fi
8206       ;;
8207
8208     solaris*)
8209       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8210         ld_shlibs=no
8211         cat <<EOF 1>&2
8212
8213 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8214 *** create shared libraries on Solaris systems.  Therefore, libtool
8215 *** is disabling shared libraries support.  We urge you to upgrade GNU
8216 *** binutils to release 2.9.1 or newer.  Another option is to modify
8217 *** your PATH or compiler configuration so that the native linker is
8218 *** used, and then restart.
8219
8220 EOF
8221       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8222         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8223         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8224       else
8225         ld_shlibs=no
8226       fi
8227       ;;
8228
8229     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8230       case `$LD -v 2>&1` in
8231         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8232         ld_shlibs=no
8233         cat <<_LT_EOF 1>&2
8234
8235 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8236 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8237 *** is disabling shared libraries support.  We urge you to upgrade GNU
8238 *** binutils to release 2.16.91.0.3 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 _LT_EOF
8243         ;;
8244         *)
8245           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8246             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8247             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8248             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8249           else
8250             ld_shlibs=no
8251           fi
8252         ;;
8253       esac
8254       ;;
8255
8256     sunos4*)
8257       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8258       wlarc=
8259       hardcode_direct=yes
8260       hardcode_shlibpath_var=no
8261       ;;
8262
8263     *)
8264       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8265         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8266         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8267       else
8268         ld_shlibs=no
8269       fi
8270       ;;
8271     esac
8272
8273     if test "$ld_shlibs" = no; then
8274       runpath_var=
8275       hardcode_libdir_flag_spec=
8276       export_dynamic_flag_spec=
8277       whole_archive_flag_spec=
8278     fi
8279   else
8280     # PORTME fill in a description of your system's linker (not GNU ld)
8281     case $host_os in
8282     aix3*)
8283       allow_undefined_flag=unsupported
8284       always_export_symbols=yes
8285       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'
8286       # Note: this linker hardcodes the directories in LIBPATH if there
8287       # are no directories specified by -L.
8288       hardcode_minus_L=yes
8289       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8290         # Neither direct hardcoding nor static linking is supported with a
8291         # broken collect2.
8292         hardcode_direct=unsupported
8293       fi
8294       ;;
8295
8296     aix[4-9]*)
8297       if test "$host_cpu" = ia64; then
8298         # On IA64, the linker does run time linking by default, so we don't
8299         # have to do anything special.
8300         aix_use_runtimelinking=no
8301         exp_sym_flag='-Bexport'
8302         no_entry_flag=""
8303       else
8304         # If we're using GNU nm, then we don't want the "-C" option.
8305         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8306         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8307           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'
8308         else
8309           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'
8310         fi
8311         aix_use_runtimelinking=no
8312
8313         # Test if we are trying to use run time linking or normal
8314         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8315         # need to do runtime linking.
8316         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8317           for ld_flag in $LDFLAGS; do
8318           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8319             aix_use_runtimelinking=yes
8320             break
8321           fi
8322           done
8323           ;;
8324         esac
8325
8326         exp_sym_flag='-bexport'
8327         no_entry_flag='-bnoentry'
8328       fi
8329
8330       # When large executables or shared objects are built, AIX ld can
8331       # have problems creating the table of contents.  If linking a library
8332       # or program results in "error TOC overflow" add -mminimal-toc to
8333       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8334       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8335
8336       archive_cmds=''
8337       hardcode_direct=yes
8338       hardcode_libdir_separator=':'
8339       link_all_deplibs=yes
8340
8341       if test "$GCC" = yes; then
8342         case $host_os in aix4.[012]|aix4.[012].*)
8343         # We only want to do this on AIX 4.2 and lower, the check
8344         # below for broken collect2 doesn't work under 4.3+
8345           collect2name=`${CC} -print-prog-name=collect2`
8346           if test -f "$collect2name" && \
8347            strings "$collect2name" | grep resolve_lib_name >/dev/null
8348           then
8349           # We have reworked collect2
8350           :
8351           else
8352           # We have old collect2
8353           hardcode_direct=unsupported
8354           # It fails to find uninstalled libraries when the uninstalled
8355           # path is not listed in the libpath.  Setting hardcode_minus_L
8356           # to unsupported forces relinking
8357           hardcode_minus_L=yes
8358           hardcode_libdir_flag_spec='-L$libdir'
8359           hardcode_libdir_separator=
8360           fi
8361           ;;
8362         esac
8363         shared_flag='-shared'
8364         if test "$aix_use_runtimelinking" = yes; then
8365           shared_flag="$shared_flag "'${wl}-G'
8366         fi
8367       else
8368         # not using gcc
8369         if test "$host_cpu" = ia64; then
8370         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8371         # chokes on -Wl,-G. The following line is correct:
8372           shared_flag='-G'
8373         else
8374           if test "$aix_use_runtimelinking" = yes; then
8375             shared_flag='${wl}-G'
8376           else
8377             shared_flag='${wl}-bM:SRE'
8378           fi
8379         fi
8380       fi
8381
8382       # It seems that -bexpall does not export symbols beginning with
8383       # underscore (_), so it is better to generate a list of symbols to export.
8384       always_export_symbols=yes
8385       if test "$aix_use_runtimelinking" = yes; then
8386         # Warning - without using the other runtime loading flags (-brtl),
8387         # -berok will link without error, but may produce a broken library.
8388         allow_undefined_flag='-berok'
8389        # Determine the default libpath from the value encoded in an empty executable.
8390        cat >conftest.$ac_ext <<_ACEOF
8391 /* confdefs.h.  */
8392 _ACEOF
8393 cat confdefs.h >>conftest.$ac_ext
8394 cat >>conftest.$ac_ext <<_ACEOF
8395 /* end confdefs.h.  */
8396
8397 int
8398 main ()
8399 {
8400
8401   ;
8402   return 0;
8403 }
8404 _ACEOF
8405 rm -f conftest.$ac_objext conftest$ac_exeext
8406 if { (ac_try="$ac_link"
8407 case "(($ac_try" in
8408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8409   *) ac_try_echo=$ac_try;;
8410 esac
8411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8412   (eval "$ac_link") 2>conftest.er1
8413   ac_status=$?
8414   grep -v '^ *+' conftest.er1 >conftest.err
8415   rm -f conftest.er1
8416   cat conftest.err >&5
8417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418   (exit $ac_status); } && {
8419          test -z "$ac_c_werror_flag" ||
8420          test ! -s conftest.err
8421        } && test -s conftest$ac_exeext &&
8422        $as_test_x conftest$ac_exeext; then
8423
8424 lt_aix_libpath_sed='
8425     /Import File Strings/,/^$/ {
8426         /^0/ {
8427             s/^0  *\(.*\)$/\1/
8428             p
8429         }
8430     }'
8431 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8432 # Check for a 64-bit object if we didn't find anything.
8433 if test -z "$aix_libpath"; then
8434   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8435 fi
8436 else
8437   echo "$as_me: failed program was:" >&5
8438 sed 's/^/| /' conftest.$ac_ext >&5
8439
8440
8441 fi
8442
8443 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8444       conftest$ac_exeext conftest.$ac_ext
8445 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8446
8447        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8448         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"
8449        else
8450         if test "$host_cpu" = ia64; then
8451           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8452           allow_undefined_flag="-z nodefs"
8453           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"
8454         else
8455          # Determine the default libpath from the value encoded in an empty executable.
8456          cat >conftest.$ac_ext <<_ACEOF
8457 /* confdefs.h.  */
8458 _ACEOF
8459 cat confdefs.h >>conftest.$ac_ext
8460 cat >>conftest.$ac_ext <<_ACEOF
8461 /* end confdefs.h.  */
8462
8463 int
8464 main ()
8465 {
8466
8467   ;
8468   return 0;
8469 }
8470 _ACEOF
8471 rm -f conftest.$ac_objext conftest$ac_exeext
8472 if { (ac_try="$ac_link"
8473 case "(($ac_try" in
8474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8475   *) ac_try_echo=$ac_try;;
8476 esac
8477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8478   (eval "$ac_link") 2>conftest.er1
8479   ac_status=$?
8480   grep -v '^ *+' conftest.er1 >conftest.err
8481   rm -f conftest.er1
8482   cat conftest.err >&5
8483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484   (exit $ac_status); } && {
8485          test -z "$ac_c_werror_flag" ||
8486          test ! -s conftest.err
8487        } && test -s conftest$ac_exeext &&
8488        $as_test_x conftest$ac_exeext; then
8489
8490 lt_aix_libpath_sed='
8491     /Import File Strings/,/^$/ {
8492         /^0/ {
8493             s/^0  *\(.*\)$/\1/
8494             p
8495         }
8496     }'
8497 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8498 # Check for a 64-bit object if we didn't find anything.
8499 if test -z "$aix_libpath"; then
8500   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8501 fi
8502 else
8503   echo "$as_me: failed program was:" >&5
8504 sed 's/^/| /' conftest.$ac_ext >&5
8505
8506
8507 fi
8508
8509 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8510       conftest$ac_exeext conftest.$ac_ext
8511 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8512
8513          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8514           # Warning - without using the other run time loading flags,
8515           # -berok will link without error, but may produce a broken library.
8516           no_undefined_flag=' ${wl}-bernotok'
8517           allow_undefined_flag=' ${wl}-berok'
8518           # Exported symbols can be pulled into shared objects from archives
8519           whole_archive_flag_spec='$convenience'
8520           archive_cmds_need_lc=yes
8521           # This is similar to how AIX traditionally builds its shared libraries.
8522           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'
8523         fi
8524       fi
8525       ;;
8526
8527     amigaos*)
8528       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)'
8529       hardcode_libdir_flag_spec='-L$libdir'
8530       hardcode_minus_L=yes
8531       # see comment about different semantics on the GNU ld section
8532       ld_shlibs=no
8533       ;;
8534
8535     bsdi[45]*)
8536       export_dynamic_flag_spec=-rdynamic
8537       ;;
8538
8539     cygwin* | mingw* | pw32*)
8540       # When not using gcc, we currently assume that we are using
8541       # Microsoft Visual C++.
8542       # hardcode_libdir_flag_spec is actually meaningless, as there is
8543       # no search path for DLLs.
8544       hardcode_libdir_flag_spec=' '
8545       allow_undefined_flag=unsupported
8546       # Tell ltmain to make .lib files, not .a files.
8547       libext=lib
8548       # Tell ltmain to make .dll files, not .so files.
8549       shrext_cmds=".dll"
8550       # FIXME: Setting linknames here is a bad hack.
8551       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8552       # The linker will automatically build a .lib file if we build a DLL.
8553       old_archive_From_new_cmds='true'
8554       # FIXME: Should let the user specify the lib program.
8555       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8556       fix_srcfile_path='`cygpath -w "$srcfile"`'
8557       enable_shared_with_static_runtimes=yes
8558       ;;
8559
8560     darwin* | rhapsody*)
8561       case $host_os in
8562         rhapsody* | darwin1.[012])
8563          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8564          ;;
8565        *) # Darwin 1.3 on
8566          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8567            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8568          else
8569            case ${MACOSX_DEPLOYMENT_TARGET} in
8570              10.[012])
8571                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8572                ;;
8573              10.*)
8574                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8575                ;;
8576            esac
8577          fi
8578          ;;
8579       esac
8580       archive_cmds_need_lc=no
8581       hardcode_direct=no
8582       hardcode_automatic=yes
8583       hardcode_shlibpath_var=unsupported
8584       whole_archive_flag_spec=''
8585       link_all_deplibs=yes
8586     if test "$GCC" = yes ; then
8587         output_verbose_link_cmd='echo'
8588         archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8589         module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8590         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}"
8591         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}"
8592     else
8593       case $cc_basename in
8594         xlc*)
8595          output_verbose_link_cmd='echo'
8596          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8597          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8598           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8599          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}'
8600           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}'
8601           ;;
8602        *)
8603          ld_shlibs=no
8604           ;;
8605       esac
8606     fi
8607       ;;
8608
8609     dgux*)
8610       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8611       hardcode_libdir_flag_spec='-L$libdir'
8612       hardcode_shlibpath_var=no
8613       ;;
8614
8615     freebsd1*)
8616       ld_shlibs=no
8617       ;;
8618
8619     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8620     # support.  Future versions do this automatically, but an explicit c++rt0.o
8621     # does not break anything, and helps significantly (at the cost of a little
8622     # extra space).
8623     freebsd2.2*)
8624       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8625       hardcode_libdir_flag_spec='-R$libdir'
8626       hardcode_direct=yes
8627       hardcode_shlibpath_var=no
8628       ;;
8629
8630     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8631     freebsd2*)
8632       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8633       hardcode_direct=yes
8634       hardcode_minus_L=yes
8635       hardcode_shlibpath_var=no
8636       ;;
8637
8638     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8639     freebsd* | dragonfly*)
8640       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8641       hardcode_libdir_flag_spec='-R$libdir'
8642       hardcode_direct=yes
8643       hardcode_shlibpath_var=no
8644       ;;
8645
8646     hpux9*)
8647       if test "$GCC" = yes; then
8648         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'
8649       else
8650         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'
8651       fi
8652       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8653       hardcode_libdir_separator=:
8654       hardcode_direct=yes
8655
8656       # hardcode_minus_L: Not really in the search PATH,
8657       # but as the default location of the library.
8658       hardcode_minus_L=yes
8659       export_dynamic_flag_spec='${wl}-E'
8660       ;;
8661
8662     hpux10*)
8663       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8664         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8665       else
8666         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8667       fi
8668       if test "$with_gnu_ld" = no; then
8669         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8670         hardcode_libdir_separator=:
8671
8672         hardcode_direct=yes
8673         export_dynamic_flag_spec='${wl}-E'
8674
8675         # hardcode_minus_L: Not really in the search PATH,
8676         # but as the default location of the library.
8677         hardcode_minus_L=yes
8678       fi
8679       ;;
8680
8681     hpux11*)
8682       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8683         case $host_cpu in
8684         hppa*64*)
8685           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8686           ;;
8687         ia64*)
8688           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8689           ;;
8690         *)
8691           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8692           ;;
8693         esac
8694       else
8695         case $host_cpu in
8696         hppa*64*)
8697           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8698           ;;
8699         ia64*)
8700           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8701           ;;
8702         *)
8703           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8704           ;;
8705         esac
8706       fi
8707       if test "$with_gnu_ld" = no; then
8708         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8709         hardcode_libdir_separator=:
8710
8711         case $host_cpu in
8712         hppa*64*|ia64*)
8713           hardcode_libdir_flag_spec_ld='+b $libdir'
8714           hardcode_direct=no
8715           hardcode_shlibpath_var=no
8716           ;;
8717         *)
8718           hardcode_direct=yes
8719           export_dynamic_flag_spec='${wl}-E'
8720
8721           # hardcode_minus_L: Not really in the search PATH,
8722           # but as the default location of the library.
8723           hardcode_minus_L=yes
8724           ;;
8725         esac
8726       fi
8727       ;;
8728
8729     irix5* | irix6* | nonstopux*)
8730       if test "$GCC" = yes; then
8731         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'
8732       else
8733         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'
8734         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8735       fi
8736       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8737       hardcode_libdir_separator=:
8738       link_all_deplibs=yes
8739       ;;
8740
8741     netbsd* | netbsdelf*-gnu)
8742       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8743         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8744       else
8745         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8746       fi
8747       hardcode_libdir_flag_spec='-R$libdir'
8748       hardcode_direct=yes
8749       hardcode_shlibpath_var=no
8750       ;;
8751
8752     newsos6)
8753       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8754       hardcode_direct=yes
8755       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8756       hardcode_libdir_separator=:
8757       hardcode_shlibpath_var=no
8758       ;;
8759
8760     openbsd*)
8761       if test -f /usr/libexec/ld.so; then
8762         hardcode_direct=yes
8763         hardcode_shlibpath_var=no
8764         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8765           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8766           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8767           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8768           export_dynamic_flag_spec='${wl}-E'
8769         else
8770           case $host_os in
8771            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8772              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8773              hardcode_libdir_flag_spec='-R$libdir'
8774              ;;
8775            *)
8776              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8777              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8778              ;;
8779           esac
8780         fi
8781       else
8782         ld_shlibs=no
8783       fi
8784       ;;
8785
8786     os2*)
8787       hardcode_libdir_flag_spec='-L$libdir'
8788       hardcode_minus_L=yes
8789       allow_undefined_flag=unsupported
8790       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'
8791       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8792       ;;
8793
8794     osf3*)
8795       if test "$GCC" = yes; then
8796         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8797         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'
8798       else
8799         allow_undefined_flag=' -expect_unresolved \*'
8800         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'
8801       fi
8802       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8803       hardcode_libdir_separator=:
8804       ;;
8805
8806     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8807       if test "$GCC" = yes; then
8808         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8809         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'
8810         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8811       else
8812         allow_undefined_flag=' -expect_unresolved \*'
8813         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'
8814         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8815         $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'
8816
8817         # Both c and cxx compiler support -rpath directly
8818         hardcode_libdir_flag_spec='-rpath $libdir'
8819       fi
8820       hardcode_libdir_separator=:
8821       ;;
8822
8823     solaris*)
8824       no_undefined_flag=' -z text'
8825       if test "$GCC" = yes; then
8826         wlarc='${wl}'
8827         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8828         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8829           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8830       else
8831         wlarc=''
8832         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8833         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8834         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8835       fi
8836       hardcode_libdir_flag_spec='-R$libdir'
8837       hardcode_shlibpath_var=no
8838       case $host_os in
8839       solaris2.[0-5] | solaris2.[0-5].*) ;;
8840       *)
8841         # The compiler driver will combine and reorder linker options,
8842         # but understands `-z linker_flag'.  GCC discards it without `$wl',
8843         # but is careful enough not to reorder.
8844         # Supported since Solaris 2.6 (maybe 2.5.1?)
8845         if test "$GCC" = yes; then
8846           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8847         else
8848           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8849         fi
8850         ;;
8851       esac
8852       link_all_deplibs=yes
8853       ;;
8854
8855     sunos4*)
8856       if test "x$host_vendor" = xsequent; then
8857         # Use $CC to link under sequent, because it throws in some extra .o
8858         # files that make .init and .fini sections work.
8859         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8860       else
8861         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8862       fi
8863       hardcode_libdir_flag_spec='-L$libdir'
8864       hardcode_direct=yes
8865       hardcode_minus_L=yes
8866       hardcode_shlibpath_var=no
8867       ;;
8868
8869     sysv4)
8870       case $host_vendor in
8871         sni)
8872           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8873           hardcode_direct=yes # is this really true???
8874         ;;
8875         siemens)
8876           ## LD is ld it makes a PLAMLIB
8877           ## CC just makes a GrossModule.
8878           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8879           reload_cmds='$CC -r -o $output$reload_objs'
8880           hardcode_direct=no
8881         ;;
8882         motorola)
8883           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8884           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8885         ;;
8886       esac
8887       runpath_var='LD_RUN_PATH'
8888       hardcode_shlibpath_var=no
8889       ;;
8890
8891     sysv4.3*)
8892       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8893       hardcode_shlibpath_var=no
8894       export_dynamic_flag_spec='-Bexport'
8895       ;;
8896
8897     sysv4*MP*)
8898       if test -d /usr/nec; then
8899         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8900         hardcode_shlibpath_var=no
8901         runpath_var=LD_RUN_PATH
8902         hardcode_runpath_var=yes
8903         ld_shlibs=yes
8904       fi
8905       ;;
8906
8907     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8908       no_undefined_flag='${wl}-z,text'
8909       archive_cmds_need_lc=no
8910       hardcode_shlibpath_var=no
8911       runpath_var='LD_RUN_PATH'
8912
8913       if test "$GCC" = yes; then
8914         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8915         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8916       else
8917         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8918         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8919       fi
8920       ;;
8921
8922     sysv5* | sco3.2v5* | sco5v6*)
8923       # Note: We can NOT use -z defs as we might desire, because we do not
8924       # link with -lc, and that would cause any symbols used from libc to
8925       # always be unresolved, which means just about no library would
8926       # ever link correctly.  If we're not using GNU ld we use -z text
8927       # though, which does catch some bad symbols but isn't as heavy-handed
8928       # as -z defs.
8929       no_undefined_flag='${wl}-z,text'
8930       allow_undefined_flag='${wl}-z,nodefs'
8931       archive_cmds_need_lc=no
8932       hardcode_shlibpath_var=no
8933       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8934       hardcode_libdir_separator=':'
8935       link_all_deplibs=yes
8936       export_dynamic_flag_spec='${wl}-Bexport'
8937       runpath_var='LD_RUN_PATH'
8938
8939       if test "$GCC" = yes; then
8940         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8941         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8942       else
8943         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8944         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8945       fi
8946       ;;
8947
8948     uts4*)
8949       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8950       hardcode_libdir_flag_spec='-L$libdir'
8951       hardcode_shlibpath_var=no
8952       ;;
8953
8954     *)
8955       ld_shlibs=no
8956       ;;
8957     esac
8958   fi
8959
8960 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8961 echo "${ECHO_T}$ld_shlibs" >&6; }
8962 test "$ld_shlibs" = no && can_build_shared=no
8963
8964 #
8965 # Do we need to explicitly link libc?
8966 #
8967 case "x$archive_cmds_need_lc" in
8968 x|xyes)
8969   # Assume -lc should be added
8970   archive_cmds_need_lc=yes
8971
8972   if test "$enable_shared" = yes && test "$GCC" = yes; then
8973     case $archive_cmds in
8974     *'~'*)
8975       # FIXME: we may have to deal with multi-command sequences.
8976       ;;
8977     '$CC '*)
8978       # Test whether the compiler implicitly links with -lc since on some
8979       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8980       # to ld, don't add -lc before -lgcc.
8981       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8982 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8983       $rm conftest*
8984       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8985
8986       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8987   (eval $ac_compile) 2>&5
8988   ac_status=$?
8989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8990   (exit $ac_status); } 2>conftest.err; then
8991         soname=conftest
8992         lib=conftest
8993         libobjs=conftest.$ac_objext
8994         deplibs=
8995         wl=$lt_prog_compiler_wl
8996         pic_flag=$lt_prog_compiler_pic
8997         compiler_flags=-v
8998         linker_flags=-v
8999         verstring=
9000         output_objdir=.
9001         libname=conftest
9002         lt_save_allow_undefined_flag=$allow_undefined_flag
9003         allow_undefined_flag=
9004         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9005   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9006   ac_status=$?
9007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9008   (exit $ac_status); }
9009         then
9010           archive_cmds_need_lc=no
9011         else
9012           archive_cmds_need_lc=yes
9013         fi
9014         allow_undefined_flag=$lt_save_allow_undefined_flag
9015       else
9016         cat conftest.err 1>&5
9017       fi
9018       $rm conftest*
9019       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9020 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9021       ;;
9022     esac
9023   fi
9024   ;;
9025 esac
9026
9027 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9028 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9029 library_names_spec=
9030 libname_spec='lib$name'
9031 soname_spec=
9032 shrext_cmds=".so"
9033 postinstall_cmds=
9034 postuninstall_cmds=
9035 finish_cmds=
9036 finish_eval=
9037 shlibpath_var=
9038 shlibpath_overrides_runpath=unknown
9039 version_type=none
9040 dynamic_linker="$host_os ld.so"
9041 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9042
9043 if test "$GCC" = yes; then
9044   case $host_os in
9045     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9046     *) lt_awk_arg="/^libraries:/" ;;
9047   esac
9048   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9049   if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9050     # if the path contains ";" then we assume it to be the separator
9051     # otherwise default to the standard path separator (i.e. ":") - it is
9052     # assumed that no part of a normal pathname contains ";" but that should
9053     # okay in the real world where ";" in dirpaths is itself problematic.
9054     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9055   else
9056     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9057   fi
9058   # Ok, now we have the path, separated by spaces, we can step through it
9059   # and add multilib dir if necessary.
9060   lt_tmp_lt_search_path_spec=
9061   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9062   for lt_sys_path in $lt_search_path_spec; do
9063     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9064       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9065     else
9066       test -d "$lt_sys_path" && \
9067         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9068     fi
9069   done
9070   lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9071 BEGIN {RS=" "; FS="/|\n";} {
9072   lt_foo="";
9073   lt_count=0;
9074   for (lt_i = NF; lt_i > 0; lt_i--) {
9075     if ($lt_i != "" && $lt_i != ".") {
9076       if ($lt_i == "..") {
9077         lt_count++;
9078       } else {
9079         if (lt_count == 0) {
9080           lt_foo="/" $lt_i lt_foo;
9081         } else {
9082           lt_count--;
9083         }
9084       }
9085     }
9086   }
9087   if (lt_foo != "") { lt_freq[lt_foo]++; }
9088   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9089 }'`
9090   sys_lib_search_path_spec=`echo $lt_search_path_spec`
9091 else
9092   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9093 fi
9094 need_lib_prefix=unknown
9095 hardcode_into_libs=no
9096
9097 # when you set need_version to no, make sure it does not cause -set_version
9098 # flags to be left without arguments
9099 need_version=unknown
9100
9101 case $host_os in
9102 aix3*)
9103   version_type=linux
9104   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9105   shlibpath_var=LIBPATH
9106
9107   # AIX 3 has no versioning support, so we append a major version to the name.
9108   soname_spec='${libname}${release}${shared_ext}$major'
9109   ;;
9110
9111 aix[4-9]*)
9112   version_type=linux
9113   need_lib_prefix=no
9114   need_version=no
9115   hardcode_into_libs=yes
9116   if test "$host_cpu" = ia64; then
9117     # AIX 5 supports IA64
9118     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9119     shlibpath_var=LD_LIBRARY_PATH
9120   else
9121     # With GCC up to 2.95.x, collect2 would create an import file
9122     # for dependence libraries.  The import file would start with
9123     # the line `#! .'.  This would cause the generated library to
9124     # depend on `.', always an invalid library.  This was fixed in
9125     # development snapshots of GCC prior to 3.0.
9126     case $host_os in
9127       aix4 | aix4.[01] | aix4.[01].*)
9128       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9129            echo ' yes '
9130            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9131         :
9132       else
9133         can_build_shared=no
9134       fi
9135       ;;
9136     esac
9137     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9138     # soname into executable. Probably we can add versioning support to
9139     # collect2, so additional links can be useful in future.
9140     if test "$aix_use_runtimelinking" = yes; then
9141       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9142       # instead of lib<name>.a to let people know that these are not
9143       # typical AIX shared libraries.
9144       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9145     else
9146       # We preserve .a as extension for shared libraries through AIX4.2
9147       # and later when we are not doing run time linking.
9148       library_names_spec='${libname}${release}.a $libname.a'
9149       soname_spec='${libname}${release}${shared_ext}$major'
9150     fi
9151     shlibpath_var=LIBPATH
9152   fi
9153   ;;
9154
9155 amigaos*)
9156   library_names_spec='$libname.ixlibrary $libname.a'
9157   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9158   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'
9159   ;;
9160
9161 beos*)
9162   library_names_spec='${libname}${shared_ext}'
9163   dynamic_linker="$host_os ld.so"
9164   shlibpath_var=LIBRARY_PATH
9165   ;;
9166
9167 bsdi[45]*)
9168   version_type=linux
9169   need_version=no
9170   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9171   soname_spec='${libname}${release}${shared_ext}$major'
9172   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9173   shlibpath_var=LD_LIBRARY_PATH
9174   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9175   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9176   # the default ld.so.conf also contains /usr/contrib/lib and
9177   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9178   # libtool to hard-code these into programs
9179   ;;
9180
9181 cygwin* | mingw* | pw32*)
9182   version_type=windows
9183   shrext_cmds=".dll"
9184   need_version=no
9185   need_lib_prefix=no
9186
9187   case $GCC,$host_os in
9188   yes,cygwin* | yes,mingw* | yes,pw32*)
9189     library_names_spec='$libname.dll.a'
9190     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9191     postinstall_cmds='base_file=`basename \${file}`~
9192       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9193       dldir=$destdir/`dirname \$dlpath`~
9194       test -d \$dldir || mkdir -p \$dldir~
9195       $install_prog $dir/$dlname \$dldir/$dlname~
9196       chmod a+x \$dldir/$dlname'
9197     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9198       dlpath=$dir/\$dldll~
9199        $rm \$dlpath'
9200     shlibpath_overrides_runpath=yes
9201
9202     case $host_os in
9203     cygwin*)
9204       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9205       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9206       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9207       ;;
9208     mingw*)
9209       # MinGW DLLs use traditional 'lib' prefix
9210       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9211       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9212       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9213         # It is most probably a Windows format PATH printed by
9214         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9215         # path with ; separators, and with drive letters. We can handle the
9216         # drive letters (cygwin fileutils understands them), so leave them,
9217         # especially as we might pass files found there to a mingw objdump,
9218         # which wouldn't understand a cygwinified path. Ahh.
9219         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9220       else
9221         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9222       fi
9223       ;;
9224     pw32*)
9225       # pw32 DLLs use 'pw' prefix rather than 'lib'
9226       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9227       ;;
9228     esac
9229     ;;
9230
9231   *)
9232     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9233     ;;
9234   esac
9235   dynamic_linker='Win32 ld.exe'
9236   # FIXME: first we should search . and the directory the executable is in
9237   shlibpath_var=PATH
9238   ;;
9239
9240 darwin* | rhapsody*)
9241   dynamic_linker="$host_os dyld"
9242   version_type=darwin
9243   need_lib_prefix=no
9244   need_version=no
9245   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9246   soname_spec='${libname}${release}${major}$shared_ext'
9247   shlibpath_overrides_runpath=yes
9248   shlibpath_var=DYLD_LIBRARY_PATH
9249   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9250
9251   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9252   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9253   ;;
9254
9255 dgux*)
9256   version_type=linux
9257   need_lib_prefix=no
9258   need_version=no
9259   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9260   soname_spec='${libname}${release}${shared_ext}$major'
9261   shlibpath_var=LD_LIBRARY_PATH
9262   ;;
9263
9264 freebsd1*)
9265   dynamic_linker=no
9266   ;;
9267
9268 freebsd* | dragonfly*)
9269   # DragonFly does not have aout.  When/if they implement a new
9270   # versioning mechanism, adjust this.
9271   if test -x /usr/bin/objformat; then
9272     objformat=`/usr/bin/objformat`
9273   else
9274     case $host_os in
9275     freebsd[123]*) objformat=aout ;;
9276     *) objformat=elf ;;
9277     esac
9278   fi
9279   version_type=freebsd-$objformat
9280   case $version_type in
9281     freebsd-elf*)
9282       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9283       need_version=no
9284       need_lib_prefix=no
9285       ;;
9286     freebsd-*)
9287       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9288       need_version=yes
9289       ;;
9290   esac
9291   shlibpath_var=LD_LIBRARY_PATH
9292   case $host_os in
9293   freebsd2*)
9294     shlibpath_overrides_runpath=yes
9295     ;;
9296   freebsd3.[01]* | freebsdelf3.[01]*)
9297     shlibpath_overrides_runpath=yes
9298     hardcode_into_libs=yes
9299     ;;
9300   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9301   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9302     shlibpath_overrides_runpath=no
9303     hardcode_into_libs=yes
9304     ;;
9305   *) # from 4.6 on, and DragonFly
9306     shlibpath_overrides_runpath=yes
9307     hardcode_into_libs=yes
9308     ;;
9309   esac
9310   ;;
9311
9312 gnu*)
9313   version_type=linux
9314   need_lib_prefix=no
9315   need_version=no
9316   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9317   soname_spec='${libname}${release}${shared_ext}$major'
9318   shlibpath_var=LD_LIBRARY_PATH
9319   hardcode_into_libs=yes
9320   ;;
9321
9322 hpux9* | hpux10* | hpux11*)
9323   # Give a soname corresponding to the major version so that dld.sl refuses to
9324   # link against other versions.
9325   version_type=sunos
9326   need_lib_prefix=no
9327   need_version=no
9328   case $host_cpu in
9329   ia64*)
9330     shrext_cmds='.so'
9331     hardcode_into_libs=yes
9332     dynamic_linker="$host_os dld.so"
9333     shlibpath_var=LD_LIBRARY_PATH
9334     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9335     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9336     soname_spec='${libname}${release}${shared_ext}$major'
9337     if test "X$HPUX_IA64_MODE" = X32; then
9338       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9339     else
9340       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9341     fi
9342     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9343     ;;
9344    hppa*64*)
9345      shrext_cmds='.sl'
9346      hardcode_into_libs=yes
9347      dynamic_linker="$host_os dld.sl"
9348      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9349      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9350      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9351      soname_spec='${libname}${release}${shared_ext}$major'
9352      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9353      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9354      ;;
9355    *)
9356     shrext_cmds='.sl'
9357     dynamic_linker="$host_os dld.sl"
9358     shlibpath_var=SHLIB_PATH
9359     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9360     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9361     soname_spec='${libname}${release}${shared_ext}$major'
9362     ;;
9363   esac
9364   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9365   postinstall_cmds='chmod 555 $lib'
9366   ;;
9367
9368 interix[3-9]*)
9369   version_type=linux
9370   need_lib_prefix=no
9371   need_version=no
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   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9375   shlibpath_var=LD_LIBRARY_PATH
9376   shlibpath_overrides_runpath=no
9377   hardcode_into_libs=yes
9378   ;;
9379
9380 irix5* | irix6* | nonstopux*)
9381   case $host_os in
9382     nonstopux*) version_type=nonstopux ;;
9383     *)
9384         if test "$lt_cv_prog_gnu_ld" = yes; then
9385                 version_type=linux
9386         else
9387                 version_type=irix
9388         fi ;;
9389   esac
9390   need_lib_prefix=no
9391   need_version=no
9392   soname_spec='${libname}${release}${shared_ext}$major'
9393   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9394   case $host_os in
9395   irix5* | nonstopux*)
9396     libsuff= shlibsuff=
9397     ;;
9398   *)
9399     case $LD in # libtool.m4 will add one of these switches to LD
9400     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9401       libsuff= shlibsuff= libmagic=32-bit;;
9402     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9403       libsuff=32 shlibsuff=N32 libmagic=N32;;
9404     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9405       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9406     *) libsuff= shlibsuff= libmagic=never-match;;
9407     esac
9408     ;;
9409   esac
9410   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9411   shlibpath_overrides_runpath=no
9412   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9413   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9414   hardcode_into_libs=yes
9415   ;;
9416
9417 # No shared lib support for Linux oldld, aout, or coff.
9418 linux*oldld* | linux*aout* | linux*coff*)
9419   dynamic_linker=no
9420   ;;
9421
9422 # This must be Linux ELF.
9423 linux* | k*bsd*-gnu)
9424   version_type=linux
9425   need_lib_prefix=no
9426   need_version=no
9427   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9428   soname_spec='${libname}${release}${shared_ext}$major'
9429   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9430   shlibpath_var=LD_LIBRARY_PATH
9431   shlibpath_overrides_runpath=no
9432   # This implies no fast_install, which is unacceptable.
9433   # Some rework will be needed to allow for fast_install
9434   # before this can be enabled.
9435   hardcode_into_libs=yes
9436
9437   # Append ld.so.conf contents to the search path
9438   if test -f /etc/ld.so.conf; then
9439     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' ' '`
9440     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9441   fi
9442
9443   # We used to test for /lib/ld.so.1 and disable shared libraries on
9444   # powerpc, because MkLinux only supported shared libraries with the
9445   # GNU dynamic linker.  Since this was broken with cross compilers,
9446   # most powerpc-linux boxes support dynamic linking these days and
9447   # people can always --disable-shared, the test was removed, and we
9448   # assume the GNU/Linux dynamic linker is in use.
9449   dynamic_linker='GNU/Linux ld.so'
9450   ;;
9451
9452 netbsdelf*-gnu)
9453   version_type=linux
9454   need_lib_prefix=no
9455   need_version=no
9456   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9457   soname_spec='${libname}${release}${shared_ext}$major'
9458   shlibpath_var=LD_LIBRARY_PATH
9459   shlibpath_overrides_runpath=no
9460   hardcode_into_libs=yes
9461   dynamic_linker='NetBSD ld.elf_so'
9462   ;;
9463
9464 netbsd*)
9465   version_type=sunos
9466   need_lib_prefix=no
9467   need_version=no
9468   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9469     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9470     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9471     dynamic_linker='NetBSD (a.out) ld.so'
9472   else
9473     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9474     soname_spec='${libname}${release}${shared_ext}$major'
9475     dynamic_linker='NetBSD ld.elf_so'
9476   fi
9477   shlibpath_var=LD_LIBRARY_PATH
9478   shlibpath_overrides_runpath=yes
9479   hardcode_into_libs=yes
9480   ;;
9481
9482 newsos6)
9483   version_type=linux
9484   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9485   shlibpath_var=LD_LIBRARY_PATH
9486   shlibpath_overrides_runpath=yes
9487   ;;
9488
9489 nto-qnx*)
9490   version_type=linux
9491   need_lib_prefix=no
9492   need_version=no
9493   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9494   soname_spec='${libname}${release}${shared_ext}$major'
9495   shlibpath_var=LD_LIBRARY_PATH
9496   shlibpath_overrides_runpath=yes
9497   ;;
9498
9499 openbsd*)
9500   version_type=sunos
9501   sys_lib_dlsearch_path_spec="/usr/lib"
9502   need_lib_prefix=no
9503   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9504   case $host_os in
9505     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9506     *)                         need_version=no  ;;
9507   esac
9508   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9509   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9510   shlibpath_var=LD_LIBRARY_PATH
9511   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9512     case $host_os in
9513       openbsd2.[89] | openbsd2.[89].*)
9514         shlibpath_overrides_runpath=no
9515         ;;
9516       *)
9517         shlibpath_overrides_runpath=yes
9518         ;;
9519       esac
9520   else
9521     shlibpath_overrides_runpath=yes
9522   fi
9523   ;;
9524
9525 os2*)
9526   libname_spec='$name'
9527   shrext_cmds=".dll"
9528   need_lib_prefix=no
9529   library_names_spec='$libname${shared_ext} $libname.a'
9530   dynamic_linker='OS/2 ld.exe'
9531   shlibpath_var=LIBPATH
9532   ;;
9533
9534 osf3* | osf4* | osf5*)
9535   version_type=osf
9536   need_lib_prefix=no
9537   need_version=no
9538   soname_spec='${libname}${release}${shared_ext}$major'
9539   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9540   shlibpath_var=LD_LIBRARY_PATH
9541   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9542   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9543   ;;
9544
9545 rdos*)
9546   dynamic_linker=no
9547   ;;
9548
9549 solaris*)
9550   version_type=linux
9551   need_lib_prefix=no
9552   need_version=no
9553   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9554   soname_spec='${libname}${release}${shared_ext}$major'
9555   shlibpath_var=LD_LIBRARY_PATH
9556   shlibpath_overrides_runpath=yes
9557   hardcode_into_libs=yes
9558   # ldd complains unless libraries are executable
9559   postinstall_cmds='chmod +x $lib'
9560   ;;
9561
9562 sunos4*)
9563   version_type=sunos
9564   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9565   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9566   shlibpath_var=LD_LIBRARY_PATH
9567   shlibpath_overrides_runpath=yes
9568   if test "$with_gnu_ld" = yes; then
9569     need_lib_prefix=no
9570   fi
9571   need_version=yes
9572   ;;
9573
9574 sysv4 | sysv4.3*)
9575   version_type=linux
9576   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9577   soname_spec='${libname}${release}${shared_ext}$major'
9578   shlibpath_var=LD_LIBRARY_PATH
9579   case $host_vendor in
9580     sni)
9581       shlibpath_overrides_runpath=no
9582       need_lib_prefix=no
9583       export_dynamic_flag_spec='${wl}-Blargedynsym'
9584       runpath_var=LD_RUN_PATH
9585       ;;
9586     siemens)
9587       need_lib_prefix=no
9588       ;;
9589     motorola)
9590       need_lib_prefix=no
9591       need_version=no
9592       shlibpath_overrides_runpath=no
9593       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9594       ;;
9595   esac
9596   ;;
9597
9598 sysv4*MP*)
9599   if test -d /usr/nec ;then
9600     version_type=linux
9601     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9602     soname_spec='$libname${shared_ext}.$major'
9603     shlibpath_var=LD_LIBRARY_PATH
9604   fi
9605   ;;
9606
9607 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9608   version_type=freebsd-elf
9609   need_lib_prefix=no
9610   need_version=no
9611   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9612   soname_spec='${libname}${release}${shared_ext}$major'
9613   shlibpath_var=LD_LIBRARY_PATH
9614   hardcode_into_libs=yes
9615   if test "$with_gnu_ld" = yes; then
9616     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9617     shlibpath_overrides_runpath=no
9618   else
9619     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9620     shlibpath_overrides_runpath=yes
9621     case $host_os in
9622       sco3.2v5*)
9623         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9624         ;;
9625     esac
9626   fi
9627   sys_lib_dlsearch_path_spec='/usr/lib'
9628   ;;
9629
9630 uts4*)
9631   version_type=linux
9632   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9633   soname_spec='${libname}${release}${shared_ext}$major'
9634   shlibpath_var=LD_LIBRARY_PATH
9635   ;;
9636
9637 *)
9638   dynamic_linker=no
9639   ;;
9640 esac
9641 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9642 echo "${ECHO_T}$dynamic_linker" >&6; }
9643 test "$dynamic_linker" = no && can_build_shared=no
9644
9645 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9646   echo $ECHO_N "(cached) $ECHO_C" >&6
9647 else
9648   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9649 fi
9650
9651 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9652 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9653   echo $ECHO_N "(cached) $ECHO_C" >&6
9654 else
9655   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9656 fi
9657
9658 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9659
9660 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9661 if test "$GCC" = yes; then
9662   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9663 fi
9664
9665 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9666 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9667 hardcode_action=
9668 if test -n "$hardcode_libdir_flag_spec" || \
9669    test -n "$runpath_var" || \
9670    test "X$hardcode_automatic" = "Xyes" ; then
9671
9672   # We can hardcode non-existant directories.
9673   if test "$hardcode_direct" != no &&
9674      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9675      # have to relink, otherwise we might link with an installed library
9676      # when we should be linking with a yet-to-be-installed one
9677      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9678      test "$hardcode_minus_L" != no; then
9679     # Linking always hardcodes the temporary library directory.
9680     hardcode_action=relink
9681   else
9682     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9683     hardcode_action=immediate
9684   fi
9685 else
9686   # We cannot hardcode anything, or else we can only hardcode existing
9687   # directories.
9688   hardcode_action=unsupported
9689 fi
9690 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9691 echo "${ECHO_T}$hardcode_action" >&6; }
9692
9693 if test "$hardcode_action" = relink; then
9694   # Fast installation is not supported
9695   enable_fast_install=no
9696 elif test "$shlibpath_overrides_runpath" = yes ||
9697      test "$enable_shared" = no; then
9698   # Fast installation is not necessary
9699   enable_fast_install=needless
9700 fi
9701
9702 striplib=
9703 old_striplib=
9704 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9705 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9706 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9707   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9708   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9709   { echo "$as_me:$LINENO: result: yes" >&5
9710 echo "${ECHO_T}yes" >&6; }
9711 else
9712 # FIXME - insert some real tests, host_os isn't really good enough
9713   case $host_os in
9714    darwin*)
9715        if test -n "$STRIP" ; then
9716          striplib="$STRIP -x"
9717          old_striplib="$STRIP -S"
9718          { echo "$as_me:$LINENO: result: yes" >&5
9719 echo "${ECHO_T}yes" >&6; }
9720        else
9721   { echo "$as_me:$LINENO: result: no" >&5
9722 echo "${ECHO_T}no" >&6; }
9723 fi
9724        ;;
9725    *)
9726   { echo "$as_me:$LINENO: result: no" >&5
9727 echo "${ECHO_T}no" >&6; }
9728     ;;
9729   esac
9730 fi
9731
9732 if test "x$enable_dlopen" != xyes; then
9733   enable_dlopen=unknown
9734   enable_dlopen_self=unknown
9735   enable_dlopen_self_static=unknown
9736 else
9737   lt_cv_dlopen=no
9738   lt_cv_dlopen_libs=
9739
9740   case $host_os in
9741   beos*)
9742     lt_cv_dlopen="load_add_on"
9743     lt_cv_dlopen_libs=
9744     lt_cv_dlopen_self=yes
9745     ;;
9746
9747   mingw* | pw32*)
9748     lt_cv_dlopen="LoadLibrary"
9749     lt_cv_dlopen_libs=
9750    ;;
9751
9752   cygwin*)
9753     lt_cv_dlopen="dlopen"
9754     lt_cv_dlopen_libs=
9755    ;;
9756
9757   darwin*)
9758   # if libdl is installed we need to link against it
9759     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9760 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9761 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9762   echo $ECHO_N "(cached) $ECHO_C" >&6
9763 else
9764   ac_check_lib_save_LIBS=$LIBS
9765 LIBS="-ldl  $LIBS"
9766 cat >conftest.$ac_ext <<_ACEOF
9767 /* confdefs.h.  */
9768 _ACEOF
9769 cat confdefs.h >>conftest.$ac_ext
9770 cat >>conftest.$ac_ext <<_ACEOF
9771 /* end confdefs.h.  */
9772
9773 /* Override any GCC internal prototype to avoid an error.
9774    Use char because int might match the return type of a GCC
9775    builtin and then its argument prototype would still apply.  */
9776 #ifdef __cplusplus
9777 extern "C"
9778 #endif
9779 char dlopen ();
9780 int
9781 main ()
9782 {
9783 return dlopen ();
9784   ;
9785   return 0;
9786 }
9787 _ACEOF
9788 rm -f conftest.$ac_objext conftest$ac_exeext
9789 if { (ac_try="$ac_link"
9790 case "(($ac_try" in
9791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9792   *) ac_try_echo=$ac_try;;
9793 esac
9794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9795   (eval "$ac_link") 2>conftest.er1
9796   ac_status=$?
9797   grep -v '^ *+' conftest.er1 >conftest.err
9798   rm -f conftest.er1
9799   cat conftest.err >&5
9800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9801   (exit $ac_status); } && {
9802          test -z "$ac_c_werror_flag" ||
9803          test ! -s conftest.err
9804        } && test -s conftest$ac_exeext &&
9805        $as_test_x conftest$ac_exeext; then
9806   ac_cv_lib_dl_dlopen=yes
9807 else
9808   echo "$as_me: failed program was:" >&5
9809 sed 's/^/| /' conftest.$ac_ext >&5
9810
9811         ac_cv_lib_dl_dlopen=no
9812 fi
9813
9814 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9815       conftest$ac_exeext conftest.$ac_ext
9816 LIBS=$ac_check_lib_save_LIBS
9817 fi
9818 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9819 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9820 if test $ac_cv_lib_dl_dlopen = yes; then
9821   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9822 else
9823
9824     lt_cv_dlopen="dyld"
9825     lt_cv_dlopen_libs=
9826     lt_cv_dlopen_self=yes
9827
9828 fi
9829
9830    ;;
9831
9832   *)
9833     { echo "$as_me:$LINENO: checking for shl_load" >&5
9834 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9835 if test "${ac_cv_func_shl_load+set}" = set; then
9836   echo $ECHO_N "(cached) $ECHO_C" >&6
9837 else
9838   cat >conftest.$ac_ext <<_ACEOF
9839 /* confdefs.h.  */
9840 _ACEOF
9841 cat confdefs.h >>conftest.$ac_ext
9842 cat >>conftest.$ac_ext <<_ACEOF
9843 /* end confdefs.h.  */
9844 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9845    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9846 #define shl_load innocuous_shl_load
9847
9848 /* System header to define __stub macros and hopefully few prototypes,
9849     which can conflict with char shl_load (); below.
9850     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9851     <limits.h> exists even on freestanding compilers.  */
9852
9853 #ifdef __STDC__
9854 # include <limits.h>
9855 #else
9856 # include <assert.h>
9857 #endif
9858
9859 #undef shl_load
9860
9861 /* Override any GCC internal prototype to avoid an error.
9862    Use char because int might match the return type of a GCC
9863    builtin and then its argument prototype would still apply.  */
9864 #ifdef __cplusplus
9865 extern "C"
9866 #endif
9867 char shl_load ();
9868 /* The GNU C library defines this for functions which it implements
9869     to always fail with ENOSYS.  Some functions are actually named
9870     something starting with __ and the normal name is an alias.  */
9871 #if defined __stub_shl_load || defined __stub___shl_load
9872 choke me
9873 #endif
9874
9875 int
9876 main ()
9877 {
9878 return shl_load ();
9879   ;
9880   return 0;
9881 }
9882 _ACEOF
9883 rm -f conftest.$ac_objext conftest$ac_exeext
9884 if { (ac_try="$ac_link"
9885 case "(($ac_try" in
9886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9887   *) ac_try_echo=$ac_try;;
9888 esac
9889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9890   (eval "$ac_link") 2>conftest.er1
9891   ac_status=$?
9892   grep -v '^ *+' conftest.er1 >conftest.err
9893   rm -f conftest.er1
9894   cat conftest.err >&5
9895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9896   (exit $ac_status); } && {
9897          test -z "$ac_c_werror_flag" ||
9898          test ! -s conftest.err
9899        } && test -s conftest$ac_exeext &&
9900        $as_test_x conftest$ac_exeext; then
9901   ac_cv_func_shl_load=yes
9902 else
9903   echo "$as_me: failed program was:" >&5
9904 sed 's/^/| /' conftest.$ac_ext >&5
9905
9906         ac_cv_func_shl_load=no
9907 fi
9908
9909 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9910       conftest$ac_exeext conftest.$ac_ext
9911 fi
9912 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9913 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9914 if test $ac_cv_func_shl_load = yes; then
9915   lt_cv_dlopen="shl_load"
9916 else
9917   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9918 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9919 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9920   echo $ECHO_N "(cached) $ECHO_C" >&6
9921 else
9922   ac_check_lib_save_LIBS=$LIBS
9923 LIBS="-ldld  $LIBS"
9924 cat >conftest.$ac_ext <<_ACEOF
9925 /* confdefs.h.  */
9926 _ACEOF
9927 cat confdefs.h >>conftest.$ac_ext
9928 cat >>conftest.$ac_ext <<_ACEOF
9929 /* end confdefs.h.  */
9930
9931 /* Override any GCC internal prototype to avoid an error.
9932    Use char because int might match the return type of a GCC
9933    builtin and then its argument prototype would still apply.  */
9934 #ifdef __cplusplus
9935 extern "C"
9936 #endif
9937 char shl_load ();
9938 int
9939 main ()
9940 {
9941 return shl_load ();
9942   ;
9943   return 0;
9944 }
9945 _ACEOF
9946 rm -f conftest.$ac_objext conftest$ac_exeext
9947 if { (ac_try="$ac_link"
9948 case "(($ac_try" in
9949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9950   *) ac_try_echo=$ac_try;;
9951 esac
9952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9953   (eval "$ac_link") 2>conftest.er1
9954   ac_status=$?
9955   grep -v '^ *+' conftest.er1 >conftest.err
9956   rm -f conftest.er1
9957   cat conftest.err >&5
9958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9959   (exit $ac_status); } && {
9960          test -z "$ac_c_werror_flag" ||
9961          test ! -s conftest.err
9962        } && test -s conftest$ac_exeext &&
9963        $as_test_x conftest$ac_exeext; then
9964   ac_cv_lib_dld_shl_load=yes
9965 else
9966   echo "$as_me: failed program was:" >&5
9967 sed 's/^/| /' conftest.$ac_ext >&5
9968
9969         ac_cv_lib_dld_shl_load=no
9970 fi
9971
9972 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9973       conftest$ac_exeext conftest.$ac_ext
9974 LIBS=$ac_check_lib_save_LIBS
9975 fi
9976 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9977 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9978 if test $ac_cv_lib_dld_shl_load = yes; then
9979   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9980 else
9981   { echo "$as_me:$LINENO: checking for dlopen" >&5
9982 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9983 if test "${ac_cv_func_dlopen+set}" = set; then
9984   echo $ECHO_N "(cached) $ECHO_C" >&6
9985 else
9986   cat >conftest.$ac_ext <<_ACEOF
9987 /* confdefs.h.  */
9988 _ACEOF
9989 cat confdefs.h >>conftest.$ac_ext
9990 cat >>conftest.$ac_ext <<_ACEOF
9991 /* end confdefs.h.  */
9992 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9993    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9994 #define dlopen innocuous_dlopen
9995
9996 /* System header to define __stub macros and hopefully few prototypes,
9997     which can conflict with char dlopen (); below.
9998     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9999     <limits.h> exists even on freestanding compilers.  */
10000
10001 #ifdef __STDC__
10002 # include <limits.h>
10003 #else
10004 # include <assert.h>
10005 #endif
10006
10007 #undef dlopen
10008
10009 /* Override any GCC internal prototype to avoid an error.
10010    Use char because int might match the return type of a GCC
10011    builtin and then its argument prototype would still apply.  */
10012 #ifdef __cplusplus
10013 extern "C"
10014 #endif
10015 char dlopen ();
10016 /* The GNU C library defines this for functions which it implements
10017     to always fail with ENOSYS.  Some functions are actually named
10018     something starting with __ and the normal name is an alias.  */
10019 #if defined __stub_dlopen || defined __stub___dlopen
10020 choke me
10021 #endif
10022
10023 int
10024 main ()
10025 {
10026 return dlopen ();
10027   ;
10028   return 0;
10029 }
10030 _ACEOF
10031 rm -f conftest.$ac_objext conftest$ac_exeext
10032 if { (ac_try="$ac_link"
10033 case "(($ac_try" in
10034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10035   *) ac_try_echo=$ac_try;;
10036 esac
10037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10038   (eval "$ac_link") 2>conftest.er1
10039   ac_status=$?
10040   grep -v '^ *+' conftest.er1 >conftest.err
10041   rm -f conftest.er1
10042   cat conftest.err >&5
10043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044   (exit $ac_status); } && {
10045          test -z "$ac_c_werror_flag" ||
10046          test ! -s conftest.err
10047        } && test -s conftest$ac_exeext &&
10048        $as_test_x conftest$ac_exeext; then
10049   ac_cv_func_dlopen=yes
10050 else
10051   echo "$as_me: failed program was:" >&5
10052 sed 's/^/| /' conftest.$ac_ext >&5
10053
10054         ac_cv_func_dlopen=no
10055 fi
10056
10057 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10058       conftest$ac_exeext conftest.$ac_ext
10059 fi
10060 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10061 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10062 if test $ac_cv_func_dlopen = yes; then
10063   lt_cv_dlopen="dlopen"
10064 else
10065   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10066 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10067 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10068   echo $ECHO_N "(cached) $ECHO_C" >&6
10069 else
10070   ac_check_lib_save_LIBS=$LIBS
10071 LIBS="-ldl  $LIBS"
10072 cat >conftest.$ac_ext <<_ACEOF
10073 /* confdefs.h.  */
10074 _ACEOF
10075 cat confdefs.h >>conftest.$ac_ext
10076 cat >>conftest.$ac_ext <<_ACEOF
10077 /* end confdefs.h.  */
10078
10079 /* Override any GCC internal prototype to avoid an error.
10080    Use char because int might match the return type of a GCC
10081    builtin and then its argument prototype would still apply.  */
10082 #ifdef __cplusplus
10083 extern "C"
10084 #endif
10085 char dlopen ();
10086 int
10087 main ()
10088 {
10089 return dlopen ();
10090   ;
10091   return 0;
10092 }
10093 _ACEOF
10094 rm -f conftest.$ac_objext conftest$ac_exeext
10095 if { (ac_try="$ac_link"
10096 case "(($ac_try" in
10097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10098   *) ac_try_echo=$ac_try;;
10099 esac
10100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10101   (eval "$ac_link") 2>conftest.er1
10102   ac_status=$?
10103   grep -v '^ *+' conftest.er1 >conftest.err
10104   rm -f conftest.er1
10105   cat conftest.err >&5
10106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107   (exit $ac_status); } && {
10108          test -z "$ac_c_werror_flag" ||
10109          test ! -s conftest.err
10110        } && test -s conftest$ac_exeext &&
10111        $as_test_x conftest$ac_exeext; then
10112   ac_cv_lib_dl_dlopen=yes
10113 else
10114   echo "$as_me: failed program was:" >&5
10115 sed 's/^/| /' conftest.$ac_ext >&5
10116
10117         ac_cv_lib_dl_dlopen=no
10118 fi
10119
10120 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10121       conftest$ac_exeext conftest.$ac_ext
10122 LIBS=$ac_check_lib_save_LIBS
10123 fi
10124 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10125 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10126 if test $ac_cv_lib_dl_dlopen = yes; then
10127   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10128 else
10129   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10130 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10131 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10132   echo $ECHO_N "(cached) $ECHO_C" >&6
10133 else
10134   ac_check_lib_save_LIBS=$LIBS
10135 LIBS="-lsvld  $LIBS"
10136 cat >conftest.$ac_ext <<_ACEOF
10137 /* confdefs.h.  */
10138 _ACEOF
10139 cat confdefs.h >>conftest.$ac_ext
10140 cat >>conftest.$ac_ext <<_ACEOF
10141 /* end confdefs.h.  */
10142
10143 /* Override any GCC internal prototype to avoid an error.
10144    Use char because int might match the return type of a GCC
10145    builtin and then its argument prototype would still apply.  */
10146 #ifdef __cplusplus
10147 extern "C"
10148 #endif
10149 char dlopen ();
10150 int
10151 main ()
10152 {
10153 return dlopen ();
10154   ;
10155   return 0;
10156 }
10157 _ACEOF
10158 rm -f conftest.$ac_objext conftest$ac_exeext
10159 if { (ac_try="$ac_link"
10160 case "(($ac_try" in
10161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10162   *) ac_try_echo=$ac_try;;
10163 esac
10164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10165   (eval "$ac_link") 2>conftest.er1
10166   ac_status=$?
10167   grep -v '^ *+' conftest.er1 >conftest.err
10168   rm -f conftest.er1
10169   cat conftest.err >&5
10170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10171   (exit $ac_status); } && {
10172          test -z "$ac_c_werror_flag" ||
10173          test ! -s conftest.err
10174        } && test -s conftest$ac_exeext &&
10175        $as_test_x conftest$ac_exeext; then
10176   ac_cv_lib_svld_dlopen=yes
10177 else
10178   echo "$as_me: failed program was:" >&5
10179 sed 's/^/| /' conftest.$ac_ext >&5
10180
10181         ac_cv_lib_svld_dlopen=no
10182 fi
10183
10184 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10185       conftest$ac_exeext conftest.$ac_ext
10186 LIBS=$ac_check_lib_save_LIBS
10187 fi
10188 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10189 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10190 if test $ac_cv_lib_svld_dlopen = yes; then
10191   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10192 else
10193   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10194 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10195 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10196   echo $ECHO_N "(cached) $ECHO_C" >&6
10197 else
10198   ac_check_lib_save_LIBS=$LIBS
10199 LIBS="-ldld  $LIBS"
10200 cat >conftest.$ac_ext <<_ACEOF
10201 /* confdefs.h.  */
10202 _ACEOF
10203 cat confdefs.h >>conftest.$ac_ext
10204 cat >>conftest.$ac_ext <<_ACEOF
10205 /* end confdefs.h.  */
10206
10207 /* Override any GCC internal prototype to avoid an error.
10208    Use char because int might match the return type of a GCC
10209    builtin and then its argument prototype would still apply.  */
10210 #ifdef __cplusplus
10211 extern "C"
10212 #endif
10213 char dld_link ();
10214 int
10215 main ()
10216 {
10217 return dld_link ();
10218   ;
10219   return 0;
10220 }
10221 _ACEOF
10222 rm -f conftest.$ac_objext conftest$ac_exeext
10223 if { (ac_try="$ac_link"
10224 case "(($ac_try" in
10225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10226   *) ac_try_echo=$ac_try;;
10227 esac
10228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10229   (eval "$ac_link") 2>conftest.er1
10230   ac_status=$?
10231   grep -v '^ *+' conftest.er1 >conftest.err
10232   rm -f conftest.er1
10233   cat conftest.err >&5
10234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10235   (exit $ac_status); } && {
10236          test -z "$ac_c_werror_flag" ||
10237          test ! -s conftest.err
10238        } && test -s conftest$ac_exeext &&
10239        $as_test_x conftest$ac_exeext; then
10240   ac_cv_lib_dld_dld_link=yes
10241 else
10242   echo "$as_me: failed program was:" >&5
10243 sed 's/^/| /' conftest.$ac_ext >&5
10244
10245         ac_cv_lib_dld_dld_link=no
10246 fi
10247
10248 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10249       conftest$ac_exeext conftest.$ac_ext
10250 LIBS=$ac_check_lib_save_LIBS
10251 fi
10252 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10253 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10254 if test $ac_cv_lib_dld_dld_link = yes; then
10255   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10256 fi
10257
10258
10259 fi
10260
10261
10262 fi
10263
10264
10265 fi
10266
10267
10268 fi
10269
10270
10271 fi
10272
10273     ;;
10274   esac
10275
10276   if test "x$lt_cv_dlopen" != xno; then
10277     enable_dlopen=yes
10278   else
10279     enable_dlopen=no
10280   fi
10281
10282   case $lt_cv_dlopen in
10283   dlopen)
10284     save_CPPFLAGS="$CPPFLAGS"
10285     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10286
10287     save_LDFLAGS="$LDFLAGS"
10288     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10289
10290     save_LIBS="$LIBS"
10291     LIBS="$lt_cv_dlopen_libs $LIBS"
10292
10293     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10294 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10295 if test "${lt_cv_dlopen_self+set}" = set; then
10296   echo $ECHO_N "(cached) $ECHO_C" >&6
10297 else
10298           if test "$cross_compiling" = yes; then :
10299   lt_cv_dlopen_self=cross
10300 else
10301   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10302   lt_status=$lt_dlunknown
10303   cat > conftest.$ac_ext <<EOF
10304 #line 10304 "configure"
10305 #include "confdefs.h"
10306
10307 #if HAVE_DLFCN_H
10308 #include <dlfcn.h>
10309 #endif
10310
10311 #include <stdio.h>
10312
10313 #ifdef RTLD_GLOBAL
10314 #  define LT_DLGLOBAL           RTLD_GLOBAL
10315 #else
10316 #  ifdef DL_GLOBAL
10317 #    define LT_DLGLOBAL         DL_GLOBAL
10318 #  else
10319 #    define LT_DLGLOBAL         0
10320 #  endif
10321 #endif
10322
10323 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10324    find out it does not work in some platform. */
10325 #ifndef LT_DLLAZY_OR_NOW
10326 #  ifdef RTLD_LAZY
10327 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10328 #  else
10329 #    ifdef DL_LAZY
10330 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10331 #    else
10332 #      ifdef RTLD_NOW
10333 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10334 #      else
10335 #        ifdef DL_NOW
10336 #          define LT_DLLAZY_OR_NOW      DL_NOW
10337 #        else
10338 #          define LT_DLLAZY_OR_NOW      0
10339 #        endif
10340 #      endif
10341 #    endif
10342 #  endif
10343 #endif
10344
10345 #ifdef __cplusplus
10346 extern "C" void exit (int);
10347 #endif
10348
10349 void fnord() { int i=42;}
10350 int main ()
10351 {
10352   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10353   int status = $lt_dlunknown;
10354
10355   if (self)
10356     {
10357       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10358       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10359       /* dlclose (self); */
10360     }
10361   else
10362     puts (dlerror ());
10363
10364     exit (status);
10365 }
10366 EOF
10367   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10368   (eval $ac_link) 2>&5
10369   ac_status=$?
10370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10371   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10372     (./conftest; exit; ) >&5 2>/dev/null
10373     lt_status=$?
10374     case x$lt_status in
10375       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10376       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10377       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10378     esac
10379   else :
10380     # compilation failed
10381     lt_cv_dlopen_self=no
10382   fi
10383 fi
10384 rm -fr conftest*
10385
10386
10387 fi
10388 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10389 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10390
10391     if test "x$lt_cv_dlopen_self" = xyes; then
10392       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10393       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10394 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10395 if test "${lt_cv_dlopen_self_static+set}" = set; then
10396   echo $ECHO_N "(cached) $ECHO_C" >&6
10397 else
10398           if test "$cross_compiling" = yes; then :
10399   lt_cv_dlopen_self_static=cross
10400 else
10401   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10402   lt_status=$lt_dlunknown
10403   cat > conftest.$ac_ext <<EOF
10404 #line 10404 "configure"
10405 #include "confdefs.h"
10406
10407 #if HAVE_DLFCN_H
10408 #include <dlfcn.h>
10409 #endif
10410
10411 #include <stdio.h>
10412
10413 #ifdef RTLD_GLOBAL
10414 #  define LT_DLGLOBAL           RTLD_GLOBAL
10415 #else
10416 #  ifdef DL_GLOBAL
10417 #    define LT_DLGLOBAL         DL_GLOBAL
10418 #  else
10419 #    define LT_DLGLOBAL         0
10420 #  endif
10421 #endif
10422
10423 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10424    find out it does not work in some platform. */
10425 #ifndef LT_DLLAZY_OR_NOW
10426 #  ifdef RTLD_LAZY
10427 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10428 #  else
10429 #    ifdef DL_LAZY
10430 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10431 #    else
10432 #      ifdef RTLD_NOW
10433 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10434 #      else
10435 #        ifdef DL_NOW
10436 #          define LT_DLLAZY_OR_NOW      DL_NOW
10437 #        else
10438 #          define LT_DLLAZY_OR_NOW      0
10439 #        endif
10440 #      endif
10441 #    endif
10442 #  endif
10443 #endif
10444
10445 #ifdef __cplusplus
10446 extern "C" void exit (int);
10447 #endif
10448
10449 void fnord() { int i=42;}
10450 int main ()
10451 {
10452   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10453   int status = $lt_dlunknown;
10454
10455   if (self)
10456     {
10457       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10458       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10459       /* dlclose (self); */
10460     }
10461   else
10462     puts (dlerror ());
10463
10464     exit (status);
10465 }
10466 EOF
10467   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10468   (eval $ac_link) 2>&5
10469   ac_status=$?
10470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10471   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10472     (./conftest; exit; ) >&5 2>/dev/null
10473     lt_status=$?
10474     case x$lt_status in
10475       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10476       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10477       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10478     esac
10479   else :
10480     # compilation failed
10481     lt_cv_dlopen_self_static=no
10482   fi
10483 fi
10484 rm -fr conftest*
10485
10486
10487 fi
10488 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10489 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10490     fi
10491
10492     CPPFLAGS="$save_CPPFLAGS"
10493     LDFLAGS="$save_LDFLAGS"
10494     LIBS="$save_LIBS"
10495     ;;
10496   esac
10497
10498   case $lt_cv_dlopen_self in
10499   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10500   *) enable_dlopen_self=unknown ;;
10501   esac
10502
10503   case $lt_cv_dlopen_self_static in
10504   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10505   *) enable_dlopen_self_static=unknown ;;
10506   esac
10507 fi
10508
10509
10510 # Report which library types will actually be built
10511 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10512 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10513 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10514 echo "${ECHO_T}$can_build_shared" >&6; }
10515
10516 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10517 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10518 test "$can_build_shared" = "no" && enable_shared=no
10519
10520 # On AIX, shared libraries and static libraries use the same namespace, and
10521 # are all built from PIC.
10522 case $host_os in
10523 aix3*)
10524   test "$enable_shared" = yes && enable_static=no
10525   if test -n "$RANLIB"; then
10526     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10527     postinstall_cmds='$RANLIB $lib'
10528   fi
10529   ;;
10530
10531 aix[4-9]*)
10532   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10533     test "$enable_shared" = yes && enable_static=no
10534   fi
10535     ;;
10536 esac
10537 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10538 echo "${ECHO_T}$enable_shared" >&6; }
10539
10540 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10541 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10542 # Make sure either enable_shared or enable_static is yes.
10543 test "$enable_shared" = yes || enable_static=yes
10544 { echo "$as_me:$LINENO: result: $enable_static" >&5
10545 echo "${ECHO_T}$enable_static" >&6; }
10546
10547 # The else clause should only fire when bootstrapping the
10548 # libtool distribution, otherwise you forgot to ship ltmain.sh
10549 # with your package, and you will get complaints that there are
10550 # no rules to generate ltmain.sh.
10551 if test -f "$ltmain"; then
10552   # See if we are running on zsh, and set the options which allow our commands through
10553   # without removal of \ escapes.
10554   if test -n "${ZSH_VERSION+set}" ; then
10555     setopt NO_GLOB_SUBST
10556   fi
10557   # Now quote all the things that may contain metacharacters while being
10558   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10559   # variables and quote the copies for generation of the libtool script.
10560   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10561     SED SHELL STRIP \
10562     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10563     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10564     deplibs_check_method reload_flag reload_cmds need_locks \
10565     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10566     lt_cv_sys_global_symbol_to_c_name_address \
10567     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10568     old_postinstall_cmds old_postuninstall_cmds \
10569     compiler \
10570     CC \
10571     LD \
10572     lt_prog_compiler_wl \
10573     lt_prog_compiler_pic \
10574     lt_prog_compiler_static \
10575     lt_prog_compiler_no_builtin_flag \
10576     export_dynamic_flag_spec \
10577     thread_safe_flag_spec \
10578     whole_archive_flag_spec \
10579     enable_shared_with_static_runtimes \
10580     old_archive_cmds \
10581     old_archive_from_new_cmds \
10582     predep_objects \
10583     postdep_objects \
10584     predeps \
10585     postdeps \
10586     compiler_lib_search_path \
10587     compiler_lib_search_dirs \
10588     archive_cmds \
10589     archive_expsym_cmds \
10590     postinstall_cmds \
10591     postuninstall_cmds \
10592     old_archive_from_expsyms_cmds \
10593     allow_undefined_flag \
10594     no_undefined_flag \
10595     export_symbols_cmds \
10596     hardcode_libdir_flag_spec \
10597     hardcode_libdir_flag_spec_ld \
10598     hardcode_libdir_separator \
10599     hardcode_automatic \
10600     module_cmds \
10601     module_expsym_cmds \
10602     lt_cv_prog_compiler_c_o \
10603     fix_srcfile_path \
10604     exclude_expsyms \
10605     include_expsyms; do
10606
10607     case $var in
10608     old_archive_cmds | \
10609     old_archive_from_new_cmds | \
10610     archive_cmds | \
10611     archive_expsym_cmds | \
10612     module_cmds | \
10613     module_expsym_cmds | \
10614     old_archive_from_expsyms_cmds | \
10615     export_symbols_cmds | \
10616     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10617     postinstall_cmds | postuninstall_cmds | \
10618     old_postinstall_cmds | old_postuninstall_cmds | \
10619     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10620       # Double-quote double-evaled strings.
10621       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10622       ;;
10623     *)
10624       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10625       ;;
10626     esac
10627   done
10628
10629   case $lt_echo in
10630   *'\$0 --fallback-echo"')
10631     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10632     ;;
10633   esac
10634
10635 cfgfile="${ofile}T"
10636   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10637   $rm -f "$cfgfile"
10638   { echo "$as_me:$LINENO: creating $ofile" >&5
10639 echo "$as_me: creating $ofile" >&6;}
10640
10641   cat <<__EOF__ >> "$cfgfile"
10642 #! $SHELL
10643
10644 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10645 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10646 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10647 #
10648 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10649 # Free Software Foundation, Inc.
10650 #
10651 # This file is part of GNU Libtool:
10652 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10653 #
10654 # This program is free software; you can redistribute it and/or modify
10655 # it under the terms of the GNU General Public License as published by
10656 # the Free Software Foundation; either version 2 of the License, or
10657 # (at your option) any later version.
10658 #
10659 # This program is distributed in the hope that it will be useful, but
10660 # WITHOUT ANY WARRANTY; without even the implied warranty of
10661 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10662 # General Public License for more details.
10663 #
10664 # You should have received a copy of the GNU General Public License
10665 # along with this program; if not, write to the Free Software
10666 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10667 #
10668 # As a special exception to the GNU General Public License, if you
10669 # distribute this file as part of a program that contains a
10670 # configuration script generated by Autoconf, you may include it under
10671 # the same distribution terms that you use for the rest of that program.
10672
10673 # A sed program that does not truncate output.
10674 SED=$lt_SED
10675
10676 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10677 Xsed="$SED -e 1s/^X//"
10678
10679 # The HP-UX ksh and POSIX shell print the target directory to stdout
10680 # if CDPATH is set.
10681 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10682
10683 # The names of the tagged configurations supported by this script.
10684 available_tags=
10685
10686 # ### BEGIN LIBTOOL CONFIG
10687
10688 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10689
10690 # Shell to use when invoking shell scripts.
10691 SHELL=$lt_SHELL
10692
10693 # Whether or not to build shared libraries.
10694 build_libtool_libs=$enable_shared
10695
10696 # Whether or not to build static libraries.
10697 build_old_libs=$enable_static
10698
10699 # Whether or not to add -lc for building shared libraries.
10700 build_libtool_need_lc=$archive_cmds_need_lc
10701
10702 # Whether or not to disallow shared libs when runtime libs are static
10703 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10704
10705 # Whether or not to optimize for fast installation.
10706 fast_install=$enable_fast_install
10707
10708 # The host system.
10709 host_alias=$host_alias
10710 host=$host
10711 host_os=$host_os
10712
10713 # The build system.
10714 build_alias=$build_alias
10715 build=$build
10716 build_os=$build_os
10717
10718 # An echo program that does not interpret backslashes.
10719 echo=$lt_echo
10720
10721 # The archiver.
10722 AR=$lt_AR
10723 AR_FLAGS=$lt_AR_FLAGS
10724
10725 # A C compiler.
10726 LTCC=$lt_LTCC
10727
10728 # LTCC compiler flags.
10729 LTCFLAGS=$lt_LTCFLAGS
10730
10731 # A language-specific compiler.
10732 CC=$lt_compiler
10733
10734 # Is the compiler the GNU C compiler?
10735 with_gcc=$GCC
10736
10737 # An ERE matcher.
10738 EGREP=$lt_EGREP
10739
10740 # The linker used to build libraries.
10741 LD=$lt_LD
10742
10743 # Whether we need hard or soft links.
10744 LN_S=$lt_LN_S
10745
10746 # A BSD-compatible nm program.
10747 NM=$lt_NM
10748
10749 # A symbol stripping program
10750 STRIP=$lt_STRIP
10751
10752 # Used to examine libraries when file_magic_cmd begins "file"
10753 MAGIC_CMD=$MAGIC_CMD
10754
10755 # Used on cygwin: DLL creation program.
10756 DLLTOOL="$DLLTOOL"
10757
10758 # Used on cygwin: object dumper.
10759 OBJDUMP="$OBJDUMP"
10760
10761 # Used on cygwin: assembler.
10762 AS="$AS"
10763
10764 # The name of the directory that contains temporary libtool files.
10765 objdir=$objdir
10766
10767 # How to create reloadable object files.
10768 reload_flag=$lt_reload_flag
10769 reload_cmds=$lt_reload_cmds
10770
10771 # How to pass a linker flag through the compiler.
10772 wl=$lt_lt_prog_compiler_wl
10773
10774 # Object file suffix (normally "o").
10775 objext="$ac_objext"
10776
10777 # Old archive suffix (normally "a").
10778 libext="$libext"
10779
10780 # Shared library suffix (normally ".so").
10781 shrext_cmds='$shrext_cmds'
10782
10783 # Executable file suffix (normally "").
10784 exeext="$exeext"
10785
10786 # Additional compiler flags for building library objects.
10787 pic_flag=$lt_lt_prog_compiler_pic
10788 pic_mode=$pic_mode
10789
10790 # What is the maximum length of a command?
10791 max_cmd_len=$lt_cv_sys_max_cmd_len
10792
10793 # Does compiler simultaneously support -c and -o options?
10794 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10795
10796 # Must we lock files when doing compilation?
10797 need_locks=$lt_need_locks
10798
10799 # Do we need the lib prefix for modules?
10800 need_lib_prefix=$need_lib_prefix
10801
10802 # Do we need a version for libraries?
10803 need_version=$need_version
10804
10805 # Whether dlopen is supported.
10806 dlopen_support=$enable_dlopen
10807
10808 # Whether dlopen of programs is supported.
10809 dlopen_self=$enable_dlopen_self
10810
10811 # Whether dlopen of statically linked programs is supported.
10812 dlopen_self_static=$enable_dlopen_self_static
10813
10814 # Compiler flag to prevent dynamic linking.
10815 link_static_flag=$lt_lt_prog_compiler_static
10816
10817 # Compiler flag to turn off builtin functions.
10818 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10819
10820 # Compiler flag to allow reflexive dlopens.
10821 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10822
10823 # Compiler flag to generate shared objects directly from archives.
10824 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10825
10826 # Compiler flag to generate thread-safe objects.
10827 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10828
10829 # Library versioning type.
10830 version_type=$version_type
10831
10832 # Format of library name prefix.
10833 libname_spec=$lt_libname_spec
10834
10835 # List of archive names.  First name is the real one, the rest are links.
10836 # The last name is the one that the linker finds with -lNAME.
10837 library_names_spec=$lt_library_names_spec
10838
10839 # The coded name of the library, if different from the real name.
10840 soname_spec=$lt_soname_spec
10841
10842 # Commands used to build and install an old-style archive.
10843 RANLIB=$lt_RANLIB
10844 old_archive_cmds=$lt_old_archive_cmds
10845 old_postinstall_cmds=$lt_old_postinstall_cmds
10846 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10847
10848 # Create an old-style archive from a shared archive.
10849 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10850
10851 # Create a temporary old-style archive to link instead of a shared archive.
10852 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10853
10854 # Commands used to build and install a shared archive.
10855 archive_cmds=$lt_archive_cmds
10856 archive_expsym_cmds=$lt_archive_expsym_cmds
10857 postinstall_cmds=$lt_postinstall_cmds
10858 postuninstall_cmds=$lt_postuninstall_cmds
10859
10860 # Commands used to build a loadable module (assumed same as above if empty)
10861 module_cmds=$lt_module_cmds
10862 module_expsym_cmds=$lt_module_expsym_cmds
10863
10864 # Commands to strip libraries.
10865 old_striplib=$lt_old_striplib
10866 striplib=$lt_striplib
10867
10868 # Dependencies to place before the objects being linked to create a
10869 # shared library.
10870 predep_objects=$lt_predep_objects
10871
10872 # Dependencies to place after the objects being linked to create a
10873 # shared library.
10874 postdep_objects=$lt_postdep_objects
10875
10876 # Dependencies to place before the objects being linked to create a
10877 # shared library.
10878 predeps=$lt_predeps
10879
10880 # Dependencies to place after the objects being linked to create a
10881 # shared library.
10882 postdeps=$lt_postdeps
10883
10884 # The directories searched by this compiler when creating a shared
10885 # library
10886 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10887
10888 # The library search path used internally by the compiler when linking
10889 # a shared library.
10890 compiler_lib_search_path=$lt_compiler_lib_search_path
10891
10892 # Method to check whether dependent libraries are shared objects.
10893 deplibs_check_method=$lt_deplibs_check_method
10894
10895 # Command to use when deplibs_check_method == file_magic.
10896 file_magic_cmd=$lt_file_magic_cmd
10897
10898 # Flag that allows shared libraries with undefined symbols to be built.
10899 allow_undefined_flag=$lt_allow_undefined_flag
10900
10901 # Flag that forces no undefined symbols.
10902 no_undefined_flag=$lt_no_undefined_flag
10903
10904 # Commands used to finish a libtool library installation in a directory.
10905 finish_cmds=$lt_finish_cmds
10906
10907 # Same as above, but a single script fragment to be evaled but not shown.
10908 finish_eval=$lt_finish_eval
10909
10910 # Take the output of nm and produce a listing of raw symbols and C names.
10911 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10912
10913 # Transform the output of nm in a proper C declaration
10914 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10915
10916 # Transform the output of nm in a C name address pair
10917 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10918
10919 # This is the shared library runtime path variable.
10920 runpath_var=$runpath_var
10921
10922 # This is the shared library path variable.
10923 shlibpath_var=$shlibpath_var
10924
10925 # Is shlibpath searched before the hard-coded library search path?
10926 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10927
10928 # How to hardcode a shared library path into an executable.
10929 hardcode_action=$hardcode_action
10930
10931 # Whether we should hardcode library paths into libraries.
10932 hardcode_into_libs=$hardcode_into_libs
10933
10934 # Flag to hardcode \$libdir into a binary during linking.
10935 # This must work even if \$libdir does not exist.
10936 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10937
10938 # If ld is used when linking, flag to hardcode \$libdir into
10939 # a binary during linking. This must work even if \$libdir does
10940 # not exist.
10941 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10942
10943 # Whether we need a single -rpath flag with a separated argument.
10944 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10945
10946 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10947 # resulting binary.
10948 hardcode_direct=$hardcode_direct
10949
10950 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10951 # resulting binary.
10952 hardcode_minus_L=$hardcode_minus_L
10953
10954 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10955 # the resulting binary.
10956 hardcode_shlibpath_var=$hardcode_shlibpath_var
10957
10958 # Set to yes if building a shared library automatically hardcodes DIR into the library
10959 # and all subsequent libraries and executables linked against it.
10960 hardcode_automatic=$hardcode_automatic
10961
10962 # Variables whose values should be saved in libtool wrapper scripts and
10963 # restored at relink time.
10964 variables_saved_for_relink="$variables_saved_for_relink"
10965
10966 # Whether libtool must link a program against all its dependency libraries.
10967 link_all_deplibs=$link_all_deplibs
10968
10969 # Compile-time system search path for libraries
10970 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10971
10972 # Run-time system search path for libraries
10973 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10974
10975 # Fix the shell variable \$srcfile for the compiler.
10976 fix_srcfile_path=$lt_fix_srcfile_path
10977
10978 # Set to yes if exported symbols are required.
10979 always_export_symbols=$always_export_symbols
10980
10981 # The commands to list exported symbols.
10982 export_symbols_cmds=$lt_export_symbols_cmds
10983
10984 # The commands to extract the exported symbol list from a shared archive.
10985 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10986
10987 # Symbols that should not be listed in the preloaded symbols.
10988 exclude_expsyms=$lt_exclude_expsyms
10989
10990 # Symbols that must always be exported.
10991 include_expsyms=$lt_include_expsyms
10992
10993 # ### END LIBTOOL CONFIG
10994
10995 __EOF__
10996
10997
10998   case $host_os in
10999   aix3*)
11000     cat <<\EOF >> "$cfgfile"
11001
11002 # AIX sometimes has problems with the GCC collect2 program.  For some
11003 # reason, if we set the COLLECT_NAMES environment variable, the problems
11004 # vanish in a puff of smoke.
11005 if test "X${COLLECT_NAMES+set}" != Xset; then
11006   COLLECT_NAMES=
11007   export COLLECT_NAMES
11008 fi
11009 EOF
11010     ;;
11011   esac
11012
11013   # We use sed instead of cat because bash on DJGPP gets confused if
11014   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11015   # text mode, it properly converts lines to CR/LF.  This bash problem
11016   # is reportedly fixed, but why not run on old versions too?
11017   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11018
11019   mv -f "$cfgfile" "$ofile" || \
11020     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11021   chmod +x "$ofile"
11022
11023 else
11024   # If there is no Makefile yet, we rely on a make rule to execute
11025   # `config.status --recheck' to rerun these tests and create the
11026   # libtool script then.
11027   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11028   if test -f "$ltmain_in"; then
11029     test -f Makefile && make "$ltmain"
11030   fi
11031 fi
11032
11033
11034 ac_ext=c
11035 ac_cpp='$CPP $CPPFLAGS'
11036 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11037 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11038 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11039
11040 CC="$lt_save_CC"
11041
11042
11043 # Check whether --with-tags was given.
11044 if test "${with_tags+set}" = set; then
11045   withval=$with_tags; tagnames="$withval"
11046 fi
11047
11048
11049 if test -f "$ltmain" && test -n "$tagnames"; then
11050   if test ! -f "${ofile}"; then
11051     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11052 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11053   fi
11054
11055   if test -z "$LTCC"; then
11056     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11057     if test -z "$LTCC"; then
11058       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11059 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11060     else
11061       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11062 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11063     fi
11064   fi
11065   if test -z "$LTCFLAGS"; then
11066     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11067   fi
11068
11069   # Extract list of available tagged configurations in $ofile.
11070   # Note that this assumes the entire list is on one line.
11071   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11072
11073   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11074   for tagname in $tagnames; do
11075     IFS="$lt_save_ifs"
11076     # Check whether tagname contains only valid characters
11077     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11078     "") ;;
11079     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11080 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11081    { (exit 1); exit 1; }; }
11082         ;;
11083     esac
11084
11085     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11086     then
11087       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11088 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11089    { (exit 1); exit 1; }; }
11090     fi
11091
11092     # Update the list of available tags.
11093     if test -n "$tagname"; then
11094       echo appending configuration tag \"$tagname\" to $ofile
11095
11096       case $tagname in
11097       CXX)
11098         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11099             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11100             (test "X$CXX" != "Xg++"))) ; then
11101           ac_ext=cpp
11102 ac_cpp='$CXXCPP $CPPFLAGS'
11103 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11104 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11105 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11106
11107
11108
11109
11110 archive_cmds_need_lc_CXX=no
11111 allow_undefined_flag_CXX=
11112 always_export_symbols_CXX=no
11113 archive_expsym_cmds_CXX=
11114 export_dynamic_flag_spec_CXX=
11115 hardcode_direct_CXX=no
11116 hardcode_libdir_flag_spec_CXX=
11117 hardcode_libdir_flag_spec_ld_CXX=
11118 hardcode_libdir_separator_CXX=
11119 hardcode_minus_L_CXX=no
11120 hardcode_shlibpath_var_CXX=unsupported
11121 hardcode_automatic_CXX=no
11122 module_cmds_CXX=
11123 module_expsym_cmds_CXX=
11124 link_all_deplibs_CXX=unknown
11125 old_archive_cmds_CXX=$old_archive_cmds
11126 no_undefined_flag_CXX=
11127 whole_archive_flag_spec_CXX=
11128 enable_shared_with_static_runtimes_CXX=no
11129
11130 # Dependencies to place before and after the object being linked:
11131 predep_objects_CXX=
11132 postdep_objects_CXX=
11133 predeps_CXX=
11134 postdeps_CXX=
11135 compiler_lib_search_path_CXX=
11136 compiler_lib_search_dirs_CXX=
11137
11138 # Source file extension for C++ test sources.
11139 ac_ext=cpp
11140
11141 # Object file extension for compiled C++ test sources.
11142 objext=o
11143 objext_CXX=$objext
11144
11145 # Code to be used in simple compile tests
11146 lt_simple_compile_test_code="int some_variable = 0;"
11147
11148 # Code to be used in simple link tests
11149 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11150
11151 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11152
11153 # If no C compiler was specified, use CC.
11154 LTCC=${LTCC-"$CC"}
11155
11156 # If no C compiler flags were specified, use CFLAGS.
11157 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11158
11159 # Allow CC to be a program name with arguments.
11160 compiler=$CC
11161
11162
11163 # save warnings/boilerplate of simple test code
11164 ac_outfile=conftest.$ac_objext
11165 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11166 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11167 _lt_compiler_boilerplate=`cat conftest.err`
11168 $rm conftest*
11169
11170 ac_outfile=conftest.$ac_objext
11171 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11172 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11173 _lt_linker_boilerplate=`cat conftest.err`
11174 $rm -r conftest*
11175
11176
11177 # Allow CC to be a program name with arguments.
11178 lt_save_CC=$CC
11179 lt_save_LD=$LD
11180 lt_save_GCC=$GCC
11181 GCC=$GXX
11182 lt_save_with_gnu_ld=$with_gnu_ld
11183 lt_save_path_LD=$lt_cv_path_LD
11184 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11185   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11186 else
11187   $as_unset lt_cv_prog_gnu_ld
11188 fi
11189 if test -n "${lt_cv_path_LDCXX+set}"; then
11190   lt_cv_path_LD=$lt_cv_path_LDCXX
11191 else
11192   $as_unset lt_cv_path_LD
11193 fi
11194 test -z "${LDCXX+set}" || LD=$LDCXX
11195 CC=${CXX-"c++"}
11196 compiler=$CC
11197 compiler_CXX=$CC
11198 for cc_temp in $compiler""; do
11199   case $cc_temp in
11200     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11201     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11202     \-*) ;;
11203     *) break;;
11204   esac
11205 done
11206 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11207
11208
11209 # We don't want -fno-exception wen compiling C++ code, so set the
11210 # no_builtin_flag separately
11211 if test "$GXX" = yes; then
11212   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11213 else
11214   lt_prog_compiler_no_builtin_flag_CXX=
11215 fi
11216
11217 if test "$GXX" = yes; then
11218   # Set up default GNU C++ configuration
11219
11220
11221 # Check whether --with-gnu-ld was given.
11222 if test "${with_gnu_ld+set}" = set; then
11223   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11224 else
11225   with_gnu_ld=no
11226 fi
11227
11228 ac_prog=ld
11229 if test "$GCC" = yes; then
11230   # Check if gcc -print-prog-name=ld gives a path.
11231   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11232 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11233   case $host in
11234   *-*-mingw*)
11235     # gcc leaves a trailing carriage return which upsets mingw
11236     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11237   *)
11238     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11239   esac
11240   case $ac_prog in
11241     # Accept absolute paths.
11242     [\\/]* | ?:[\\/]*)
11243       re_direlt='/[^/][^/]*/\.\./'
11244       # Canonicalize the pathname of ld
11245       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11246       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11247         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11248       done
11249       test -z "$LD" && LD="$ac_prog"
11250       ;;
11251   "")
11252     # If it fails, then pretend we aren't using GCC.
11253     ac_prog=ld
11254     ;;
11255   *)
11256     # If it is relative, then search for the first ld in PATH.
11257     with_gnu_ld=unknown
11258     ;;
11259   esac
11260 elif test "$with_gnu_ld" = yes; then
11261   { echo "$as_me:$LINENO: checking for GNU ld" >&5
11262 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11263 else
11264   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11265 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11266 fi
11267 if test "${lt_cv_path_LD+set}" = set; then
11268   echo $ECHO_N "(cached) $ECHO_C" >&6
11269 else
11270   if test -z "$LD"; then
11271   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11272   for ac_dir in $PATH; do
11273     IFS="$lt_save_ifs"
11274     test -z "$ac_dir" && ac_dir=.
11275     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11276       lt_cv_path_LD="$ac_dir/$ac_prog"
11277       # Check to see if the program is GNU ld.  I'd rather use --version,
11278       # but apparently some variants of GNU ld only accept -v.
11279       # Break only if it was the GNU/non-GNU ld that we prefer.
11280       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11281       *GNU* | *'with BFD'*)
11282         test "$with_gnu_ld" != no && break
11283         ;;
11284       *)
11285         test "$with_gnu_ld" != yes && break
11286         ;;
11287       esac
11288     fi
11289   done
11290   IFS="$lt_save_ifs"
11291 else
11292   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11293 fi
11294 fi
11295
11296 LD="$lt_cv_path_LD"
11297 if test -n "$LD"; then
11298   { echo "$as_me:$LINENO: result: $LD" >&5
11299 echo "${ECHO_T}$LD" >&6; }
11300 else
11301   { echo "$as_me:$LINENO: result: no" >&5
11302 echo "${ECHO_T}no" >&6; }
11303 fi
11304 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11305 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11306    { (exit 1); exit 1; }; }
11307 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11308 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11309 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11310   echo $ECHO_N "(cached) $ECHO_C" >&6
11311 else
11312   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11313 case `$LD -v 2>&1 </dev/null` in
11314 *GNU* | *'with BFD'*)
11315   lt_cv_prog_gnu_ld=yes
11316   ;;
11317 *)
11318   lt_cv_prog_gnu_ld=no
11319   ;;
11320 esac
11321 fi
11322 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11323 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11324 with_gnu_ld=$lt_cv_prog_gnu_ld
11325
11326
11327
11328   # Check if GNU C++ uses GNU ld as the underlying linker, since the
11329   # archiving commands below assume that GNU ld is being used.
11330   if test "$with_gnu_ld" = yes; then
11331     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11332     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'
11333
11334     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11335     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11336
11337     # If archive_cmds runs LD, not CC, wlarc should be empty
11338     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11339     #     investigate it a little bit more. (MM)
11340     wlarc='${wl}'
11341
11342     # ancient GNU ld didn't support --whole-archive et. al.
11343     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11344         grep 'no-whole-archive' > /dev/null; then
11345       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11346     else
11347       whole_archive_flag_spec_CXX=
11348     fi
11349   else
11350     with_gnu_ld=no
11351     wlarc=
11352
11353     # A generic and very simple default shared library creation
11354     # command for GNU C++ for the case where it uses the native
11355     # linker, instead of GNU ld.  If possible, this setting should
11356     # overridden to take advantage of the native linker features on
11357     # the platform it is being used on.
11358     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11359   fi
11360
11361   # Commands to make compiler produce verbose output that lists
11362   # what "hidden" libraries, object files and flags are used when
11363   # linking a shared library.
11364   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11365
11366 else
11367   GXX=no
11368   with_gnu_ld=no
11369   wlarc=
11370 fi
11371
11372 # PORTME: fill in a description of your system's C++ link characteristics
11373 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11374 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11375 ld_shlibs_CXX=yes
11376 case $host_os in
11377   aix3*)
11378     # FIXME: insert proper C++ library support
11379     ld_shlibs_CXX=no
11380     ;;
11381   aix[4-9]*)
11382     if test "$host_cpu" = ia64; then
11383       # On IA64, the linker does run time linking by default, so we don't
11384       # have to do anything special.
11385       aix_use_runtimelinking=no
11386       exp_sym_flag='-Bexport'
11387       no_entry_flag=""
11388     else
11389       aix_use_runtimelinking=no
11390
11391       # Test if we are trying to use run time linking or normal
11392       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11393       # need to do runtime linking.
11394       case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11395         for ld_flag in $LDFLAGS; do
11396           case $ld_flag in
11397           *-brtl*)
11398             aix_use_runtimelinking=yes
11399             break
11400             ;;
11401           esac
11402         done
11403         ;;
11404       esac
11405
11406       exp_sym_flag='-bexport'
11407       no_entry_flag='-bnoentry'
11408     fi
11409
11410     # When large executables or shared objects are built, AIX ld can
11411     # have problems creating the table of contents.  If linking a library
11412     # or program results in "error TOC overflow" add -mminimal-toc to
11413     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11414     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11415
11416     archive_cmds_CXX=''
11417     hardcode_direct_CXX=yes
11418     hardcode_libdir_separator_CXX=':'
11419     link_all_deplibs_CXX=yes
11420
11421     if test "$GXX" = yes; then
11422       case $host_os in aix4.[012]|aix4.[012].*)
11423       # We only want to do this on AIX 4.2 and lower, the check
11424       # below for broken collect2 doesn't work under 4.3+
11425         collect2name=`${CC} -print-prog-name=collect2`
11426         if test -f "$collect2name" && \
11427            strings "$collect2name" | grep resolve_lib_name >/dev/null
11428         then
11429           # We have reworked collect2
11430           :
11431         else
11432           # We have old collect2
11433           hardcode_direct_CXX=unsupported
11434           # It fails to find uninstalled libraries when the uninstalled
11435           # path is not listed in the libpath.  Setting hardcode_minus_L
11436           # to unsupported forces relinking
11437           hardcode_minus_L_CXX=yes
11438           hardcode_libdir_flag_spec_CXX='-L$libdir'
11439           hardcode_libdir_separator_CXX=
11440         fi
11441         ;;
11442       esac
11443       shared_flag='-shared'
11444       if test "$aix_use_runtimelinking" = yes; then
11445         shared_flag="$shared_flag "'${wl}-G'
11446       fi
11447     else
11448       # not using gcc
11449       if test "$host_cpu" = ia64; then
11450         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11451         # chokes on -Wl,-G. The following line is correct:
11452         shared_flag='-G'
11453       else
11454         if test "$aix_use_runtimelinking" = yes; then
11455           shared_flag='${wl}-G'
11456         else
11457           shared_flag='${wl}-bM:SRE'
11458         fi
11459       fi
11460     fi
11461
11462     # It seems that -bexpall does not export symbols beginning with
11463     # underscore (_), so it is better to generate a list of symbols to export.
11464     always_export_symbols_CXX=yes
11465     if test "$aix_use_runtimelinking" = yes; then
11466       # Warning - without using the other runtime loading flags (-brtl),
11467       # -berok will link without error, but may produce a broken library.
11468       allow_undefined_flag_CXX='-berok'
11469       # Determine the default libpath from the value encoded in an empty executable.
11470       cat >conftest.$ac_ext <<_ACEOF
11471 /* confdefs.h.  */
11472 _ACEOF
11473 cat confdefs.h >>conftest.$ac_ext
11474 cat >>conftest.$ac_ext <<_ACEOF
11475 /* end confdefs.h.  */
11476
11477 int
11478 main ()
11479 {
11480
11481   ;
11482   return 0;
11483 }
11484 _ACEOF
11485 rm -f conftest.$ac_objext conftest$ac_exeext
11486 if { (ac_try="$ac_link"
11487 case "(($ac_try" in
11488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11489   *) ac_try_echo=$ac_try;;
11490 esac
11491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11492   (eval "$ac_link") 2>conftest.er1
11493   ac_status=$?
11494   grep -v '^ *+' conftest.er1 >conftest.err
11495   rm -f conftest.er1
11496   cat conftest.err >&5
11497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11498   (exit $ac_status); } && {
11499          test -z "$ac_cxx_werror_flag" ||
11500          test ! -s conftest.err
11501        } && test -s conftest$ac_exeext &&
11502        $as_test_x conftest$ac_exeext; then
11503
11504 lt_aix_libpath_sed='
11505     /Import File Strings/,/^$/ {
11506         /^0/ {
11507             s/^0  *\(.*\)$/\1/
11508             p
11509         }
11510     }'
11511 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11512 # Check for a 64-bit object if we didn't find anything.
11513 if test -z "$aix_libpath"; then
11514   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11515 fi
11516 else
11517   echo "$as_me: failed program was:" >&5
11518 sed 's/^/| /' conftest.$ac_ext >&5
11519
11520
11521 fi
11522
11523 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11524       conftest$ac_exeext conftest.$ac_ext
11525 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11526
11527       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11528
11529       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"
11530      else
11531       if test "$host_cpu" = ia64; then
11532         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11533         allow_undefined_flag_CXX="-z nodefs"
11534         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"
11535       else
11536         # Determine the default libpath from the value encoded in an empty executable.
11537         cat >conftest.$ac_ext <<_ACEOF
11538 /* confdefs.h.  */
11539 _ACEOF
11540 cat confdefs.h >>conftest.$ac_ext
11541 cat >>conftest.$ac_ext <<_ACEOF
11542 /* end confdefs.h.  */
11543
11544 int
11545 main ()
11546 {
11547
11548   ;
11549   return 0;
11550 }
11551 _ACEOF
11552 rm -f conftest.$ac_objext conftest$ac_exeext
11553 if { (ac_try="$ac_link"
11554 case "(($ac_try" in
11555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11556   *) ac_try_echo=$ac_try;;
11557 esac
11558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11559   (eval "$ac_link") 2>conftest.er1
11560   ac_status=$?
11561   grep -v '^ *+' conftest.er1 >conftest.err
11562   rm -f conftest.er1
11563   cat conftest.err >&5
11564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11565   (exit $ac_status); } && {
11566          test -z "$ac_cxx_werror_flag" ||
11567          test ! -s conftest.err
11568        } && test -s conftest$ac_exeext &&
11569        $as_test_x conftest$ac_exeext; then
11570
11571 lt_aix_libpath_sed='
11572     /Import File Strings/,/^$/ {
11573         /^0/ {
11574             s/^0  *\(.*\)$/\1/
11575             p
11576         }
11577     }'
11578 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11579 # Check for a 64-bit object if we didn't find anything.
11580 if test -z "$aix_libpath"; then
11581   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11582 fi
11583 else
11584   echo "$as_me: failed program was:" >&5
11585 sed 's/^/| /' conftest.$ac_ext >&5
11586
11587
11588 fi
11589
11590 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11591       conftest$ac_exeext conftest.$ac_ext
11592 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11593
11594         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11595         # Warning - without using the other run time loading flags,
11596         # -berok will link without error, but may produce a broken library.
11597         no_undefined_flag_CXX=' ${wl}-bernotok'
11598         allow_undefined_flag_CXX=' ${wl}-berok'
11599         # Exported symbols can be pulled into shared objects from archives
11600         whole_archive_flag_spec_CXX='$convenience'
11601         archive_cmds_need_lc_CXX=yes
11602         # This is similar to how AIX traditionally builds its shared libraries.
11603         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'
11604       fi
11605     fi
11606     ;;
11607
11608   beos*)
11609     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11610       allow_undefined_flag_CXX=unsupported
11611       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11612       # support --undefined.  This deserves some investigation.  FIXME
11613       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11614     else
11615       ld_shlibs_CXX=no
11616     fi
11617     ;;
11618
11619   chorus*)
11620     case $cc_basename in
11621       *)
11622         # FIXME: insert proper C++ library support
11623         ld_shlibs_CXX=no
11624         ;;
11625     esac
11626     ;;
11627
11628   cygwin* | mingw* | pw32*)
11629     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11630     # as there is no search path for DLLs.
11631     hardcode_libdir_flag_spec_CXX='-L$libdir'
11632     allow_undefined_flag_CXX=unsupported
11633     always_export_symbols_CXX=no
11634     enable_shared_with_static_runtimes_CXX=yes
11635
11636     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11637       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'
11638       # If the export-symbols file already is a .def file (1st line
11639       # is EXPORTS), use it as is; otherwise, prepend...
11640       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11641         cp $export_symbols $output_objdir/$soname.def;
11642       else
11643         echo EXPORTS > $output_objdir/$soname.def;
11644         cat $export_symbols >> $output_objdir/$soname.def;
11645       fi~
11646       $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'
11647     else
11648       ld_shlibs_CXX=no
11649     fi
11650   ;;
11651       darwin* | rhapsody*)
11652       archive_cmds_need_lc_CXX=no
11653       hardcode_direct_CXX=no
11654       hardcode_automatic_CXX=yes
11655       hardcode_shlibpath_var_CXX=unsupported
11656       whole_archive_flag_spec_CXX=''
11657       link_all_deplibs_CXX=yes
11658       allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11659       if test "$GXX" = yes ; then
11660       output_verbose_link_cmd='echo'
11661       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}"
11662       module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11663       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}"
11664       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}"
11665       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11666         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}"
11667         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}"
11668       fi
11669       else
11670       case $cc_basename in
11671         xlc*)
11672          output_verbose_link_cmd='echo'
11673           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'
11674           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11675           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11676           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}'
11677           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}'
11678           ;;
11679        *)
11680          ld_shlibs_CXX=no
11681           ;;
11682       esac
11683       fi
11684         ;;
11685
11686   dgux*)
11687     case $cc_basename in
11688       ec++*)
11689         # FIXME: insert proper C++ library support
11690         ld_shlibs_CXX=no
11691         ;;
11692       ghcx*)
11693         # Green Hills C++ Compiler
11694         # FIXME: insert proper C++ library support
11695         ld_shlibs_CXX=no
11696         ;;
11697       *)
11698         # FIXME: insert proper C++ library support
11699         ld_shlibs_CXX=no
11700         ;;
11701     esac
11702     ;;
11703   freebsd[12]*)
11704     # C++ shared libraries reported to be fairly broken before switch to ELF
11705     ld_shlibs_CXX=no
11706     ;;
11707   freebsd-elf*)
11708     archive_cmds_need_lc_CXX=no
11709     ;;
11710   freebsd* | dragonfly*)
11711     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11712     # conventions
11713     ld_shlibs_CXX=yes
11714     ;;
11715   gnu*)
11716     ;;
11717   hpux9*)
11718     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11719     hardcode_libdir_separator_CXX=:
11720     export_dynamic_flag_spec_CXX='${wl}-E'
11721     hardcode_direct_CXX=yes
11722     hardcode_minus_L_CXX=yes # Not in the search PATH,
11723                                 # but as the default
11724                                 # location of the library.
11725
11726     case $cc_basename in
11727     CC*)
11728       # FIXME: insert proper C++ library support
11729       ld_shlibs_CXX=no
11730       ;;
11731     aCC*)
11732       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'
11733       # Commands to make compiler produce verbose output that lists
11734       # what "hidden" libraries, object files and flags are used when
11735       # linking a shared library.
11736       #
11737       # There doesn't appear to be a way to prevent this compiler from
11738       # explicitly linking system object files so we need to strip them
11739       # from the output so that they don't get included in the library
11740       # dependencies.
11741       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'
11742       ;;
11743     *)
11744       if test "$GXX" = yes; then
11745         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'
11746       else
11747         # FIXME: insert proper C++ library support
11748         ld_shlibs_CXX=no
11749       fi
11750       ;;
11751     esac
11752     ;;
11753   hpux10*|hpux11*)
11754     if test $with_gnu_ld = no; then
11755       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11756       hardcode_libdir_separator_CXX=:
11757
11758       case $host_cpu in
11759       hppa*64*|ia64*) ;;
11760       *)
11761         export_dynamic_flag_spec_CXX='${wl}-E'
11762         ;;
11763       esac
11764     fi
11765     case $host_cpu in
11766     hppa*64*|ia64*)
11767       hardcode_direct_CXX=no
11768       hardcode_shlibpath_var_CXX=no
11769       ;;
11770     *)
11771       hardcode_direct_CXX=yes
11772       hardcode_minus_L_CXX=yes # Not in the search PATH,
11773                                               # but as the default
11774                                               # location of the library.
11775       ;;
11776     esac
11777
11778     case $cc_basename in
11779       CC*)
11780         # FIXME: insert proper C++ library support
11781         ld_shlibs_CXX=no
11782         ;;
11783       aCC*)
11784         case $host_cpu in
11785         hppa*64*)
11786           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11787           ;;
11788         ia64*)
11789           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11790           ;;
11791         *)
11792           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11793           ;;
11794         esac
11795         # Commands to make compiler produce verbose output that lists
11796         # what "hidden" libraries, object files and flags are used when
11797         # linking a shared library.
11798         #
11799         # There doesn't appear to be a way to prevent this compiler from
11800         # explicitly linking system object files so we need to strip them
11801         # from the output so that they don't get included in the library
11802         # dependencies.
11803         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'
11804         ;;
11805       *)
11806         if test "$GXX" = yes; then
11807           if test $with_gnu_ld = no; then
11808             case $host_cpu in
11809             hppa*64*)
11810               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11811               ;;
11812             ia64*)
11813               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11814               ;;
11815             *)
11816               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'
11817               ;;
11818             esac
11819           fi
11820         else
11821           # FIXME: insert proper C++ library support
11822           ld_shlibs_CXX=no
11823         fi
11824         ;;
11825     esac
11826     ;;
11827   interix[3-9]*)
11828     hardcode_direct_CXX=no
11829     hardcode_shlibpath_var_CXX=no
11830     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11831     export_dynamic_flag_spec_CXX='${wl}-E'
11832     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11833     # Instead, shared libraries are loaded at an image base (0x10000000 by
11834     # default) and relocated if they conflict, which is a slow very memory
11835     # consuming and fragmenting process.  To avoid this, we pick a random,
11836     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11837     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11838     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'
11839     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'
11840     ;;
11841   irix5* | irix6*)
11842     case $cc_basename in
11843       CC*)
11844         # SGI C++
11845         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'
11846
11847         # Archives containing C++ object files must be created using
11848         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11849         # necessary to make sure instantiated templates are included
11850         # in the archive.
11851         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11852         ;;
11853       *)
11854         if test "$GXX" = yes; then
11855           if test "$with_gnu_ld" = no; then
11856             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'
11857           else
11858             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'
11859           fi
11860         fi
11861         link_all_deplibs_CXX=yes
11862         ;;
11863     esac
11864     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11865     hardcode_libdir_separator_CXX=:
11866     ;;
11867   linux* | k*bsd*-gnu)
11868     case $cc_basename in
11869       KCC*)
11870         # Kuck and Associates, Inc. (KAI) C++ Compiler
11871
11872         # KCC will only create a shared library if the output file
11873         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11874         # to its proper name (with version) after linking.
11875         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'
11876         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'
11877         # Commands to make compiler produce verbose output that lists
11878         # what "hidden" libraries, object files and flags are used when
11879         # linking a shared library.
11880         #
11881         # There doesn't appear to be a way to prevent this compiler from
11882         # explicitly linking system object files so we need to strip them
11883         # from the output so that they don't get included in the library
11884         # dependencies.
11885         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'
11886
11887         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11888         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11889
11890         # Archives containing C++ object files must be created using
11891         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11892         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11893         ;;
11894       icpc*)
11895         # Intel C++
11896         with_gnu_ld=yes
11897         # version 8.0 and above of icpc choke on multiply defined symbols
11898         # if we add $predep_objects and $postdep_objects, however 7.1 and
11899         # earlier do not add the objects themselves.
11900         case `$CC -V 2>&1` in
11901         *"Version 7."*)
11902           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11903           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'
11904           ;;
11905         *)  # Version 8.0 or newer
11906           tmp_idyn=
11907           case $host_cpu in
11908             ia64*) tmp_idyn=' -i_dynamic';;
11909           esac
11910           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11911           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'
11912           ;;
11913         esac
11914         archive_cmds_need_lc_CXX=no
11915         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11916         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11917         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11918         ;;
11919       pgCC* | pgcpp*)
11920         # Portland Group C++ compiler
11921         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11922         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'
11923
11924         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11925         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11926         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'
11927         ;;
11928       cxx*)
11929         # Compaq C++
11930         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11931         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'
11932
11933         runpath_var=LD_RUN_PATH
11934         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11935         hardcode_libdir_separator_CXX=:
11936
11937         # Commands to make compiler produce verbose output that lists
11938         # what "hidden" libraries, object files and flags are used when
11939         # linking a shared library.
11940         #
11941         # There doesn't appear to be a way to prevent this compiler from
11942         # explicitly linking system object files so we need to strip them
11943         # from the output so that they don't get included in the library
11944         # dependencies.
11945         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'
11946         ;;
11947       *)
11948         case `$CC -V 2>&1 | sed 5q` in
11949         *Sun\ C*)
11950           # Sun C++ 5.9
11951           no_undefined_flag_CXX=' -zdefs'
11952           archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11953           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'
11954           hardcode_libdir_flag_spec_CXX='-R$libdir'
11955           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'
11956
11957           # Not sure whether something based on
11958           # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11959           # would be better.
11960           output_verbose_link_cmd='echo'
11961
11962           # Archives containing C++ object files must be created using
11963           # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11964           # necessary to make sure instantiated templates are included
11965           # in the archive.
11966           old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11967           ;;
11968         esac
11969         ;;
11970     esac
11971     ;;
11972   lynxos*)
11973     # FIXME: insert proper C++ library support
11974     ld_shlibs_CXX=no
11975     ;;
11976   m88k*)
11977     # FIXME: insert proper C++ library support
11978     ld_shlibs_CXX=no
11979     ;;
11980   mvs*)
11981     case $cc_basename in
11982       cxx*)
11983         # FIXME: insert proper C++ library support
11984         ld_shlibs_CXX=no
11985         ;;
11986       *)
11987         # FIXME: insert proper C++ library support
11988         ld_shlibs_CXX=no
11989         ;;
11990     esac
11991     ;;
11992   netbsd* | netbsdelf*-gnu)
11993     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11994       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11995       wlarc=
11996       hardcode_libdir_flag_spec_CXX='-R$libdir'
11997       hardcode_direct_CXX=yes
11998       hardcode_shlibpath_var_CXX=no
11999     fi
12000     # Workaround some broken pre-1.5 toolchains
12001     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12002     ;;
12003   openbsd2*)
12004     # C++ shared libraries are fairly broken
12005     ld_shlibs_CXX=no
12006     ;;
12007   openbsd*)
12008     if test -f /usr/libexec/ld.so; then
12009       hardcode_direct_CXX=yes
12010       hardcode_shlibpath_var_CXX=no
12011       archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12012       hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12013       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12014         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12015         export_dynamic_flag_spec_CXX='${wl}-E'
12016         whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12017       fi
12018       output_verbose_link_cmd='echo'
12019     else
12020       ld_shlibs_CXX=no
12021     fi
12022     ;;
12023   osf3*)
12024     case $cc_basename in
12025       KCC*)
12026         # Kuck and Associates, Inc. (KAI) C++ Compiler
12027
12028         # KCC will only create a shared library if the output file
12029         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12030         # to its proper name (with version) after linking.
12031         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'
12032
12033         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12034         hardcode_libdir_separator_CXX=:
12035
12036         # Archives containing C++ object files must be created using
12037         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12038         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12039
12040         ;;
12041       RCC*)
12042         # Rational C++ 2.4.1
12043         # FIXME: insert proper C++ library support
12044         ld_shlibs_CXX=no
12045         ;;
12046       cxx*)
12047         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12048         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'
12049
12050         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12051         hardcode_libdir_separator_CXX=:
12052
12053         # Commands to make compiler produce verbose output that lists
12054         # what "hidden" libraries, object files and flags are used when
12055         # linking a shared library.
12056         #
12057         # There doesn't appear to be a way to prevent this compiler from
12058         # explicitly linking system object files so we need to strip them
12059         # from the output so that they don't get included in the library
12060         # dependencies.
12061         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'
12062         ;;
12063       *)
12064         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12065           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12066           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'
12067
12068           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12069           hardcode_libdir_separator_CXX=:
12070
12071           # Commands to make compiler produce verbose output that lists
12072           # what "hidden" libraries, object files and flags are used when
12073           # linking a shared library.
12074           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12075
12076         else
12077           # FIXME: insert proper C++ library support
12078           ld_shlibs_CXX=no
12079         fi
12080         ;;
12081     esac
12082     ;;
12083   osf4* | osf5*)
12084     case $cc_basename in
12085       KCC*)
12086         # Kuck and Associates, Inc. (KAI) C++ Compiler
12087
12088         # KCC will only create a shared library if the output file
12089         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12090         # to its proper name (with version) after linking.
12091         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'
12092
12093         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12094         hardcode_libdir_separator_CXX=:
12095
12096         # Archives containing C++ object files must be created using
12097         # the KAI C++ compiler.
12098         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12099         ;;
12100       RCC*)
12101         # Rational C++ 2.4.1
12102         # FIXME: insert proper C++ library support
12103         ld_shlibs_CXX=no
12104         ;;
12105       cxx*)
12106         allow_undefined_flag_CXX=' -expect_unresolved \*'
12107         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'
12108         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12109           echo "-hidden">> $lib.exp~
12110           $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~
12111           $rm $lib.exp'
12112
12113         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12114         hardcode_libdir_separator_CXX=:
12115
12116         # Commands to make compiler produce verbose output that lists
12117         # what "hidden" libraries, object files and flags are used when
12118         # linking a shared library.
12119         #
12120         # There doesn't appear to be a way to prevent this compiler from
12121         # explicitly linking system object files so we need to strip them
12122         # from the output so that they don't get included in the library
12123         # dependencies.
12124         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'
12125         ;;
12126       *)
12127         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12128           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12129          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'
12130
12131           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12132           hardcode_libdir_separator_CXX=:
12133
12134           # Commands to make compiler produce verbose output that lists
12135           # what "hidden" libraries, object files and flags are used when
12136           # linking a shared library.
12137           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12138
12139         else
12140           # FIXME: insert proper C++ library support
12141           ld_shlibs_CXX=no
12142         fi
12143         ;;
12144     esac
12145     ;;
12146   psos*)
12147     # FIXME: insert proper C++ library support
12148     ld_shlibs_CXX=no
12149     ;;
12150   sunos4*)
12151     case $cc_basename in
12152       CC*)
12153         # Sun C++ 4.x
12154         # FIXME: insert proper C++ library support
12155         ld_shlibs_CXX=no
12156         ;;
12157       lcc*)
12158         # Lucid
12159         # FIXME: insert proper C++ library support
12160         ld_shlibs_CXX=no
12161         ;;
12162       *)
12163         # FIXME: insert proper C++ library support
12164         ld_shlibs_CXX=no
12165         ;;
12166     esac
12167     ;;
12168   solaris*)
12169     case $cc_basename in
12170       CC*)
12171         # Sun C++ 4.2, 5.x and Centerline C++
12172         archive_cmds_need_lc_CXX=yes
12173         no_undefined_flag_CXX=' -zdefs'
12174         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12175         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12176         $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'
12177
12178         hardcode_libdir_flag_spec_CXX='-R$libdir'
12179         hardcode_shlibpath_var_CXX=no
12180         case $host_os in
12181           solaris2.[0-5] | solaris2.[0-5].*) ;;
12182           *)
12183             # The compiler driver will combine and reorder linker options,
12184             # but understands `-z linker_flag'.
12185             # Supported since Solaris 2.6 (maybe 2.5.1?)
12186             whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12187             ;;
12188         esac
12189         link_all_deplibs_CXX=yes
12190
12191         output_verbose_link_cmd='echo'
12192
12193         # Archives containing C++ object files must be created using
12194         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12195         # necessary to make sure instantiated templates are included
12196         # in the archive.
12197         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12198         ;;
12199       gcx*)
12200         # Green Hills C++ Compiler
12201         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12202
12203         # The C++ compiler must be used to create the archive.
12204         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12205         ;;
12206       *)
12207         # GNU C++ compiler with Solaris linker
12208         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12209           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12210           if $CC --version | grep -v '^2\.7' > /dev/null; then
12211             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12212             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12213                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12214
12215             # Commands to make compiler produce verbose output that lists
12216             # what "hidden" libraries, object files and flags are used when
12217             # linking a shared library.
12218             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12219           else
12220             # g++ 2.7 appears to require `-G' NOT `-shared' on this
12221             # platform.
12222             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12223             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12224                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12225
12226             # Commands to make compiler produce verbose output that lists
12227             # what "hidden" libraries, object files and flags are used when
12228             # linking a shared library.
12229             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12230           fi
12231
12232           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12233           case $host_os in
12234           solaris2.[0-5] | solaris2.[0-5].*) ;;
12235           *)
12236             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12237             ;;
12238           esac
12239         fi
12240         ;;
12241     esac
12242     ;;
12243   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12244     no_undefined_flag_CXX='${wl}-z,text'
12245     archive_cmds_need_lc_CXX=no
12246     hardcode_shlibpath_var_CXX=no
12247     runpath_var='LD_RUN_PATH'
12248
12249     case $cc_basename in
12250       CC*)
12251         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12252         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12253         ;;
12254       *)
12255         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12256         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12257         ;;
12258     esac
12259     ;;
12260   sysv5* | sco3.2v5* | sco5v6*)
12261     # Note: We can NOT use -z defs as we might desire, because we do not
12262     # link with -lc, and that would cause any symbols used from libc to
12263     # always be unresolved, which means just about no library would
12264     # ever link correctly.  If we're not using GNU ld we use -z text
12265     # though, which does catch some bad symbols but isn't as heavy-handed
12266     # as -z defs.
12267     # For security reasons, it is highly recommended that you always
12268     # use absolute paths for naming shared libraries, and exclude the
12269     # DT_RUNPATH tag from executables and libraries.  But doing so
12270     # requires that you compile everything twice, which is a pain.
12271     # So that behaviour is only enabled if SCOABSPATH is set to a
12272     # non-empty value in the environment.  Most likely only useful for
12273     # creating official distributions of packages.
12274     # This is a hack until libtool officially supports absolute path
12275     # names for shared libraries.
12276     no_undefined_flag_CXX='${wl}-z,text'
12277     allow_undefined_flag_CXX='${wl}-z,nodefs'
12278     archive_cmds_need_lc_CXX=no
12279     hardcode_shlibpath_var_CXX=no
12280     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12281     hardcode_libdir_separator_CXX=':'
12282     link_all_deplibs_CXX=yes
12283     export_dynamic_flag_spec_CXX='${wl}-Bexport'
12284     runpath_var='LD_RUN_PATH'
12285
12286     case $cc_basename in
12287       CC*)
12288         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12289         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12290         ;;
12291       *)
12292         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12293         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12294         ;;
12295     esac
12296     ;;
12297   tandem*)
12298     case $cc_basename in
12299       NCC*)
12300         # NonStop-UX NCC 3.20
12301         # FIXME: insert proper C++ library support
12302         ld_shlibs_CXX=no
12303         ;;
12304       *)
12305         # FIXME: insert proper C++ library support
12306         ld_shlibs_CXX=no
12307         ;;
12308     esac
12309     ;;
12310   vxworks*)
12311     # FIXME: insert proper C++ library support
12312     ld_shlibs_CXX=no
12313     ;;
12314   *)
12315     # FIXME: insert proper C++ library support
12316     ld_shlibs_CXX=no
12317     ;;
12318 esac
12319 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12320 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12321 test "$ld_shlibs_CXX" = no && can_build_shared=no
12322
12323 GCC_CXX="$GXX"
12324 LD_CXX="$LD"
12325
12326 cat > conftest.$ac_ext <<EOF
12327 class Foo
12328 {
12329 public:
12330   Foo (void) { a = 0; }
12331 private:
12332   int a;
12333 };
12334 EOF
12335
12336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12337   (eval $ac_compile) 2>&5
12338   ac_status=$?
12339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12340   (exit $ac_status); }; then
12341   # Parse the compiler output and extract the necessary
12342   # objects, libraries and library flags.
12343
12344   # Sentinel used to keep track of whether or not we are before
12345   # the conftest object file.
12346   pre_test_object_deps_done=no
12347
12348   # The `*' in the case matches for architectures that use `case' in
12349   # $output_verbose_cmd can trigger glob expansion during the loop
12350   # eval without this substitution.
12351   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12352
12353   for p in `eval $output_verbose_link_cmd`; do
12354     case $p in
12355
12356     -L* | -R* | -l*)
12357        # Some compilers place space between "-{L,R}" and the path.
12358        # Remove the space.
12359        if test $p = "-L" \
12360           || test $p = "-R"; then
12361          prev=$p
12362          continue
12363        else
12364          prev=
12365        fi
12366
12367        if test "$pre_test_object_deps_done" = no; then
12368          case $p in
12369          -L* | -R*)
12370            # Internal compiler library paths should come after those
12371            # provided the user.  The postdeps already come after the
12372            # user supplied libs so there is no need to process them.
12373            if test -z "$compiler_lib_search_path_CXX"; then
12374              compiler_lib_search_path_CXX="${prev}${p}"
12375            else
12376              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12377            fi
12378            ;;
12379          # The "-l" case would never come before the object being
12380          # linked, so don't bother handling this case.
12381          esac
12382        else
12383          if test -z "$postdeps_CXX"; then
12384            postdeps_CXX="${prev}${p}"
12385          else
12386            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12387          fi
12388        fi
12389        ;;
12390
12391     *.$objext)
12392        # This assumes that the test object file only shows up
12393        # once in the compiler output.
12394        if test "$p" = "conftest.$objext"; then
12395          pre_test_object_deps_done=yes
12396          continue
12397        fi
12398
12399        if test "$pre_test_object_deps_done" = no; then
12400          if test -z "$predep_objects_CXX"; then
12401            predep_objects_CXX="$p"
12402          else
12403            predep_objects_CXX="$predep_objects_CXX $p"
12404          fi
12405        else
12406          if test -z "$postdep_objects_CXX"; then
12407            postdep_objects_CXX="$p"
12408          else
12409            postdep_objects_CXX="$postdep_objects_CXX $p"
12410          fi
12411        fi
12412        ;;
12413
12414     *) ;; # Ignore the rest.
12415
12416     esac
12417   done
12418
12419   # Clean up.
12420   rm -f a.out a.exe
12421 else
12422   echo "libtool.m4: error: problem compiling CXX test program"
12423 fi
12424
12425 $rm -f confest.$objext
12426
12427 compiler_lib_search_dirs_CXX=
12428 if test -n "$compiler_lib_search_path_CXX"; then
12429   compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12430 fi
12431
12432 # PORTME: override above test on systems where it is broken
12433 case $host_os in
12434 interix[3-9]*)
12435   # Interix 3.5 installs completely hosed .la files for C++, so rather than
12436   # hack all around it, let's just trust "g++" to DTRT.
12437   predep_objects_CXX=
12438   postdep_objects_CXX=
12439   postdeps_CXX=
12440   ;;
12441
12442 linux*)
12443   case `$CC -V 2>&1 | sed 5q` in
12444   *Sun\ C*)
12445     # Sun C++ 5.9
12446     #
12447     # The more standards-conforming stlport4 library is
12448     # incompatible with the Cstd library. Avoid specifying
12449     # it if it's in CXXFLAGS. Ignore libCrun as
12450     # -library=stlport4 depends on it.
12451     case " $CXX $CXXFLAGS " in
12452     *" -library=stlport4 "*)
12453       solaris_use_stlport4=yes
12454       ;;
12455     esac
12456     if test "$solaris_use_stlport4" != yes; then
12457       postdeps_CXX='-library=Cstd -library=Crun'
12458     fi
12459     ;;
12460   esac
12461   ;;
12462
12463 solaris*)
12464   case $cc_basename in
12465   CC*)
12466     # The more standards-conforming stlport4 library is
12467     # incompatible with the Cstd library. Avoid specifying
12468     # it if it's in CXXFLAGS. Ignore libCrun as
12469     # -library=stlport4 depends on it.
12470     case " $CXX $CXXFLAGS " in
12471     *" -library=stlport4 "*)
12472       solaris_use_stlport4=yes
12473       ;;
12474     esac
12475
12476     # Adding this requires a known-good setup of shared libraries for
12477     # Sun compiler versions before 5.6, else PIC objects from an old
12478     # archive will be linked into the output, leading to subtle bugs.
12479     if test "$solaris_use_stlport4" != yes; then
12480       postdeps_CXX='-library=Cstd -library=Crun'
12481     fi
12482     ;;
12483   esac
12484   ;;
12485 esac
12486
12487 case " $postdeps_CXX " in
12488 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12489 esac
12490
12491 lt_prog_compiler_wl_CXX=
12492 lt_prog_compiler_pic_CXX=
12493 lt_prog_compiler_static_CXX=
12494
12495 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12496 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12497
12498   # C++ specific cases for pic, static, wl, etc.
12499   if test "$GXX" = yes; then
12500     lt_prog_compiler_wl_CXX='-Wl,'
12501     lt_prog_compiler_static_CXX='-static'
12502
12503     case $host_os in
12504     aix*)
12505       # All AIX code is PIC.
12506       if test "$host_cpu" = ia64; then
12507         # AIX 5 now supports IA64 processor
12508         lt_prog_compiler_static_CXX='-Bstatic'
12509       fi
12510       ;;
12511     amigaos*)
12512       # FIXME: we need at least 68020 code to build shared libraries, but
12513       # adding the `-m68020' flag to GCC prevents building anything better,
12514       # like `-m68040'.
12515       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12516       ;;
12517     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12518       # PIC is the default for these OSes.
12519       ;;
12520     mingw* | cygwin* | os2* | pw32*)
12521       # This hack is so that the source file can tell whether it is being
12522       # built for inclusion in a dll (and should export symbols for example).
12523       # Although the cygwin gcc ignores -fPIC, still need this for old-style
12524       # (--disable-auto-import) libraries
12525       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12526       ;;
12527     darwin* | rhapsody*)
12528       # PIC is the default on this platform
12529       # Common symbols not allowed in MH_DYLIB files
12530       lt_prog_compiler_pic_CXX='-fno-common'
12531       ;;
12532     *djgpp*)
12533       # DJGPP does not support shared libraries at all
12534       lt_prog_compiler_pic_CXX=
12535       ;;
12536     interix[3-9]*)
12537       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12538       # Instead, we relocate shared libraries at runtime.
12539       ;;
12540     sysv4*MP*)
12541       if test -d /usr/nec; then
12542         lt_prog_compiler_pic_CXX=-Kconform_pic
12543       fi
12544       ;;
12545     hpux*)
12546       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12547       # not for PA HP-UX.
12548       case $host_cpu in
12549       hppa*64*|ia64*)
12550         ;;
12551       *)
12552         lt_prog_compiler_pic_CXX='-fPIC'
12553         ;;
12554       esac
12555       ;;
12556     *)
12557       lt_prog_compiler_pic_CXX='-fPIC'
12558       ;;
12559     esac
12560   else
12561     case $host_os in
12562       aix[4-9]*)
12563         # All AIX code is PIC.
12564         if test "$host_cpu" = ia64; then
12565           # AIX 5 now supports IA64 processor
12566           lt_prog_compiler_static_CXX='-Bstatic'
12567         else
12568           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12569         fi
12570         ;;
12571       chorus*)
12572         case $cc_basename in
12573         cxch68*)
12574           # Green Hills C++ Compiler
12575           # _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"
12576           ;;
12577         esac
12578         ;;
12579        darwin*)
12580          # PIC is the default on this platform
12581          # Common symbols not allowed in MH_DYLIB files
12582          case $cc_basename in
12583            xlc*)
12584            lt_prog_compiler_pic_CXX='-qnocommon'
12585            lt_prog_compiler_wl_CXX='-Wl,'
12586            ;;
12587          esac
12588        ;;
12589       dgux*)
12590         case $cc_basename in
12591           ec++*)
12592             lt_prog_compiler_pic_CXX='-KPIC'
12593             ;;
12594           ghcx*)
12595             # Green Hills C++ Compiler
12596             lt_prog_compiler_pic_CXX='-pic'
12597             ;;
12598           *)
12599             ;;
12600         esac
12601         ;;
12602       freebsd* | dragonfly*)
12603         # FreeBSD uses GNU C++
12604         ;;
12605       hpux9* | hpux10* | hpux11*)
12606         case $cc_basename in
12607           CC*)
12608             lt_prog_compiler_wl_CXX='-Wl,'
12609             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12610             if test "$host_cpu" != ia64; then
12611               lt_prog_compiler_pic_CXX='+Z'
12612             fi
12613             ;;
12614           aCC*)
12615             lt_prog_compiler_wl_CXX='-Wl,'
12616             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12617             case $host_cpu in
12618             hppa*64*|ia64*)
12619               # +Z the default
12620               ;;
12621             *)
12622               lt_prog_compiler_pic_CXX='+Z'
12623               ;;
12624             esac
12625             ;;
12626           *)
12627             ;;
12628         esac
12629         ;;
12630       interix*)
12631         # This is c89, which is MS Visual C++ (no shared libs)
12632         # Anyone wants to do a port?
12633         ;;
12634       irix5* | irix6* | nonstopux*)
12635         case $cc_basename in
12636           CC*)
12637             lt_prog_compiler_wl_CXX='-Wl,'
12638             lt_prog_compiler_static_CXX='-non_shared'
12639             # CC pic flag -KPIC is the default.
12640             ;;
12641           *)
12642             ;;
12643         esac
12644         ;;
12645       linux* | k*bsd*-gnu)
12646         case $cc_basename in
12647           KCC*)
12648             # KAI C++ Compiler
12649             lt_prog_compiler_wl_CXX='--backend -Wl,'
12650             lt_prog_compiler_pic_CXX='-fPIC'
12651             ;;
12652           icpc* | ecpc*)
12653             # Intel C++
12654             lt_prog_compiler_wl_CXX='-Wl,'
12655             lt_prog_compiler_pic_CXX='-KPIC'
12656             lt_prog_compiler_static_CXX='-static'
12657             ;;
12658           pgCC* | pgcpp*)
12659             # Portland Group C++ compiler.
12660             lt_prog_compiler_wl_CXX='-Wl,'
12661             lt_prog_compiler_pic_CXX='-fpic'
12662             lt_prog_compiler_static_CXX='-Bstatic'
12663             ;;
12664           cxx*)
12665             # Compaq C++
12666             # Make sure the PIC flag is empty.  It appears that all Alpha
12667             # Linux and Compaq Tru64 Unix objects are PIC.
12668             lt_prog_compiler_pic_CXX=
12669             lt_prog_compiler_static_CXX='-non_shared'
12670             ;;
12671           *)
12672             case `$CC -V 2>&1 | sed 5q` in
12673             *Sun\ C*)
12674               # Sun C++ 5.9
12675               lt_prog_compiler_pic_CXX='-KPIC'
12676               lt_prog_compiler_static_CXX='-Bstatic'
12677               lt_prog_compiler_wl_CXX='-Qoption ld '
12678               ;;
12679             esac
12680             ;;
12681         esac
12682         ;;
12683       lynxos*)
12684         ;;
12685       m88k*)
12686         ;;
12687       mvs*)
12688         case $cc_basename in
12689           cxx*)
12690             lt_prog_compiler_pic_CXX='-W c,exportall'
12691             ;;
12692           *)
12693             ;;
12694         esac
12695         ;;
12696       netbsd* | netbsdelf*-gnu)
12697         ;;
12698       osf3* | osf4* | osf5*)
12699         case $cc_basename in
12700           KCC*)
12701             lt_prog_compiler_wl_CXX='--backend -Wl,'
12702             ;;
12703           RCC*)
12704             # Rational C++ 2.4.1
12705             lt_prog_compiler_pic_CXX='-pic'
12706             ;;
12707           cxx*)
12708             # Digital/Compaq C++
12709             lt_prog_compiler_wl_CXX='-Wl,'
12710             # Make sure the PIC flag is empty.  It appears that all Alpha
12711             # Linux and Compaq Tru64 Unix objects are PIC.
12712             lt_prog_compiler_pic_CXX=
12713             lt_prog_compiler_static_CXX='-non_shared'
12714             ;;
12715           *)
12716             ;;
12717         esac
12718         ;;
12719       psos*)
12720         ;;
12721       solaris*)
12722         case $cc_basename in
12723           CC*)
12724             # Sun C++ 4.2, 5.x and Centerline C++
12725             lt_prog_compiler_pic_CXX='-KPIC'
12726             lt_prog_compiler_static_CXX='-Bstatic'
12727             lt_prog_compiler_wl_CXX='-Qoption ld '
12728             ;;
12729           gcx*)
12730             # Green Hills C++ Compiler
12731             lt_prog_compiler_pic_CXX='-PIC'
12732             ;;
12733           *)
12734             ;;
12735         esac
12736         ;;
12737       sunos4*)
12738         case $cc_basename in
12739           CC*)
12740             # Sun C++ 4.x
12741             lt_prog_compiler_pic_CXX='-pic'
12742             lt_prog_compiler_static_CXX='-Bstatic'
12743             ;;
12744           lcc*)
12745             # Lucid
12746             lt_prog_compiler_pic_CXX='-pic'
12747             ;;
12748           *)
12749             ;;
12750         esac
12751         ;;
12752       tandem*)
12753         case $cc_basename in
12754           NCC*)
12755             # NonStop-UX NCC 3.20
12756             lt_prog_compiler_pic_CXX='-KPIC'
12757             ;;
12758           *)
12759             ;;
12760         esac
12761         ;;
12762       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12763         case $cc_basename in
12764           CC*)
12765             lt_prog_compiler_wl_CXX='-Wl,'
12766             lt_prog_compiler_pic_CXX='-KPIC'
12767             lt_prog_compiler_static_CXX='-Bstatic'
12768             ;;
12769         esac
12770         ;;
12771       vxworks*)
12772         ;;
12773       *)
12774         lt_prog_compiler_can_build_shared_CXX=no
12775         ;;
12776     esac
12777   fi
12778
12779 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12780 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12781
12782 #
12783 # Check to make sure the PIC flag actually works.
12784 #
12785 if test -n "$lt_prog_compiler_pic_CXX"; then
12786
12787 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12788 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12789 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12790   echo $ECHO_N "(cached) $ECHO_C" >&6
12791 else
12792   lt_cv_prog_compiler_pic_works_CXX=no
12793   ac_outfile=conftest.$ac_objext
12794    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12795    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12796    # Insert the option either (1) after the last *FLAGS variable, or
12797    # (2) before a word containing "conftest.", or (3) at the end.
12798    # Note that $ac_compile itself does not contain backslashes and begins
12799    # with a dollar sign (not a hyphen), so the echo should work correctly.
12800    # The option is referenced via a variable to avoid confusing sed.
12801    lt_compile=`echo "$ac_compile" | $SED \
12802    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12803    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12804    -e 's:$: $lt_compiler_flag:'`
12805    (eval echo "\"\$as_me:12805: $lt_compile\"" >&5)
12806    (eval "$lt_compile" 2>conftest.err)
12807    ac_status=$?
12808    cat conftest.err >&5
12809    echo "$as_me:12809: \$? = $ac_status" >&5
12810    if (exit $ac_status) && test -s "$ac_outfile"; then
12811      # The compiler can only warn and ignore the option if not recognized
12812      # So say no if there are warnings other than the usual output.
12813      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12814      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12815      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12816        lt_cv_prog_compiler_pic_works_CXX=yes
12817      fi
12818    fi
12819    $rm conftest*
12820
12821 fi
12822 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12823 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12824
12825 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12826     case $lt_prog_compiler_pic_CXX in
12827      "" | " "*) ;;
12828      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12829      esac
12830 else
12831     lt_prog_compiler_pic_CXX=
12832      lt_prog_compiler_can_build_shared_CXX=no
12833 fi
12834
12835 fi
12836 case $host_os in
12837   # For platforms which do not support PIC, -DPIC is meaningless:
12838   *djgpp*)
12839     lt_prog_compiler_pic_CXX=
12840     ;;
12841   *)
12842     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12843     ;;
12844 esac
12845
12846 #
12847 # Check to make sure the static flag actually works.
12848 #
12849 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12850 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12851 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12852 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12853   echo $ECHO_N "(cached) $ECHO_C" >&6
12854 else
12855   lt_cv_prog_compiler_static_works_CXX=no
12856    save_LDFLAGS="$LDFLAGS"
12857    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12858    echo "$lt_simple_link_test_code" > conftest.$ac_ext
12859    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12860      # The linker can only warn and ignore the option if not recognized
12861      # So say no if there are warnings
12862      if test -s conftest.err; then
12863        # Append any errors to the config.log.
12864        cat conftest.err 1>&5
12865        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12866        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12867        if diff conftest.exp conftest.er2 >/dev/null; then
12868          lt_cv_prog_compiler_static_works_CXX=yes
12869        fi
12870      else
12871        lt_cv_prog_compiler_static_works_CXX=yes
12872      fi
12873    fi
12874    $rm -r conftest*
12875    LDFLAGS="$save_LDFLAGS"
12876
12877 fi
12878 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12879 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
12880
12881 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12882     :
12883 else
12884     lt_prog_compiler_static_CXX=
12885 fi
12886
12887
12888 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12889 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12890 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12891   echo $ECHO_N "(cached) $ECHO_C" >&6
12892 else
12893   lt_cv_prog_compiler_c_o_CXX=no
12894    $rm -r conftest 2>/dev/null
12895    mkdir conftest
12896    cd conftest
12897    mkdir out
12898    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12899
12900    lt_compiler_flag="-o out/conftest2.$ac_objext"
12901    # Insert the option either (1) after the last *FLAGS variable, or
12902    # (2) before a word containing "conftest.", or (3) at the end.
12903    # Note that $ac_compile itself does not contain backslashes and begins
12904    # with a dollar sign (not a hyphen), so the echo should work correctly.
12905    lt_compile=`echo "$ac_compile" | $SED \
12906    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12907    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12908    -e 's:$: $lt_compiler_flag:'`
12909    (eval echo "\"\$as_me:12909: $lt_compile\"" >&5)
12910    (eval "$lt_compile" 2>out/conftest.err)
12911    ac_status=$?
12912    cat out/conftest.err >&5
12913    echo "$as_me:12913: \$? = $ac_status" >&5
12914    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12915    then
12916      # The compiler can only warn and ignore the option if not recognized
12917      # So say no if there are warnings
12918      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12919      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12920      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12921        lt_cv_prog_compiler_c_o_CXX=yes
12922      fi
12923    fi
12924    chmod u+w . 2>&5
12925    $rm conftest*
12926    # SGI C++ compiler will create directory out/ii_files/ for
12927    # template instantiation
12928    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12929    $rm out/* && rmdir out
12930    cd ..
12931    rmdir conftest
12932    $rm conftest*
12933
12934 fi
12935 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12936 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12937
12938
12939 hard_links="nottested"
12940 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12941   # do not overwrite the value of need_locks provided by the user
12942   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12943 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12944   hard_links=yes
12945   $rm conftest*
12946   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12947   touch conftest.a
12948   ln conftest.a conftest.b 2>&5 || hard_links=no
12949   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12950   { echo "$as_me:$LINENO: result: $hard_links" >&5
12951 echo "${ECHO_T}$hard_links" >&6; }
12952   if test "$hard_links" = no; then
12953     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12954 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12955     need_locks=warn
12956   fi
12957 else
12958   need_locks=no
12959 fi
12960
12961 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12962 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12963
12964   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12965   case $host_os in
12966   aix[4-9]*)
12967     # If we're using GNU nm, then we don't want the "-C" option.
12968     # -C means demangle to AIX nm, but means don't demangle with GNU nm
12969     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12970       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'
12971     else
12972       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'
12973     fi
12974     ;;
12975   pw32*)
12976     export_symbols_cmds_CXX="$ltdll_cmds"
12977   ;;
12978   cygwin* | mingw*)
12979     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'
12980   ;;
12981   linux* | k*bsd*-gnu)
12982     link_all_deplibs_CXX=no
12983   ;;
12984   *)
12985     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12986   ;;
12987   esac
12988   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12989
12990 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12991 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12992 test "$ld_shlibs_CXX" = no && can_build_shared=no
12993
12994 #
12995 # Do we need to explicitly link libc?
12996 #
12997 case "x$archive_cmds_need_lc_CXX" in
12998 x|xyes)
12999   # Assume -lc should be added
13000   archive_cmds_need_lc_CXX=yes
13001
13002   if test "$enable_shared" = yes && test "$GCC" = yes; then
13003     case $archive_cmds_CXX in
13004     *'~'*)
13005       # FIXME: we may have to deal with multi-command sequences.
13006       ;;
13007     '$CC '*)
13008       # Test whether the compiler implicitly links with -lc since on some
13009       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13010       # to ld, don't add -lc before -lgcc.
13011       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13012 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13013       $rm conftest*
13014       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13015
13016       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13017   (eval $ac_compile) 2>&5
13018   ac_status=$?
13019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13020   (exit $ac_status); } 2>conftest.err; then
13021         soname=conftest
13022         lib=conftest
13023         libobjs=conftest.$ac_objext
13024         deplibs=
13025         wl=$lt_prog_compiler_wl_CXX
13026         pic_flag=$lt_prog_compiler_pic_CXX
13027         compiler_flags=-v
13028         linker_flags=-v
13029         verstring=
13030         output_objdir=.
13031         libname=conftest
13032         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13033         allow_undefined_flag_CXX=
13034         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13035   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13036   ac_status=$?
13037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13038   (exit $ac_status); }
13039         then
13040           archive_cmds_need_lc_CXX=no
13041         else
13042           archive_cmds_need_lc_CXX=yes
13043         fi
13044         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13045       else
13046         cat conftest.err 1>&5
13047       fi
13048       $rm conftest*
13049       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13050 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13051       ;;
13052     esac
13053   fi
13054   ;;
13055 esac
13056
13057 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13058 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13059 library_names_spec=
13060 libname_spec='lib$name'
13061 soname_spec=
13062 shrext_cmds=".so"
13063 postinstall_cmds=
13064 postuninstall_cmds=
13065 finish_cmds=
13066 finish_eval=
13067 shlibpath_var=
13068 shlibpath_overrides_runpath=unknown
13069 version_type=none
13070 dynamic_linker="$host_os ld.so"
13071 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13072
13073 need_lib_prefix=unknown
13074 hardcode_into_libs=no
13075
13076 # when you set need_version to no, make sure it does not cause -set_version
13077 # flags to be left without arguments
13078 need_version=unknown
13079
13080 case $host_os in
13081 aix3*)
13082   version_type=linux
13083   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13084   shlibpath_var=LIBPATH
13085
13086   # AIX 3 has no versioning support, so we append a major version to the name.
13087   soname_spec='${libname}${release}${shared_ext}$major'
13088   ;;
13089
13090 aix[4-9]*)
13091   version_type=linux
13092   need_lib_prefix=no
13093   need_version=no
13094   hardcode_into_libs=yes
13095   if test "$host_cpu" = ia64; then
13096     # AIX 5 supports IA64
13097     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13098     shlibpath_var=LD_LIBRARY_PATH
13099   else
13100     # With GCC up to 2.95.x, collect2 would create an import file
13101     # for dependence libraries.  The import file would start with
13102     # the line `#! .'.  This would cause the generated library to
13103     # depend on `.', always an invalid library.  This was fixed in
13104     # development snapshots of GCC prior to 3.0.
13105     case $host_os in
13106       aix4 | aix4.[01] | aix4.[01].*)
13107       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13108            echo ' yes '
13109            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13110         :
13111       else
13112         can_build_shared=no
13113       fi
13114       ;;
13115     esac
13116     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13117     # soname into executable. Probably we can add versioning support to
13118     # collect2, so additional links can be useful in future.
13119     if test "$aix_use_runtimelinking" = yes; then
13120       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13121       # instead of lib<name>.a to let people know that these are not
13122       # typical AIX shared libraries.
13123       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13124     else
13125       # We preserve .a as extension for shared libraries through AIX4.2
13126       # and later when we are not doing run time linking.
13127       library_names_spec='${libname}${release}.a $libname.a'
13128       soname_spec='${libname}${release}${shared_ext}$major'
13129     fi
13130     shlibpath_var=LIBPATH
13131   fi
13132   ;;
13133
13134 amigaos*)
13135   library_names_spec='$libname.ixlibrary $libname.a'
13136   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13137   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'
13138   ;;
13139
13140 beos*)
13141   library_names_spec='${libname}${shared_ext}'
13142   dynamic_linker="$host_os ld.so"
13143   shlibpath_var=LIBRARY_PATH
13144   ;;
13145
13146 bsdi[45]*)
13147   version_type=linux
13148   need_version=no
13149   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13150   soname_spec='${libname}${release}${shared_ext}$major'
13151   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13152   shlibpath_var=LD_LIBRARY_PATH
13153   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13154   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13155   # the default ld.so.conf also contains /usr/contrib/lib and
13156   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13157   # libtool to hard-code these into programs
13158   ;;
13159
13160 cygwin* | mingw* | pw32*)
13161   version_type=windows
13162   shrext_cmds=".dll"
13163   need_version=no
13164   need_lib_prefix=no
13165
13166   case $GCC,$host_os in
13167   yes,cygwin* | yes,mingw* | yes,pw32*)
13168     library_names_spec='$libname.dll.a'
13169     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13170     postinstall_cmds='base_file=`basename \${file}`~
13171       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13172       dldir=$destdir/`dirname \$dlpath`~
13173       test -d \$dldir || mkdir -p \$dldir~
13174       $install_prog $dir/$dlname \$dldir/$dlname~
13175       chmod a+x \$dldir/$dlname'
13176     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13177       dlpath=$dir/\$dldll~
13178        $rm \$dlpath'
13179     shlibpath_overrides_runpath=yes
13180
13181     case $host_os in
13182     cygwin*)
13183       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13184       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13185       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13186       ;;
13187     mingw*)
13188       # MinGW DLLs use traditional 'lib' prefix
13189       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13190       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13191       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13192         # It is most probably a Windows format PATH printed by
13193         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13194         # path with ; separators, and with drive letters. We can handle the
13195         # drive letters (cygwin fileutils understands them), so leave them,
13196         # especially as we might pass files found there to a mingw objdump,
13197         # which wouldn't understand a cygwinified path. Ahh.
13198         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13199       else
13200         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13201       fi
13202       ;;
13203     pw32*)
13204       # pw32 DLLs use 'pw' prefix rather than 'lib'
13205       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13206       ;;
13207     esac
13208     ;;
13209
13210   *)
13211     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13212     ;;
13213   esac
13214   dynamic_linker='Win32 ld.exe'
13215   # FIXME: first we should search . and the directory the executable is in
13216   shlibpath_var=PATH
13217   ;;
13218
13219 darwin* | rhapsody*)
13220   dynamic_linker="$host_os dyld"
13221   version_type=darwin
13222   need_lib_prefix=no
13223   need_version=no
13224   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13225   soname_spec='${libname}${release}${major}$shared_ext'
13226   shlibpath_overrides_runpath=yes
13227   shlibpath_var=DYLD_LIBRARY_PATH
13228   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13229
13230   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13231   ;;
13232
13233 dgux*)
13234   version_type=linux
13235   need_lib_prefix=no
13236   need_version=no
13237   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13238   soname_spec='${libname}${release}${shared_ext}$major'
13239   shlibpath_var=LD_LIBRARY_PATH
13240   ;;
13241
13242 freebsd1*)
13243   dynamic_linker=no
13244   ;;
13245
13246 freebsd* | dragonfly*)
13247   # DragonFly does not have aout.  When/if they implement a new
13248   # versioning mechanism, adjust this.
13249   if test -x /usr/bin/objformat; then
13250     objformat=`/usr/bin/objformat`
13251   else
13252     case $host_os in
13253     freebsd[123]*) objformat=aout ;;
13254     *) objformat=elf ;;
13255     esac
13256   fi
13257   version_type=freebsd-$objformat
13258   case $version_type in
13259     freebsd-elf*)
13260       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13261       need_version=no
13262       need_lib_prefix=no
13263       ;;
13264     freebsd-*)
13265       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13266       need_version=yes
13267       ;;
13268   esac
13269   shlibpath_var=LD_LIBRARY_PATH
13270   case $host_os in
13271   freebsd2*)
13272     shlibpath_overrides_runpath=yes
13273     ;;
13274   freebsd3.[01]* | freebsdelf3.[01]*)
13275     shlibpath_overrides_runpath=yes
13276     hardcode_into_libs=yes
13277     ;;
13278   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13279   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13280     shlibpath_overrides_runpath=no
13281     hardcode_into_libs=yes
13282     ;;
13283   *) # from 4.6 on, and DragonFly
13284     shlibpath_overrides_runpath=yes
13285     hardcode_into_libs=yes
13286     ;;
13287   esac
13288   ;;
13289
13290 gnu*)
13291   version_type=linux
13292   need_lib_prefix=no
13293   need_version=no
13294   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13295   soname_spec='${libname}${release}${shared_ext}$major'
13296   shlibpath_var=LD_LIBRARY_PATH
13297   hardcode_into_libs=yes
13298   ;;
13299
13300 hpux9* | hpux10* | hpux11*)
13301   # Give a soname corresponding to the major version so that dld.sl refuses to
13302   # link against other versions.
13303   version_type=sunos
13304   need_lib_prefix=no
13305   need_version=no
13306   case $host_cpu in
13307   ia64*)
13308     shrext_cmds='.so'
13309     hardcode_into_libs=yes
13310     dynamic_linker="$host_os dld.so"
13311     shlibpath_var=LD_LIBRARY_PATH
13312     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13313     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13314     soname_spec='${libname}${release}${shared_ext}$major'
13315     if test "X$HPUX_IA64_MODE" = X32; then
13316       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13317     else
13318       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13319     fi
13320     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13321     ;;
13322    hppa*64*)
13323      shrext_cmds='.sl'
13324      hardcode_into_libs=yes
13325      dynamic_linker="$host_os dld.sl"
13326      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13327      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13328      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13329      soname_spec='${libname}${release}${shared_ext}$major'
13330      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13331      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13332      ;;
13333    *)
13334     shrext_cmds='.sl'
13335     dynamic_linker="$host_os dld.sl"
13336     shlibpath_var=SHLIB_PATH
13337     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13338     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13339     soname_spec='${libname}${release}${shared_ext}$major'
13340     ;;
13341   esac
13342   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13343   postinstall_cmds='chmod 555 $lib'
13344   ;;
13345
13346 interix[3-9]*)
13347   version_type=linux
13348   need_lib_prefix=no
13349   need_version=no
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   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13353   shlibpath_var=LD_LIBRARY_PATH
13354   shlibpath_overrides_runpath=no
13355   hardcode_into_libs=yes
13356   ;;
13357
13358 irix5* | irix6* | nonstopux*)
13359   case $host_os in
13360     nonstopux*) version_type=nonstopux ;;
13361     *)
13362         if test "$lt_cv_prog_gnu_ld" = yes; then
13363                 version_type=linux
13364         else
13365                 version_type=irix
13366         fi ;;
13367   esac
13368   need_lib_prefix=no
13369   need_version=no
13370   soname_spec='${libname}${release}${shared_ext}$major'
13371   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13372   case $host_os in
13373   irix5* | nonstopux*)
13374     libsuff= shlibsuff=
13375     ;;
13376   *)
13377     case $LD in # libtool.m4 will add one of these switches to LD
13378     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13379       libsuff= shlibsuff= libmagic=32-bit;;
13380     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13381       libsuff=32 shlibsuff=N32 libmagic=N32;;
13382     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13383       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13384     *) libsuff= shlibsuff= libmagic=never-match;;
13385     esac
13386     ;;
13387   esac
13388   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13389   shlibpath_overrides_runpath=no
13390   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13391   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13392   hardcode_into_libs=yes
13393   ;;
13394
13395 # No shared lib support for Linux oldld, aout, or coff.
13396 linux*oldld* | linux*aout* | linux*coff*)
13397   dynamic_linker=no
13398   ;;
13399
13400 # This must be Linux ELF.
13401 linux* | k*bsd*-gnu)
13402   version_type=linux
13403   need_lib_prefix=no
13404   need_version=no
13405   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13406   soname_spec='${libname}${release}${shared_ext}$major'
13407   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13408   shlibpath_var=LD_LIBRARY_PATH
13409   shlibpath_overrides_runpath=no
13410   # This implies no fast_install, which is unacceptable.
13411   # Some rework will be needed to allow for fast_install
13412   # before this can be enabled.
13413   hardcode_into_libs=yes
13414
13415   # Append ld.so.conf contents to the search path
13416   if test -f /etc/ld.so.conf; then
13417     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' ' '`
13418     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13419   fi
13420
13421   # We used to test for /lib/ld.so.1 and disable shared libraries on
13422   # powerpc, because MkLinux only supported shared libraries with the
13423   # GNU dynamic linker.  Since this was broken with cross compilers,
13424   # most powerpc-linux boxes support dynamic linking these days and
13425   # people can always --disable-shared, the test was removed, and we
13426   # assume the GNU/Linux dynamic linker is in use.
13427   dynamic_linker='GNU/Linux ld.so'
13428   ;;
13429
13430 netbsdelf*-gnu)
13431   version_type=linux
13432   need_lib_prefix=no
13433   need_version=no
13434   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13435   soname_spec='${libname}${release}${shared_ext}$major'
13436   shlibpath_var=LD_LIBRARY_PATH
13437   shlibpath_overrides_runpath=no
13438   hardcode_into_libs=yes
13439   dynamic_linker='NetBSD ld.elf_so'
13440   ;;
13441
13442 netbsd*)
13443   version_type=sunos
13444   need_lib_prefix=no
13445   need_version=no
13446   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13447     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13448     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13449     dynamic_linker='NetBSD (a.out) ld.so'
13450   else
13451     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13452     soname_spec='${libname}${release}${shared_ext}$major'
13453     dynamic_linker='NetBSD ld.elf_so'
13454   fi
13455   shlibpath_var=LD_LIBRARY_PATH
13456   shlibpath_overrides_runpath=yes
13457   hardcode_into_libs=yes
13458   ;;
13459
13460 newsos6)
13461   version_type=linux
13462   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13463   shlibpath_var=LD_LIBRARY_PATH
13464   shlibpath_overrides_runpath=yes
13465   ;;
13466
13467 nto-qnx*)
13468   version_type=linux
13469   need_lib_prefix=no
13470   need_version=no
13471   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13472   soname_spec='${libname}${release}${shared_ext}$major'
13473   shlibpath_var=LD_LIBRARY_PATH
13474   shlibpath_overrides_runpath=yes
13475   ;;
13476
13477 openbsd*)
13478   version_type=sunos
13479   sys_lib_dlsearch_path_spec="/usr/lib"
13480   need_lib_prefix=no
13481   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13482   case $host_os in
13483     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13484     *)                         need_version=no  ;;
13485   esac
13486   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13487   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13488   shlibpath_var=LD_LIBRARY_PATH
13489   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13490     case $host_os in
13491       openbsd2.[89] | openbsd2.[89].*)
13492         shlibpath_overrides_runpath=no
13493         ;;
13494       *)
13495         shlibpath_overrides_runpath=yes
13496         ;;
13497       esac
13498   else
13499     shlibpath_overrides_runpath=yes
13500   fi
13501   ;;
13502
13503 os2*)
13504   libname_spec='$name'
13505   shrext_cmds=".dll"
13506   need_lib_prefix=no
13507   library_names_spec='$libname${shared_ext} $libname.a'
13508   dynamic_linker='OS/2 ld.exe'
13509   shlibpath_var=LIBPATH
13510   ;;
13511
13512 osf3* | osf4* | osf5*)
13513   version_type=osf
13514   need_lib_prefix=no
13515   need_version=no
13516   soname_spec='${libname}${release}${shared_ext}$major'
13517   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13518   shlibpath_var=LD_LIBRARY_PATH
13519   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13520   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13521   ;;
13522
13523 rdos*)
13524   dynamic_linker=no
13525   ;;
13526
13527 solaris*)
13528   version_type=linux
13529   need_lib_prefix=no
13530   need_version=no
13531   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13532   soname_spec='${libname}${release}${shared_ext}$major'
13533   shlibpath_var=LD_LIBRARY_PATH
13534   shlibpath_overrides_runpath=yes
13535   hardcode_into_libs=yes
13536   # ldd complains unless libraries are executable
13537   postinstall_cmds='chmod +x $lib'
13538   ;;
13539
13540 sunos4*)
13541   version_type=sunos
13542   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13543   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13544   shlibpath_var=LD_LIBRARY_PATH
13545   shlibpath_overrides_runpath=yes
13546   if test "$with_gnu_ld" = yes; then
13547     need_lib_prefix=no
13548   fi
13549   need_version=yes
13550   ;;
13551
13552 sysv4 | sysv4.3*)
13553   version_type=linux
13554   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13555   soname_spec='${libname}${release}${shared_ext}$major'
13556   shlibpath_var=LD_LIBRARY_PATH
13557   case $host_vendor in
13558     sni)
13559       shlibpath_overrides_runpath=no
13560       need_lib_prefix=no
13561       export_dynamic_flag_spec='${wl}-Blargedynsym'
13562       runpath_var=LD_RUN_PATH
13563       ;;
13564     siemens)
13565       need_lib_prefix=no
13566       ;;
13567     motorola)
13568       need_lib_prefix=no
13569       need_version=no
13570       shlibpath_overrides_runpath=no
13571       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13572       ;;
13573   esac
13574   ;;
13575
13576 sysv4*MP*)
13577   if test -d /usr/nec ;then
13578     version_type=linux
13579     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13580     soname_spec='$libname${shared_ext}.$major'
13581     shlibpath_var=LD_LIBRARY_PATH
13582   fi
13583   ;;
13584
13585 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13586   version_type=freebsd-elf
13587   need_lib_prefix=no
13588   need_version=no
13589   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13590   soname_spec='${libname}${release}${shared_ext}$major'
13591   shlibpath_var=LD_LIBRARY_PATH
13592   hardcode_into_libs=yes
13593   if test "$with_gnu_ld" = yes; then
13594     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13595     shlibpath_overrides_runpath=no
13596   else
13597     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13598     shlibpath_overrides_runpath=yes
13599     case $host_os in
13600       sco3.2v5*)
13601         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13602         ;;
13603     esac
13604   fi
13605   sys_lib_dlsearch_path_spec='/usr/lib'
13606   ;;
13607
13608 uts4*)
13609   version_type=linux
13610   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13611   soname_spec='${libname}${release}${shared_ext}$major'
13612   shlibpath_var=LD_LIBRARY_PATH
13613   ;;
13614
13615 *)
13616   dynamic_linker=no
13617   ;;
13618 esac
13619 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13620 echo "${ECHO_T}$dynamic_linker" >&6; }
13621 test "$dynamic_linker" = no && can_build_shared=no
13622
13623 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13624   echo $ECHO_N "(cached) $ECHO_C" >&6
13625 else
13626   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13627 fi
13628
13629 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13630 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13631   echo $ECHO_N "(cached) $ECHO_C" >&6
13632 else
13633   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13634 fi
13635
13636 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13637
13638 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13639 if test "$GCC" = yes; then
13640   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13641 fi
13642
13643 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13644 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13645 hardcode_action_CXX=
13646 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13647    test -n "$runpath_var_CXX" || \
13648    test "X$hardcode_automatic_CXX" = "Xyes" ; then
13649
13650   # We can hardcode non-existant directories.
13651   if test "$hardcode_direct_CXX" != no &&
13652      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13653      # have to relink, otherwise we might link with an installed library
13654      # when we should be linking with a yet-to-be-installed one
13655      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13656      test "$hardcode_minus_L_CXX" != no; then
13657     # Linking always hardcodes the temporary library directory.
13658     hardcode_action_CXX=relink
13659   else
13660     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13661     hardcode_action_CXX=immediate
13662   fi
13663 else
13664   # We cannot hardcode anything, or else we can only hardcode existing
13665   # directories.
13666   hardcode_action_CXX=unsupported
13667 fi
13668 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13669 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13670
13671 if test "$hardcode_action_CXX" = relink; then
13672   # Fast installation is not supported
13673   enable_fast_install=no
13674 elif test "$shlibpath_overrides_runpath" = yes ||
13675      test "$enable_shared" = no; then
13676   # Fast installation is not necessary
13677   enable_fast_install=needless
13678 fi
13679
13680
13681 # The else clause should only fire when bootstrapping the
13682 # libtool distribution, otherwise you forgot to ship ltmain.sh
13683 # with your package, and you will get complaints that there are
13684 # no rules to generate ltmain.sh.
13685 if test -f "$ltmain"; then
13686   # See if we are running on zsh, and set the options which allow our commands through
13687   # without removal of \ escapes.
13688   if test -n "${ZSH_VERSION+set}" ; then
13689     setopt NO_GLOB_SUBST
13690   fi
13691   # Now quote all the things that may contain metacharacters while being
13692   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13693   # variables and quote the copies for generation of the libtool script.
13694   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13695     SED SHELL STRIP \
13696     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13697     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13698     deplibs_check_method reload_flag reload_cmds need_locks \
13699     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13700     lt_cv_sys_global_symbol_to_c_name_address \
13701     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13702     old_postinstall_cmds old_postuninstall_cmds \
13703     compiler_CXX \
13704     CC_CXX \
13705     LD_CXX \
13706     lt_prog_compiler_wl_CXX \
13707     lt_prog_compiler_pic_CXX \
13708     lt_prog_compiler_static_CXX \
13709     lt_prog_compiler_no_builtin_flag_CXX \
13710     export_dynamic_flag_spec_CXX \
13711     thread_safe_flag_spec_CXX \
13712     whole_archive_flag_spec_CXX \
13713     enable_shared_with_static_runtimes_CXX \
13714     old_archive_cmds_CXX \
13715     old_archive_from_new_cmds_CXX \
13716     predep_objects_CXX \
13717     postdep_objects_CXX \
13718     predeps_CXX \
13719     postdeps_CXX \
13720     compiler_lib_search_path_CXX \
13721     compiler_lib_search_dirs_CXX \
13722     archive_cmds_CXX \
13723     archive_expsym_cmds_CXX \
13724     postinstall_cmds_CXX \
13725     postuninstall_cmds_CXX \
13726     old_archive_from_expsyms_cmds_CXX \
13727     allow_undefined_flag_CXX \
13728     no_undefined_flag_CXX \
13729     export_symbols_cmds_CXX \
13730     hardcode_libdir_flag_spec_CXX \
13731     hardcode_libdir_flag_spec_ld_CXX \
13732     hardcode_libdir_separator_CXX \
13733     hardcode_automatic_CXX \
13734     module_cmds_CXX \
13735     module_expsym_cmds_CXX \
13736     lt_cv_prog_compiler_c_o_CXX \
13737     fix_srcfile_path_CXX \
13738     exclude_expsyms_CXX \
13739     include_expsyms_CXX; do
13740
13741     case $var in
13742     old_archive_cmds_CXX | \
13743     old_archive_from_new_cmds_CXX | \
13744     archive_cmds_CXX | \
13745     archive_expsym_cmds_CXX | \
13746     module_cmds_CXX | \
13747     module_expsym_cmds_CXX | \
13748     old_archive_from_expsyms_cmds_CXX | \
13749     export_symbols_cmds_CXX | \
13750     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13751     postinstall_cmds | postuninstall_cmds | \
13752     old_postinstall_cmds | old_postuninstall_cmds | \
13753     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13754       # Double-quote double-evaled strings.
13755       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13756       ;;
13757     *)
13758       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13759       ;;
13760     esac
13761   done
13762
13763   case $lt_echo in
13764   *'\$0 --fallback-echo"')
13765     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13766     ;;
13767   esac
13768
13769 cfgfile="$ofile"
13770
13771   cat <<__EOF__ >> "$cfgfile"
13772 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13773
13774 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13775
13776 # Shell to use when invoking shell scripts.
13777 SHELL=$lt_SHELL
13778
13779 # Whether or not to build shared libraries.
13780 build_libtool_libs=$enable_shared
13781
13782 # Whether or not to build static libraries.
13783 build_old_libs=$enable_static
13784
13785 # Whether or not to add -lc for building shared libraries.
13786 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13787
13788 # Whether or not to disallow shared libs when runtime libs are static
13789 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13790
13791 # Whether or not to optimize for fast installation.
13792 fast_install=$enable_fast_install
13793
13794 # The host system.
13795 host_alias=$host_alias
13796 host=$host
13797 host_os=$host_os
13798
13799 # The build system.
13800 build_alias=$build_alias
13801 build=$build
13802 build_os=$build_os
13803
13804 # An echo program that does not interpret backslashes.
13805 echo=$lt_echo
13806
13807 # The archiver.
13808 AR=$lt_AR
13809 AR_FLAGS=$lt_AR_FLAGS
13810
13811 # A C compiler.
13812 LTCC=$lt_LTCC
13813
13814 # LTCC compiler flags.
13815 LTCFLAGS=$lt_LTCFLAGS
13816
13817 # A language-specific compiler.
13818 CC=$lt_compiler_CXX
13819
13820 # Is the compiler the GNU C compiler?
13821 with_gcc=$GCC_CXX
13822
13823 # An ERE matcher.
13824 EGREP=$lt_EGREP
13825
13826 # The linker used to build libraries.
13827 LD=$lt_LD_CXX
13828
13829 # Whether we need hard or soft links.
13830 LN_S=$lt_LN_S
13831
13832 # A BSD-compatible nm program.
13833 NM=$lt_NM
13834
13835 # A symbol stripping program
13836 STRIP=$lt_STRIP
13837
13838 # Used to examine libraries when file_magic_cmd begins "file"
13839 MAGIC_CMD=$MAGIC_CMD
13840
13841 # Used on cygwin: DLL creation program.
13842 DLLTOOL="$DLLTOOL"
13843
13844 # Used on cygwin: object dumper.
13845 OBJDUMP="$OBJDUMP"
13846
13847 # Used on cygwin: assembler.
13848 AS="$AS"
13849
13850 # The name of the directory that contains temporary libtool files.
13851 objdir=$objdir
13852
13853 # How to create reloadable object files.
13854 reload_flag=$lt_reload_flag
13855 reload_cmds=$lt_reload_cmds
13856
13857 # How to pass a linker flag through the compiler.
13858 wl=$lt_lt_prog_compiler_wl_CXX
13859
13860 # Object file suffix (normally "o").
13861 objext="$ac_objext"
13862
13863 # Old archive suffix (normally "a").
13864 libext="$libext"
13865
13866 # Shared library suffix (normally ".so").
13867 shrext_cmds='$shrext_cmds'
13868
13869 # Executable file suffix (normally "").
13870 exeext="$exeext"
13871
13872 # Additional compiler flags for building library objects.
13873 pic_flag=$lt_lt_prog_compiler_pic_CXX
13874 pic_mode=$pic_mode
13875
13876 # What is the maximum length of a command?
13877 max_cmd_len=$lt_cv_sys_max_cmd_len
13878
13879 # Does compiler simultaneously support -c and -o options?
13880 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13881
13882 # Must we lock files when doing compilation?
13883 need_locks=$lt_need_locks
13884
13885 # Do we need the lib prefix for modules?
13886 need_lib_prefix=$need_lib_prefix
13887
13888 # Do we need a version for libraries?
13889 need_version=$need_version
13890
13891 # Whether dlopen is supported.
13892 dlopen_support=$enable_dlopen
13893
13894 # Whether dlopen of programs is supported.
13895 dlopen_self=$enable_dlopen_self
13896
13897 # Whether dlopen of statically linked programs is supported.
13898 dlopen_self_static=$enable_dlopen_self_static
13899
13900 # Compiler flag to prevent dynamic linking.
13901 link_static_flag=$lt_lt_prog_compiler_static_CXX
13902
13903 # Compiler flag to turn off builtin functions.
13904 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13905
13906 # Compiler flag to allow reflexive dlopens.
13907 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13908
13909 # Compiler flag to generate shared objects directly from archives.
13910 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13911
13912 # Compiler flag to generate thread-safe objects.
13913 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13914
13915 # Library versioning type.
13916 version_type=$version_type
13917
13918 # Format of library name prefix.
13919 libname_spec=$lt_libname_spec
13920
13921 # List of archive names.  First name is the real one, the rest are links.
13922 # The last name is the one that the linker finds with -lNAME.
13923 library_names_spec=$lt_library_names_spec
13924
13925 # The coded name of the library, if different from the real name.
13926 soname_spec=$lt_soname_spec
13927
13928 # Commands used to build and install an old-style archive.
13929 RANLIB=$lt_RANLIB
13930 old_archive_cmds=$lt_old_archive_cmds_CXX
13931 old_postinstall_cmds=$lt_old_postinstall_cmds
13932 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13933
13934 # Create an old-style archive from a shared archive.
13935 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13936
13937 # Create a temporary old-style archive to link instead of a shared archive.
13938 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13939
13940 # Commands used to build and install a shared archive.
13941 archive_cmds=$lt_archive_cmds_CXX
13942 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13943 postinstall_cmds=$lt_postinstall_cmds
13944 postuninstall_cmds=$lt_postuninstall_cmds
13945
13946 # Commands used to build a loadable module (assumed same as above if empty)
13947 module_cmds=$lt_module_cmds_CXX
13948 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13949
13950 # Commands to strip libraries.
13951 old_striplib=$lt_old_striplib
13952 striplib=$lt_striplib
13953
13954 # Dependencies to place before the objects being linked to create a
13955 # shared library.
13956 predep_objects=$lt_predep_objects_CXX
13957
13958 # Dependencies to place after the objects being linked to create a
13959 # shared library.
13960 postdep_objects=$lt_postdep_objects_CXX
13961
13962 # Dependencies to place before the objects being linked to create a
13963 # shared library.
13964 predeps=$lt_predeps_CXX
13965
13966 # Dependencies to place after the objects being linked to create a
13967 # shared library.
13968 postdeps=$lt_postdeps_CXX
13969
13970 # The directories searched by this compiler when creating a shared
13971 # library
13972 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13973
13974 # The library search path used internally by the compiler when linking
13975 # a shared library.
13976 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13977
13978 # Method to check whether dependent libraries are shared objects.
13979 deplibs_check_method=$lt_deplibs_check_method
13980
13981 # Command to use when deplibs_check_method == file_magic.
13982 file_magic_cmd=$lt_file_magic_cmd
13983
13984 # Flag that allows shared libraries with undefined symbols to be built.
13985 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13986
13987 # Flag that forces no undefined symbols.
13988 no_undefined_flag=$lt_no_undefined_flag_CXX
13989
13990 # Commands used to finish a libtool library installation in a directory.
13991 finish_cmds=$lt_finish_cmds
13992
13993 # Same as above, but a single script fragment to be evaled but not shown.
13994 finish_eval=$lt_finish_eval
13995
13996 # Take the output of nm and produce a listing of raw symbols and C names.
13997 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13998
13999 # Transform the output of nm in a proper C declaration
14000 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14001
14002 # Transform the output of nm in a C name address pair
14003 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14004
14005 # This is the shared library runtime path variable.
14006 runpath_var=$runpath_var
14007
14008 # This is the shared library path variable.
14009 shlibpath_var=$shlibpath_var
14010
14011 # Is shlibpath searched before the hard-coded library search path?
14012 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14013
14014 # How to hardcode a shared library path into an executable.
14015 hardcode_action=$hardcode_action_CXX
14016
14017 # Whether we should hardcode library paths into libraries.
14018 hardcode_into_libs=$hardcode_into_libs
14019
14020 # Flag to hardcode \$libdir into a binary during linking.
14021 # This must work even if \$libdir does not exist.
14022 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14023
14024 # If ld is used when linking, flag to hardcode \$libdir into
14025 # a binary during linking. This must work even if \$libdir does
14026 # not exist.
14027 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14028
14029 # Whether we need a single -rpath flag with a separated argument.
14030 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14031
14032 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14033 # resulting binary.
14034 hardcode_direct=$hardcode_direct_CXX
14035
14036 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14037 # resulting binary.
14038 hardcode_minus_L=$hardcode_minus_L_CXX
14039
14040 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14041 # the resulting binary.
14042 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14043
14044 # Set to yes if building a shared library automatically hardcodes DIR into the library
14045 # and all subsequent libraries and executables linked against it.
14046 hardcode_automatic=$hardcode_automatic_CXX
14047
14048 # Variables whose values should be saved in libtool wrapper scripts and
14049 # restored at relink time.
14050 variables_saved_for_relink="$variables_saved_for_relink"
14051
14052 # Whether libtool must link a program against all its dependency libraries.
14053 link_all_deplibs=$link_all_deplibs_CXX
14054
14055 # Compile-time system search path for libraries
14056 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14057
14058 # Run-time system search path for libraries
14059 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14060
14061 # Fix the shell variable \$srcfile for the compiler.
14062 fix_srcfile_path=$lt_fix_srcfile_path
14063
14064 # Set to yes if exported symbols are required.
14065 always_export_symbols=$always_export_symbols_CXX
14066
14067 # The commands to list exported symbols.
14068 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14069
14070 # The commands to extract the exported symbol list from a shared archive.
14071 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14072
14073 # Symbols that should not be listed in the preloaded symbols.
14074 exclude_expsyms=$lt_exclude_expsyms_CXX
14075
14076 # Symbols that must always be exported.
14077 include_expsyms=$lt_include_expsyms_CXX
14078
14079 # ### END LIBTOOL TAG CONFIG: $tagname
14080
14081 __EOF__
14082
14083
14084 else
14085   # If there is no Makefile yet, we rely on a make rule to execute
14086   # `config.status --recheck' to rerun these tests and create the
14087   # libtool script then.
14088   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14089   if test -f "$ltmain_in"; then
14090     test -f Makefile && make "$ltmain"
14091   fi
14092 fi
14093
14094
14095 ac_ext=c
14096 ac_cpp='$CPP $CPPFLAGS'
14097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14100
14101 CC=$lt_save_CC
14102 LDCXX=$LD
14103 LD=$lt_save_LD
14104 GCC=$lt_save_GCC
14105 with_gnu_ldcxx=$with_gnu_ld
14106 with_gnu_ld=$lt_save_with_gnu_ld
14107 lt_cv_path_LDCXX=$lt_cv_path_LD
14108 lt_cv_path_LD=$lt_save_path_LD
14109 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14110 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14111
14112         else
14113           tagname=""
14114         fi
14115         ;;
14116
14117       F77)
14118         if test -n "$F77" && test "X$F77" != "Xno"; then
14119
14120 ac_ext=f
14121 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14122 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14123 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14124
14125
14126 archive_cmds_need_lc_F77=no
14127 allow_undefined_flag_F77=
14128 always_export_symbols_F77=no
14129 archive_expsym_cmds_F77=
14130 export_dynamic_flag_spec_F77=
14131 hardcode_direct_F77=no
14132 hardcode_libdir_flag_spec_F77=
14133 hardcode_libdir_flag_spec_ld_F77=
14134 hardcode_libdir_separator_F77=
14135 hardcode_minus_L_F77=no
14136 hardcode_automatic_F77=no
14137 module_cmds_F77=
14138 module_expsym_cmds_F77=
14139 link_all_deplibs_F77=unknown
14140 old_archive_cmds_F77=$old_archive_cmds
14141 no_undefined_flag_F77=
14142 whole_archive_flag_spec_F77=
14143 enable_shared_with_static_runtimes_F77=no
14144
14145 # Source file extension for f77 test sources.
14146 ac_ext=f
14147
14148 # Object file extension for compiled f77 test sources.
14149 objext=o
14150 objext_F77=$objext
14151
14152 # Code to be used in simple compile tests
14153 lt_simple_compile_test_code="\
14154       subroutine t
14155       return
14156       end
14157 "
14158
14159 # Code to be used in simple link tests
14160 lt_simple_link_test_code="\
14161       program t
14162       end
14163 "
14164
14165 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14166
14167 # If no C compiler was specified, use CC.
14168 LTCC=${LTCC-"$CC"}
14169
14170 # If no C compiler flags were specified, use CFLAGS.
14171 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14172
14173 # Allow CC to be a program name with arguments.
14174 compiler=$CC
14175
14176
14177 # save warnings/boilerplate of simple test code
14178 ac_outfile=conftest.$ac_objext
14179 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14180 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14181 _lt_compiler_boilerplate=`cat conftest.err`
14182 $rm conftest*
14183
14184 ac_outfile=conftest.$ac_objext
14185 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14186 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14187 _lt_linker_boilerplate=`cat conftest.err`
14188 $rm -r conftest*
14189
14190
14191 # Allow CC to be a program name with arguments.
14192 lt_save_CC="$CC"
14193 CC=${F77-"f77"}
14194 compiler=$CC
14195 compiler_F77=$CC
14196 for cc_temp in $compiler""; do
14197   case $cc_temp in
14198     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14199     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14200     \-*) ;;
14201     *) break;;
14202   esac
14203 done
14204 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14205
14206
14207 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14208 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14209 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14210 echo "${ECHO_T}$can_build_shared" >&6; }
14211
14212 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14213 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14214 test "$can_build_shared" = "no" && enable_shared=no
14215
14216 # On AIX, shared libraries and static libraries use the same namespace, and
14217 # are all built from PIC.
14218 case $host_os in
14219 aix3*)
14220   test "$enable_shared" = yes && enable_static=no
14221   if test -n "$RANLIB"; then
14222     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14223     postinstall_cmds='$RANLIB $lib'
14224   fi
14225   ;;
14226 aix[4-9]*)
14227   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14228     test "$enable_shared" = yes && enable_static=no
14229   fi
14230   ;;
14231 esac
14232 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14233 echo "${ECHO_T}$enable_shared" >&6; }
14234
14235 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14236 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14237 # Make sure either enable_shared or enable_static is yes.
14238 test "$enable_shared" = yes || enable_static=yes
14239 { echo "$as_me:$LINENO: result: $enable_static" >&5
14240 echo "${ECHO_T}$enable_static" >&6; }
14241
14242 GCC_F77="$G77"
14243 LD_F77="$LD"
14244
14245 lt_prog_compiler_wl_F77=
14246 lt_prog_compiler_pic_F77=
14247 lt_prog_compiler_static_F77=
14248
14249 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14250 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14251
14252   if test "$GCC" = yes; then
14253     lt_prog_compiler_wl_F77='-Wl,'
14254     lt_prog_compiler_static_F77='-static'
14255
14256     case $host_os in
14257       aix*)
14258       # All AIX code is PIC.
14259       if test "$host_cpu" = ia64; then
14260         # AIX 5 now supports IA64 processor
14261         lt_prog_compiler_static_F77='-Bstatic'
14262       fi
14263       ;;
14264
14265     amigaos*)
14266       # FIXME: we need at least 68020 code to build shared libraries, but
14267       # adding the `-m68020' flag to GCC prevents building anything better,
14268       # like `-m68040'.
14269       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14270       ;;
14271
14272     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14273       # PIC is the default for these OSes.
14274       ;;
14275
14276     mingw* | cygwin* | pw32* | os2*)
14277       # This hack is so that the source file can tell whether it is being
14278       # built for inclusion in a dll (and should export symbols for example).
14279       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14280       # (--disable-auto-import) libraries
14281       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14282       ;;
14283
14284     darwin* | rhapsody*)
14285       # PIC is the default on this platform
14286       # Common symbols not allowed in MH_DYLIB files
14287       lt_prog_compiler_pic_F77='-fno-common'
14288       ;;
14289
14290     interix[3-9]*)
14291       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14292       # Instead, we relocate shared libraries at runtime.
14293       ;;
14294
14295     msdosdjgpp*)
14296       # Just because we use GCC doesn't mean we suddenly get shared libraries
14297       # on systems that don't support them.
14298       lt_prog_compiler_can_build_shared_F77=no
14299       enable_shared=no
14300       ;;
14301
14302     sysv4*MP*)
14303       if test -d /usr/nec; then
14304         lt_prog_compiler_pic_F77=-Kconform_pic
14305       fi
14306       ;;
14307
14308     hpux*)
14309       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14310       # not for PA HP-UX.
14311       case $host_cpu in
14312       hppa*64*|ia64*)
14313         # +Z the default
14314         ;;
14315       *)
14316         lt_prog_compiler_pic_F77='-fPIC'
14317         ;;
14318       esac
14319       ;;
14320
14321     *)
14322       lt_prog_compiler_pic_F77='-fPIC'
14323       ;;
14324     esac
14325   else
14326     # PORTME Check for flag to pass linker flags through the system compiler.
14327     case $host_os in
14328     aix*)
14329       lt_prog_compiler_wl_F77='-Wl,'
14330       if test "$host_cpu" = ia64; then
14331         # AIX 5 now supports IA64 processor
14332         lt_prog_compiler_static_F77='-Bstatic'
14333       else
14334         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14335       fi
14336       ;;
14337       darwin*)
14338         # PIC is the default on this platform
14339         # Common symbols not allowed in MH_DYLIB files
14340        case $cc_basename in
14341          xlc*)
14342          lt_prog_compiler_pic_F77='-qnocommon'
14343          lt_prog_compiler_wl_F77='-Wl,'
14344          ;;
14345        esac
14346        ;;
14347
14348     mingw* | cygwin* | pw32* | os2*)
14349       # This hack is so that the source file can tell whether it is being
14350       # built for inclusion in a dll (and should export symbols for example).
14351       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14352       ;;
14353
14354     hpux9* | hpux10* | hpux11*)
14355       lt_prog_compiler_wl_F77='-Wl,'
14356       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14357       # not for PA HP-UX.
14358       case $host_cpu in
14359       hppa*64*|ia64*)
14360         # +Z the default
14361         ;;
14362       *)
14363         lt_prog_compiler_pic_F77='+Z'
14364         ;;
14365       esac
14366       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14367       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14368       ;;
14369
14370     irix5* | irix6* | nonstopux*)
14371       lt_prog_compiler_wl_F77='-Wl,'
14372       # PIC (with -KPIC) is the default.
14373       lt_prog_compiler_static_F77='-non_shared'
14374       ;;
14375
14376     newsos6)
14377       lt_prog_compiler_pic_F77='-KPIC'
14378       lt_prog_compiler_static_F77='-Bstatic'
14379       ;;
14380
14381     linux* | k*bsd*-gnu)
14382       case $cc_basename in
14383       icc* | ecc*)
14384         lt_prog_compiler_wl_F77='-Wl,'
14385         lt_prog_compiler_pic_F77='-KPIC'
14386         lt_prog_compiler_static_F77='-static'
14387         ;;
14388       pgcc* | pgf77* | pgf90* | pgf95*)
14389         # Portland Group compilers (*not* the Pentium gcc compiler,
14390         # which looks to be a dead project)
14391         lt_prog_compiler_wl_F77='-Wl,'
14392         lt_prog_compiler_pic_F77='-fpic'
14393         lt_prog_compiler_static_F77='-Bstatic'
14394         ;;
14395       ccc*)
14396         lt_prog_compiler_wl_F77='-Wl,'
14397         # All Alpha code is PIC.
14398         lt_prog_compiler_static_F77='-non_shared'
14399         ;;
14400       *)
14401         case `$CC -V 2>&1 | sed 5q` in
14402         *Sun\ C*)
14403           # Sun C 5.9
14404           lt_prog_compiler_pic_F77='-KPIC'
14405           lt_prog_compiler_static_F77='-Bstatic'
14406           lt_prog_compiler_wl_F77='-Wl,'
14407           ;;
14408         *Sun\ F*)
14409           # Sun Fortran 8.3 passes all unrecognized flags to the linker
14410           lt_prog_compiler_pic_F77='-KPIC'
14411           lt_prog_compiler_static_F77='-Bstatic'
14412           lt_prog_compiler_wl_F77=''
14413           ;;
14414         esac
14415         ;;
14416       esac
14417       ;;
14418
14419     osf3* | osf4* | osf5*)
14420       lt_prog_compiler_wl_F77='-Wl,'
14421       # All OSF/1 code is PIC.
14422       lt_prog_compiler_static_F77='-non_shared'
14423       ;;
14424
14425     rdos*)
14426       lt_prog_compiler_static_F77='-non_shared'
14427       ;;
14428
14429     solaris*)
14430       lt_prog_compiler_pic_F77='-KPIC'
14431       lt_prog_compiler_static_F77='-Bstatic'
14432       case $cc_basename in
14433       f77* | f90* | f95*)
14434         lt_prog_compiler_wl_F77='-Qoption ld ';;
14435       *)
14436         lt_prog_compiler_wl_F77='-Wl,';;
14437       esac
14438       ;;
14439
14440     sunos4*)
14441       lt_prog_compiler_wl_F77='-Qoption ld '
14442       lt_prog_compiler_pic_F77='-PIC'
14443       lt_prog_compiler_static_F77='-Bstatic'
14444       ;;
14445
14446     sysv4 | sysv4.2uw2* | sysv4.3*)
14447       lt_prog_compiler_wl_F77='-Wl,'
14448       lt_prog_compiler_pic_F77='-KPIC'
14449       lt_prog_compiler_static_F77='-Bstatic'
14450       ;;
14451
14452     sysv4*MP*)
14453       if test -d /usr/nec ;then
14454         lt_prog_compiler_pic_F77='-Kconform_pic'
14455         lt_prog_compiler_static_F77='-Bstatic'
14456       fi
14457       ;;
14458
14459     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14460       lt_prog_compiler_wl_F77='-Wl,'
14461       lt_prog_compiler_pic_F77='-KPIC'
14462       lt_prog_compiler_static_F77='-Bstatic'
14463       ;;
14464
14465     unicos*)
14466       lt_prog_compiler_wl_F77='-Wl,'
14467       lt_prog_compiler_can_build_shared_F77=no
14468       ;;
14469
14470     uts4*)
14471       lt_prog_compiler_pic_F77='-pic'
14472       lt_prog_compiler_static_F77='-Bstatic'
14473       ;;
14474
14475     *)
14476       lt_prog_compiler_can_build_shared_F77=no
14477       ;;
14478     esac
14479   fi
14480
14481 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14482 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14483
14484 #
14485 # Check to make sure the PIC flag actually works.
14486 #
14487 if test -n "$lt_prog_compiler_pic_F77"; then
14488
14489 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14490 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14491 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14492   echo $ECHO_N "(cached) $ECHO_C" >&6
14493 else
14494   lt_cv_prog_compiler_pic_works_F77=no
14495   ac_outfile=conftest.$ac_objext
14496    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14497    lt_compiler_flag="$lt_prog_compiler_pic_F77"
14498    # Insert the option either (1) after the last *FLAGS variable, or
14499    # (2) before a word containing "conftest.", or (3) at the end.
14500    # Note that $ac_compile itself does not contain backslashes and begins
14501    # with a dollar sign (not a hyphen), so the echo should work correctly.
14502    # The option is referenced via a variable to avoid confusing sed.
14503    lt_compile=`echo "$ac_compile" | $SED \
14504    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14505    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14506    -e 's:$: $lt_compiler_flag:'`
14507    (eval echo "\"\$as_me:14507: $lt_compile\"" >&5)
14508    (eval "$lt_compile" 2>conftest.err)
14509    ac_status=$?
14510    cat conftest.err >&5
14511    echo "$as_me:14511: \$? = $ac_status" >&5
14512    if (exit $ac_status) && test -s "$ac_outfile"; then
14513      # The compiler can only warn and ignore the option if not recognized
14514      # So say no if there are warnings other than the usual output.
14515      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14516      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14517      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14518        lt_cv_prog_compiler_pic_works_F77=yes
14519      fi
14520    fi
14521    $rm conftest*
14522
14523 fi
14524 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14525 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14526
14527 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14528     case $lt_prog_compiler_pic_F77 in
14529      "" | " "*) ;;
14530      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14531      esac
14532 else
14533     lt_prog_compiler_pic_F77=
14534      lt_prog_compiler_can_build_shared_F77=no
14535 fi
14536
14537 fi
14538 case $host_os in
14539   # For platforms which do not support PIC, -DPIC is meaningless:
14540   *djgpp*)
14541     lt_prog_compiler_pic_F77=
14542     ;;
14543   *)
14544     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14545     ;;
14546 esac
14547
14548 #
14549 # Check to make sure the static flag actually works.
14550 #
14551 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14552 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14553 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14554 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14555   echo $ECHO_N "(cached) $ECHO_C" >&6
14556 else
14557   lt_cv_prog_compiler_static_works_F77=no
14558    save_LDFLAGS="$LDFLAGS"
14559    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14560    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14561    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14562      # The linker can only warn and ignore the option if not recognized
14563      # So say no if there are warnings
14564      if test -s conftest.err; then
14565        # Append any errors to the config.log.
14566        cat conftest.err 1>&5
14567        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14568        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14569        if diff conftest.exp conftest.er2 >/dev/null; then
14570          lt_cv_prog_compiler_static_works_F77=yes
14571        fi
14572      else
14573        lt_cv_prog_compiler_static_works_F77=yes
14574      fi
14575    fi
14576    $rm -r conftest*
14577    LDFLAGS="$save_LDFLAGS"
14578
14579 fi
14580 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14581 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14582
14583 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14584     :
14585 else
14586     lt_prog_compiler_static_F77=
14587 fi
14588
14589
14590 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14591 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14592 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14593   echo $ECHO_N "(cached) $ECHO_C" >&6
14594 else
14595   lt_cv_prog_compiler_c_o_F77=no
14596    $rm -r conftest 2>/dev/null
14597    mkdir conftest
14598    cd conftest
14599    mkdir out
14600    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14601
14602    lt_compiler_flag="-o out/conftest2.$ac_objext"
14603    # Insert the option either (1) after the last *FLAGS variable, or
14604    # (2) before a word containing "conftest.", or (3) at the end.
14605    # Note that $ac_compile itself does not contain backslashes and begins
14606    # with a dollar sign (not a hyphen), so the echo should work correctly.
14607    lt_compile=`echo "$ac_compile" | $SED \
14608    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14609    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14610    -e 's:$: $lt_compiler_flag:'`
14611    (eval echo "\"\$as_me:14611: $lt_compile\"" >&5)
14612    (eval "$lt_compile" 2>out/conftest.err)
14613    ac_status=$?
14614    cat out/conftest.err >&5
14615    echo "$as_me:14615: \$? = $ac_status" >&5
14616    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14617    then
14618      # The compiler can only warn and ignore the option if not recognized
14619      # So say no if there are warnings
14620      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14621      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14622      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14623        lt_cv_prog_compiler_c_o_F77=yes
14624      fi
14625    fi
14626    chmod u+w . 2>&5
14627    $rm conftest*
14628    # SGI C++ compiler will create directory out/ii_files/ for
14629    # template instantiation
14630    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14631    $rm out/* && rmdir out
14632    cd ..
14633    rmdir conftest
14634    $rm conftest*
14635
14636 fi
14637 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14638 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14639
14640
14641 hard_links="nottested"
14642 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14643   # do not overwrite the value of need_locks provided by the user
14644   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14645 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14646   hard_links=yes
14647   $rm conftest*
14648   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14649   touch conftest.a
14650   ln conftest.a conftest.b 2>&5 || hard_links=no
14651   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14652   { echo "$as_me:$LINENO: result: $hard_links" >&5
14653 echo "${ECHO_T}$hard_links" >&6; }
14654   if test "$hard_links" = no; then
14655     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14656 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14657     need_locks=warn
14658   fi
14659 else
14660   need_locks=no
14661 fi
14662
14663 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14664 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14665
14666   runpath_var=
14667   allow_undefined_flag_F77=
14668   enable_shared_with_static_runtimes_F77=no
14669   archive_cmds_F77=
14670   archive_expsym_cmds_F77=
14671   old_archive_From_new_cmds_F77=
14672   old_archive_from_expsyms_cmds_F77=
14673   export_dynamic_flag_spec_F77=
14674   whole_archive_flag_spec_F77=
14675   thread_safe_flag_spec_F77=
14676   hardcode_libdir_flag_spec_F77=
14677   hardcode_libdir_flag_spec_ld_F77=
14678   hardcode_libdir_separator_F77=
14679   hardcode_direct_F77=no
14680   hardcode_minus_L_F77=no
14681   hardcode_shlibpath_var_F77=unsupported
14682   link_all_deplibs_F77=unknown
14683   hardcode_automatic_F77=no
14684   module_cmds_F77=
14685   module_expsym_cmds_F77=
14686   always_export_symbols_F77=no
14687   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14688   # include_expsyms should be a list of space-separated symbols to be *always*
14689   # included in the symbol list
14690   include_expsyms_F77=
14691   # exclude_expsyms can be an extended regexp of symbols to exclude
14692   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14693   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14694   # as well as any symbol that contains `d'.
14695   exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14696   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14697   # platforms (ab)use it in PIC code, but their linkers get confused if
14698   # the symbol is explicitly referenced.  Since portable code cannot
14699   # rely on this symbol name, it's probably fine to never include it in
14700   # preloaded symbol tables.
14701   # Exclude shared library initialization/finalization symbols.
14702   extract_expsyms_cmds=
14703   # Just being paranoid about ensuring that cc_basename is set.
14704   for cc_temp in $compiler""; do
14705   case $cc_temp in
14706     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14707     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14708     \-*) ;;
14709     *) break;;
14710   esac
14711 done
14712 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14713
14714   case $host_os in
14715   cygwin* | mingw* | pw32*)
14716     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14717     # When not using gcc, we currently assume that we are using
14718     # Microsoft Visual C++.
14719     if test "$GCC" != yes; then
14720       with_gnu_ld=no
14721     fi
14722     ;;
14723   interix*)
14724     # we just hope/assume this is gcc and not c89 (= MSVC++)
14725     with_gnu_ld=yes
14726     ;;
14727   openbsd*)
14728     with_gnu_ld=no
14729     ;;
14730   esac
14731
14732   ld_shlibs_F77=yes
14733   if test "$with_gnu_ld" = yes; then
14734     # If archive_cmds runs LD, not CC, wlarc should be empty
14735     wlarc='${wl}'
14736
14737     # Set some defaults for GNU ld with shared library support. These
14738     # are reset later if shared libraries are not supported. Putting them
14739     # here allows them to be overridden if necessary.
14740     runpath_var=LD_RUN_PATH
14741     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14742     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14743     # ancient GNU ld didn't support --whole-archive et. al.
14744     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14745         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14746       else
14747         whole_archive_flag_spec_F77=
14748     fi
14749     supports_anon_versioning=no
14750     case `$LD -v 2>/dev/null` in
14751       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14752       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14753       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14754       *\ 2.11.*) ;; # other 2.11 versions
14755       *) supports_anon_versioning=yes ;;
14756     esac
14757
14758     # See if GNU ld supports shared libraries.
14759     case $host_os in
14760     aix[3-9]*)
14761       # On AIX/PPC, the GNU linker is very broken
14762       if test "$host_cpu" != ia64; then
14763         ld_shlibs_F77=no
14764         cat <<EOF 1>&2
14765
14766 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14767 *** to be unable to reliably create shared libraries on AIX.
14768 *** Therefore, libtool is disabling shared libraries support.  If you
14769 *** really care for shared libraries, you may want to modify your PATH
14770 *** so that a non-GNU linker is found, and then restart.
14771
14772 EOF
14773       fi
14774       ;;
14775
14776     amigaos*)
14777       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)'
14778       hardcode_libdir_flag_spec_F77='-L$libdir'
14779       hardcode_minus_L_F77=yes
14780
14781       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14782       # that the semantics of dynamic libraries on AmigaOS, at least up
14783       # to version 4, is to share data among multiple programs linked
14784       # with the same dynamic library.  Since this doesn't match the
14785       # behavior of shared libraries on other platforms, we can't use
14786       # them.
14787       ld_shlibs_F77=no
14788       ;;
14789
14790     beos*)
14791       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14792         allow_undefined_flag_F77=unsupported
14793         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14794         # support --undefined.  This deserves some investigation.  FIXME
14795         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14796       else
14797         ld_shlibs_F77=no
14798       fi
14799       ;;
14800
14801     cygwin* | mingw* | pw32*)
14802       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14803       # as there is no search path for DLLs.
14804       hardcode_libdir_flag_spec_F77='-L$libdir'
14805       allow_undefined_flag_F77=unsupported
14806       always_export_symbols_F77=no
14807       enable_shared_with_static_runtimes_F77=yes
14808       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14809
14810       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14811         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14812         # If the export-symbols file already is a .def file (1st line
14813         # is EXPORTS), use it as is; otherwise, prepend...
14814         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14815           cp $export_symbols $output_objdir/$soname.def;
14816         else
14817           echo EXPORTS > $output_objdir/$soname.def;
14818           cat $export_symbols >> $output_objdir/$soname.def;
14819         fi~
14820         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14821       else
14822         ld_shlibs_F77=no
14823       fi
14824       ;;
14825
14826     interix[3-9]*)
14827       hardcode_direct_F77=no
14828       hardcode_shlibpath_var_F77=no
14829       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14830       export_dynamic_flag_spec_F77='${wl}-E'
14831       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14832       # Instead, shared libraries are loaded at an image base (0x10000000 by
14833       # default) and relocated if they conflict, which is a slow very memory
14834       # consuming and fragmenting process.  To avoid this, we pick a random,
14835       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14836       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14837       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'
14838       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'
14839       ;;
14840
14841     gnu* | linux* | k*bsd*-gnu)
14842       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14843         tmp_addflag=
14844         case $cc_basename,$host_cpu in
14845         pgcc*)                          # Portland Group C compiler
14846           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'
14847           tmp_addflag=' $pic_flag'
14848           ;;
14849         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14850           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'
14851           tmp_addflag=' $pic_flag -Mnomain' ;;
14852         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14853           tmp_addflag=' -i_dynamic' ;;
14854         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14855           tmp_addflag=' -i_dynamic -nofor_main' ;;
14856         ifc* | ifort*)                  # Intel Fortran compiler
14857           tmp_addflag=' -nofor_main' ;;
14858         esac
14859         case `$CC -V 2>&1 | sed 5q` in
14860         *Sun\ C*)                       # Sun C 5.9
14861           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'
14862           tmp_sharedflag='-G' ;;
14863         *Sun\ F*)                       # Sun Fortran 8.3
14864           tmp_sharedflag='-G' ;;
14865         *)
14866           tmp_sharedflag='-shared' ;;
14867         esac
14868         archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14869
14870         if test $supports_anon_versioning = yes; then
14871           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14872   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14873   $echo "local: *; };" >> $output_objdir/$libname.ver~
14874           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14875         fi
14876         link_all_deplibs_F77=no
14877       else
14878         ld_shlibs_F77=no
14879       fi
14880       ;;
14881
14882     netbsd* | netbsdelf*-gnu)
14883       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14884         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14885         wlarc=
14886       else
14887         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14888         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14889       fi
14890       ;;
14891
14892     solaris*)
14893       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14894         ld_shlibs_F77=no
14895         cat <<EOF 1>&2
14896
14897 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14898 *** create shared libraries on Solaris systems.  Therefore, libtool
14899 *** is disabling shared libraries support.  We urge you to upgrade GNU
14900 *** binutils to release 2.9.1 or newer.  Another option is to modify
14901 *** your PATH or compiler configuration so that the native linker is
14902 *** used, and then restart.
14903
14904 EOF
14905       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14906         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14907         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14908       else
14909         ld_shlibs_F77=no
14910       fi
14911       ;;
14912
14913     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14914       case `$LD -v 2>&1` in
14915         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14916         ld_shlibs_F77=no
14917         cat <<_LT_EOF 1>&2
14918
14919 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14920 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14921 *** is disabling shared libraries support.  We urge you to upgrade GNU
14922 *** binutils to release 2.16.91.0.3 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 _LT_EOF
14927         ;;
14928         *)
14929           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14930             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14931             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14932             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14933           else
14934             ld_shlibs_F77=no
14935           fi
14936         ;;
14937       esac
14938       ;;
14939
14940     sunos4*)
14941       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14942       wlarc=
14943       hardcode_direct_F77=yes
14944       hardcode_shlibpath_var_F77=no
14945       ;;
14946
14947     *)
14948       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14949         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14950         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14951       else
14952         ld_shlibs_F77=no
14953       fi
14954       ;;
14955     esac
14956
14957     if test "$ld_shlibs_F77" = no; then
14958       runpath_var=
14959       hardcode_libdir_flag_spec_F77=
14960       export_dynamic_flag_spec_F77=
14961       whole_archive_flag_spec_F77=
14962     fi
14963   else
14964     # PORTME fill in a description of your system's linker (not GNU ld)
14965     case $host_os in
14966     aix3*)
14967       allow_undefined_flag_F77=unsupported
14968       always_export_symbols_F77=yes
14969       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'
14970       # Note: this linker hardcodes the directories in LIBPATH if there
14971       # are no directories specified by -L.
14972       hardcode_minus_L_F77=yes
14973       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14974         # Neither direct hardcoding nor static linking is supported with a
14975         # broken collect2.
14976         hardcode_direct_F77=unsupported
14977       fi
14978       ;;
14979
14980     aix[4-9]*)
14981       if test "$host_cpu" = ia64; then
14982         # On IA64, the linker does run time linking by default, so we don't
14983         # have to do anything special.
14984         aix_use_runtimelinking=no
14985         exp_sym_flag='-Bexport'
14986         no_entry_flag=""
14987       else
14988         # If we're using GNU nm, then we don't want the "-C" option.
14989         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14990         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14991           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'
14992         else
14993           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'
14994         fi
14995         aix_use_runtimelinking=no
14996
14997         # Test if we are trying to use run time linking or normal
14998         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14999         # need to do runtime linking.
15000         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15001           for ld_flag in $LDFLAGS; do
15002           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15003             aix_use_runtimelinking=yes
15004             break
15005           fi
15006           done
15007           ;;
15008         esac
15009
15010         exp_sym_flag='-bexport'
15011         no_entry_flag='-bnoentry'
15012       fi
15013
15014       # When large executables or shared objects are built, AIX ld can
15015       # have problems creating the table of contents.  If linking a library
15016       # or program results in "error TOC overflow" add -mminimal-toc to
15017       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15018       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15019
15020       archive_cmds_F77=''
15021       hardcode_direct_F77=yes
15022       hardcode_libdir_separator_F77=':'
15023       link_all_deplibs_F77=yes
15024
15025       if test "$GCC" = yes; then
15026         case $host_os in aix4.[012]|aix4.[012].*)
15027         # We only want to do this on AIX 4.2 and lower, the check
15028         # below for broken collect2 doesn't work under 4.3+
15029           collect2name=`${CC} -print-prog-name=collect2`
15030           if test -f "$collect2name" && \
15031            strings "$collect2name" | grep resolve_lib_name >/dev/null
15032           then
15033           # We have reworked collect2
15034           :
15035           else
15036           # We have old collect2
15037           hardcode_direct_F77=unsupported
15038           # It fails to find uninstalled libraries when the uninstalled
15039           # path is not listed in the libpath.  Setting hardcode_minus_L
15040           # to unsupported forces relinking
15041           hardcode_minus_L_F77=yes
15042           hardcode_libdir_flag_spec_F77='-L$libdir'
15043           hardcode_libdir_separator_F77=
15044           fi
15045           ;;
15046         esac
15047         shared_flag='-shared'
15048         if test "$aix_use_runtimelinking" = yes; then
15049           shared_flag="$shared_flag "'${wl}-G'
15050         fi
15051       else
15052         # not using gcc
15053         if test "$host_cpu" = ia64; then
15054         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15055         # chokes on -Wl,-G. The following line is correct:
15056           shared_flag='-G'
15057         else
15058           if test "$aix_use_runtimelinking" = yes; then
15059             shared_flag='${wl}-G'
15060           else
15061             shared_flag='${wl}-bM:SRE'
15062           fi
15063         fi
15064       fi
15065
15066       # It seems that -bexpall does not export symbols beginning with
15067       # underscore (_), so it is better to generate a list of symbols to export.
15068       always_export_symbols_F77=yes
15069       if test "$aix_use_runtimelinking" = yes; then
15070         # Warning - without using the other runtime loading flags (-brtl),
15071         # -berok will link without error, but may produce a broken library.
15072         allow_undefined_flag_F77='-berok'
15073        # Determine the default libpath from the value encoded in an empty executable.
15074        cat >conftest.$ac_ext <<_ACEOF
15075       program main
15076
15077       end
15078 _ACEOF
15079 rm -f conftest.$ac_objext conftest$ac_exeext
15080 if { (ac_try="$ac_link"
15081 case "(($ac_try" in
15082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15083   *) ac_try_echo=$ac_try;;
15084 esac
15085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15086   (eval "$ac_link") 2>conftest.er1
15087   ac_status=$?
15088   grep -v '^ *+' conftest.er1 >conftest.err
15089   rm -f conftest.er1
15090   cat conftest.err >&5
15091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15092   (exit $ac_status); } && {
15093          test -z "$ac_f77_werror_flag" ||
15094          test ! -s conftest.err
15095        } && test -s conftest$ac_exeext &&
15096        $as_test_x conftest$ac_exeext; then
15097
15098 lt_aix_libpath_sed='
15099     /Import File Strings/,/^$/ {
15100         /^0/ {
15101             s/^0  *\(.*\)$/\1/
15102             p
15103         }
15104     }'
15105 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15106 # Check for a 64-bit object if we didn't find anything.
15107 if test -z "$aix_libpath"; then
15108   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15109 fi
15110 else
15111   echo "$as_me: failed program was:" >&5
15112 sed 's/^/| /' conftest.$ac_ext >&5
15113
15114
15115 fi
15116
15117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15118       conftest$ac_exeext conftest.$ac_ext
15119 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15120
15121        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15122         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"
15123        else
15124         if test "$host_cpu" = ia64; then
15125           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15126           allow_undefined_flag_F77="-z nodefs"
15127           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"
15128         else
15129          # Determine the default libpath from the value encoded in an empty executable.
15130          cat >conftest.$ac_ext <<_ACEOF
15131       program main
15132
15133       end
15134 _ACEOF
15135 rm -f conftest.$ac_objext conftest$ac_exeext
15136 if { (ac_try="$ac_link"
15137 case "(($ac_try" in
15138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15139   *) ac_try_echo=$ac_try;;
15140 esac
15141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15142   (eval "$ac_link") 2>conftest.er1
15143   ac_status=$?
15144   grep -v '^ *+' conftest.er1 >conftest.err
15145   rm -f conftest.er1
15146   cat conftest.err >&5
15147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15148   (exit $ac_status); } && {
15149          test -z "$ac_f77_werror_flag" ||
15150          test ! -s conftest.err
15151        } && test -s conftest$ac_exeext &&
15152        $as_test_x conftest$ac_exeext; then
15153
15154 lt_aix_libpath_sed='
15155     /Import File Strings/,/^$/ {
15156         /^0/ {
15157             s/^0  *\(.*\)$/\1/
15158             p
15159         }
15160     }'
15161 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15162 # Check for a 64-bit object if we didn't find anything.
15163 if test -z "$aix_libpath"; then
15164   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15165 fi
15166 else
15167   echo "$as_me: failed program was:" >&5
15168 sed 's/^/| /' conftest.$ac_ext >&5
15169
15170
15171 fi
15172
15173 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15174       conftest$ac_exeext conftest.$ac_ext
15175 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15176
15177          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15178           # Warning - without using the other run time loading flags,
15179           # -berok will link without error, but may produce a broken library.
15180           no_undefined_flag_F77=' ${wl}-bernotok'
15181           allow_undefined_flag_F77=' ${wl}-berok'
15182           # Exported symbols can be pulled into shared objects from archives
15183           whole_archive_flag_spec_F77='$convenience'
15184           archive_cmds_need_lc_F77=yes
15185           # This is similar to how AIX traditionally builds its shared libraries.
15186           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'
15187         fi
15188       fi
15189       ;;
15190
15191     amigaos*)
15192       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)'
15193       hardcode_libdir_flag_spec_F77='-L$libdir'
15194       hardcode_minus_L_F77=yes
15195       # see comment about different semantics on the GNU ld section
15196       ld_shlibs_F77=no
15197       ;;
15198
15199     bsdi[45]*)
15200       export_dynamic_flag_spec_F77=-rdynamic
15201       ;;
15202
15203     cygwin* | mingw* | pw32*)
15204       # When not using gcc, we currently assume that we are using
15205       # Microsoft Visual C++.
15206       # hardcode_libdir_flag_spec is actually meaningless, as there is
15207       # no search path for DLLs.
15208       hardcode_libdir_flag_spec_F77=' '
15209       allow_undefined_flag_F77=unsupported
15210       # Tell ltmain to make .lib files, not .a files.
15211       libext=lib
15212       # Tell ltmain to make .dll files, not .so files.
15213       shrext_cmds=".dll"
15214       # FIXME: Setting linknames here is a bad hack.
15215       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15216       # The linker will automatically build a .lib file if we build a DLL.
15217       old_archive_From_new_cmds_F77='true'
15218       # FIXME: Should let the user specify the lib program.
15219       old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15220       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15221       enable_shared_with_static_runtimes_F77=yes
15222       ;;
15223
15224     darwin* | rhapsody*)
15225       case $host_os in
15226         rhapsody* | darwin1.[012])
15227          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15228          ;;
15229        *) # Darwin 1.3 on
15230          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15231            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15232          else
15233            case ${MACOSX_DEPLOYMENT_TARGET} in
15234              10.[012])
15235                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15236                ;;
15237              10.*)
15238                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15239                ;;
15240            esac
15241          fi
15242          ;;
15243       esac
15244       archive_cmds_need_lc_F77=no
15245       hardcode_direct_F77=no
15246       hardcode_automatic_F77=yes
15247       hardcode_shlibpath_var_F77=unsupported
15248       whole_archive_flag_spec_F77=''
15249       link_all_deplibs_F77=yes
15250     if test "$GCC" = yes ; then
15251         output_verbose_link_cmd='echo'
15252         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}"
15253         module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15254         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}"
15255         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}"
15256     else
15257       case $cc_basename in
15258         xlc*)
15259          output_verbose_link_cmd='echo'
15260          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15261          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15262           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15263          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}'
15264           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}'
15265           ;;
15266        *)
15267          ld_shlibs_F77=no
15268           ;;
15269       esac
15270     fi
15271       ;;
15272
15273     dgux*)
15274       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15275       hardcode_libdir_flag_spec_F77='-L$libdir'
15276       hardcode_shlibpath_var_F77=no
15277       ;;
15278
15279     freebsd1*)
15280       ld_shlibs_F77=no
15281       ;;
15282
15283     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15284     # support.  Future versions do this automatically, but an explicit c++rt0.o
15285     # does not break anything, and helps significantly (at the cost of a little
15286     # extra space).
15287     freebsd2.2*)
15288       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15289       hardcode_libdir_flag_spec_F77='-R$libdir'
15290       hardcode_direct_F77=yes
15291       hardcode_shlibpath_var_F77=no
15292       ;;
15293
15294     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15295     freebsd2*)
15296       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15297       hardcode_direct_F77=yes
15298       hardcode_minus_L_F77=yes
15299       hardcode_shlibpath_var_F77=no
15300       ;;
15301
15302     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15303     freebsd* | dragonfly*)
15304       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15305       hardcode_libdir_flag_spec_F77='-R$libdir'
15306       hardcode_direct_F77=yes
15307       hardcode_shlibpath_var_F77=no
15308       ;;
15309
15310     hpux9*)
15311       if test "$GCC" = yes; then
15312         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'
15313       else
15314         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'
15315       fi
15316       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15317       hardcode_libdir_separator_F77=:
15318       hardcode_direct_F77=yes
15319
15320       # hardcode_minus_L: Not really in the search PATH,
15321       # but as the default location of the library.
15322       hardcode_minus_L_F77=yes
15323       export_dynamic_flag_spec_F77='${wl}-E'
15324       ;;
15325
15326     hpux10*)
15327       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15328         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15329       else
15330         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15331       fi
15332       if test "$with_gnu_ld" = no; then
15333         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15334         hardcode_libdir_separator_F77=:
15335
15336         hardcode_direct_F77=yes
15337         export_dynamic_flag_spec_F77='${wl}-E'
15338
15339         # hardcode_minus_L: Not really in the search PATH,
15340         # but as the default location of the library.
15341         hardcode_minus_L_F77=yes
15342       fi
15343       ;;
15344
15345     hpux11*)
15346       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15347         case $host_cpu in
15348         hppa*64*)
15349           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15350           ;;
15351         ia64*)
15352           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15353           ;;
15354         *)
15355           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15356           ;;
15357         esac
15358       else
15359         case $host_cpu in
15360         hppa*64*)
15361           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15362           ;;
15363         ia64*)
15364           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15365           ;;
15366         *)
15367           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15368           ;;
15369         esac
15370       fi
15371       if test "$with_gnu_ld" = no; then
15372         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15373         hardcode_libdir_separator_F77=:
15374
15375         case $host_cpu in
15376         hppa*64*|ia64*)
15377           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15378           hardcode_direct_F77=no
15379           hardcode_shlibpath_var_F77=no
15380           ;;
15381         *)
15382           hardcode_direct_F77=yes
15383           export_dynamic_flag_spec_F77='${wl}-E'
15384
15385           # hardcode_minus_L: Not really in the search PATH,
15386           # but as the default location of the library.
15387           hardcode_minus_L_F77=yes
15388           ;;
15389         esac
15390       fi
15391       ;;
15392
15393     irix5* | irix6* | nonstopux*)
15394       if test "$GCC" = yes; then
15395         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'
15396       else
15397         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'
15398         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15399       fi
15400       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15401       hardcode_libdir_separator_F77=:
15402       link_all_deplibs_F77=yes
15403       ;;
15404
15405     netbsd* | netbsdelf*-gnu)
15406       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15407         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15408       else
15409         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15410       fi
15411       hardcode_libdir_flag_spec_F77='-R$libdir'
15412       hardcode_direct_F77=yes
15413       hardcode_shlibpath_var_F77=no
15414       ;;
15415
15416     newsos6)
15417       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15418       hardcode_direct_F77=yes
15419       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15420       hardcode_libdir_separator_F77=:
15421       hardcode_shlibpath_var_F77=no
15422       ;;
15423
15424     openbsd*)
15425       if test -f /usr/libexec/ld.so; then
15426         hardcode_direct_F77=yes
15427         hardcode_shlibpath_var_F77=no
15428         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15429           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15430           archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15431           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15432           export_dynamic_flag_spec_F77='${wl}-E'
15433         else
15434           case $host_os in
15435            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15436              archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15437              hardcode_libdir_flag_spec_F77='-R$libdir'
15438              ;;
15439            *)
15440              archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15441              hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15442              ;;
15443           esac
15444         fi
15445       else
15446         ld_shlibs_F77=no
15447       fi
15448       ;;
15449
15450     os2*)
15451       hardcode_libdir_flag_spec_F77='-L$libdir'
15452       hardcode_minus_L_F77=yes
15453       allow_undefined_flag_F77=unsupported
15454       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'
15455       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15456       ;;
15457
15458     osf3*)
15459       if test "$GCC" = yes; then
15460         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15461         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'
15462       else
15463         allow_undefined_flag_F77=' -expect_unresolved \*'
15464         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'
15465       fi
15466       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15467       hardcode_libdir_separator_F77=:
15468       ;;
15469
15470     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15471       if test "$GCC" = yes; then
15472         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15473         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'
15474         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15475       else
15476         allow_undefined_flag_F77=' -expect_unresolved \*'
15477         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'
15478         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~
15479         $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'
15480
15481         # Both c and cxx compiler support -rpath directly
15482         hardcode_libdir_flag_spec_F77='-rpath $libdir'
15483       fi
15484       hardcode_libdir_separator_F77=:
15485       ;;
15486
15487     solaris*)
15488       no_undefined_flag_F77=' -z text'
15489       if test "$GCC" = yes; then
15490         wlarc='${wl}'
15491         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15492         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15493           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15494       else
15495         wlarc=''
15496         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15497         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15498         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15499       fi
15500       hardcode_libdir_flag_spec_F77='-R$libdir'
15501       hardcode_shlibpath_var_F77=no
15502       case $host_os in
15503       solaris2.[0-5] | solaris2.[0-5].*) ;;
15504       *)
15505         # The compiler driver will combine and reorder linker options,
15506         # but understands `-z linker_flag'.  GCC discards it without `$wl',
15507         # but is careful enough not to reorder.
15508         # Supported since Solaris 2.6 (maybe 2.5.1?)
15509         if test "$GCC" = yes; then
15510           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15511         else
15512           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15513         fi
15514         ;;
15515       esac
15516       link_all_deplibs_F77=yes
15517       ;;
15518
15519     sunos4*)
15520       if test "x$host_vendor" = xsequent; then
15521         # Use $CC to link under sequent, because it throws in some extra .o
15522         # files that make .init and .fini sections work.
15523         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15524       else
15525         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15526       fi
15527       hardcode_libdir_flag_spec_F77='-L$libdir'
15528       hardcode_direct_F77=yes
15529       hardcode_minus_L_F77=yes
15530       hardcode_shlibpath_var_F77=no
15531       ;;
15532
15533     sysv4)
15534       case $host_vendor in
15535         sni)
15536           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15537           hardcode_direct_F77=yes # is this really true???
15538         ;;
15539         siemens)
15540           ## LD is ld it makes a PLAMLIB
15541           ## CC just makes a GrossModule.
15542           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15543           reload_cmds_F77='$CC -r -o $output$reload_objs'
15544           hardcode_direct_F77=no
15545         ;;
15546         motorola)
15547           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15548           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15549         ;;
15550       esac
15551       runpath_var='LD_RUN_PATH'
15552       hardcode_shlibpath_var_F77=no
15553       ;;
15554
15555     sysv4.3*)
15556       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15557       hardcode_shlibpath_var_F77=no
15558       export_dynamic_flag_spec_F77='-Bexport'
15559       ;;
15560
15561     sysv4*MP*)
15562       if test -d /usr/nec; then
15563         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15564         hardcode_shlibpath_var_F77=no
15565         runpath_var=LD_RUN_PATH
15566         hardcode_runpath_var=yes
15567         ld_shlibs_F77=yes
15568       fi
15569       ;;
15570
15571     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15572       no_undefined_flag_F77='${wl}-z,text'
15573       archive_cmds_need_lc_F77=no
15574       hardcode_shlibpath_var_F77=no
15575       runpath_var='LD_RUN_PATH'
15576
15577       if test "$GCC" = yes; then
15578         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15579         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15580       else
15581         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15582         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15583       fi
15584       ;;
15585
15586     sysv5* | sco3.2v5* | sco5v6*)
15587       # Note: We can NOT use -z defs as we might desire, because we do not
15588       # link with -lc, and that would cause any symbols used from libc to
15589       # always be unresolved, which means just about no library would
15590       # ever link correctly.  If we're not using GNU ld we use -z text
15591       # though, which does catch some bad symbols but isn't as heavy-handed
15592       # as -z defs.
15593       no_undefined_flag_F77='${wl}-z,text'
15594       allow_undefined_flag_F77='${wl}-z,nodefs'
15595       archive_cmds_need_lc_F77=no
15596       hardcode_shlibpath_var_F77=no
15597       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15598       hardcode_libdir_separator_F77=':'
15599       link_all_deplibs_F77=yes
15600       export_dynamic_flag_spec_F77='${wl}-Bexport'
15601       runpath_var='LD_RUN_PATH'
15602
15603       if test "$GCC" = yes; then
15604         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15605         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15606       else
15607         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15608         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15609       fi
15610       ;;
15611
15612     uts4*)
15613       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15614       hardcode_libdir_flag_spec_F77='-L$libdir'
15615       hardcode_shlibpath_var_F77=no
15616       ;;
15617
15618     *)
15619       ld_shlibs_F77=no
15620       ;;
15621     esac
15622   fi
15623
15624 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15625 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15626 test "$ld_shlibs_F77" = no && can_build_shared=no
15627
15628 #
15629 # Do we need to explicitly link libc?
15630 #
15631 case "x$archive_cmds_need_lc_F77" in
15632 x|xyes)
15633   # Assume -lc should be added
15634   archive_cmds_need_lc_F77=yes
15635
15636   if test "$enable_shared" = yes && test "$GCC" = yes; then
15637     case $archive_cmds_F77 in
15638     *'~'*)
15639       # FIXME: we may have to deal with multi-command sequences.
15640       ;;
15641     '$CC '*)
15642       # Test whether the compiler implicitly links with -lc since on some
15643       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15644       # to ld, don't add -lc before -lgcc.
15645       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15646 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15647       $rm conftest*
15648       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15649
15650       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15651   (eval $ac_compile) 2>&5
15652   ac_status=$?
15653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15654   (exit $ac_status); } 2>conftest.err; then
15655         soname=conftest
15656         lib=conftest
15657         libobjs=conftest.$ac_objext
15658         deplibs=
15659         wl=$lt_prog_compiler_wl_F77
15660         pic_flag=$lt_prog_compiler_pic_F77
15661         compiler_flags=-v
15662         linker_flags=-v
15663         verstring=
15664         output_objdir=.
15665         libname=conftest
15666         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15667         allow_undefined_flag_F77=
15668         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15669   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15670   ac_status=$?
15671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15672   (exit $ac_status); }
15673         then
15674           archive_cmds_need_lc_F77=no
15675         else
15676           archive_cmds_need_lc_F77=yes
15677         fi
15678         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15679       else
15680         cat conftest.err 1>&5
15681       fi
15682       $rm conftest*
15683       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15684 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15685       ;;
15686     esac
15687   fi
15688   ;;
15689 esac
15690
15691 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15692 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15693 library_names_spec=
15694 libname_spec='lib$name'
15695 soname_spec=
15696 shrext_cmds=".so"
15697 postinstall_cmds=
15698 postuninstall_cmds=
15699 finish_cmds=
15700 finish_eval=
15701 shlibpath_var=
15702 shlibpath_overrides_runpath=unknown
15703 version_type=none
15704 dynamic_linker="$host_os ld.so"
15705 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15706
15707 need_lib_prefix=unknown
15708 hardcode_into_libs=no
15709
15710 # when you set need_version to no, make sure it does not cause -set_version
15711 # flags to be left without arguments
15712 need_version=unknown
15713
15714 case $host_os in
15715 aix3*)
15716   version_type=linux
15717   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15718   shlibpath_var=LIBPATH
15719
15720   # AIX 3 has no versioning support, so we append a major version to the name.
15721   soname_spec='${libname}${release}${shared_ext}$major'
15722   ;;
15723
15724 aix[4-9]*)
15725   version_type=linux
15726   need_lib_prefix=no
15727   need_version=no
15728   hardcode_into_libs=yes
15729   if test "$host_cpu" = ia64; then
15730     # AIX 5 supports IA64
15731     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15732     shlibpath_var=LD_LIBRARY_PATH
15733   else
15734     # With GCC up to 2.95.x, collect2 would create an import file
15735     # for dependence libraries.  The import file would start with
15736     # the line `#! .'.  This would cause the generated library to
15737     # depend on `.', always an invalid library.  This was fixed in
15738     # development snapshots of GCC prior to 3.0.
15739     case $host_os in
15740       aix4 | aix4.[01] | aix4.[01].*)
15741       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15742            echo ' yes '
15743            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15744         :
15745       else
15746         can_build_shared=no
15747       fi
15748       ;;
15749     esac
15750     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15751     # soname into executable. Probably we can add versioning support to
15752     # collect2, so additional links can be useful in future.
15753     if test "$aix_use_runtimelinking" = yes; then
15754       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15755       # instead of lib<name>.a to let people know that these are not
15756       # typical AIX shared libraries.
15757       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15758     else
15759       # We preserve .a as extension for shared libraries through AIX4.2
15760       # and later when we are not doing run time linking.
15761       library_names_spec='${libname}${release}.a $libname.a'
15762       soname_spec='${libname}${release}${shared_ext}$major'
15763     fi
15764     shlibpath_var=LIBPATH
15765   fi
15766   ;;
15767
15768 amigaos*)
15769   library_names_spec='$libname.ixlibrary $libname.a'
15770   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15771   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'
15772   ;;
15773
15774 beos*)
15775   library_names_spec='${libname}${shared_ext}'
15776   dynamic_linker="$host_os ld.so"
15777   shlibpath_var=LIBRARY_PATH
15778   ;;
15779
15780 bsdi[45]*)
15781   version_type=linux
15782   need_version=no
15783   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15784   soname_spec='${libname}${release}${shared_ext}$major'
15785   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15786   shlibpath_var=LD_LIBRARY_PATH
15787   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15788   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15789   # the default ld.so.conf also contains /usr/contrib/lib and
15790   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15791   # libtool to hard-code these into programs
15792   ;;
15793
15794 cygwin* | mingw* | pw32*)
15795   version_type=windows
15796   shrext_cmds=".dll"
15797   need_version=no
15798   need_lib_prefix=no
15799
15800   case $GCC,$host_os in
15801   yes,cygwin* | yes,mingw* | yes,pw32*)
15802     library_names_spec='$libname.dll.a'
15803     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15804     postinstall_cmds='base_file=`basename \${file}`~
15805       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15806       dldir=$destdir/`dirname \$dlpath`~
15807       test -d \$dldir || mkdir -p \$dldir~
15808       $install_prog $dir/$dlname \$dldir/$dlname~
15809       chmod a+x \$dldir/$dlname'
15810     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15811       dlpath=$dir/\$dldll~
15812        $rm \$dlpath'
15813     shlibpath_overrides_runpath=yes
15814
15815     case $host_os in
15816     cygwin*)
15817       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15818       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15819       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15820       ;;
15821     mingw*)
15822       # MinGW DLLs use traditional 'lib' prefix
15823       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15824       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15825       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15826         # It is most probably a Windows format PATH printed by
15827         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15828         # path with ; separators, and with drive letters. We can handle the
15829         # drive letters (cygwin fileutils understands them), so leave them,
15830         # especially as we might pass files found there to a mingw objdump,
15831         # which wouldn't understand a cygwinified path. Ahh.
15832         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15833       else
15834         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15835       fi
15836       ;;
15837     pw32*)
15838       # pw32 DLLs use 'pw' prefix rather than 'lib'
15839       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15840       ;;
15841     esac
15842     ;;
15843
15844   *)
15845     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15846     ;;
15847   esac
15848   dynamic_linker='Win32 ld.exe'
15849   # FIXME: first we should search . and the directory the executable is in
15850   shlibpath_var=PATH
15851   ;;
15852
15853 darwin* | rhapsody*)
15854   dynamic_linker="$host_os dyld"
15855   version_type=darwin
15856   need_lib_prefix=no
15857   need_version=no
15858   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15859   soname_spec='${libname}${release}${major}$shared_ext'
15860   shlibpath_overrides_runpath=yes
15861   shlibpath_var=DYLD_LIBRARY_PATH
15862   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15863
15864   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15865   ;;
15866
15867 dgux*)
15868   version_type=linux
15869   need_lib_prefix=no
15870   need_version=no
15871   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15872   soname_spec='${libname}${release}${shared_ext}$major'
15873   shlibpath_var=LD_LIBRARY_PATH
15874   ;;
15875
15876 freebsd1*)
15877   dynamic_linker=no
15878   ;;
15879
15880 freebsd* | dragonfly*)
15881   # DragonFly does not have aout.  When/if they implement a new
15882   # versioning mechanism, adjust this.
15883   if test -x /usr/bin/objformat; then
15884     objformat=`/usr/bin/objformat`
15885   else
15886     case $host_os in
15887     freebsd[123]*) objformat=aout ;;
15888     *) objformat=elf ;;
15889     esac
15890   fi
15891   version_type=freebsd-$objformat
15892   case $version_type in
15893     freebsd-elf*)
15894       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15895       need_version=no
15896       need_lib_prefix=no
15897       ;;
15898     freebsd-*)
15899       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15900       need_version=yes
15901       ;;
15902   esac
15903   shlibpath_var=LD_LIBRARY_PATH
15904   case $host_os in
15905   freebsd2*)
15906     shlibpath_overrides_runpath=yes
15907     ;;
15908   freebsd3.[01]* | freebsdelf3.[01]*)
15909     shlibpath_overrides_runpath=yes
15910     hardcode_into_libs=yes
15911     ;;
15912   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15913   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15914     shlibpath_overrides_runpath=no
15915     hardcode_into_libs=yes
15916     ;;
15917   *) # from 4.6 on, and DragonFly
15918     shlibpath_overrides_runpath=yes
15919     hardcode_into_libs=yes
15920     ;;
15921   esac
15922   ;;
15923
15924 gnu*)
15925   version_type=linux
15926   need_lib_prefix=no
15927   need_version=no
15928   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15929   soname_spec='${libname}${release}${shared_ext}$major'
15930   shlibpath_var=LD_LIBRARY_PATH
15931   hardcode_into_libs=yes
15932   ;;
15933
15934 hpux9* | hpux10* | hpux11*)
15935   # Give a soname corresponding to the major version so that dld.sl refuses to
15936   # link against other versions.
15937   version_type=sunos
15938   need_lib_prefix=no
15939   need_version=no
15940   case $host_cpu in
15941   ia64*)
15942     shrext_cmds='.so'
15943     hardcode_into_libs=yes
15944     dynamic_linker="$host_os dld.so"
15945     shlibpath_var=LD_LIBRARY_PATH
15946     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15947     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15948     soname_spec='${libname}${release}${shared_ext}$major'
15949     if test "X$HPUX_IA64_MODE" = X32; then
15950       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15951     else
15952       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15953     fi
15954     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15955     ;;
15956    hppa*64*)
15957      shrext_cmds='.sl'
15958      hardcode_into_libs=yes
15959      dynamic_linker="$host_os dld.sl"
15960      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15961      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15962      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15963      soname_spec='${libname}${release}${shared_ext}$major'
15964      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15965      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15966      ;;
15967    *)
15968     shrext_cmds='.sl'
15969     dynamic_linker="$host_os dld.sl"
15970     shlibpath_var=SHLIB_PATH
15971     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15972     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15973     soname_spec='${libname}${release}${shared_ext}$major'
15974     ;;
15975   esac
15976   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15977   postinstall_cmds='chmod 555 $lib'
15978   ;;
15979
15980 interix[3-9]*)
15981   version_type=linux
15982   need_lib_prefix=no
15983   need_version=no
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   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15987   shlibpath_var=LD_LIBRARY_PATH
15988   shlibpath_overrides_runpath=no
15989   hardcode_into_libs=yes
15990   ;;
15991
15992 irix5* | irix6* | nonstopux*)
15993   case $host_os in
15994     nonstopux*) version_type=nonstopux ;;
15995     *)
15996         if test "$lt_cv_prog_gnu_ld" = yes; then
15997                 version_type=linux
15998         else
15999                 version_type=irix
16000         fi ;;
16001   esac
16002   need_lib_prefix=no
16003   need_version=no
16004   soname_spec='${libname}${release}${shared_ext}$major'
16005   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16006   case $host_os in
16007   irix5* | nonstopux*)
16008     libsuff= shlibsuff=
16009     ;;
16010   *)
16011     case $LD in # libtool.m4 will add one of these switches to LD
16012     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16013       libsuff= shlibsuff= libmagic=32-bit;;
16014     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16015       libsuff=32 shlibsuff=N32 libmagic=N32;;
16016     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16017       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16018     *) libsuff= shlibsuff= libmagic=never-match;;
16019     esac
16020     ;;
16021   esac
16022   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16023   shlibpath_overrides_runpath=no
16024   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16025   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16026   hardcode_into_libs=yes
16027   ;;
16028
16029 # No shared lib support for Linux oldld, aout, or coff.
16030 linux*oldld* | linux*aout* | linux*coff*)
16031   dynamic_linker=no
16032   ;;
16033
16034 # This must be Linux ELF.
16035 linux* | k*bsd*-gnu)
16036   version_type=linux
16037   need_lib_prefix=no
16038   need_version=no
16039   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16040   soname_spec='${libname}${release}${shared_ext}$major'
16041   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16042   shlibpath_var=LD_LIBRARY_PATH
16043   shlibpath_overrides_runpath=no
16044   # This implies no fast_install, which is unacceptable.
16045   # Some rework will be needed to allow for fast_install
16046   # before this can be enabled.
16047   hardcode_into_libs=yes
16048
16049   # Append ld.so.conf contents to the search path
16050   if test -f /etc/ld.so.conf; then
16051     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' ' '`
16052     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16053   fi
16054
16055   # We used to test for /lib/ld.so.1 and disable shared libraries on
16056   # powerpc, because MkLinux only supported shared libraries with the
16057   # GNU dynamic linker.  Since this was broken with cross compilers,
16058   # most powerpc-linux boxes support dynamic linking these days and
16059   # people can always --disable-shared, the test was removed, and we
16060   # assume the GNU/Linux dynamic linker is in use.
16061   dynamic_linker='GNU/Linux ld.so'
16062   ;;
16063
16064 netbsdelf*-gnu)
16065   version_type=linux
16066   need_lib_prefix=no
16067   need_version=no
16068   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16069   soname_spec='${libname}${release}${shared_ext}$major'
16070   shlibpath_var=LD_LIBRARY_PATH
16071   shlibpath_overrides_runpath=no
16072   hardcode_into_libs=yes
16073   dynamic_linker='NetBSD ld.elf_so'
16074   ;;
16075
16076 netbsd*)
16077   version_type=sunos
16078   need_lib_prefix=no
16079   need_version=no
16080   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16081     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16082     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16083     dynamic_linker='NetBSD (a.out) ld.so'
16084   else
16085     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16086     soname_spec='${libname}${release}${shared_ext}$major'
16087     dynamic_linker='NetBSD ld.elf_so'
16088   fi
16089   shlibpath_var=LD_LIBRARY_PATH
16090   shlibpath_overrides_runpath=yes
16091   hardcode_into_libs=yes
16092   ;;
16093
16094 newsos6)
16095   version_type=linux
16096   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16097   shlibpath_var=LD_LIBRARY_PATH
16098   shlibpath_overrides_runpath=yes
16099   ;;
16100
16101 nto-qnx*)
16102   version_type=linux
16103   need_lib_prefix=no
16104   need_version=no
16105   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16106   soname_spec='${libname}${release}${shared_ext}$major'
16107   shlibpath_var=LD_LIBRARY_PATH
16108   shlibpath_overrides_runpath=yes
16109   ;;
16110
16111 openbsd*)
16112   version_type=sunos
16113   sys_lib_dlsearch_path_spec="/usr/lib"
16114   need_lib_prefix=no
16115   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16116   case $host_os in
16117     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16118     *)                         need_version=no  ;;
16119   esac
16120   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16121   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16122   shlibpath_var=LD_LIBRARY_PATH
16123   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16124     case $host_os in
16125       openbsd2.[89] | openbsd2.[89].*)
16126         shlibpath_overrides_runpath=no
16127         ;;
16128       *)
16129         shlibpath_overrides_runpath=yes
16130         ;;
16131       esac
16132   else
16133     shlibpath_overrides_runpath=yes
16134   fi
16135   ;;
16136
16137 os2*)
16138   libname_spec='$name'
16139   shrext_cmds=".dll"
16140   need_lib_prefix=no
16141   library_names_spec='$libname${shared_ext} $libname.a'
16142   dynamic_linker='OS/2 ld.exe'
16143   shlibpath_var=LIBPATH
16144   ;;
16145
16146 osf3* | osf4* | osf5*)
16147   version_type=osf
16148   need_lib_prefix=no
16149   need_version=no
16150   soname_spec='${libname}${release}${shared_ext}$major'
16151   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16152   shlibpath_var=LD_LIBRARY_PATH
16153   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16154   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16155   ;;
16156
16157 rdos*)
16158   dynamic_linker=no
16159   ;;
16160
16161 solaris*)
16162   version_type=linux
16163   need_lib_prefix=no
16164   need_version=no
16165   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16166   soname_spec='${libname}${release}${shared_ext}$major'
16167   shlibpath_var=LD_LIBRARY_PATH
16168   shlibpath_overrides_runpath=yes
16169   hardcode_into_libs=yes
16170   # ldd complains unless libraries are executable
16171   postinstall_cmds='chmod +x $lib'
16172   ;;
16173
16174 sunos4*)
16175   version_type=sunos
16176   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16177   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16178   shlibpath_var=LD_LIBRARY_PATH
16179   shlibpath_overrides_runpath=yes
16180   if test "$with_gnu_ld" = yes; then
16181     need_lib_prefix=no
16182   fi
16183   need_version=yes
16184   ;;
16185
16186 sysv4 | sysv4.3*)
16187   version_type=linux
16188   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16189   soname_spec='${libname}${release}${shared_ext}$major'
16190   shlibpath_var=LD_LIBRARY_PATH
16191   case $host_vendor in
16192     sni)
16193       shlibpath_overrides_runpath=no
16194       need_lib_prefix=no
16195       export_dynamic_flag_spec='${wl}-Blargedynsym'
16196       runpath_var=LD_RUN_PATH
16197       ;;
16198     siemens)
16199       need_lib_prefix=no
16200       ;;
16201     motorola)
16202       need_lib_prefix=no
16203       need_version=no
16204       shlibpath_overrides_runpath=no
16205       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16206       ;;
16207   esac
16208   ;;
16209
16210 sysv4*MP*)
16211   if test -d /usr/nec ;then
16212     version_type=linux
16213     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16214     soname_spec='$libname${shared_ext}.$major'
16215     shlibpath_var=LD_LIBRARY_PATH
16216   fi
16217   ;;
16218
16219 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16220   version_type=freebsd-elf
16221   need_lib_prefix=no
16222   need_version=no
16223   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16224   soname_spec='${libname}${release}${shared_ext}$major'
16225   shlibpath_var=LD_LIBRARY_PATH
16226   hardcode_into_libs=yes
16227   if test "$with_gnu_ld" = yes; then
16228     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16229     shlibpath_overrides_runpath=no
16230   else
16231     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16232     shlibpath_overrides_runpath=yes
16233     case $host_os in
16234       sco3.2v5*)
16235         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16236         ;;
16237     esac
16238   fi
16239   sys_lib_dlsearch_path_spec='/usr/lib'
16240   ;;
16241
16242 uts4*)
16243   version_type=linux
16244   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16245   soname_spec='${libname}${release}${shared_ext}$major'
16246   shlibpath_var=LD_LIBRARY_PATH
16247   ;;
16248
16249 *)
16250   dynamic_linker=no
16251   ;;
16252 esac
16253 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16254 echo "${ECHO_T}$dynamic_linker" >&6; }
16255 test "$dynamic_linker" = no && can_build_shared=no
16256
16257 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16258   echo $ECHO_N "(cached) $ECHO_C" >&6
16259 else
16260   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16261 fi
16262
16263 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16264 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16265   echo $ECHO_N "(cached) $ECHO_C" >&6
16266 else
16267   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16268 fi
16269
16270 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16271
16272 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16273 if test "$GCC" = yes; then
16274   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16275 fi
16276
16277 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16278 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16279 hardcode_action_F77=
16280 if test -n "$hardcode_libdir_flag_spec_F77" || \
16281    test -n "$runpath_var_F77" || \
16282    test "X$hardcode_automatic_F77" = "Xyes" ; then
16283
16284   # We can hardcode non-existant directories.
16285   if test "$hardcode_direct_F77" != no &&
16286      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16287      # have to relink, otherwise we might link with an installed library
16288      # when we should be linking with a yet-to-be-installed one
16289      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16290      test "$hardcode_minus_L_F77" != no; then
16291     # Linking always hardcodes the temporary library directory.
16292     hardcode_action_F77=relink
16293   else
16294     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16295     hardcode_action_F77=immediate
16296   fi
16297 else
16298   # We cannot hardcode anything, or else we can only hardcode existing
16299   # directories.
16300   hardcode_action_F77=unsupported
16301 fi
16302 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16303 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16304
16305 if test "$hardcode_action_F77" = relink; then
16306   # Fast installation is not supported
16307   enable_fast_install=no
16308 elif test "$shlibpath_overrides_runpath" = yes ||
16309      test "$enable_shared" = no; then
16310   # Fast installation is not necessary
16311   enable_fast_install=needless
16312 fi
16313
16314
16315 # The else clause should only fire when bootstrapping the
16316 # libtool distribution, otherwise you forgot to ship ltmain.sh
16317 # with your package, and you will get complaints that there are
16318 # no rules to generate ltmain.sh.
16319 if test -f "$ltmain"; then
16320   # See if we are running on zsh, and set the options which allow our commands through
16321   # without removal of \ escapes.
16322   if test -n "${ZSH_VERSION+set}" ; then
16323     setopt NO_GLOB_SUBST
16324   fi
16325   # Now quote all the things that may contain metacharacters while being
16326   # careful not to overquote the AC_SUBSTed values.  We take copies of the
16327   # variables and quote the copies for generation of the libtool script.
16328   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16329     SED SHELL STRIP \
16330     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16331     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16332     deplibs_check_method reload_flag reload_cmds need_locks \
16333     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16334     lt_cv_sys_global_symbol_to_c_name_address \
16335     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16336     old_postinstall_cmds old_postuninstall_cmds \
16337     compiler_F77 \
16338     CC_F77 \
16339     LD_F77 \
16340     lt_prog_compiler_wl_F77 \
16341     lt_prog_compiler_pic_F77 \
16342     lt_prog_compiler_static_F77 \
16343     lt_prog_compiler_no_builtin_flag_F77 \
16344     export_dynamic_flag_spec_F77 \
16345     thread_safe_flag_spec_F77 \
16346     whole_archive_flag_spec_F77 \
16347     enable_shared_with_static_runtimes_F77 \
16348     old_archive_cmds_F77 \
16349     old_archive_from_new_cmds_F77 \
16350     predep_objects_F77 \
16351     postdep_objects_F77 \
16352     predeps_F77 \
16353     postdeps_F77 \
16354     compiler_lib_search_path_F77 \
16355     compiler_lib_search_dirs_F77 \
16356     archive_cmds_F77 \
16357     archive_expsym_cmds_F77 \
16358     postinstall_cmds_F77 \
16359     postuninstall_cmds_F77 \
16360     old_archive_from_expsyms_cmds_F77 \
16361     allow_undefined_flag_F77 \
16362     no_undefined_flag_F77 \
16363     export_symbols_cmds_F77 \
16364     hardcode_libdir_flag_spec_F77 \
16365     hardcode_libdir_flag_spec_ld_F77 \
16366     hardcode_libdir_separator_F77 \
16367     hardcode_automatic_F77 \
16368     module_cmds_F77 \
16369     module_expsym_cmds_F77 \
16370     lt_cv_prog_compiler_c_o_F77 \
16371     fix_srcfile_path_F77 \
16372     exclude_expsyms_F77 \
16373     include_expsyms_F77; do
16374
16375     case $var in
16376     old_archive_cmds_F77 | \
16377     old_archive_from_new_cmds_F77 | \
16378     archive_cmds_F77 | \
16379     archive_expsym_cmds_F77 | \
16380     module_cmds_F77 | \
16381     module_expsym_cmds_F77 | \
16382     old_archive_from_expsyms_cmds_F77 | \
16383     export_symbols_cmds_F77 | \
16384     extract_expsyms_cmds | reload_cmds | finish_cmds | \
16385     postinstall_cmds | postuninstall_cmds | \
16386     old_postinstall_cmds | old_postuninstall_cmds | \
16387     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16388       # Double-quote double-evaled strings.
16389       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16390       ;;
16391     *)
16392       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16393       ;;
16394     esac
16395   done
16396
16397   case $lt_echo in
16398   *'\$0 --fallback-echo"')
16399     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16400     ;;
16401   esac
16402
16403 cfgfile="$ofile"
16404
16405   cat <<__EOF__ >> "$cfgfile"
16406 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16407
16408 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16409
16410 # Shell to use when invoking shell scripts.
16411 SHELL=$lt_SHELL
16412
16413 # Whether or not to build shared libraries.
16414 build_libtool_libs=$enable_shared
16415
16416 # Whether or not to build static libraries.
16417 build_old_libs=$enable_static
16418
16419 # Whether or not to add -lc for building shared libraries.
16420 build_libtool_need_lc=$archive_cmds_need_lc_F77
16421
16422 # Whether or not to disallow shared libs when runtime libs are static
16423 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16424
16425 # Whether or not to optimize for fast installation.
16426 fast_install=$enable_fast_install
16427
16428 # The host system.
16429 host_alias=$host_alias
16430 host=$host
16431 host_os=$host_os
16432
16433 # The build system.
16434 build_alias=$build_alias
16435 build=$build
16436 build_os=$build_os
16437
16438 # An echo program that does not interpret backslashes.
16439 echo=$lt_echo
16440
16441 # The archiver.
16442 AR=$lt_AR
16443 AR_FLAGS=$lt_AR_FLAGS
16444
16445 # A C compiler.
16446 LTCC=$lt_LTCC
16447
16448 # LTCC compiler flags.
16449 LTCFLAGS=$lt_LTCFLAGS
16450
16451 # A language-specific compiler.
16452 CC=$lt_compiler_F77
16453
16454 # Is the compiler the GNU C compiler?
16455 with_gcc=$GCC_F77
16456
16457 # An ERE matcher.
16458 EGREP=$lt_EGREP
16459
16460 # The linker used to build libraries.
16461 LD=$lt_LD_F77
16462
16463 # Whether we need hard or soft links.
16464 LN_S=$lt_LN_S
16465
16466 # A BSD-compatible nm program.
16467 NM=$lt_NM
16468
16469 # A symbol stripping program
16470 STRIP=$lt_STRIP
16471
16472 # Used to examine libraries when file_magic_cmd begins "file"
16473 MAGIC_CMD=$MAGIC_CMD
16474
16475 # Used on cygwin: DLL creation program.
16476 DLLTOOL="$DLLTOOL"
16477
16478 # Used on cygwin: object dumper.
16479 OBJDUMP="$OBJDUMP"
16480
16481 # Used on cygwin: assembler.
16482 AS="$AS"
16483
16484 # The name of the directory that contains temporary libtool files.
16485 objdir=$objdir
16486
16487 # How to create reloadable object files.
16488 reload_flag=$lt_reload_flag
16489 reload_cmds=$lt_reload_cmds
16490
16491 # How to pass a linker flag through the compiler.
16492 wl=$lt_lt_prog_compiler_wl_F77
16493
16494 # Object file suffix (normally "o").
16495 objext="$ac_objext"
16496
16497 # Old archive suffix (normally "a").
16498 libext="$libext"
16499
16500 # Shared library suffix (normally ".so").
16501 shrext_cmds='$shrext_cmds'
16502
16503 # Executable file suffix (normally "").
16504 exeext="$exeext"
16505
16506 # Additional compiler flags for building library objects.
16507 pic_flag=$lt_lt_prog_compiler_pic_F77
16508 pic_mode=$pic_mode
16509
16510 # What is the maximum length of a command?
16511 max_cmd_len=$lt_cv_sys_max_cmd_len
16512
16513 # Does compiler simultaneously support -c and -o options?
16514 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16515
16516 # Must we lock files when doing compilation?
16517 need_locks=$lt_need_locks
16518
16519 # Do we need the lib prefix for modules?
16520 need_lib_prefix=$need_lib_prefix
16521
16522 # Do we need a version for libraries?
16523 need_version=$need_version
16524
16525 # Whether dlopen is supported.
16526 dlopen_support=$enable_dlopen
16527
16528 # Whether dlopen of programs is supported.
16529 dlopen_self=$enable_dlopen_self
16530
16531 # Whether dlopen of statically linked programs is supported.
16532 dlopen_self_static=$enable_dlopen_self_static
16533
16534 # Compiler flag to prevent dynamic linking.
16535 link_static_flag=$lt_lt_prog_compiler_static_F77
16536
16537 # Compiler flag to turn off builtin functions.
16538 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16539
16540 # Compiler flag to allow reflexive dlopens.
16541 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16542
16543 # Compiler flag to generate shared objects directly from archives.
16544 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16545
16546 # Compiler flag to generate thread-safe objects.
16547 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16548
16549 # Library versioning type.
16550 version_type=$version_type
16551
16552 # Format of library name prefix.
16553 libname_spec=$lt_libname_spec
16554
16555 # List of archive names.  First name is the real one, the rest are links.
16556 # The last name is the one that the linker finds with -lNAME.
16557 library_names_spec=$lt_library_names_spec
16558
16559 # The coded name of the library, if different from the real name.
16560 soname_spec=$lt_soname_spec
16561
16562 # Commands used to build and install an old-style archive.
16563 RANLIB=$lt_RANLIB
16564 old_archive_cmds=$lt_old_archive_cmds_F77
16565 old_postinstall_cmds=$lt_old_postinstall_cmds
16566 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16567
16568 # Create an old-style archive from a shared archive.
16569 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16570
16571 # Create a temporary old-style archive to link instead of a shared archive.
16572 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16573
16574 # Commands used to build and install a shared archive.
16575 archive_cmds=$lt_archive_cmds_F77
16576 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16577 postinstall_cmds=$lt_postinstall_cmds
16578 postuninstall_cmds=$lt_postuninstall_cmds
16579
16580 # Commands used to build a loadable module (assumed same as above if empty)
16581 module_cmds=$lt_module_cmds_F77
16582 module_expsym_cmds=$lt_module_expsym_cmds_F77
16583
16584 # Commands to strip libraries.
16585 old_striplib=$lt_old_striplib
16586 striplib=$lt_striplib
16587
16588 # Dependencies to place before the objects being linked to create a
16589 # shared library.
16590 predep_objects=$lt_predep_objects_F77
16591
16592 # Dependencies to place after the objects being linked to create a
16593 # shared library.
16594 postdep_objects=$lt_postdep_objects_F77
16595
16596 # Dependencies to place before the objects being linked to create a
16597 # shared library.
16598 predeps=$lt_predeps_F77
16599
16600 # Dependencies to place after the objects being linked to create a
16601 # shared library.
16602 postdeps=$lt_postdeps_F77
16603
16604 # The directories searched by this compiler when creating a shared
16605 # library
16606 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16607
16608 # The library search path used internally by the compiler when linking
16609 # a shared library.
16610 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16611
16612 # Method to check whether dependent libraries are shared objects.
16613 deplibs_check_method=$lt_deplibs_check_method
16614
16615 # Command to use when deplibs_check_method == file_magic.
16616 file_magic_cmd=$lt_file_magic_cmd
16617
16618 # Flag that allows shared libraries with undefined symbols to be built.
16619 allow_undefined_flag=$lt_allow_undefined_flag_F77
16620
16621 # Flag that forces no undefined symbols.
16622 no_undefined_flag=$lt_no_undefined_flag_F77
16623
16624 # Commands used to finish a libtool library installation in a directory.
16625 finish_cmds=$lt_finish_cmds
16626
16627 # Same as above, but a single script fragment to be evaled but not shown.
16628 finish_eval=$lt_finish_eval
16629
16630 # Take the output of nm and produce a listing of raw symbols and C names.
16631 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16632
16633 # Transform the output of nm in a proper C declaration
16634 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16635
16636 # Transform the output of nm in a C name address pair
16637 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16638
16639 # This is the shared library runtime path variable.
16640 runpath_var=$runpath_var
16641
16642 # This is the shared library path variable.
16643 shlibpath_var=$shlibpath_var
16644
16645 # Is shlibpath searched before the hard-coded library search path?
16646 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16647
16648 # How to hardcode a shared library path into an executable.
16649 hardcode_action=$hardcode_action_F77
16650
16651 # Whether we should hardcode library paths into libraries.
16652 hardcode_into_libs=$hardcode_into_libs
16653
16654 # Flag to hardcode \$libdir into a binary during linking.
16655 # This must work even if \$libdir does not exist.
16656 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16657
16658 # If ld is used when linking, flag to hardcode \$libdir into
16659 # a binary during linking. This must work even if \$libdir does
16660 # not exist.
16661 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16662
16663 # Whether we need a single -rpath flag with a separated argument.
16664 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16665
16666 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16667 # resulting binary.
16668 hardcode_direct=$hardcode_direct_F77
16669
16670 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16671 # resulting binary.
16672 hardcode_minus_L=$hardcode_minus_L_F77
16673
16674 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16675 # the resulting binary.
16676 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16677
16678 # Set to yes if building a shared library automatically hardcodes DIR into the library
16679 # and all subsequent libraries and executables linked against it.
16680 hardcode_automatic=$hardcode_automatic_F77
16681
16682 # Variables whose values should be saved in libtool wrapper scripts and
16683 # restored at relink time.
16684 variables_saved_for_relink="$variables_saved_for_relink"
16685
16686 # Whether libtool must link a program against all its dependency libraries.
16687 link_all_deplibs=$link_all_deplibs_F77
16688
16689 # Compile-time system search path for libraries
16690 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16691
16692 # Run-time system search path for libraries
16693 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16694
16695 # Fix the shell variable \$srcfile for the compiler.
16696 fix_srcfile_path=$lt_fix_srcfile_path
16697
16698 # Set to yes if exported symbols are required.
16699 always_export_symbols=$always_export_symbols_F77
16700
16701 # The commands to list exported symbols.
16702 export_symbols_cmds=$lt_export_symbols_cmds_F77
16703
16704 # The commands to extract the exported symbol list from a shared archive.
16705 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16706
16707 # Symbols that should not be listed in the preloaded symbols.
16708 exclude_expsyms=$lt_exclude_expsyms_F77
16709
16710 # Symbols that must always be exported.
16711 include_expsyms=$lt_include_expsyms_F77
16712
16713 # ### END LIBTOOL TAG CONFIG: $tagname
16714
16715 __EOF__
16716
16717
16718 else
16719   # If there is no Makefile yet, we rely on a make rule to execute
16720   # `config.status --recheck' to rerun these tests and create the
16721   # libtool script then.
16722   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16723   if test -f "$ltmain_in"; then
16724     test -f Makefile && make "$ltmain"
16725   fi
16726 fi
16727
16728
16729 ac_ext=c
16730 ac_cpp='$CPP $CPPFLAGS'
16731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16734
16735 CC="$lt_save_CC"
16736
16737         else
16738           tagname=""
16739         fi
16740         ;;
16741
16742       GCJ)
16743         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16744
16745
16746 # Source file extension for Java test sources.
16747 ac_ext=java
16748
16749 # Object file extension for compiled Java test sources.
16750 objext=o
16751 objext_GCJ=$objext
16752
16753 # Code to be used in simple compile tests
16754 lt_simple_compile_test_code="class foo {}"
16755
16756 # Code to be used in simple link tests
16757 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16758
16759 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16760
16761 # If no C compiler was specified, use CC.
16762 LTCC=${LTCC-"$CC"}
16763
16764 # If no C compiler flags were specified, use CFLAGS.
16765 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16766
16767 # Allow CC to be a program name with arguments.
16768 compiler=$CC
16769
16770
16771 # save warnings/boilerplate of simple test code
16772 ac_outfile=conftest.$ac_objext
16773 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16774 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16775 _lt_compiler_boilerplate=`cat conftest.err`
16776 $rm conftest*
16777
16778 ac_outfile=conftest.$ac_objext
16779 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16780 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16781 _lt_linker_boilerplate=`cat conftest.err`
16782 $rm -r conftest*
16783
16784
16785 # Allow CC to be a program name with arguments.
16786 lt_save_CC="$CC"
16787 CC=${GCJ-"gcj"}
16788 compiler=$CC
16789 compiler_GCJ=$CC
16790 for cc_temp in $compiler""; do
16791   case $cc_temp in
16792     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16793     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16794     \-*) ;;
16795     *) break;;
16796   esac
16797 done
16798 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16799
16800
16801 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16802 archive_cmds_need_lc_GCJ=no
16803
16804 old_archive_cmds_GCJ=$old_archive_cmds
16805
16806
16807 lt_prog_compiler_no_builtin_flag_GCJ=
16808
16809 if test "$GCC" = yes; then
16810   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16811
16812
16813 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16814 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16815 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16816   echo $ECHO_N "(cached) $ECHO_C" >&6
16817 else
16818   lt_cv_prog_compiler_rtti_exceptions=no
16819   ac_outfile=conftest.$ac_objext
16820    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16821    lt_compiler_flag="-fno-rtti -fno-exceptions"
16822    # Insert the option either (1) after the last *FLAGS variable, or
16823    # (2) before a word containing "conftest.", or (3) at the end.
16824    # Note that $ac_compile itself does not contain backslashes and begins
16825    # with a dollar sign (not a hyphen), so the echo should work correctly.
16826    # The option is referenced via a variable to avoid confusing sed.
16827    lt_compile=`echo "$ac_compile" | $SED \
16828    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16829    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16830    -e 's:$: $lt_compiler_flag:'`
16831    (eval echo "\"\$as_me:16831: $lt_compile\"" >&5)
16832    (eval "$lt_compile" 2>conftest.err)
16833    ac_status=$?
16834    cat conftest.err >&5
16835    echo "$as_me:16835: \$? = $ac_status" >&5
16836    if (exit $ac_status) && test -s "$ac_outfile"; then
16837      # The compiler can only warn and ignore the option if not recognized
16838      # So say no if there are warnings other than the usual output.
16839      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16840      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16841      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16842        lt_cv_prog_compiler_rtti_exceptions=yes
16843      fi
16844    fi
16845    $rm conftest*
16846
16847 fi
16848 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16849 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16850
16851 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16852     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16853 else
16854     :
16855 fi
16856
16857 fi
16858
16859 lt_prog_compiler_wl_GCJ=
16860 lt_prog_compiler_pic_GCJ=
16861 lt_prog_compiler_static_GCJ=
16862
16863 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16864 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16865
16866   if test "$GCC" = yes; then
16867     lt_prog_compiler_wl_GCJ='-Wl,'
16868     lt_prog_compiler_static_GCJ='-static'
16869
16870     case $host_os in
16871       aix*)
16872       # All AIX code is PIC.
16873       if test "$host_cpu" = ia64; then
16874         # AIX 5 now supports IA64 processor
16875         lt_prog_compiler_static_GCJ='-Bstatic'
16876       fi
16877       ;;
16878
16879     amigaos*)
16880       # FIXME: we need at least 68020 code to build shared libraries, but
16881       # adding the `-m68020' flag to GCC prevents building anything better,
16882       # like `-m68040'.
16883       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16884       ;;
16885
16886     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16887       # PIC is the default for these OSes.
16888       ;;
16889
16890     mingw* | cygwin* | pw32* | os2*)
16891       # This hack is so that the source file can tell whether it is being
16892       # built for inclusion in a dll (and should export symbols for example).
16893       # Although the cygwin gcc ignores -fPIC, still need this for old-style
16894       # (--disable-auto-import) libraries
16895
16896       ;;
16897
16898     darwin* | rhapsody*)
16899       # PIC is the default on this platform
16900       # Common symbols not allowed in MH_DYLIB files
16901       lt_prog_compiler_pic_GCJ='-fno-common'
16902       ;;
16903
16904     interix[3-9]*)
16905       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16906       # Instead, we relocate shared libraries at runtime.
16907       ;;
16908
16909     msdosdjgpp*)
16910       # Just because we use GCC doesn't mean we suddenly get shared libraries
16911       # on systems that don't support them.
16912       lt_prog_compiler_can_build_shared_GCJ=no
16913       enable_shared=no
16914       ;;
16915
16916     sysv4*MP*)
16917       if test -d /usr/nec; then
16918         lt_prog_compiler_pic_GCJ=-Kconform_pic
16919       fi
16920       ;;
16921
16922     hpux*)
16923       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16924       # not for PA HP-UX.
16925       case $host_cpu in
16926       hppa*64*|ia64*)
16927         # +Z the default
16928         ;;
16929       *)
16930         lt_prog_compiler_pic_GCJ='-fPIC'
16931         ;;
16932       esac
16933       ;;
16934
16935     *)
16936       lt_prog_compiler_pic_GCJ='-fPIC'
16937       ;;
16938     esac
16939   else
16940     # PORTME Check for flag to pass linker flags through the system compiler.
16941     case $host_os in
16942     aix*)
16943       lt_prog_compiler_wl_GCJ='-Wl,'
16944       if test "$host_cpu" = ia64; then
16945         # AIX 5 now supports IA64 processor
16946         lt_prog_compiler_static_GCJ='-Bstatic'
16947       else
16948         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16949       fi
16950       ;;
16951       darwin*)
16952         # PIC is the default on this platform
16953         # Common symbols not allowed in MH_DYLIB files
16954        case $cc_basename in
16955          xlc*)
16956          lt_prog_compiler_pic_GCJ='-qnocommon'
16957          lt_prog_compiler_wl_GCJ='-Wl,'
16958          ;;
16959        esac
16960        ;;
16961
16962     mingw* | cygwin* | pw32* | os2*)
16963       # This hack is so that the source file can tell whether it is being
16964       # built for inclusion in a dll (and should export symbols for example).
16965
16966       ;;
16967
16968     hpux9* | hpux10* | hpux11*)
16969       lt_prog_compiler_wl_GCJ='-Wl,'
16970       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16971       # not for PA HP-UX.
16972       case $host_cpu in
16973       hppa*64*|ia64*)
16974         # +Z the default
16975         ;;
16976       *)
16977         lt_prog_compiler_pic_GCJ='+Z'
16978         ;;
16979       esac
16980       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16981       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16982       ;;
16983
16984     irix5* | irix6* | nonstopux*)
16985       lt_prog_compiler_wl_GCJ='-Wl,'
16986       # PIC (with -KPIC) is the default.
16987       lt_prog_compiler_static_GCJ='-non_shared'
16988       ;;
16989
16990     newsos6)
16991       lt_prog_compiler_pic_GCJ='-KPIC'
16992       lt_prog_compiler_static_GCJ='-Bstatic'
16993       ;;
16994
16995     linux* | k*bsd*-gnu)
16996       case $cc_basename in
16997       icc* | ecc*)
16998         lt_prog_compiler_wl_GCJ='-Wl,'
16999         lt_prog_compiler_pic_GCJ='-KPIC'
17000         lt_prog_compiler_static_GCJ='-static'
17001         ;;
17002       pgcc* | pgf77* | pgf90* | pgf95*)
17003         # Portland Group compilers (*not* the Pentium gcc compiler,
17004         # which looks to be a dead project)
17005         lt_prog_compiler_wl_GCJ='-Wl,'
17006         lt_prog_compiler_pic_GCJ='-fpic'
17007         lt_prog_compiler_static_GCJ='-Bstatic'
17008         ;;
17009       ccc*)
17010         lt_prog_compiler_wl_GCJ='-Wl,'
17011         # All Alpha code is PIC.
17012         lt_prog_compiler_static_GCJ='-non_shared'
17013         ;;
17014       *)
17015         case `$CC -V 2>&1 | sed 5q` in
17016         *Sun\ C*)
17017           # Sun C 5.9
17018           lt_prog_compiler_pic_GCJ='-KPIC'
17019           lt_prog_compiler_static_GCJ='-Bstatic'
17020           lt_prog_compiler_wl_GCJ='-Wl,'
17021           ;;
17022         *Sun\ F*)
17023           # Sun Fortran 8.3 passes all unrecognized flags to the linker
17024           lt_prog_compiler_pic_GCJ='-KPIC'
17025           lt_prog_compiler_static_GCJ='-Bstatic'
17026           lt_prog_compiler_wl_GCJ=''
17027           ;;
17028         esac
17029         ;;
17030       esac
17031       ;;
17032
17033     osf3* | osf4* | osf5*)
17034       lt_prog_compiler_wl_GCJ='-Wl,'
17035       # All OSF/1 code is PIC.
17036       lt_prog_compiler_static_GCJ='-non_shared'
17037       ;;
17038
17039     rdos*)
17040       lt_prog_compiler_static_GCJ='-non_shared'
17041       ;;
17042
17043     solaris*)
17044       lt_prog_compiler_pic_GCJ='-KPIC'
17045       lt_prog_compiler_static_GCJ='-Bstatic'
17046       case $cc_basename in
17047       f77* | f90* | f95*)
17048         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17049       *)
17050         lt_prog_compiler_wl_GCJ='-Wl,';;
17051       esac
17052       ;;
17053
17054     sunos4*)
17055       lt_prog_compiler_wl_GCJ='-Qoption ld '
17056       lt_prog_compiler_pic_GCJ='-PIC'
17057       lt_prog_compiler_static_GCJ='-Bstatic'
17058       ;;
17059
17060     sysv4 | sysv4.2uw2* | sysv4.3*)
17061       lt_prog_compiler_wl_GCJ='-Wl,'
17062       lt_prog_compiler_pic_GCJ='-KPIC'
17063       lt_prog_compiler_static_GCJ='-Bstatic'
17064       ;;
17065
17066     sysv4*MP*)
17067       if test -d /usr/nec ;then
17068         lt_prog_compiler_pic_GCJ='-Kconform_pic'
17069         lt_prog_compiler_static_GCJ='-Bstatic'
17070       fi
17071       ;;
17072
17073     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17074       lt_prog_compiler_wl_GCJ='-Wl,'
17075       lt_prog_compiler_pic_GCJ='-KPIC'
17076       lt_prog_compiler_static_GCJ='-Bstatic'
17077       ;;
17078
17079     unicos*)
17080       lt_prog_compiler_wl_GCJ='-Wl,'
17081       lt_prog_compiler_can_build_shared_GCJ=no
17082       ;;
17083
17084     uts4*)
17085       lt_prog_compiler_pic_GCJ='-pic'
17086       lt_prog_compiler_static_GCJ='-Bstatic'
17087       ;;
17088
17089     *)
17090       lt_prog_compiler_can_build_shared_GCJ=no
17091       ;;
17092     esac
17093   fi
17094
17095 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17096 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17097
17098 #
17099 # Check to make sure the PIC flag actually works.
17100 #
17101 if test -n "$lt_prog_compiler_pic_GCJ"; then
17102
17103 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17104 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17105 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17106   echo $ECHO_N "(cached) $ECHO_C" >&6
17107 else
17108   lt_cv_prog_compiler_pic_works_GCJ=no
17109   ac_outfile=conftest.$ac_objext
17110    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17111    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17112    # Insert the option either (1) after the last *FLAGS variable, or
17113    # (2) before a word containing "conftest.", or (3) at the end.
17114    # Note that $ac_compile itself does not contain backslashes and begins
17115    # with a dollar sign (not a hyphen), so the echo should work correctly.
17116    # The option is referenced via a variable to avoid confusing sed.
17117    lt_compile=`echo "$ac_compile" | $SED \
17118    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17119    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17120    -e 's:$: $lt_compiler_flag:'`
17121    (eval echo "\"\$as_me:17121: $lt_compile\"" >&5)
17122    (eval "$lt_compile" 2>conftest.err)
17123    ac_status=$?
17124    cat conftest.err >&5
17125    echo "$as_me:17125: \$? = $ac_status" >&5
17126    if (exit $ac_status) && test -s "$ac_outfile"; then
17127      # The compiler can only warn and ignore the option if not recognized
17128      # So say no if there are warnings other than the usual output.
17129      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17130      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17131      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17132        lt_cv_prog_compiler_pic_works_GCJ=yes
17133      fi
17134    fi
17135    $rm conftest*
17136
17137 fi
17138 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17139 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17140
17141 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17142     case $lt_prog_compiler_pic_GCJ in
17143      "" | " "*) ;;
17144      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17145      esac
17146 else
17147     lt_prog_compiler_pic_GCJ=
17148      lt_prog_compiler_can_build_shared_GCJ=no
17149 fi
17150
17151 fi
17152 case $host_os in
17153   # For platforms which do not support PIC, -DPIC is meaningless:
17154   *djgpp*)
17155     lt_prog_compiler_pic_GCJ=
17156     ;;
17157   *)
17158     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17159     ;;
17160 esac
17161
17162 #
17163 # Check to make sure the static flag actually works.
17164 #
17165 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17166 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17167 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17168 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17169   echo $ECHO_N "(cached) $ECHO_C" >&6
17170 else
17171   lt_cv_prog_compiler_static_works_GCJ=no
17172    save_LDFLAGS="$LDFLAGS"
17173    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17174    echo "$lt_simple_link_test_code" > conftest.$ac_ext
17175    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17176      # The linker can only warn and ignore the option if not recognized
17177      # So say no if there are warnings
17178      if test -s conftest.err; then
17179        # Append any errors to the config.log.
17180        cat conftest.err 1>&5
17181        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17182        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17183        if diff conftest.exp conftest.er2 >/dev/null; then
17184          lt_cv_prog_compiler_static_works_GCJ=yes
17185        fi
17186      else
17187        lt_cv_prog_compiler_static_works_GCJ=yes
17188      fi
17189    fi
17190    $rm -r conftest*
17191    LDFLAGS="$save_LDFLAGS"
17192
17193 fi
17194 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17195 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17196
17197 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17198     :
17199 else
17200     lt_prog_compiler_static_GCJ=
17201 fi
17202
17203
17204 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17205 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17206 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17207   echo $ECHO_N "(cached) $ECHO_C" >&6
17208 else
17209   lt_cv_prog_compiler_c_o_GCJ=no
17210    $rm -r conftest 2>/dev/null
17211    mkdir conftest
17212    cd conftest
17213    mkdir out
17214    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17215
17216    lt_compiler_flag="-o out/conftest2.$ac_objext"
17217    # Insert the option either (1) after the last *FLAGS variable, or
17218    # (2) before a word containing "conftest.", or (3) at the end.
17219    # Note that $ac_compile itself does not contain backslashes and begins
17220    # with a dollar sign (not a hyphen), so the echo should work correctly.
17221    lt_compile=`echo "$ac_compile" | $SED \
17222    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17223    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17224    -e 's:$: $lt_compiler_flag:'`
17225    (eval echo "\"\$as_me:17225: $lt_compile\"" >&5)
17226    (eval "$lt_compile" 2>out/conftest.err)
17227    ac_status=$?
17228    cat out/conftest.err >&5
17229    echo "$as_me:17229: \$? = $ac_status" >&5
17230    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17231    then
17232      # The compiler can only warn and ignore the option if not recognized
17233      # So say no if there are warnings
17234      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17235      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17236      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17237        lt_cv_prog_compiler_c_o_GCJ=yes
17238      fi
17239    fi
17240    chmod u+w . 2>&5
17241    $rm conftest*
17242    # SGI C++ compiler will create directory out/ii_files/ for
17243    # template instantiation
17244    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17245    $rm out/* && rmdir out
17246    cd ..
17247    rmdir conftest
17248    $rm conftest*
17249
17250 fi
17251 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17252 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17253
17254
17255 hard_links="nottested"
17256 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17257   # do not overwrite the value of need_locks provided by the user
17258   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17259 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17260   hard_links=yes
17261   $rm conftest*
17262   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17263   touch conftest.a
17264   ln conftest.a conftest.b 2>&5 || hard_links=no
17265   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17266   { echo "$as_me:$LINENO: result: $hard_links" >&5
17267 echo "${ECHO_T}$hard_links" >&6; }
17268   if test "$hard_links" = no; then
17269     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17270 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17271     need_locks=warn
17272   fi
17273 else
17274   need_locks=no
17275 fi
17276
17277 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17278 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17279
17280   runpath_var=
17281   allow_undefined_flag_GCJ=
17282   enable_shared_with_static_runtimes_GCJ=no
17283   archive_cmds_GCJ=
17284   archive_expsym_cmds_GCJ=
17285   old_archive_From_new_cmds_GCJ=
17286   old_archive_from_expsyms_cmds_GCJ=
17287   export_dynamic_flag_spec_GCJ=
17288   whole_archive_flag_spec_GCJ=
17289   thread_safe_flag_spec_GCJ=
17290   hardcode_libdir_flag_spec_GCJ=
17291   hardcode_libdir_flag_spec_ld_GCJ=
17292   hardcode_libdir_separator_GCJ=
17293   hardcode_direct_GCJ=no
17294   hardcode_minus_L_GCJ=no
17295   hardcode_shlibpath_var_GCJ=unsupported
17296   link_all_deplibs_GCJ=unknown
17297   hardcode_automatic_GCJ=no
17298   module_cmds_GCJ=
17299   module_expsym_cmds_GCJ=
17300   always_export_symbols_GCJ=no
17301   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17302   # include_expsyms should be a list of space-separated symbols to be *always*
17303   # included in the symbol list
17304   include_expsyms_GCJ=
17305   # exclude_expsyms can be an extended regexp of symbols to exclude
17306   # it will be wrapped by ` (' and `)$', so one must not match beginning or
17307   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17308   # as well as any symbol that contains `d'.
17309   exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17310   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17311   # platforms (ab)use it in PIC code, but their linkers get confused if
17312   # the symbol is explicitly referenced.  Since portable code cannot
17313   # rely on this symbol name, it's probably fine to never include it in
17314   # preloaded symbol tables.
17315   # Exclude shared library initialization/finalization symbols.
17316   extract_expsyms_cmds=
17317   # Just being paranoid about ensuring that cc_basename is set.
17318   for cc_temp in $compiler""; do
17319   case $cc_temp in
17320     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17321     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17322     \-*) ;;
17323     *) break;;
17324   esac
17325 done
17326 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17327
17328   case $host_os in
17329   cygwin* | mingw* | pw32*)
17330     # FIXME: the MSVC++ port hasn't been tested in a loooong time
17331     # When not using gcc, we currently assume that we are using
17332     # Microsoft Visual C++.
17333     if test "$GCC" != yes; then
17334       with_gnu_ld=no
17335     fi
17336     ;;
17337   interix*)
17338     # we just hope/assume this is gcc and not c89 (= MSVC++)
17339     with_gnu_ld=yes
17340     ;;
17341   openbsd*)
17342     with_gnu_ld=no
17343     ;;
17344   esac
17345
17346   ld_shlibs_GCJ=yes
17347   if test "$with_gnu_ld" = yes; then
17348     # If archive_cmds runs LD, not CC, wlarc should be empty
17349     wlarc='${wl}'
17350
17351     # Set some defaults for GNU ld with shared library support. These
17352     # are reset later if shared libraries are not supported. Putting them
17353     # here allows them to be overridden if necessary.
17354     runpath_var=LD_RUN_PATH
17355     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17356     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17357     # ancient GNU ld didn't support --whole-archive et. al.
17358     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17359         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17360       else
17361         whole_archive_flag_spec_GCJ=
17362     fi
17363     supports_anon_versioning=no
17364     case `$LD -v 2>/dev/null` in
17365       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17366       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17367       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17368       *\ 2.11.*) ;; # other 2.11 versions
17369       *) supports_anon_versioning=yes ;;
17370     esac
17371
17372     # See if GNU ld supports shared libraries.
17373     case $host_os in
17374     aix[3-9]*)
17375       # On AIX/PPC, the GNU linker is very broken
17376       if test "$host_cpu" != ia64; then
17377         ld_shlibs_GCJ=no
17378         cat <<EOF 1>&2
17379
17380 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17381 *** to be unable to reliably create shared libraries on AIX.
17382 *** Therefore, libtool is disabling shared libraries support.  If you
17383 *** really care for shared libraries, you may want to modify your PATH
17384 *** so that a non-GNU linker is found, and then restart.
17385
17386 EOF
17387       fi
17388       ;;
17389
17390     amigaos*)
17391       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)'
17392       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17393       hardcode_minus_L_GCJ=yes
17394
17395       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17396       # that the semantics of dynamic libraries on AmigaOS, at least up
17397       # to version 4, is to share data among multiple programs linked
17398       # with the same dynamic library.  Since this doesn't match the
17399       # behavior of shared libraries on other platforms, we can't use
17400       # them.
17401       ld_shlibs_GCJ=no
17402       ;;
17403
17404     beos*)
17405       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17406         allow_undefined_flag_GCJ=unsupported
17407         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17408         # support --undefined.  This deserves some investigation.  FIXME
17409         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17410       else
17411         ld_shlibs_GCJ=no
17412       fi
17413       ;;
17414
17415     cygwin* | mingw* | pw32*)
17416       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17417       # as there is no search path for DLLs.
17418       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17419       allow_undefined_flag_GCJ=unsupported
17420       always_export_symbols_GCJ=no
17421       enable_shared_with_static_runtimes_GCJ=yes
17422       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17423
17424       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17425         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17426         # If the export-symbols file already is a .def file (1st line
17427         # is EXPORTS), use it as is; otherwise, prepend...
17428         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17429           cp $export_symbols $output_objdir/$soname.def;
17430         else
17431           echo EXPORTS > $output_objdir/$soname.def;
17432           cat $export_symbols >> $output_objdir/$soname.def;
17433         fi~
17434         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17435       else
17436         ld_shlibs_GCJ=no
17437       fi
17438       ;;
17439
17440     interix[3-9]*)
17441       hardcode_direct_GCJ=no
17442       hardcode_shlibpath_var_GCJ=no
17443       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17444       export_dynamic_flag_spec_GCJ='${wl}-E'
17445       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17446       # Instead, shared libraries are loaded at an image base (0x10000000 by
17447       # default) and relocated if they conflict, which is a slow very memory
17448       # consuming and fragmenting process.  To avoid this, we pick a random,
17449       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17450       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17451       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'
17452       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'
17453       ;;
17454
17455     gnu* | linux* | k*bsd*-gnu)
17456       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17457         tmp_addflag=
17458         case $cc_basename,$host_cpu in
17459         pgcc*)                          # Portland Group C compiler
17460           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'
17461           tmp_addflag=' $pic_flag'
17462           ;;
17463         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17464           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'
17465           tmp_addflag=' $pic_flag -Mnomain' ;;
17466         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17467           tmp_addflag=' -i_dynamic' ;;
17468         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17469           tmp_addflag=' -i_dynamic -nofor_main' ;;
17470         ifc* | ifort*)                  # Intel Fortran compiler
17471           tmp_addflag=' -nofor_main' ;;
17472         esac
17473         case `$CC -V 2>&1 | sed 5q` in
17474         *Sun\ C*)                       # Sun C 5.9
17475           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'
17476           tmp_sharedflag='-G' ;;
17477         *Sun\ F*)                       # Sun Fortran 8.3
17478           tmp_sharedflag='-G' ;;
17479         *)
17480           tmp_sharedflag='-shared' ;;
17481         esac
17482         archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17483
17484         if test $supports_anon_versioning = yes; then
17485           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17486   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17487   $echo "local: *; };" >> $output_objdir/$libname.ver~
17488           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17489         fi
17490         link_all_deplibs_GCJ=no
17491       else
17492         ld_shlibs_GCJ=no
17493       fi
17494       ;;
17495
17496     netbsd* | netbsdelf*-gnu)
17497       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17498         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17499         wlarc=
17500       else
17501         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17502         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17503       fi
17504       ;;
17505
17506     solaris*)
17507       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17508         ld_shlibs_GCJ=no
17509         cat <<EOF 1>&2
17510
17511 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17512 *** create shared libraries on Solaris systems.  Therefore, libtool
17513 *** is disabling shared libraries support.  We urge you to upgrade GNU
17514 *** binutils to release 2.9.1 or newer.  Another option is to modify
17515 *** your PATH or compiler configuration so that the native linker is
17516 *** used, and then restart.
17517
17518 EOF
17519       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17520         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17521         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17522       else
17523         ld_shlibs_GCJ=no
17524       fi
17525       ;;
17526
17527     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17528       case `$LD -v 2>&1` in
17529         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17530         ld_shlibs_GCJ=no
17531         cat <<_LT_EOF 1>&2
17532
17533 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17534 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17535 *** is disabling shared libraries support.  We urge you to upgrade GNU
17536 *** binutils to release 2.16.91.0.3 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 _LT_EOF
17541         ;;
17542         *)
17543           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17544             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17545             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17546             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17547           else
17548             ld_shlibs_GCJ=no
17549           fi
17550         ;;
17551       esac
17552       ;;
17553
17554     sunos4*)
17555       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17556       wlarc=
17557       hardcode_direct_GCJ=yes
17558       hardcode_shlibpath_var_GCJ=no
17559       ;;
17560
17561     *)
17562       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17563         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17564         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17565       else
17566         ld_shlibs_GCJ=no
17567       fi
17568       ;;
17569     esac
17570
17571     if test "$ld_shlibs_GCJ" = no; then
17572       runpath_var=
17573       hardcode_libdir_flag_spec_GCJ=
17574       export_dynamic_flag_spec_GCJ=
17575       whole_archive_flag_spec_GCJ=
17576     fi
17577   else
17578     # PORTME fill in a description of your system's linker (not GNU ld)
17579     case $host_os in
17580     aix3*)
17581       allow_undefined_flag_GCJ=unsupported
17582       always_export_symbols_GCJ=yes
17583       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'
17584       # Note: this linker hardcodes the directories in LIBPATH if there
17585       # are no directories specified by -L.
17586       hardcode_minus_L_GCJ=yes
17587       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17588         # Neither direct hardcoding nor static linking is supported with a
17589         # broken collect2.
17590         hardcode_direct_GCJ=unsupported
17591       fi
17592       ;;
17593
17594     aix[4-9]*)
17595       if test "$host_cpu" = ia64; then
17596         # On IA64, the linker does run time linking by default, so we don't
17597         # have to do anything special.
17598         aix_use_runtimelinking=no
17599         exp_sym_flag='-Bexport'
17600         no_entry_flag=""
17601       else
17602         # If we're using GNU nm, then we don't want the "-C" option.
17603         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17604         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17605           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'
17606         else
17607           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'
17608         fi
17609         aix_use_runtimelinking=no
17610
17611         # Test if we are trying to use run time linking or normal
17612         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17613         # need to do runtime linking.
17614         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17615           for ld_flag in $LDFLAGS; do
17616           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17617             aix_use_runtimelinking=yes
17618             break
17619           fi
17620           done
17621           ;;
17622         esac
17623
17624         exp_sym_flag='-bexport'
17625         no_entry_flag='-bnoentry'
17626       fi
17627
17628       # When large executables or shared objects are built, AIX ld can
17629       # have problems creating the table of contents.  If linking a library
17630       # or program results in "error TOC overflow" add -mminimal-toc to
17631       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17632       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17633
17634       archive_cmds_GCJ=''
17635       hardcode_direct_GCJ=yes
17636       hardcode_libdir_separator_GCJ=':'
17637       link_all_deplibs_GCJ=yes
17638
17639       if test "$GCC" = yes; then
17640         case $host_os in aix4.[012]|aix4.[012].*)
17641         # We only want to do this on AIX 4.2 and lower, the check
17642         # below for broken collect2 doesn't work under 4.3+
17643           collect2name=`${CC} -print-prog-name=collect2`
17644           if test -f "$collect2name" && \
17645            strings "$collect2name" | grep resolve_lib_name >/dev/null
17646           then
17647           # We have reworked collect2
17648           :
17649           else
17650           # We have old collect2
17651           hardcode_direct_GCJ=unsupported
17652           # It fails to find uninstalled libraries when the uninstalled
17653           # path is not listed in the libpath.  Setting hardcode_minus_L
17654           # to unsupported forces relinking
17655           hardcode_minus_L_GCJ=yes
17656           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17657           hardcode_libdir_separator_GCJ=
17658           fi
17659           ;;
17660         esac
17661         shared_flag='-shared'
17662         if test "$aix_use_runtimelinking" = yes; then
17663           shared_flag="$shared_flag "'${wl}-G'
17664         fi
17665       else
17666         # not using gcc
17667         if test "$host_cpu" = ia64; then
17668         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17669         # chokes on -Wl,-G. The following line is correct:
17670           shared_flag='-G'
17671         else
17672           if test "$aix_use_runtimelinking" = yes; then
17673             shared_flag='${wl}-G'
17674           else
17675             shared_flag='${wl}-bM:SRE'
17676           fi
17677         fi
17678       fi
17679
17680       # It seems that -bexpall does not export symbols beginning with
17681       # underscore (_), so it is better to generate a list of symbols to export.
17682       always_export_symbols_GCJ=yes
17683       if test "$aix_use_runtimelinking" = yes; then
17684         # Warning - without using the other runtime loading flags (-brtl),
17685         # -berok will link without error, but may produce a broken library.
17686         allow_undefined_flag_GCJ='-berok'
17687        # Determine the default libpath from the value encoded in an empty executable.
17688        cat >conftest.$ac_ext <<_ACEOF
17689 /* confdefs.h.  */
17690 _ACEOF
17691 cat confdefs.h >>conftest.$ac_ext
17692 cat >>conftest.$ac_ext <<_ACEOF
17693 /* end confdefs.h.  */
17694
17695 int
17696 main ()
17697 {
17698
17699   ;
17700   return 0;
17701 }
17702 _ACEOF
17703 rm -f conftest.$ac_objext conftest$ac_exeext
17704 if { (ac_try="$ac_link"
17705 case "(($ac_try" in
17706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17707   *) ac_try_echo=$ac_try;;
17708 esac
17709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17710   (eval "$ac_link") 2>conftest.er1
17711   ac_status=$?
17712   grep -v '^ *+' conftest.er1 >conftest.err
17713   rm -f conftest.er1
17714   cat conftest.err >&5
17715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17716   (exit $ac_status); } && {
17717          test -z "$ac_c_werror_flag" ||
17718          test ! -s conftest.err
17719        } && test -s conftest$ac_exeext &&
17720        $as_test_x conftest$ac_exeext; then
17721
17722 lt_aix_libpath_sed='
17723     /Import File Strings/,/^$/ {
17724         /^0/ {
17725             s/^0  *\(.*\)$/\1/
17726             p
17727         }
17728     }'
17729 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17730 # Check for a 64-bit object if we didn't find anything.
17731 if test -z "$aix_libpath"; then
17732   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17733 fi
17734 else
17735   echo "$as_me: failed program was:" >&5
17736 sed 's/^/| /' conftest.$ac_ext >&5
17737
17738
17739 fi
17740
17741 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17742       conftest$ac_exeext conftest.$ac_ext
17743 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17744
17745        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17746         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"
17747        else
17748         if test "$host_cpu" = ia64; then
17749           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17750           allow_undefined_flag_GCJ="-z nodefs"
17751           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"
17752         else
17753          # Determine the default libpath from the value encoded in an empty executable.
17754          cat >conftest.$ac_ext <<_ACEOF
17755 /* confdefs.h.  */
17756 _ACEOF
17757 cat confdefs.h >>conftest.$ac_ext
17758 cat >>conftest.$ac_ext <<_ACEOF
17759 /* end confdefs.h.  */
17760
17761 int
17762 main ()
17763 {
17764
17765   ;
17766   return 0;
17767 }
17768 _ACEOF
17769 rm -f conftest.$ac_objext conftest$ac_exeext
17770 if { (ac_try="$ac_link"
17771 case "(($ac_try" in
17772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17773   *) ac_try_echo=$ac_try;;
17774 esac
17775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17776   (eval "$ac_link") 2>conftest.er1
17777   ac_status=$?
17778   grep -v '^ *+' conftest.er1 >conftest.err
17779   rm -f conftest.er1
17780   cat conftest.err >&5
17781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17782   (exit $ac_status); } && {
17783          test -z "$ac_c_werror_flag" ||
17784          test ! -s conftest.err
17785        } && test -s conftest$ac_exeext &&
17786        $as_test_x conftest$ac_exeext; then
17787
17788 lt_aix_libpath_sed='
17789     /Import File Strings/,/^$/ {
17790         /^0/ {
17791             s/^0  *\(.*\)$/\1/
17792             p
17793         }
17794     }'
17795 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17796 # Check for a 64-bit object if we didn't find anything.
17797 if test -z "$aix_libpath"; then
17798   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17799 fi
17800 else
17801   echo "$as_me: failed program was:" >&5
17802 sed 's/^/| /' conftest.$ac_ext >&5
17803
17804
17805 fi
17806
17807 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17808       conftest$ac_exeext conftest.$ac_ext
17809 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17810
17811          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17812           # Warning - without using the other run time loading flags,
17813           # -berok will link without error, but may produce a broken library.
17814           no_undefined_flag_GCJ=' ${wl}-bernotok'
17815           allow_undefined_flag_GCJ=' ${wl}-berok'
17816           # Exported symbols can be pulled into shared objects from archives
17817           whole_archive_flag_spec_GCJ='$convenience'
17818           archive_cmds_need_lc_GCJ=yes
17819           # This is similar to how AIX traditionally builds its shared libraries.
17820           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'
17821         fi
17822       fi
17823       ;;
17824
17825     amigaos*)
17826       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)'
17827       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17828       hardcode_minus_L_GCJ=yes
17829       # see comment about different semantics on the GNU ld section
17830       ld_shlibs_GCJ=no
17831       ;;
17832
17833     bsdi[45]*)
17834       export_dynamic_flag_spec_GCJ=-rdynamic
17835       ;;
17836
17837     cygwin* | mingw* | pw32*)
17838       # When not using gcc, we currently assume that we are using
17839       # Microsoft Visual C++.
17840       # hardcode_libdir_flag_spec is actually meaningless, as there is
17841       # no search path for DLLs.
17842       hardcode_libdir_flag_spec_GCJ=' '
17843       allow_undefined_flag_GCJ=unsupported
17844       # Tell ltmain to make .lib files, not .a files.
17845       libext=lib
17846       # Tell ltmain to make .dll files, not .so files.
17847       shrext_cmds=".dll"
17848       # FIXME: Setting linknames here is a bad hack.
17849       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17850       # The linker will automatically build a .lib file if we build a DLL.
17851       old_archive_From_new_cmds_GCJ='true'
17852       # FIXME: Should let the user specify the lib program.
17853       old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17854       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17855       enable_shared_with_static_runtimes_GCJ=yes
17856       ;;
17857
17858     darwin* | rhapsody*)
17859       case $host_os in
17860         rhapsody* | darwin1.[012])
17861          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17862          ;;
17863        *) # Darwin 1.3 on
17864          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17865            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17866          else
17867            case ${MACOSX_DEPLOYMENT_TARGET} in
17868              10.[012])
17869                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17870                ;;
17871              10.*)
17872                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17873                ;;
17874            esac
17875          fi
17876          ;;
17877       esac
17878       archive_cmds_need_lc_GCJ=no
17879       hardcode_direct_GCJ=no
17880       hardcode_automatic_GCJ=yes
17881       hardcode_shlibpath_var_GCJ=unsupported
17882       whole_archive_flag_spec_GCJ=''
17883       link_all_deplibs_GCJ=yes
17884     if test "$GCC" = yes ; then
17885         output_verbose_link_cmd='echo'
17886         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}"
17887         module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17888         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}"
17889         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}"
17890     else
17891       case $cc_basename in
17892         xlc*)
17893          output_verbose_link_cmd='echo'
17894          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17895          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17896           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17897          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}'
17898           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}'
17899           ;;
17900        *)
17901          ld_shlibs_GCJ=no
17902           ;;
17903       esac
17904     fi
17905       ;;
17906
17907     dgux*)
17908       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17909       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17910       hardcode_shlibpath_var_GCJ=no
17911       ;;
17912
17913     freebsd1*)
17914       ld_shlibs_GCJ=no
17915       ;;
17916
17917     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17918     # support.  Future versions do this automatically, but an explicit c++rt0.o
17919     # does not break anything, and helps significantly (at the cost of a little
17920     # extra space).
17921     freebsd2.2*)
17922       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17923       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17924       hardcode_direct_GCJ=yes
17925       hardcode_shlibpath_var_GCJ=no
17926       ;;
17927
17928     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17929     freebsd2*)
17930       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17931       hardcode_direct_GCJ=yes
17932       hardcode_minus_L_GCJ=yes
17933       hardcode_shlibpath_var_GCJ=no
17934       ;;
17935
17936     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17937     freebsd* | dragonfly*)
17938       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17939       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17940       hardcode_direct_GCJ=yes
17941       hardcode_shlibpath_var_GCJ=no
17942       ;;
17943
17944     hpux9*)
17945       if test "$GCC" = yes; then
17946         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'
17947       else
17948         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'
17949       fi
17950       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17951       hardcode_libdir_separator_GCJ=:
17952       hardcode_direct_GCJ=yes
17953
17954       # hardcode_minus_L: Not really in the search PATH,
17955       # but as the default location of the library.
17956       hardcode_minus_L_GCJ=yes
17957       export_dynamic_flag_spec_GCJ='${wl}-E'
17958       ;;
17959
17960     hpux10*)
17961       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17962         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17963       else
17964         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17965       fi
17966       if test "$with_gnu_ld" = no; then
17967         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17968         hardcode_libdir_separator_GCJ=:
17969
17970         hardcode_direct_GCJ=yes
17971         export_dynamic_flag_spec_GCJ='${wl}-E'
17972
17973         # hardcode_minus_L: Not really in the search PATH,
17974         # but as the default location of the library.
17975         hardcode_minus_L_GCJ=yes
17976       fi
17977       ;;
17978
17979     hpux11*)
17980       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17981         case $host_cpu in
17982         hppa*64*)
17983           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17984           ;;
17985         ia64*)
17986           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17987           ;;
17988         *)
17989           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17990           ;;
17991         esac
17992       else
17993         case $host_cpu in
17994         hppa*64*)
17995           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17996           ;;
17997         ia64*)
17998           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17999           ;;
18000         *)
18001           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18002           ;;
18003         esac
18004       fi
18005       if test "$with_gnu_ld" = no; then
18006         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18007         hardcode_libdir_separator_GCJ=:
18008
18009         case $host_cpu in
18010         hppa*64*|ia64*)
18011           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18012           hardcode_direct_GCJ=no
18013           hardcode_shlibpath_var_GCJ=no
18014           ;;
18015         *)
18016           hardcode_direct_GCJ=yes
18017           export_dynamic_flag_spec_GCJ='${wl}-E'
18018
18019           # hardcode_minus_L: Not really in the search PATH,
18020           # but as the default location of the library.
18021           hardcode_minus_L_GCJ=yes
18022           ;;
18023         esac
18024       fi
18025       ;;
18026
18027     irix5* | irix6* | nonstopux*)
18028       if test "$GCC" = yes; then
18029         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'
18030       else
18031         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'
18032         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18033       fi
18034       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18035       hardcode_libdir_separator_GCJ=:
18036       link_all_deplibs_GCJ=yes
18037       ;;
18038
18039     netbsd* | netbsdelf*-gnu)
18040       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18041         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18042       else
18043         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18044       fi
18045       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18046       hardcode_direct_GCJ=yes
18047       hardcode_shlibpath_var_GCJ=no
18048       ;;
18049
18050     newsos6)
18051       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18052       hardcode_direct_GCJ=yes
18053       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18054       hardcode_libdir_separator_GCJ=:
18055       hardcode_shlibpath_var_GCJ=no
18056       ;;
18057
18058     openbsd*)
18059       if test -f /usr/libexec/ld.so; then
18060         hardcode_direct_GCJ=yes
18061         hardcode_shlibpath_var_GCJ=no
18062         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18063           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18064           archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18065           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18066           export_dynamic_flag_spec_GCJ='${wl}-E'
18067         else
18068           case $host_os in
18069            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18070              archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18071              hardcode_libdir_flag_spec_GCJ='-R$libdir'
18072              ;;
18073            *)
18074              archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18075              hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18076              ;;
18077           esac
18078         fi
18079       else
18080         ld_shlibs_GCJ=no
18081       fi
18082       ;;
18083
18084     os2*)
18085       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18086       hardcode_minus_L_GCJ=yes
18087       allow_undefined_flag_GCJ=unsupported
18088       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'
18089       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18090       ;;
18091
18092     osf3*)
18093       if test "$GCC" = yes; then
18094         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18095         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'
18096       else
18097         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18098         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'
18099       fi
18100       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18101       hardcode_libdir_separator_GCJ=:
18102       ;;
18103
18104     osf4* | osf5*)      # as osf3* with the addition of -msym flag
18105       if test "$GCC" = yes; then
18106         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18107         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'
18108         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18109       else
18110         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18111         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'
18112         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~
18113         $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'
18114
18115         # Both c and cxx compiler support -rpath directly
18116         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18117       fi
18118       hardcode_libdir_separator_GCJ=:
18119       ;;
18120
18121     solaris*)
18122       no_undefined_flag_GCJ=' -z text'
18123       if test "$GCC" = yes; then
18124         wlarc='${wl}'
18125         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18126         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18127           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18128       else
18129         wlarc=''
18130         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18131         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18132         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18133       fi
18134       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18135       hardcode_shlibpath_var_GCJ=no
18136       case $host_os in
18137       solaris2.[0-5] | solaris2.[0-5].*) ;;
18138       *)
18139         # The compiler driver will combine and reorder linker options,
18140         # but understands `-z linker_flag'.  GCC discards it without `$wl',
18141         # but is careful enough not to reorder.
18142         # Supported since Solaris 2.6 (maybe 2.5.1?)
18143         if test "$GCC" = yes; then
18144           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18145         else
18146           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18147         fi
18148         ;;
18149       esac
18150       link_all_deplibs_GCJ=yes
18151       ;;
18152
18153     sunos4*)
18154       if test "x$host_vendor" = xsequent; then
18155         # Use $CC to link under sequent, because it throws in some extra .o
18156         # files that make .init and .fini sections work.
18157         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18158       else
18159         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18160       fi
18161       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18162       hardcode_direct_GCJ=yes
18163       hardcode_minus_L_GCJ=yes
18164       hardcode_shlibpath_var_GCJ=no
18165       ;;
18166
18167     sysv4)
18168       case $host_vendor in
18169         sni)
18170           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18171           hardcode_direct_GCJ=yes # is this really true???
18172         ;;
18173         siemens)
18174           ## LD is ld it makes a PLAMLIB
18175           ## CC just makes a GrossModule.
18176           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18177           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18178           hardcode_direct_GCJ=no
18179         ;;
18180         motorola)
18181           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18182           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18183         ;;
18184       esac
18185       runpath_var='LD_RUN_PATH'
18186       hardcode_shlibpath_var_GCJ=no
18187       ;;
18188
18189     sysv4.3*)
18190       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18191       hardcode_shlibpath_var_GCJ=no
18192       export_dynamic_flag_spec_GCJ='-Bexport'
18193       ;;
18194
18195     sysv4*MP*)
18196       if test -d /usr/nec; then
18197         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18198         hardcode_shlibpath_var_GCJ=no
18199         runpath_var=LD_RUN_PATH
18200         hardcode_runpath_var=yes
18201         ld_shlibs_GCJ=yes
18202       fi
18203       ;;
18204
18205     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18206       no_undefined_flag_GCJ='${wl}-z,text'
18207       archive_cmds_need_lc_GCJ=no
18208       hardcode_shlibpath_var_GCJ=no
18209       runpath_var='LD_RUN_PATH'
18210
18211       if test "$GCC" = yes; then
18212         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18213         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18214       else
18215         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18216         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18217       fi
18218       ;;
18219
18220     sysv5* | sco3.2v5* | sco5v6*)
18221       # Note: We can NOT use -z defs as we might desire, because we do not
18222       # link with -lc, and that would cause any symbols used from libc to
18223       # always be unresolved, which means just about no library would
18224       # ever link correctly.  If we're not using GNU ld we use -z text
18225       # though, which does catch some bad symbols but isn't as heavy-handed
18226       # as -z defs.
18227       no_undefined_flag_GCJ='${wl}-z,text'
18228       allow_undefined_flag_GCJ='${wl}-z,nodefs'
18229       archive_cmds_need_lc_GCJ=no
18230       hardcode_shlibpath_var_GCJ=no
18231       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18232       hardcode_libdir_separator_GCJ=':'
18233       link_all_deplibs_GCJ=yes
18234       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18235       runpath_var='LD_RUN_PATH'
18236
18237       if test "$GCC" = yes; then
18238         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18239         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18240       else
18241         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18242         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18243       fi
18244       ;;
18245
18246     uts4*)
18247       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18248       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18249       hardcode_shlibpath_var_GCJ=no
18250       ;;
18251
18252     *)
18253       ld_shlibs_GCJ=no
18254       ;;
18255     esac
18256   fi
18257
18258 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18259 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18260 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18261
18262 #
18263 # Do we need to explicitly link libc?
18264 #
18265 case "x$archive_cmds_need_lc_GCJ" in
18266 x|xyes)
18267   # Assume -lc should be added
18268   archive_cmds_need_lc_GCJ=yes
18269
18270   if test "$enable_shared" = yes && test "$GCC" = yes; then
18271     case $archive_cmds_GCJ in
18272     *'~'*)
18273       # FIXME: we may have to deal with multi-command sequences.
18274       ;;
18275     '$CC '*)
18276       # Test whether the compiler implicitly links with -lc since on some
18277       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18278       # to ld, don't add -lc before -lgcc.
18279       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18280 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18281       $rm conftest*
18282       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18283
18284       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18285   (eval $ac_compile) 2>&5
18286   ac_status=$?
18287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18288   (exit $ac_status); } 2>conftest.err; then
18289         soname=conftest
18290         lib=conftest
18291         libobjs=conftest.$ac_objext
18292         deplibs=
18293         wl=$lt_prog_compiler_wl_GCJ
18294         pic_flag=$lt_prog_compiler_pic_GCJ
18295         compiler_flags=-v
18296         linker_flags=-v
18297         verstring=
18298         output_objdir=.
18299         libname=conftest
18300         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18301         allow_undefined_flag_GCJ=
18302         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18303   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18304   ac_status=$?
18305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18306   (exit $ac_status); }
18307         then
18308           archive_cmds_need_lc_GCJ=no
18309         else
18310           archive_cmds_need_lc_GCJ=yes
18311         fi
18312         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18313       else
18314         cat conftest.err 1>&5
18315       fi
18316       $rm conftest*
18317       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18318 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18319       ;;
18320     esac
18321   fi
18322   ;;
18323 esac
18324
18325 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18326 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18327 library_names_spec=
18328 libname_spec='lib$name'
18329 soname_spec=
18330 shrext_cmds=".so"
18331 postinstall_cmds=
18332 postuninstall_cmds=
18333 finish_cmds=
18334 finish_eval=
18335 shlibpath_var=
18336 shlibpath_overrides_runpath=unknown
18337 version_type=none
18338 dynamic_linker="$host_os ld.so"
18339 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18340
18341 need_lib_prefix=unknown
18342 hardcode_into_libs=no
18343
18344 # when you set need_version to no, make sure it does not cause -set_version
18345 # flags to be left without arguments
18346 need_version=unknown
18347
18348 case $host_os in
18349 aix3*)
18350   version_type=linux
18351   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18352   shlibpath_var=LIBPATH
18353
18354   # AIX 3 has no versioning support, so we append a major version to the name.
18355   soname_spec='${libname}${release}${shared_ext}$major'
18356   ;;
18357
18358 aix[4-9]*)
18359   version_type=linux
18360   need_lib_prefix=no
18361   need_version=no
18362   hardcode_into_libs=yes
18363   if test "$host_cpu" = ia64; then
18364     # AIX 5 supports IA64
18365     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18366     shlibpath_var=LD_LIBRARY_PATH
18367   else
18368     # With GCC up to 2.95.x, collect2 would create an import file
18369     # for dependence libraries.  The import file would start with
18370     # the line `#! .'.  This would cause the generated library to
18371     # depend on `.', always an invalid library.  This was fixed in
18372     # development snapshots of GCC prior to 3.0.
18373     case $host_os in
18374       aix4 | aix4.[01] | aix4.[01].*)
18375       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18376            echo ' yes '
18377            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18378         :
18379       else
18380         can_build_shared=no
18381       fi
18382       ;;
18383     esac
18384     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18385     # soname into executable. Probably we can add versioning support to
18386     # collect2, so additional links can be useful in future.
18387     if test "$aix_use_runtimelinking" = yes; then
18388       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18389       # instead of lib<name>.a to let people know that these are not
18390       # typical AIX shared libraries.
18391       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18392     else
18393       # We preserve .a as extension for shared libraries through AIX4.2
18394       # and later when we are not doing run time linking.
18395       library_names_spec='${libname}${release}.a $libname.a'
18396       soname_spec='${libname}${release}${shared_ext}$major'
18397     fi
18398     shlibpath_var=LIBPATH
18399   fi
18400   ;;
18401
18402 amigaos*)
18403   library_names_spec='$libname.ixlibrary $libname.a'
18404   # Create ${libname}_ixlibrary.a entries in /sys/libs.
18405   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'
18406   ;;
18407
18408 beos*)
18409   library_names_spec='${libname}${shared_ext}'
18410   dynamic_linker="$host_os ld.so"
18411   shlibpath_var=LIBRARY_PATH
18412   ;;
18413
18414 bsdi[45]*)
18415   version_type=linux
18416   need_version=no
18417   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18418   soname_spec='${libname}${release}${shared_ext}$major'
18419   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18420   shlibpath_var=LD_LIBRARY_PATH
18421   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18422   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18423   # the default ld.so.conf also contains /usr/contrib/lib and
18424   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18425   # libtool to hard-code these into programs
18426   ;;
18427
18428 cygwin* | mingw* | pw32*)
18429   version_type=windows
18430   shrext_cmds=".dll"
18431   need_version=no
18432   need_lib_prefix=no
18433
18434   case $GCC,$host_os in
18435   yes,cygwin* | yes,mingw* | yes,pw32*)
18436     library_names_spec='$libname.dll.a'
18437     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18438     postinstall_cmds='base_file=`basename \${file}`~
18439       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18440       dldir=$destdir/`dirname \$dlpath`~
18441       test -d \$dldir || mkdir -p \$dldir~
18442       $install_prog $dir/$dlname \$dldir/$dlname~
18443       chmod a+x \$dldir/$dlname'
18444     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18445       dlpath=$dir/\$dldll~
18446        $rm \$dlpath'
18447     shlibpath_overrides_runpath=yes
18448
18449     case $host_os in
18450     cygwin*)
18451       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18452       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18453       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18454       ;;
18455     mingw*)
18456       # MinGW DLLs use traditional 'lib' prefix
18457       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18458       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18459       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18460         # It is most probably a Windows format PATH printed by
18461         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18462         # path with ; separators, and with drive letters. We can handle the
18463         # drive letters (cygwin fileutils understands them), so leave them,
18464         # especially as we might pass files found there to a mingw objdump,
18465         # which wouldn't understand a cygwinified path. Ahh.
18466         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18467       else
18468         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18469       fi
18470       ;;
18471     pw32*)
18472       # pw32 DLLs use 'pw' prefix rather than 'lib'
18473       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18474       ;;
18475     esac
18476     ;;
18477
18478   *)
18479     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18480     ;;
18481   esac
18482   dynamic_linker='Win32 ld.exe'
18483   # FIXME: first we should search . and the directory the executable is in
18484   shlibpath_var=PATH
18485   ;;
18486
18487 darwin* | rhapsody*)
18488   dynamic_linker="$host_os dyld"
18489   version_type=darwin
18490   need_lib_prefix=no
18491   need_version=no
18492   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18493   soname_spec='${libname}${release}${major}$shared_ext'
18494   shlibpath_overrides_runpath=yes
18495   shlibpath_var=DYLD_LIBRARY_PATH
18496   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18497
18498   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18499   ;;
18500
18501 dgux*)
18502   version_type=linux
18503   need_lib_prefix=no
18504   need_version=no
18505   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18506   soname_spec='${libname}${release}${shared_ext}$major'
18507   shlibpath_var=LD_LIBRARY_PATH
18508   ;;
18509
18510 freebsd1*)
18511   dynamic_linker=no
18512   ;;
18513
18514 freebsd* | dragonfly*)
18515   # DragonFly does not have aout.  When/if they implement a new
18516   # versioning mechanism, adjust this.
18517   if test -x /usr/bin/objformat; then
18518     objformat=`/usr/bin/objformat`
18519   else
18520     case $host_os in
18521     freebsd[123]*) objformat=aout ;;
18522     *) objformat=elf ;;
18523     esac
18524   fi
18525   version_type=freebsd-$objformat
18526   case $version_type in
18527     freebsd-elf*)
18528       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18529       need_version=no
18530       need_lib_prefix=no
18531       ;;
18532     freebsd-*)
18533       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18534       need_version=yes
18535       ;;
18536   esac
18537   shlibpath_var=LD_LIBRARY_PATH
18538   case $host_os in
18539   freebsd2*)
18540     shlibpath_overrides_runpath=yes
18541     ;;
18542   freebsd3.[01]* | freebsdelf3.[01]*)
18543     shlibpath_overrides_runpath=yes
18544     hardcode_into_libs=yes
18545     ;;
18546   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18547   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18548     shlibpath_overrides_runpath=no
18549     hardcode_into_libs=yes
18550     ;;
18551   *) # from 4.6 on, and DragonFly
18552     shlibpath_overrides_runpath=yes
18553     hardcode_into_libs=yes
18554     ;;
18555   esac
18556   ;;
18557
18558 gnu*)
18559   version_type=linux
18560   need_lib_prefix=no
18561   need_version=no
18562   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18563   soname_spec='${libname}${release}${shared_ext}$major'
18564   shlibpath_var=LD_LIBRARY_PATH
18565   hardcode_into_libs=yes
18566   ;;
18567
18568 hpux9* | hpux10* | hpux11*)
18569   # Give a soname corresponding to the major version so that dld.sl refuses to
18570   # link against other versions.
18571   version_type=sunos
18572   need_lib_prefix=no
18573   need_version=no
18574   case $host_cpu in
18575   ia64*)
18576     shrext_cmds='.so'
18577     hardcode_into_libs=yes
18578     dynamic_linker="$host_os dld.so"
18579     shlibpath_var=LD_LIBRARY_PATH
18580     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18581     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18582     soname_spec='${libname}${release}${shared_ext}$major'
18583     if test "X$HPUX_IA64_MODE" = X32; then
18584       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18585     else
18586       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18587     fi
18588     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18589     ;;
18590    hppa*64*)
18591      shrext_cmds='.sl'
18592      hardcode_into_libs=yes
18593      dynamic_linker="$host_os dld.sl"
18594      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18595      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18596      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18597      soname_spec='${libname}${release}${shared_ext}$major'
18598      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18599      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18600      ;;
18601    *)
18602     shrext_cmds='.sl'
18603     dynamic_linker="$host_os dld.sl"
18604     shlibpath_var=SHLIB_PATH
18605     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18606     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18607     soname_spec='${libname}${release}${shared_ext}$major'
18608     ;;
18609   esac
18610   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18611   postinstall_cmds='chmod 555 $lib'
18612   ;;
18613
18614 interix[3-9]*)
18615   version_type=linux
18616   need_lib_prefix=no
18617   need_version=no
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   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18621   shlibpath_var=LD_LIBRARY_PATH
18622   shlibpath_overrides_runpath=no
18623   hardcode_into_libs=yes
18624   ;;
18625
18626 irix5* | irix6* | nonstopux*)
18627   case $host_os in
18628     nonstopux*) version_type=nonstopux ;;
18629     *)
18630         if test "$lt_cv_prog_gnu_ld" = yes; then
18631                 version_type=linux
18632         else
18633                 version_type=irix
18634         fi ;;
18635   esac
18636   need_lib_prefix=no
18637   need_version=no
18638   soname_spec='${libname}${release}${shared_ext}$major'
18639   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18640   case $host_os in
18641   irix5* | nonstopux*)
18642     libsuff= shlibsuff=
18643     ;;
18644   *)
18645     case $LD in # libtool.m4 will add one of these switches to LD
18646     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18647       libsuff= shlibsuff= libmagic=32-bit;;
18648     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18649       libsuff=32 shlibsuff=N32 libmagic=N32;;
18650     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18651       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18652     *) libsuff= shlibsuff= libmagic=never-match;;
18653     esac
18654     ;;
18655   esac
18656   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18657   shlibpath_overrides_runpath=no
18658   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18659   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18660   hardcode_into_libs=yes
18661   ;;
18662
18663 # No shared lib support for Linux oldld, aout, or coff.
18664 linux*oldld* | linux*aout* | linux*coff*)
18665   dynamic_linker=no
18666   ;;
18667
18668 # This must be Linux ELF.
18669 linux* | k*bsd*-gnu)
18670   version_type=linux
18671   need_lib_prefix=no
18672   need_version=no
18673   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18674   soname_spec='${libname}${release}${shared_ext}$major'
18675   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18676   shlibpath_var=LD_LIBRARY_PATH
18677   shlibpath_overrides_runpath=no
18678   # This implies no fast_install, which is unacceptable.
18679   # Some rework will be needed to allow for fast_install
18680   # before this can be enabled.
18681   hardcode_into_libs=yes
18682
18683   # Append ld.so.conf contents to the search path
18684   if test -f /etc/ld.so.conf; then
18685     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' ' '`
18686     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18687   fi
18688
18689   # We used to test for /lib/ld.so.1 and disable shared libraries on
18690   # powerpc, because MkLinux only supported shared libraries with the
18691   # GNU dynamic linker.  Since this was broken with cross compilers,
18692   # most powerpc-linux boxes support dynamic linking these days and
18693   # people can always --disable-shared, the test was removed, and we
18694   # assume the GNU/Linux dynamic linker is in use.
18695   dynamic_linker='GNU/Linux ld.so'
18696   ;;
18697
18698 netbsdelf*-gnu)
18699   version_type=linux
18700   need_lib_prefix=no
18701   need_version=no
18702   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18703   soname_spec='${libname}${release}${shared_ext}$major'
18704   shlibpath_var=LD_LIBRARY_PATH
18705   shlibpath_overrides_runpath=no
18706   hardcode_into_libs=yes
18707   dynamic_linker='NetBSD ld.elf_so'
18708   ;;
18709
18710 netbsd*)
18711   version_type=sunos
18712   need_lib_prefix=no
18713   need_version=no
18714   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18715     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18716     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18717     dynamic_linker='NetBSD (a.out) ld.so'
18718   else
18719     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18720     soname_spec='${libname}${release}${shared_ext}$major'
18721     dynamic_linker='NetBSD ld.elf_so'
18722   fi
18723   shlibpath_var=LD_LIBRARY_PATH
18724   shlibpath_overrides_runpath=yes
18725   hardcode_into_libs=yes
18726   ;;
18727
18728 newsos6)
18729   version_type=linux
18730   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18731   shlibpath_var=LD_LIBRARY_PATH
18732   shlibpath_overrides_runpath=yes
18733   ;;
18734
18735 nto-qnx*)
18736   version_type=linux
18737   need_lib_prefix=no
18738   need_version=no
18739   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18740   soname_spec='${libname}${release}${shared_ext}$major'
18741   shlibpath_var=LD_LIBRARY_PATH
18742   shlibpath_overrides_runpath=yes
18743   ;;
18744
18745 openbsd*)
18746   version_type=sunos
18747   sys_lib_dlsearch_path_spec="/usr/lib"
18748   need_lib_prefix=no
18749   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18750   case $host_os in
18751     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18752     *)                         need_version=no  ;;
18753   esac
18754   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18755   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18756   shlibpath_var=LD_LIBRARY_PATH
18757   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18758     case $host_os in
18759       openbsd2.[89] | openbsd2.[89].*)
18760         shlibpath_overrides_runpath=no
18761         ;;
18762       *)
18763         shlibpath_overrides_runpath=yes
18764         ;;
18765       esac
18766   else
18767     shlibpath_overrides_runpath=yes
18768   fi
18769   ;;
18770
18771 os2*)
18772   libname_spec='$name'
18773   shrext_cmds=".dll"
18774   need_lib_prefix=no
18775   library_names_spec='$libname${shared_ext} $libname.a'
18776   dynamic_linker='OS/2 ld.exe'
18777   shlibpath_var=LIBPATH
18778   ;;
18779
18780 osf3* | osf4* | osf5*)
18781   version_type=osf
18782   need_lib_prefix=no
18783   need_version=no
18784   soname_spec='${libname}${release}${shared_ext}$major'
18785   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18786   shlibpath_var=LD_LIBRARY_PATH
18787   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18788   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18789   ;;
18790
18791 rdos*)
18792   dynamic_linker=no
18793   ;;
18794
18795 solaris*)
18796   version_type=linux
18797   need_lib_prefix=no
18798   need_version=no
18799   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18800   soname_spec='${libname}${release}${shared_ext}$major'
18801   shlibpath_var=LD_LIBRARY_PATH
18802   shlibpath_overrides_runpath=yes
18803   hardcode_into_libs=yes
18804   # ldd complains unless libraries are executable
18805   postinstall_cmds='chmod +x $lib'
18806   ;;
18807
18808 sunos4*)
18809   version_type=sunos
18810   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18811   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18812   shlibpath_var=LD_LIBRARY_PATH
18813   shlibpath_overrides_runpath=yes
18814   if test "$with_gnu_ld" = yes; then
18815     need_lib_prefix=no
18816   fi
18817   need_version=yes
18818   ;;
18819
18820 sysv4 | sysv4.3*)
18821   version_type=linux
18822   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18823   soname_spec='${libname}${release}${shared_ext}$major'
18824   shlibpath_var=LD_LIBRARY_PATH
18825   case $host_vendor in
18826     sni)
18827       shlibpath_overrides_runpath=no
18828       need_lib_prefix=no
18829       export_dynamic_flag_spec='${wl}-Blargedynsym'
18830       runpath_var=LD_RUN_PATH
18831       ;;
18832     siemens)
18833       need_lib_prefix=no
18834       ;;
18835     motorola)
18836       need_lib_prefix=no
18837       need_version=no
18838       shlibpath_overrides_runpath=no
18839       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18840       ;;
18841   esac
18842   ;;
18843
18844 sysv4*MP*)
18845   if test -d /usr/nec ;then
18846     version_type=linux
18847     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18848     soname_spec='$libname${shared_ext}.$major'
18849     shlibpath_var=LD_LIBRARY_PATH
18850   fi
18851   ;;
18852
18853 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18854   version_type=freebsd-elf
18855   need_lib_prefix=no
18856   need_version=no
18857   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18858   soname_spec='${libname}${release}${shared_ext}$major'
18859   shlibpath_var=LD_LIBRARY_PATH
18860   hardcode_into_libs=yes
18861   if test "$with_gnu_ld" = yes; then
18862     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18863     shlibpath_overrides_runpath=no
18864   else
18865     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18866     shlibpath_overrides_runpath=yes
18867     case $host_os in
18868       sco3.2v5*)
18869         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18870         ;;
18871     esac
18872   fi
18873   sys_lib_dlsearch_path_spec='/usr/lib'
18874   ;;
18875
18876 uts4*)
18877   version_type=linux
18878   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18879   soname_spec='${libname}${release}${shared_ext}$major'
18880   shlibpath_var=LD_LIBRARY_PATH
18881   ;;
18882
18883 *)
18884   dynamic_linker=no
18885   ;;
18886 esac
18887 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18888 echo "${ECHO_T}$dynamic_linker" >&6; }
18889 test "$dynamic_linker" = no && can_build_shared=no
18890
18891 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18892   echo $ECHO_N "(cached) $ECHO_C" >&6
18893 else
18894   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18895 fi
18896
18897 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18898 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18899   echo $ECHO_N "(cached) $ECHO_C" >&6
18900 else
18901   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18902 fi
18903
18904 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18905
18906 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18907 if test "$GCC" = yes; then
18908   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18909 fi
18910
18911 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18912 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18913 hardcode_action_GCJ=
18914 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18915    test -n "$runpath_var_GCJ" || \
18916    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18917
18918   # We can hardcode non-existant directories.
18919   if test "$hardcode_direct_GCJ" != no &&
18920      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18921      # have to relink, otherwise we might link with an installed library
18922      # when we should be linking with a yet-to-be-installed one
18923      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18924      test "$hardcode_minus_L_GCJ" != no; then
18925     # Linking always hardcodes the temporary library directory.
18926     hardcode_action_GCJ=relink
18927   else
18928     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18929     hardcode_action_GCJ=immediate
18930   fi
18931 else
18932   # We cannot hardcode anything, or else we can only hardcode existing
18933   # directories.
18934   hardcode_action_GCJ=unsupported
18935 fi
18936 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18937 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18938
18939 if test "$hardcode_action_GCJ" = relink; then
18940   # Fast installation is not supported
18941   enable_fast_install=no
18942 elif test "$shlibpath_overrides_runpath" = yes ||
18943      test "$enable_shared" = no; then
18944   # Fast installation is not necessary
18945   enable_fast_install=needless
18946 fi
18947
18948
18949 # The else clause should only fire when bootstrapping the
18950 # libtool distribution, otherwise you forgot to ship ltmain.sh
18951 # with your package, and you will get complaints that there are
18952 # no rules to generate ltmain.sh.
18953 if test -f "$ltmain"; then
18954   # See if we are running on zsh, and set the options which allow our commands through
18955   # without removal of \ escapes.
18956   if test -n "${ZSH_VERSION+set}" ; then
18957     setopt NO_GLOB_SUBST
18958   fi
18959   # Now quote all the things that may contain metacharacters while being
18960   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18961   # variables and quote the copies for generation of the libtool script.
18962   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18963     SED SHELL STRIP \
18964     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18965     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18966     deplibs_check_method reload_flag reload_cmds need_locks \
18967     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18968     lt_cv_sys_global_symbol_to_c_name_address \
18969     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18970     old_postinstall_cmds old_postuninstall_cmds \
18971     compiler_GCJ \
18972     CC_GCJ \
18973     LD_GCJ \
18974     lt_prog_compiler_wl_GCJ \
18975     lt_prog_compiler_pic_GCJ \
18976     lt_prog_compiler_static_GCJ \
18977     lt_prog_compiler_no_builtin_flag_GCJ \
18978     export_dynamic_flag_spec_GCJ \
18979     thread_safe_flag_spec_GCJ \
18980     whole_archive_flag_spec_GCJ \
18981     enable_shared_with_static_runtimes_GCJ \
18982     old_archive_cmds_GCJ \
18983     old_archive_from_new_cmds_GCJ \
18984     predep_objects_GCJ \
18985     postdep_objects_GCJ \
18986     predeps_GCJ \
18987     postdeps_GCJ \
18988     compiler_lib_search_path_GCJ \
18989     compiler_lib_search_dirs_GCJ \
18990     archive_cmds_GCJ \
18991     archive_expsym_cmds_GCJ \
18992     postinstall_cmds_GCJ \
18993     postuninstall_cmds_GCJ \
18994     old_archive_from_expsyms_cmds_GCJ \
18995     allow_undefined_flag_GCJ \
18996     no_undefined_flag_GCJ \
18997     export_symbols_cmds_GCJ \
18998     hardcode_libdir_flag_spec_GCJ \
18999     hardcode_libdir_flag_spec_ld_GCJ \
19000     hardcode_libdir_separator_GCJ \
19001     hardcode_automatic_GCJ \
19002     module_cmds_GCJ \
19003     module_expsym_cmds_GCJ \
19004     lt_cv_prog_compiler_c_o_GCJ \
19005     fix_srcfile_path_GCJ \
19006     exclude_expsyms_GCJ \
19007     include_expsyms_GCJ; do
19008
19009     case $var in
19010     old_archive_cmds_GCJ | \
19011     old_archive_from_new_cmds_GCJ | \
19012     archive_cmds_GCJ | \
19013     archive_expsym_cmds_GCJ | \
19014     module_cmds_GCJ | \
19015     module_expsym_cmds_GCJ | \
19016     old_archive_from_expsyms_cmds_GCJ | \
19017     export_symbols_cmds_GCJ | \
19018     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19019     postinstall_cmds | postuninstall_cmds | \
19020     old_postinstall_cmds | old_postuninstall_cmds | \
19021     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19022       # Double-quote double-evaled strings.
19023       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19024       ;;
19025     *)
19026       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19027       ;;
19028     esac
19029   done
19030
19031   case $lt_echo in
19032   *'\$0 --fallback-echo"')
19033     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19034     ;;
19035   esac
19036
19037 cfgfile="$ofile"
19038
19039   cat <<__EOF__ >> "$cfgfile"
19040 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19041
19042 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19043
19044 # Shell to use when invoking shell scripts.
19045 SHELL=$lt_SHELL
19046
19047 # Whether or not to build shared libraries.
19048 build_libtool_libs=$enable_shared
19049
19050 # Whether or not to build static libraries.
19051 build_old_libs=$enable_static
19052
19053 # Whether or not to add -lc for building shared libraries.
19054 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19055
19056 # Whether or not to disallow shared libs when runtime libs are static
19057 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19058
19059 # Whether or not to optimize for fast installation.
19060 fast_install=$enable_fast_install
19061
19062 # The host system.
19063 host_alias=$host_alias
19064 host=$host
19065 host_os=$host_os
19066
19067 # The build system.
19068 build_alias=$build_alias
19069 build=$build
19070 build_os=$build_os
19071
19072 # An echo program that does not interpret backslashes.
19073 echo=$lt_echo
19074
19075 # The archiver.
19076 AR=$lt_AR
19077 AR_FLAGS=$lt_AR_FLAGS
19078
19079 # A C compiler.
19080 LTCC=$lt_LTCC
19081
19082 # LTCC compiler flags.
19083 LTCFLAGS=$lt_LTCFLAGS
19084
19085 # A language-specific compiler.
19086 CC=$lt_compiler_GCJ
19087
19088 # Is the compiler the GNU C compiler?
19089 with_gcc=$GCC_GCJ
19090
19091 # An ERE matcher.
19092 EGREP=$lt_EGREP
19093
19094 # The linker used to build libraries.
19095 LD=$lt_LD_GCJ
19096
19097 # Whether we need hard or soft links.
19098 LN_S=$lt_LN_S
19099
19100 # A BSD-compatible nm program.
19101 NM=$lt_NM
19102
19103 # A symbol stripping program
19104 STRIP=$lt_STRIP
19105
19106 # Used to examine libraries when file_magic_cmd begins "file"
19107 MAGIC_CMD=$MAGIC_CMD
19108
19109 # Used on cygwin: DLL creation program.
19110 DLLTOOL="$DLLTOOL"
19111
19112 # Used on cygwin: object dumper.
19113 OBJDUMP="$OBJDUMP"
19114
19115 # Used on cygwin: assembler.
19116 AS="$AS"
19117
19118 # The name of the directory that contains temporary libtool files.
19119 objdir=$objdir
19120
19121 # How to create reloadable object files.
19122 reload_flag=$lt_reload_flag
19123 reload_cmds=$lt_reload_cmds
19124
19125 # How to pass a linker flag through the compiler.
19126 wl=$lt_lt_prog_compiler_wl_GCJ
19127
19128 # Object file suffix (normally "o").
19129 objext="$ac_objext"
19130
19131 # Old archive suffix (normally "a").
19132 libext="$libext"
19133
19134 # Shared library suffix (normally ".so").
19135 shrext_cmds='$shrext_cmds'
19136
19137 # Executable file suffix (normally "").
19138 exeext="$exeext"
19139
19140 # Additional compiler flags for building library objects.
19141 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19142 pic_mode=$pic_mode
19143
19144 # What is the maximum length of a command?
19145 max_cmd_len=$lt_cv_sys_max_cmd_len
19146
19147 # Does compiler simultaneously support -c and -o options?
19148 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19149
19150 # Must we lock files when doing compilation?
19151 need_locks=$lt_need_locks
19152
19153 # Do we need the lib prefix for modules?
19154 need_lib_prefix=$need_lib_prefix
19155
19156 # Do we need a version for libraries?
19157 need_version=$need_version
19158
19159 # Whether dlopen is supported.
19160 dlopen_support=$enable_dlopen
19161
19162 # Whether dlopen of programs is supported.
19163 dlopen_self=$enable_dlopen_self
19164
19165 # Whether dlopen of statically linked programs is supported.
19166 dlopen_self_static=$enable_dlopen_self_static
19167
19168 # Compiler flag to prevent dynamic linking.
19169 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19170
19171 # Compiler flag to turn off builtin functions.
19172 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19173
19174 # Compiler flag to allow reflexive dlopens.
19175 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19176
19177 # Compiler flag to generate shared objects directly from archives.
19178 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19179
19180 # Compiler flag to generate thread-safe objects.
19181 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19182
19183 # Library versioning type.
19184 version_type=$version_type
19185
19186 # Format of library name prefix.
19187 libname_spec=$lt_libname_spec
19188
19189 # List of archive names.  First name is the real one, the rest are links.
19190 # The last name is the one that the linker finds with -lNAME.
19191 library_names_spec=$lt_library_names_spec
19192
19193 # The coded name of the library, if different from the real name.
19194 soname_spec=$lt_soname_spec
19195
19196 # Commands used to build and install an old-style archive.
19197 RANLIB=$lt_RANLIB
19198 old_archive_cmds=$lt_old_archive_cmds_GCJ
19199 old_postinstall_cmds=$lt_old_postinstall_cmds
19200 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19201
19202 # Create an old-style archive from a shared archive.
19203 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19204
19205 # Create a temporary old-style archive to link instead of a shared archive.
19206 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19207
19208 # Commands used to build and install a shared archive.
19209 archive_cmds=$lt_archive_cmds_GCJ
19210 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19211 postinstall_cmds=$lt_postinstall_cmds
19212 postuninstall_cmds=$lt_postuninstall_cmds
19213
19214 # Commands used to build a loadable module (assumed same as above if empty)
19215 module_cmds=$lt_module_cmds_GCJ
19216 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19217
19218 # Commands to strip libraries.
19219 old_striplib=$lt_old_striplib
19220 striplib=$lt_striplib
19221
19222 # Dependencies to place before the objects being linked to create a
19223 # shared library.
19224 predep_objects=$lt_predep_objects_GCJ
19225
19226 # Dependencies to place after the objects being linked to create a
19227 # shared library.
19228 postdep_objects=$lt_postdep_objects_GCJ
19229
19230 # Dependencies to place before the objects being linked to create a
19231 # shared library.
19232 predeps=$lt_predeps_GCJ
19233
19234 # Dependencies to place after the objects being linked to create a
19235 # shared library.
19236 postdeps=$lt_postdeps_GCJ
19237
19238 # The directories searched by this compiler when creating a shared
19239 # library
19240 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19241
19242 # The library search path used internally by the compiler when linking
19243 # a shared library.
19244 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19245
19246 # Method to check whether dependent libraries are shared objects.
19247 deplibs_check_method=$lt_deplibs_check_method
19248
19249 # Command to use when deplibs_check_method == file_magic.
19250 file_magic_cmd=$lt_file_magic_cmd
19251
19252 # Flag that allows shared libraries with undefined symbols to be built.
19253 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19254
19255 # Flag that forces no undefined symbols.
19256 no_undefined_flag=$lt_no_undefined_flag_GCJ
19257
19258 # Commands used to finish a libtool library installation in a directory.
19259 finish_cmds=$lt_finish_cmds
19260
19261 # Same as above, but a single script fragment to be evaled but not shown.
19262 finish_eval=$lt_finish_eval
19263
19264 # Take the output of nm and produce a listing of raw symbols and C names.
19265 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19266
19267 # Transform the output of nm in a proper C declaration
19268 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19269
19270 # Transform the output of nm in a C name address pair
19271 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19272
19273 # This is the shared library runtime path variable.
19274 runpath_var=$runpath_var
19275
19276 # This is the shared library path variable.
19277 shlibpath_var=$shlibpath_var
19278
19279 # Is shlibpath searched before the hard-coded library search path?
19280 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19281
19282 # How to hardcode a shared library path into an executable.
19283 hardcode_action=$hardcode_action_GCJ
19284
19285 # Whether we should hardcode library paths into libraries.
19286 hardcode_into_libs=$hardcode_into_libs
19287
19288 # Flag to hardcode \$libdir into a binary during linking.
19289 # This must work even if \$libdir does not exist.
19290 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19291
19292 # If ld is used when linking, flag to hardcode \$libdir into
19293 # a binary during linking. This must work even if \$libdir does
19294 # not exist.
19295 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19296
19297 # Whether we need a single -rpath flag with a separated argument.
19298 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19299
19300 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19301 # resulting binary.
19302 hardcode_direct=$hardcode_direct_GCJ
19303
19304 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19305 # resulting binary.
19306 hardcode_minus_L=$hardcode_minus_L_GCJ
19307
19308 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19309 # the resulting binary.
19310 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19311
19312 # Set to yes if building a shared library automatically hardcodes DIR into the library
19313 # and all subsequent libraries and executables linked against it.
19314 hardcode_automatic=$hardcode_automatic_GCJ
19315
19316 # Variables whose values should be saved in libtool wrapper scripts and
19317 # restored at relink time.
19318 variables_saved_for_relink="$variables_saved_for_relink"
19319
19320 # Whether libtool must link a program against all its dependency libraries.
19321 link_all_deplibs=$link_all_deplibs_GCJ
19322
19323 # Compile-time system search path for libraries
19324 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19325
19326 # Run-time system search path for libraries
19327 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19328
19329 # Fix the shell variable \$srcfile for the compiler.
19330 fix_srcfile_path=$lt_fix_srcfile_path
19331
19332 # Set to yes if exported symbols are required.
19333 always_export_symbols=$always_export_symbols_GCJ
19334
19335 # The commands to list exported symbols.
19336 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19337
19338 # The commands to extract the exported symbol list from a shared archive.
19339 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19340
19341 # Symbols that should not be listed in the preloaded symbols.
19342 exclude_expsyms=$lt_exclude_expsyms_GCJ
19343
19344 # Symbols that must always be exported.
19345 include_expsyms=$lt_include_expsyms_GCJ
19346
19347 # ### END LIBTOOL TAG CONFIG: $tagname
19348
19349 __EOF__
19350
19351
19352 else
19353   # If there is no Makefile yet, we rely on a make rule to execute
19354   # `config.status --recheck' to rerun these tests and create the
19355   # libtool script then.
19356   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19357   if test -f "$ltmain_in"; then
19358     test -f Makefile && make "$ltmain"
19359   fi
19360 fi
19361
19362
19363 ac_ext=c
19364 ac_cpp='$CPP $CPPFLAGS'
19365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19368
19369 CC="$lt_save_CC"
19370
19371         else
19372           tagname=""
19373         fi
19374         ;;
19375
19376       RC)
19377
19378
19379 # Source file extension for RC test sources.
19380 ac_ext=rc
19381
19382 # Object file extension for compiled RC test sources.
19383 objext=o
19384 objext_RC=$objext
19385
19386 # Code to be used in simple compile tests
19387 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19388
19389 # Code to be used in simple link tests
19390 lt_simple_link_test_code="$lt_simple_compile_test_code"
19391
19392 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19393
19394 # If no C compiler was specified, use CC.
19395 LTCC=${LTCC-"$CC"}
19396
19397 # If no C compiler flags were specified, use CFLAGS.
19398 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19399
19400 # Allow CC to be a program name with arguments.
19401 compiler=$CC
19402
19403
19404 # save warnings/boilerplate of simple test code
19405 ac_outfile=conftest.$ac_objext
19406 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19407 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19408 _lt_compiler_boilerplate=`cat conftest.err`
19409 $rm conftest*
19410
19411 ac_outfile=conftest.$ac_objext
19412 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19413 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19414 _lt_linker_boilerplate=`cat conftest.err`
19415 $rm -r conftest*
19416
19417
19418 # Allow CC to be a program name with arguments.
19419 lt_save_CC="$CC"
19420 CC=${RC-"windres"}
19421 compiler=$CC
19422 compiler_RC=$CC
19423 for cc_temp in $compiler""; do
19424   case $cc_temp in
19425     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19426     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19427     \-*) ;;
19428     *) break;;
19429   esac
19430 done
19431 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19432
19433 lt_cv_prog_compiler_c_o_RC=yes
19434
19435 # The else clause should only fire when bootstrapping the
19436 # libtool distribution, otherwise you forgot to ship ltmain.sh
19437 # with your package, and you will get complaints that there are
19438 # no rules to generate ltmain.sh.
19439 if test -f "$ltmain"; then
19440   # See if we are running on zsh, and set the options which allow our commands through
19441   # without removal of \ escapes.
19442   if test -n "${ZSH_VERSION+set}" ; then
19443     setopt NO_GLOB_SUBST
19444   fi
19445   # Now quote all the things that may contain metacharacters while being
19446   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19447   # variables and quote the copies for generation of the libtool script.
19448   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19449     SED SHELL STRIP \
19450     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19451     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19452     deplibs_check_method reload_flag reload_cmds need_locks \
19453     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19454     lt_cv_sys_global_symbol_to_c_name_address \
19455     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19456     old_postinstall_cmds old_postuninstall_cmds \
19457     compiler_RC \
19458     CC_RC \
19459     LD_RC \
19460     lt_prog_compiler_wl_RC \
19461     lt_prog_compiler_pic_RC \
19462     lt_prog_compiler_static_RC \
19463     lt_prog_compiler_no_builtin_flag_RC \
19464     export_dynamic_flag_spec_RC \
19465     thread_safe_flag_spec_RC \
19466     whole_archive_flag_spec_RC \
19467     enable_shared_with_static_runtimes_RC \
19468     old_archive_cmds_RC \
19469     old_archive_from_new_cmds_RC \
19470     predep_objects_RC \
19471     postdep_objects_RC \
19472     predeps_RC \
19473     postdeps_RC \
19474     compiler_lib_search_path_RC \
19475     compiler_lib_search_dirs_RC \
19476     archive_cmds_RC \
19477     archive_expsym_cmds_RC \
19478     postinstall_cmds_RC \
19479     postuninstall_cmds_RC \
19480     old_archive_from_expsyms_cmds_RC \
19481     allow_undefined_flag_RC \
19482     no_undefined_flag_RC \
19483     export_symbols_cmds_RC \
19484     hardcode_libdir_flag_spec_RC \
19485     hardcode_libdir_flag_spec_ld_RC \
19486     hardcode_libdir_separator_RC \
19487     hardcode_automatic_RC \
19488     module_cmds_RC \
19489     module_expsym_cmds_RC \
19490     lt_cv_prog_compiler_c_o_RC \
19491     fix_srcfile_path_RC \
19492     exclude_expsyms_RC \
19493     include_expsyms_RC; do
19494
19495     case $var in
19496     old_archive_cmds_RC | \
19497     old_archive_from_new_cmds_RC | \
19498     archive_cmds_RC | \
19499     archive_expsym_cmds_RC | \
19500     module_cmds_RC | \
19501     module_expsym_cmds_RC | \
19502     old_archive_from_expsyms_cmds_RC | \
19503     export_symbols_cmds_RC | \
19504     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19505     postinstall_cmds | postuninstall_cmds | \
19506     old_postinstall_cmds | old_postuninstall_cmds | \
19507     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19508       # Double-quote double-evaled strings.
19509       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19510       ;;
19511     *)
19512       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19513       ;;
19514     esac
19515   done
19516
19517   case $lt_echo in
19518   *'\$0 --fallback-echo"')
19519     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19520     ;;
19521   esac
19522
19523 cfgfile="$ofile"
19524
19525   cat <<__EOF__ >> "$cfgfile"
19526 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19527
19528 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19529
19530 # Shell to use when invoking shell scripts.
19531 SHELL=$lt_SHELL
19532
19533 # Whether or not to build shared libraries.
19534 build_libtool_libs=$enable_shared
19535
19536 # Whether or not to build static libraries.
19537 build_old_libs=$enable_static
19538
19539 # Whether or not to add -lc for building shared libraries.
19540 build_libtool_need_lc=$archive_cmds_need_lc_RC
19541
19542 # Whether or not to disallow shared libs when runtime libs are static
19543 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19544
19545 # Whether or not to optimize for fast installation.
19546 fast_install=$enable_fast_install
19547
19548 # The host system.
19549 host_alias=$host_alias
19550 host=$host
19551 host_os=$host_os
19552
19553 # The build system.
19554 build_alias=$build_alias
19555 build=$build
19556 build_os=$build_os
19557
19558 # An echo program that does not interpret backslashes.
19559 echo=$lt_echo
19560
19561 # The archiver.
19562 AR=$lt_AR
19563 AR_FLAGS=$lt_AR_FLAGS
19564
19565 # A C compiler.
19566 LTCC=$lt_LTCC
19567
19568 # LTCC compiler flags.
19569 LTCFLAGS=$lt_LTCFLAGS
19570
19571 # A language-specific compiler.
19572 CC=$lt_compiler_RC
19573
19574 # Is the compiler the GNU C compiler?
19575 with_gcc=$GCC_RC
19576
19577 # An ERE matcher.
19578 EGREP=$lt_EGREP
19579
19580 # The linker used to build libraries.
19581 LD=$lt_LD_RC
19582
19583 # Whether we need hard or soft links.
19584 LN_S=$lt_LN_S
19585
19586 # A BSD-compatible nm program.
19587 NM=$lt_NM
19588
19589 # A symbol stripping program
19590 STRIP=$lt_STRIP
19591
19592 # Used to examine libraries when file_magic_cmd begins "file"
19593 MAGIC_CMD=$MAGIC_CMD
19594
19595 # Used on cygwin: DLL creation program.
19596 DLLTOOL="$DLLTOOL"
19597
19598 # Used on cygwin: object dumper.
19599 OBJDUMP="$OBJDUMP"
19600
19601 # Used on cygwin: assembler.
19602 AS="$AS"
19603
19604 # The name of the directory that contains temporary libtool files.
19605 objdir=$objdir
19606
19607 # How to create reloadable object files.
19608 reload_flag=$lt_reload_flag
19609 reload_cmds=$lt_reload_cmds
19610
19611 # How to pass a linker flag through the compiler.
19612 wl=$lt_lt_prog_compiler_wl_RC
19613
19614 # Object file suffix (normally "o").
19615 objext="$ac_objext"
19616
19617 # Old archive suffix (normally "a").
19618 libext="$libext"
19619
19620 # Shared library suffix (normally ".so").
19621 shrext_cmds='$shrext_cmds'
19622
19623 # Executable file suffix (normally "").
19624 exeext="$exeext"
19625
19626 # Additional compiler flags for building library objects.
19627 pic_flag=$lt_lt_prog_compiler_pic_RC
19628 pic_mode=$pic_mode
19629
19630 # What is the maximum length of a command?
19631 max_cmd_len=$lt_cv_sys_max_cmd_len
19632
19633 # Does compiler simultaneously support -c and -o options?
19634 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19635
19636 # Must we lock files when doing compilation?
19637 need_locks=$lt_need_locks
19638
19639 # Do we need the lib prefix for modules?
19640 need_lib_prefix=$need_lib_prefix
19641
19642 # Do we need a version for libraries?
19643 need_version=$need_version
19644
19645 # Whether dlopen is supported.
19646 dlopen_support=$enable_dlopen
19647
19648 # Whether dlopen of programs is supported.
19649 dlopen_self=$enable_dlopen_self
19650
19651 # Whether dlopen of statically linked programs is supported.
19652 dlopen_self_static=$enable_dlopen_self_static
19653
19654 # Compiler flag to prevent dynamic linking.
19655 link_static_flag=$lt_lt_prog_compiler_static_RC
19656
19657 # Compiler flag to turn off builtin functions.
19658 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19659
19660 # Compiler flag to allow reflexive dlopens.
19661 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19662
19663 # Compiler flag to generate shared objects directly from archives.
19664 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19665
19666 # Compiler flag to generate thread-safe objects.
19667 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19668
19669 # Library versioning type.
19670 version_type=$version_type
19671
19672 # Format of library name prefix.
19673 libname_spec=$lt_libname_spec
19674
19675 # List of archive names.  First name is the real one, the rest are links.
19676 # The last name is the one that the linker finds with -lNAME.
19677 library_names_spec=$lt_library_names_spec
19678
19679 # The coded name of the library, if different from the real name.
19680 soname_spec=$lt_soname_spec
19681
19682 # Commands used to build and install an old-style archive.
19683 RANLIB=$lt_RANLIB
19684 old_archive_cmds=$lt_old_archive_cmds_RC
19685 old_postinstall_cmds=$lt_old_postinstall_cmds
19686 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19687
19688 # Create an old-style archive from a shared archive.
19689 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19690
19691 # Create a temporary old-style archive to link instead of a shared archive.
19692 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19693
19694 # Commands used to build and install a shared archive.
19695 archive_cmds=$lt_archive_cmds_RC
19696 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19697 postinstall_cmds=$lt_postinstall_cmds
19698 postuninstall_cmds=$lt_postuninstall_cmds
19699
19700 # Commands used to build a loadable module (assumed same as above if empty)
19701 module_cmds=$lt_module_cmds_RC
19702 module_expsym_cmds=$lt_module_expsym_cmds_RC
19703
19704 # Commands to strip libraries.
19705 old_striplib=$lt_old_striplib
19706 striplib=$lt_striplib
19707
19708 # Dependencies to place before the objects being linked to create a
19709 # shared library.
19710 predep_objects=$lt_predep_objects_RC
19711
19712 # Dependencies to place after the objects being linked to create a
19713 # shared library.
19714 postdep_objects=$lt_postdep_objects_RC
19715
19716 # Dependencies to place before the objects being linked to create a
19717 # shared library.
19718 predeps=$lt_predeps_RC
19719
19720 # Dependencies to place after the objects being linked to create a
19721 # shared library.
19722 postdeps=$lt_postdeps_RC
19723
19724 # The directories searched by this compiler when creating a shared
19725 # library
19726 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19727
19728 # The library search path used internally by the compiler when linking
19729 # a shared library.
19730 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19731
19732 # Method to check whether dependent libraries are shared objects.
19733 deplibs_check_method=$lt_deplibs_check_method
19734
19735 # Command to use when deplibs_check_method == file_magic.
19736 file_magic_cmd=$lt_file_magic_cmd
19737
19738 # Flag that allows shared libraries with undefined symbols to be built.
19739 allow_undefined_flag=$lt_allow_undefined_flag_RC
19740
19741 # Flag that forces no undefined symbols.
19742 no_undefined_flag=$lt_no_undefined_flag_RC
19743
19744 # Commands used to finish a libtool library installation in a directory.
19745 finish_cmds=$lt_finish_cmds
19746
19747 # Same as above, but a single script fragment to be evaled but not shown.
19748 finish_eval=$lt_finish_eval
19749
19750 # Take the output of nm and produce a listing of raw symbols and C names.
19751 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19752
19753 # Transform the output of nm in a proper C declaration
19754 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19755
19756 # Transform the output of nm in a C name address pair
19757 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19758
19759 # This is the shared library runtime path variable.
19760 runpath_var=$runpath_var
19761
19762 # This is the shared library path variable.
19763 shlibpath_var=$shlibpath_var
19764
19765 # Is shlibpath searched before the hard-coded library search path?
19766 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19767
19768 # How to hardcode a shared library path into an executable.
19769 hardcode_action=$hardcode_action_RC
19770
19771 # Whether we should hardcode library paths into libraries.
19772 hardcode_into_libs=$hardcode_into_libs
19773
19774 # Flag to hardcode \$libdir into a binary during linking.
19775 # This must work even if \$libdir does not exist.
19776 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19777
19778 # If ld is used when linking, flag to hardcode \$libdir into
19779 # a binary during linking. This must work even if \$libdir does
19780 # not exist.
19781 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19782
19783 # Whether we need a single -rpath flag with a separated argument.
19784 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19785
19786 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19787 # resulting binary.
19788 hardcode_direct=$hardcode_direct_RC
19789
19790 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19791 # resulting binary.
19792 hardcode_minus_L=$hardcode_minus_L_RC
19793
19794 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19795 # the resulting binary.
19796 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19797
19798 # Set to yes if building a shared library automatically hardcodes DIR into the library
19799 # and all subsequent libraries and executables linked against it.
19800 hardcode_automatic=$hardcode_automatic_RC
19801
19802 # Variables whose values should be saved in libtool wrapper scripts and
19803 # restored at relink time.
19804 variables_saved_for_relink="$variables_saved_for_relink"
19805
19806 # Whether libtool must link a program against all its dependency libraries.
19807 link_all_deplibs=$link_all_deplibs_RC
19808
19809 # Compile-time system search path for libraries
19810 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19811
19812 # Run-time system search path for libraries
19813 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19814
19815 # Fix the shell variable \$srcfile for the compiler.
19816 fix_srcfile_path=$lt_fix_srcfile_path
19817
19818 # Set to yes if exported symbols are required.
19819 always_export_symbols=$always_export_symbols_RC
19820
19821 # The commands to list exported symbols.
19822 export_symbols_cmds=$lt_export_symbols_cmds_RC
19823
19824 # The commands to extract the exported symbol list from a shared archive.
19825 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19826
19827 # Symbols that should not be listed in the preloaded symbols.
19828 exclude_expsyms=$lt_exclude_expsyms_RC
19829
19830 # Symbols that must always be exported.
19831 include_expsyms=$lt_include_expsyms_RC
19832
19833 # ### END LIBTOOL TAG CONFIG: $tagname
19834
19835 __EOF__
19836
19837
19838 else
19839   # If there is no Makefile yet, we rely on a make rule to execute
19840   # `config.status --recheck' to rerun these tests and create the
19841   # libtool script then.
19842   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19843   if test -f "$ltmain_in"; then
19844     test -f Makefile && make "$ltmain"
19845   fi
19846 fi
19847
19848
19849 ac_ext=c
19850 ac_cpp='$CPP $CPPFLAGS'
19851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19854
19855 CC="$lt_save_CC"
19856
19857         ;;
19858
19859       *)
19860         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19861 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19862    { (exit 1); exit 1; }; }
19863         ;;
19864       esac
19865
19866       # Append the new tag name to the list of available tags.
19867       if test -n "$tagname" ; then
19868       available_tags="$available_tags $tagname"
19869     fi
19870     fi
19871   done
19872   IFS="$lt_save_ifs"
19873
19874   # Now substitute the updated list of available tags.
19875   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19876     mv "${ofile}T" "$ofile"
19877     chmod +x "$ofile"
19878   else
19879     rm -f "${ofile}T"
19880     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19881 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19882    { (exit 1); exit 1; }; }
19883   fi
19884 fi
19885
19886
19887
19888 # This can be used to rebuild libtool when needed
19889 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19890
19891 # Always use our own libtool.
19892 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19893
19894 # Prevent multiple expansion
19895
19896
19897
19898
19899
19900
19901
19902
19903
19904
19905
19906
19907
19908
19909
19910
19911
19912
19913
19914
19915
19916
19917 # Check whether --with-kernel was given.
19918 if test "${with_kernel+set}" = set; then
19919   withval=$with_kernel; kbuilddir="$withval"; ksourcedir="$withval";
19920 fi
19921
19922
19923 # Check whether --with-kbuild was given.
19924 if test "${with_kbuild+set}" = set; then
19925   withval=$with_kbuild; kbuilddir="$withval"
19926 fi
19927
19928
19929 # Check whether --with-ksource was given.
19930 if test "${with_ksource+set}" = set; then
19931   withval=$with_ksource; ksourcedir="$withval"
19932 fi
19933
19934
19935 # Check whether --with-xtlibdir was given.
19936 if test "${with_xtlibdir+set}" = set; then
19937   withval=$with_xtlibdir; xtlibdir="$withval"
19938 else
19939   xtlibdir="${libexecdir}/xtables"
19940 fi
19941
19942 # Check whether --enable-ipv4 was given.
19943 if test "${enable_ipv4+set}" = set; then
19944   enableval=$enable_ipv4; enable_ipv4="$enableval"
19945 else
19946   enable_ipv4="yes"
19947 fi
19948
19949 # Check whether --enable-ipv6 was given.
19950 if test "${enable_ipv6+set}" = set; then
19951   enableval=$enable_ipv6; enable_ipv6="$enableval"
19952 else
19953   enable_ipv6="yes"
19954 fi
19955
19956 # Check whether --enable-devel was given.
19957 if test "${enable_devel+set}" = set; then
19958   enableval=$enable_devel; enable_devel="$enableval"
19959 else
19960   enable_devel="yes"
19961 fi
19962
19963 # Check whether --enable-libipq was given.
19964 if test "${enable_libipq+set}" = set; then
19965   enableval=$enable_libipq;
19966 fi
19967
19968
19969 # Check whether --with-pkgconfigdir was given.
19970 if test "${with_pkgconfigdir+set}" = set; then
19971   withval=$with_pkgconfigdir; pkgconfigdir="$withval"
19972 else
19973   pkgconfigdir='${libdir}/pkgconfig'
19974 fi
19975
19976
19977 if test "${ac_cv_header_linux_dccp_h+set}" = set; then
19978   { echo "$as_me:$LINENO: checking for linux/dccp.h" >&5
19979 echo $ECHO_N "checking for linux/dccp.h... $ECHO_C" >&6; }
19980 if test "${ac_cv_header_linux_dccp_h+set}" = set; then
19981   echo $ECHO_N "(cached) $ECHO_C" >&6
19982 fi
19983 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_dccp_h" >&5
19984 echo "${ECHO_T}$ac_cv_header_linux_dccp_h" >&6; }
19985 else
19986   # Is the header compilable?
19987 { echo "$as_me:$LINENO: checking linux/dccp.h usability" >&5
19988 echo $ECHO_N "checking linux/dccp.h usability... $ECHO_C" >&6; }
19989 cat >conftest.$ac_ext <<_ACEOF
19990 /* confdefs.h.  */
19991 _ACEOF
19992 cat confdefs.h >>conftest.$ac_ext
19993 cat >>conftest.$ac_ext <<_ACEOF
19994 /* end confdefs.h.  */
19995 $ac_includes_default
19996 #include <linux/dccp.h>
19997 _ACEOF
19998 rm -f conftest.$ac_objext
19999 if { (ac_try="$ac_compile"
20000 case "(($ac_try" in
20001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20002   *) ac_try_echo=$ac_try;;
20003 esac
20004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20005   (eval "$ac_compile") 2>conftest.er1
20006   ac_status=$?
20007   grep -v '^ *+' conftest.er1 >conftest.err
20008   rm -f conftest.er1
20009   cat conftest.err >&5
20010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20011   (exit $ac_status); } && {
20012          test -z "$ac_c_werror_flag" ||
20013          test ! -s conftest.err
20014        } && test -s conftest.$ac_objext; then
20015   ac_header_compiler=yes
20016 else
20017   echo "$as_me: failed program was:" >&5
20018 sed 's/^/| /' conftest.$ac_ext >&5
20019
20020         ac_header_compiler=no
20021 fi
20022
20023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20024 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20025 echo "${ECHO_T}$ac_header_compiler" >&6; }
20026
20027 # Is the header present?
20028 { echo "$as_me:$LINENO: checking linux/dccp.h presence" >&5
20029 echo $ECHO_N "checking linux/dccp.h presence... $ECHO_C" >&6; }
20030 cat >conftest.$ac_ext <<_ACEOF
20031 /* confdefs.h.  */
20032 _ACEOF
20033 cat confdefs.h >>conftest.$ac_ext
20034 cat >>conftest.$ac_ext <<_ACEOF
20035 /* end confdefs.h.  */
20036 #include <linux/dccp.h>
20037 _ACEOF
20038 if { (ac_try="$ac_cpp conftest.$ac_ext"
20039 case "(($ac_try" in
20040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20041   *) ac_try_echo=$ac_try;;
20042 esac
20043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20044   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20045   ac_status=$?
20046   grep -v '^ *+' conftest.er1 >conftest.err
20047   rm -f conftest.er1
20048   cat conftest.err >&5
20049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20050   (exit $ac_status); } >/dev/null && {
20051          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20052          test ! -s conftest.err
20053        }; then
20054   ac_header_preproc=yes
20055 else
20056   echo "$as_me: failed program was:" >&5
20057 sed 's/^/| /' conftest.$ac_ext >&5
20058
20059   ac_header_preproc=no
20060 fi
20061
20062 rm -f conftest.err conftest.$ac_ext
20063 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20064 echo "${ECHO_T}$ac_header_preproc" >&6; }
20065
20066 # So?  What about this header?
20067 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20068   yes:no: )
20069     { echo "$as_me:$LINENO: WARNING: linux/dccp.h: accepted by the compiler, rejected by the preprocessor!" >&5
20070 echo "$as_me: WARNING: linux/dccp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20071     { echo "$as_me:$LINENO: WARNING: linux/dccp.h: proceeding with the compiler's result" >&5
20072 echo "$as_me: WARNING: linux/dccp.h: proceeding with the compiler's result" >&2;}
20073     ac_header_preproc=yes
20074     ;;
20075   no:yes:* )
20076     { echo "$as_me:$LINENO: WARNING: linux/dccp.h: present but cannot be compiled" >&5
20077 echo "$as_me: WARNING: linux/dccp.h: present but cannot be compiled" >&2;}
20078     { echo "$as_me:$LINENO: WARNING: linux/dccp.h:     check for missing prerequisite headers?" >&5
20079 echo "$as_me: WARNING: linux/dccp.h:     check for missing prerequisite headers?" >&2;}
20080     { echo "$as_me:$LINENO: WARNING: linux/dccp.h: see the Autoconf documentation" >&5
20081 echo "$as_me: WARNING: linux/dccp.h: see the Autoconf documentation" >&2;}
20082     { echo "$as_me:$LINENO: WARNING: linux/dccp.h:     section \"Present But Cannot Be Compiled\"" >&5
20083 echo "$as_me: WARNING: linux/dccp.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20084     { echo "$as_me:$LINENO: WARNING: linux/dccp.h: proceeding with the preprocessor's result" >&5
20085 echo "$as_me: WARNING: linux/dccp.h: proceeding with the preprocessor's result" >&2;}
20086     { echo "$as_me:$LINENO: WARNING: linux/dccp.h: in the future, the compiler will take precedence" >&5
20087 echo "$as_me: WARNING: linux/dccp.h: in the future, the compiler will take precedence" >&2;}
20088
20089     ;;
20090 esac
20091 { echo "$as_me:$LINENO: checking for linux/dccp.h" >&5
20092 echo $ECHO_N "checking for linux/dccp.h... $ECHO_C" >&6; }
20093 if test "${ac_cv_header_linux_dccp_h+set}" = set; then
20094   echo $ECHO_N "(cached) $ECHO_C" >&6
20095 else
20096   ac_cv_header_linux_dccp_h=$ac_header_preproc
20097 fi
20098 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_dccp_h" >&5
20099 echo "${ECHO_T}$ac_cv_header_linux_dccp_h" >&6; }
20100
20101 fi
20102
20103
20104
20105 blacklist_modules="";
20106 if test "$ac_cv_header_linux_dccp_h" != "yes"; then
20107         blacklist_modules="$blacklist_modules dccp";
20108 fi;
20109
20110
20111  if test "$enable_static" = "yes"; then
20112   ENABLE_STATIC_TRUE=
20113   ENABLE_STATIC_FALSE='#'
20114 else
20115   ENABLE_STATIC_TRUE='#'
20116   ENABLE_STATIC_FALSE=
20117 fi
20118
20119  if test "$enable_shared" = "yes"; then
20120   ENABLE_SHARED_TRUE=
20121   ENABLE_SHARED_FALSE='#'
20122 else
20123   ENABLE_SHARED_TRUE='#'
20124   ENABLE_SHARED_FALSE=
20125 fi
20126
20127  if test "$enable_ipv4" = "yes"; then
20128   ENABLE_IPV4_TRUE=
20129   ENABLE_IPV4_FALSE='#'
20130 else
20131   ENABLE_IPV4_TRUE='#'
20132   ENABLE_IPV4_FALSE=
20133 fi
20134
20135  if test "$enable_ipv6" = "yes"; then
20136   ENABLE_IPV6_TRUE=
20137   ENABLE_IPV6_FALSE='#'
20138 else
20139   ENABLE_IPV6_TRUE='#'
20140   ENABLE_IPV6_FALSE=
20141 fi
20142
20143  if test "$enable_devel" = "yes"; then
20144   ENABLE_DEVEL_TRUE=
20145   ENABLE_DEVEL_FALSE='#'
20146 else
20147   ENABLE_DEVEL_TRUE='#'
20148   ENABLE_DEVEL_FALSE=
20149 fi
20150
20151  if test "$enable_libipq" = "yes"; then
20152   ENABLE_LIBIPQ_TRUE=
20153   ENABLE_LIBIPQ_FALSE='#'
20154 else
20155   ENABLE_LIBIPQ_TRUE='#'
20156   ENABLE_LIBIPQ_FALSE=
20157 fi
20158
20159
20160 regular_CFLAGS="-D_LARGEFILE_SOURCE=1 -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 \
20161         -D_REENTRANT -Wall -Waggregate-return -Wmissing-declarations \
20162         -Wmissing-prototypes -Wredundant-decls -Wshadow -Wstrict-prototypes \
20163         -Winline -pipe \
20164         -DXTABLES_LIBDIR=\\\"\${xtlibdir}\\\" -DXTABLES_INTERNAL";
20165 kinclude_CFLAGS="";
20166 if [ "$enable_static" = yes ]; then
20167         regular_CFLAGS="$regular_CFLAGS -DNO_SHARED_LIBS=1";
20168 fi
20169 if [ -n "$kbuilddir" ]; then
20170         kinclude_CFLAGS="$kinclude_CFLAGS -I $kbuilddir/include";
20171 fi;
20172 if [ -n "$ksourcedir" ]; then
20173         kinclude_CFLAGS="$kinclude_CFLAGS -I $ksourcedir/include";
20174 fi;
20175
20176
20177
20178
20179
20180
20181
20182
20183
20184 libxtables_vmajor=$(($libxtables_vcurrent - $libxtables_vage));
20185
20186
20187 ac_config_files="$ac_config_files Makefile extensions/GNUmakefile include/Makefile libipq/Makefile include/xtables.h include/iptables/internal.h libiptc.pc xtables.pc"
20188
20189 cat >confcache <<\_ACEOF
20190 # This file is a shell script that caches the results of configure
20191 # tests run on this system so they can be shared between configure
20192 # scripts and configure runs, see configure's option --config-cache.
20193 # It is not useful on other systems.  If it contains results you don't
20194 # want to keep, you may remove or edit it.
20195 #
20196 # config.status only pays attention to the cache file if you give it
20197 # the --recheck option to rerun configure.
20198 #
20199 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20200 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20201 # following values.
20202
20203 _ACEOF
20204
20205 # The following way of writing the cache mishandles newlines in values,
20206 # but we know of no workaround that is simple, portable, and efficient.
20207 # So, we kill variables containing newlines.
20208 # Ultrix sh set writes to stderr and can't be redirected directly,
20209 # and sets the high bit in the cache file unless we assign to the vars.
20210 (
20211   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20212     eval ac_val=\$$ac_var
20213     case $ac_val in #(
20214     *${as_nl}*)
20215       case $ac_var in #(
20216       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20217 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20218       esac
20219       case $ac_var in #(
20220       _ | IFS | as_nl) ;; #(
20221       *) $as_unset $ac_var ;;
20222       esac ;;
20223     esac
20224   done
20225
20226   (set) 2>&1 |
20227     case $as_nl`(ac_space=' '; set) 2>&1` in #(
20228     *${as_nl}ac_space=\ *)
20229       # `set' does not quote correctly, so add quotes (double-quote
20230       # substitution turns \\\\ into \\, and sed turns \\ into \).
20231       sed -n \
20232         "s/'/'\\\\''/g;
20233           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20234       ;; #(
20235     *)
20236       # `set' quotes correctly as required by POSIX, so do not add quotes.
20237       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20238       ;;
20239     esac |
20240     sort
20241 ) |
20242   sed '
20243      /^ac_cv_env_/b end
20244      t clear
20245      :clear
20246      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20247      t end
20248      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20249      :end' >>confcache
20250 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20251   if test -w "$cache_file"; then
20252     test "x$cache_file" != "x/dev/null" &&
20253       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20254 echo "$as_me: updating cache $cache_file" >&6;}
20255     cat confcache >$cache_file
20256   else
20257     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20258 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20259   fi
20260 fi
20261 rm -f confcache
20262
20263 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20264 # Let make expand exec_prefix.
20265 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20266
20267 DEFS=-DHAVE_CONFIG_H
20268
20269 ac_libobjs=
20270 ac_ltlibobjs=
20271 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20272   # 1. Remove the extension, and $U if already installed.
20273   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20274   ac_i=`echo "$ac_i" | sed "$ac_script"`
20275   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20276   #    will be set to the directory where LIBOBJS objects are built.
20277   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20278   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20279 done
20280 LIBOBJS=$ac_libobjs
20281
20282 LTLIBOBJS=$ac_ltlibobjs
20283
20284
20285 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20286   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20287 Usually this means the macro was only invoked conditionally." >&5
20288 echo "$as_me: error: conditional \"AMDEP\" was never defined.
20289 Usually this means the macro was only invoked conditionally." >&2;}
20290    { (exit 1); exit 1; }; }
20291 fi
20292 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20293   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20294 Usually this means the macro was only invoked conditionally." >&5
20295 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20296 Usually this means the macro was only invoked conditionally." >&2;}
20297    { (exit 1); exit 1; }; }
20298 fi
20299 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20300   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20301 Usually this means the macro was only invoked conditionally." >&5
20302 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20303 Usually this means the macro was only invoked conditionally." >&2;}
20304    { (exit 1); exit 1; }; }
20305 fi
20306 if test -z "${ENABLE_STATIC_TRUE}" && test -z "${ENABLE_STATIC_FALSE}"; then
20307   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_STATIC\" was never defined.
20308 Usually this means the macro was only invoked conditionally." >&5
20309 echo "$as_me: error: conditional \"ENABLE_STATIC\" was never defined.
20310 Usually this means the macro was only invoked conditionally." >&2;}
20311    { (exit 1); exit 1; }; }
20312 fi
20313 if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
20314   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SHARED\" was never defined.
20315 Usually this means the macro was only invoked conditionally." >&5
20316 echo "$as_me: error: conditional \"ENABLE_SHARED\" was never defined.
20317 Usually this means the macro was only invoked conditionally." >&2;}
20318    { (exit 1); exit 1; }; }
20319 fi
20320 if test -z "${ENABLE_IPV4_TRUE}" && test -z "${ENABLE_IPV4_FALSE}"; then
20321   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_IPV4\" was never defined.
20322 Usually this means the macro was only invoked conditionally." >&5
20323 echo "$as_me: error: conditional \"ENABLE_IPV4\" was never defined.
20324 Usually this means the macro was only invoked conditionally." >&2;}
20325    { (exit 1); exit 1; }; }
20326 fi
20327 if test -z "${ENABLE_IPV6_TRUE}" && test -z "${ENABLE_IPV6_FALSE}"; then
20328   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_IPV6\" was never defined.
20329 Usually this means the macro was only invoked conditionally." >&5
20330 echo "$as_me: error: conditional \"ENABLE_IPV6\" was never defined.
20331 Usually this means the macro was only invoked conditionally." >&2;}
20332    { (exit 1); exit 1; }; }
20333 fi
20334 if test -z "${ENABLE_DEVEL_TRUE}" && test -z "${ENABLE_DEVEL_FALSE}"; then
20335   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_DEVEL\" was never defined.
20336 Usually this means the macro was only invoked conditionally." >&5
20337 echo "$as_me: error: conditional \"ENABLE_DEVEL\" was never defined.
20338 Usually this means the macro was only invoked conditionally." >&2;}
20339    { (exit 1); exit 1; }; }
20340 fi
20341 if test -z "${ENABLE_LIBIPQ_TRUE}" && test -z "${ENABLE_LIBIPQ_FALSE}"; then
20342   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_LIBIPQ\" was never defined.
20343 Usually this means the macro was only invoked conditionally." >&5
20344 echo "$as_me: error: conditional \"ENABLE_LIBIPQ\" was never defined.
20345 Usually this means the macro was only invoked conditionally." >&2;}
20346    { (exit 1); exit 1; }; }
20347 fi
20348
20349 : ${CONFIG_STATUS=./config.status}
20350 ac_clean_files_save=$ac_clean_files
20351 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20352 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20353 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20354 cat >$CONFIG_STATUS <<_ACEOF
20355 #! $SHELL
20356 # Generated by $as_me.
20357 # Run this file to recreate the current configuration.
20358 # Compiler output produced by configure, useful for debugging
20359 # configure, is in config.log if it exists.
20360
20361 debug=false
20362 ac_cs_recheck=false
20363 ac_cs_silent=false
20364 SHELL=\${CONFIG_SHELL-$SHELL}
20365 _ACEOF
20366
20367 cat >>$CONFIG_STATUS <<\_ACEOF
20368 ## --------------------- ##
20369 ## M4sh Initialization.  ##
20370 ## --------------------- ##
20371
20372 # Be more Bourne compatible
20373 DUALCASE=1; export DUALCASE # for MKS sh
20374 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20375   emulate sh
20376   NULLCMD=:
20377   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20378   # is contrary to our usage.  Disable this feature.
20379   alias -g '${1+"$@"}'='"$@"'
20380   setopt NO_GLOB_SUBST
20381 else
20382   case `(set -o) 2>/dev/null` in
20383   *posix*) set -o posix ;;
20384 esac
20385
20386 fi
20387
20388
20389
20390
20391 # PATH needs CR
20392 # Avoid depending upon Character Ranges.
20393 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20394 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20395 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20396 as_cr_digits='0123456789'
20397 as_cr_alnum=$as_cr_Letters$as_cr_digits
20398
20399 # The user is always right.
20400 if test "${PATH_SEPARATOR+set}" != set; then
20401   echo "#! /bin/sh" >conf$$.sh
20402   echo  "exit 0"   >>conf$$.sh
20403   chmod +x conf$$.sh
20404   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20405     PATH_SEPARATOR=';'
20406   else
20407     PATH_SEPARATOR=:
20408   fi
20409   rm -f conf$$.sh
20410 fi
20411
20412 # Support unset when possible.
20413 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20414   as_unset=unset
20415 else
20416   as_unset=false
20417 fi
20418
20419
20420 # IFS
20421 # We need space, tab and new line, in precisely that order.  Quoting is
20422 # there to prevent editors from complaining about space-tab.
20423 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20424 # splitting by setting IFS to empty value.)
20425 as_nl='
20426 '
20427 IFS=" ""        $as_nl"
20428
20429 # Find who we are.  Look in the path if we contain no directory separator.
20430 case $0 in
20431   *[\\/]* ) as_myself=$0 ;;
20432   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20433 for as_dir in $PATH
20434 do
20435   IFS=$as_save_IFS
20436   test -z "$as_dir" && as_dir=.
20437   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20438 done
20439 IFS=$as_save_IFS
20440
20441      ;;
20442 esac
20443 # We did not find ourselves, most probably we were run as `sh COMMAND'
20444 # in which case we are not to be found in the path.
20445 if test "x$as_myself" = x; then
20446   as_myself=$0
20447 fi
20448 if test ! -f "$as_myself"; then
20449   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20450   { (exit 1); exit 1; }
20451 fi
20452
20453 # Work around bugs in pre-3.0 UWIN ksh.
20454 for as_var in ENV MAIL MAILPATH
20455 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20456 done
20457 PS1='$ '
20458 PS2='> '
20459 PS4='+ '
20460
20461 # NLS nuisances.
20462 for as_var in \
20463   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20464   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20465   LC_TELEPHONE LC_TIME
20466 do
20467   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20468     eval $as_var=C; export $as_var
20469   else
20470     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20471   fi
20472 done
20473
20474 # Required to use basename.
20475 if expr a : '\(a\)' >/dev/null 2>&1 &&
20476    test "X`expr 00001 : '.*\(...\)'`" = X001; then
20477   as_expr=expr
20478 else
20479   as_expr=false
20480 fi
20481
20482 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20483   as_basename=basename
20484 else
20485   as_basename=false
20486 fi
20487
20488
20489 # Name of the executable.
20490 as_me=`$as_basename -- "$0" ||
20491 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20492          X"$0" : 'X\(//\)$' \| \
20493          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20494 echo X/"$0" |
20495     sed '/^.*\/\([^/][^/]*\)\/*$/{
20496             s//\1/
20497             q
20498           }
20499           /^X\/\(\/\/\)$/{
20500             s//\1/
20501             q
20502           }
20503           /^X\/\(\/\).*/{
20504             s//\1/
20505             q
20506           }
20507           s/.*/./; q'`
20508
20509 # CDPATH.
20510 $as_unset CDPATH
20511
20512
20513
20514   as_lineno_1=$LINENO
20515   as_lineno_2=$LINENO
20516   test "x$as_lineno_1" != "x$as_lineno_2" &&
20517   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20518
20519   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20520   # uniformly replaced by the line number.  The first 'sed' inserts a
20521   # line-number line after each line using $LINENO; the second 'sed'
20522   # does the real work.  The second script uses 'N' to pair each
20523   # line-number line with the line containing $LINENO, and appends
20524   # trailing '-' during substitution so that $LINENO is not a special
20525   # case at line end.
20526   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20527   # scripts with optimization help from Paolo Bonzini.  Blame Lee
20528   # E. McMahon (1931-1989) for sed's syntax.  :-)
20529   sed -n '
20530     p
20531     /[$]LINENO/=
20532   ' <$as_myself |
20533     sed '
20534       s/[$]LINENO.*/&-/
20535       t lineno
20536       b
20537       :lineno
20538       N
20539       :loop
20540       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20541       t loop
20542       s/-\n.*//
20543     ' >$as_me.lineno &&
20544   chmod +x "$as_me.lineno" ||
20545     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20546    { (exit 1); exit 1; }; }
20547
20548   # Don't try to exec as it changes $[0], causing all sort of problems
20549   # (the dirname of $[0] is not the place where we might find the
20550   # original and so on.  Autoconf is especially sensitive to this).
20551   . "./$as_me.lineno"
20552   # Exit status is that of the last command.
20553   exit
20554 }
20555
20556
20557 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20558   as_dirname=dirname
20559 else
20560   as_dirname=false
20561 fi
20562
20563 ECHO_C= ECHO_N= ECHO_T=
20564 case `echo -n x` in
20565 -n*)
20566   case `echo 'x\c'` in
20567   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
20568   *)   ECHO_C='\c';;
20569   esac;;
20570 *)
20571   ECHO_N='-n';;
20572 esac
20573
20574 if expr a : '\(a\)' >/dev/null 2>&1 &&
20575    test "X`expr 00001 : '.*\(...\)'`" = X001; then
20576   as_expr=expr
20577 else
20578   as_expr=false
20579 fi
20580
20581 rm -f conf$$ conf$$.exe conf$$.file
20582 if test -d conf$$.dir; then
20583   rm -f conf$$.dir/conf$$.file
20584 else
20585   rm -f conf$$.dir
20586   mkdir conf$$.dir
20587 fi
20588 echo >conf$$.file
20589 if ln -s conf$$.file conf$$ 2>/dev/null; then
20590   as_ln_s='ln -s'
20591   # ... but there are two gotchas:
20592   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20593   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20594   # In both cases, we have to default to `cp -p'.
20595   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20596     as_ln_s='cp -p'
20597 elif ln conf$$.file conf$$ 2>/dev/null; then
20598   as_ln_s=ln
20599 else
20600   as_ln_s='cp -p'
20601 fi
20602 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20603 rmdir conf$$.dir 2>/dev/null
20604
20605 if mkdir -p . 2>/dev/null; then
20606   as_mkdir_p=:
20607 else
20608   test -d ./-p && rmdir ./-p
20609   as_mkdir_p=false
20610 fi
20611
20612 if test -x / >/dev/null 2>&1; then
20613   as_test_x='test -x'
20614 else
20615   if ls -dL / >/dev/null 2>&1; then
20616     as_ls_L_option=L
20617   else
20618     as_ls_L_option=
20619   fi
20620   as_test_x='
20621     eval sh -c '\''
20622       if test -d "$1"; then
20623         test -d "$1/.";
20624       else
20625         case $1 in
20626         -*)set "./$1";;
20627         esac;
20628         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
20629         ???[sx]*):;;*)false;;esac;fi
20630     '\'' sh
20631   '
20632 fi
20633 as_executable_p=$as_test_x
20634
20635 # Sed expression to map a string onto a valid CPP name.
20636 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20637
20638 # Sed expression to map a string onto a valid variable name.
20639 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20640
20641
20642 exec 6>&1
20643
20644 # Save the log message, to keep $[0] and so on meaningful, and to
20645 # report actual input values of CONFIG_FILES etc. instead of their
20646 # values after options handling.
20647 ac_log="
20648 This file was extended by iptables $as_me 1.4.3.2, which was
20649 generated by GNU Autoconf 2.61.  Invocation command line was
20650
20651   CONFIG_FILES    = $CONFIG_FILES
20652   CONFIG_HEADERS  = $CONFIG_HEADERS
20653   CONFIG_LINKS    = $CONFIG_LINKS
20654   CONFIG_COMMANDS = $CONFIG_COMMANDS
20655   $ $0 $@
20656
20657 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20658 "
20659
20660 _ACEOF
20661
20662 cat >>$CONFIG_STATUS <<_ACEOF
20663 # Files that config.status was made for.
20664 config_files="$ac_config_files"
20665 config_headers="$ac_config_headers"
20666 config_commands="$ac_config_commands"
20667
20668 _ACEOF
20669
20670 cat >>$CONFIG_STATUS <<\_ACEOF
20671 ac_cs_usage="\
20672 \`$as_me' instantiates files from templates according to the
20673 current configuration.
20674
20675 Usage: $0 [OPTIONS] [FILE]...
20676
20677   -h, --help       print this help, then exit
20678   -V, --version    print version number and configuration settings, then exit
20679   -q, --quiet      do not print progress messages
20680   -d, --debug      don't remove temporary files
20681       --recheck    update $as_me by reconfiguring in the same conditions
20682   --file=FILE[:TEMPLATE]
20683                    instantiate the configuration file FILE
20684   --header=FILE[:TEMPLATE]
20685                    instantiate the configuration header FILE
20686
20687 Configuration files:
20688 $config_files
20689
20690 Configuration headers:
20691 $config_headers
20692
20693 Configuration commands:
20694 $config_commands
20695
20696 Report bugs to <bug-autoconf@gnu.org>."
20697
20698 _ACEOF
20699 cat >>$CONFIG_STATUS <<_ACEOF
20700 ac_cs_version="\\
20701 iptables config.status 1.4.3.2
20702 configured by $0, generated by GNU Autoconf 2.61,
20703   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20704
20705 Copyright (C) 2006 Free Software Foundation, Inc.
20706 This config.status script is free software; the Free Software Foundation
20707 gives unlimited permission to copy, distribute and modify it."
20708
20709 ac_pwd='$ac_pwd'
20710 srcdir='$srcdir'
20711 INSTALL='$INSTALL'
20712 MKDIR_P='$MKDIR_P'
20713 _ACEOF
20714
20715 cat >>$CONFIG_STATUS <<\_ACEOF
20716 # If no file are specified by the user, then we need to provide default
20717 # value.  By we need to know if files were specified by the user.
20718 ac_need_defaults=:
20719 while test $# != 0
20720 do
20721   case $1 in
20722   --*=*)
20723     ac_option=`expr "X$1" : 'X\([^=]*\)='`
20724     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20725     ac_shift=:
20726     ;;
20727   *)
20728     ac_option=$1
20729     ac_optarg=$2
20730     ac_shift=shift
20731     ;;
20732   esac
20733
20734   case $ac_option in
20735   # Handling of the options.
20736   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20737     ac_cs_recheck=: ;;
20738   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20739     echo "$ac_cs_version"; exit ;;
20740   --debug | --debu | --deb | --de | --d | -d )
20741     debug=: ;;
20742   --file | --fil | --fi | --f )
20743     $ac_shift
20744     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20745     ac_need_defaults=false;;
20746   --header | --heade | --head | --hea )
20747     $ac_shift
20748     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20749     ac_need_defaults=false;;
20750   --he | --h)
20751     # Conflict between --help and --header
20752     { echo "$as_me: error: ambiguous option: $1
20753 Try \`$0 --help' for more information." >&2
20754    { (exit 1); exit 1; }; };;
20755   --help | --hel | -h )
20756     echo "$ac_cs_usage"; exit ;;
20757   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20758   | -silent | --silent | --silen | --sile | --sil | --si | --s)
20759     ac_cs_silent=: ;;
20760
20761   # This is an error.
20762   -*) { echo "$as_me: error: unrecognized option: $1
20763 Try \`$0 --help' for more information." >&2
20764    { (exit 1); exit 1; }; } ;;
20765
20766   *) ac_config_targets="$ac_config_targets $1"
20767      ac_need_defaults=false ;;
20768
20769   esac
20770   shift
20771 done
20772
20773 ac_configure_extra_args=
20774
20775 if $ac_cs_silent; then
20776   exec 6>/dev/null
20777   ac_configure_extra_args="$ac_configure_extra_args --silent"
20778 fi
20779
20780 _ACEOF
20781 cat >>$CONFIG_STATUS <<_ACEOF
20782 if \$ac_cs_recheck; then
20783   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20784   CONFIG_SHELL=$SHELL
20785   export CONFIG_SHELL
20786   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20787 fi
20788
20789 _ACEOF
20790 cat >>$CONFIG_STATUS <<\_ACEOF
20791 exec 5>>config.log
20792 {
20793   echo
20794   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20795 ## Running $as_me. ##
20796 _ASBOX
20797   echo "$ac_log"
20798 } >&5
20799
20800 _ACEOF
20801 cat >>$CONFIG_STATUS <<_ACEOF
20802 #
20803 # INIT-COMMANDS
20804 #
20805 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20806
20807 _ACEOF
20808
20809 cat >>$CONFIG_STATUS <<\_ACEOF
20810
20811 # Handling of arguments.
20812 for ac_config_target in $ac_config_targets
20813 do
20814   case $ac_config_target in
20815     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20816     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20817     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20818     "extensions/GNUmakefile") CONFIG_FILES="$CONFIG_FILES extensions/GNUmakefile" ;;
20819     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
20820     "libipq/Makefile") CONFIG_FILES="$CONFIG_FILES libipq/Makefile" ;;
20821     "include/xtables.h") CONFIG_FILES="$CONFIG_FILES include/xtables.h" ;;
20822     "include/iptables/internal.h") CONFIG_FILES="$CONFIG_FILES include/iptables/internal.h" ;;
20823     "libiptc.pc") CONFIG_FILES="$CONFIG_FILES libiptc.pc" ;;
20824     "xtables.pc") CONFIG_FILES="$CONFIG_FILES xtables.pc" ;;
20825
20826   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20827 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20828    { (exit 1); exit 1; }; };;
20829   esac
20830 done
20831
20832
20833 # If the user did not use the arguments to specify the items to instantiate,
20834 # then the envvar interface is used.  Set only those that are not.
20835 # We use the long form for the default assignment because of an extremely
20836 # bizarre bug on SunOS 4.1.3.
20837 if $ac_need_defaults; then
20838   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20839   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20840   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20841 fi
20842
20843 # Have a temporary directory for convenience.  Make it in the build tree
20844 # simply because there is no reason against having it here, and in addition,
20845 # creating and moving files from /tmp can sometimes cause problems.
20846 # Hook for its removal unless debugging.
20847 # Note that there is a small window in which the directory will not be cleaned:
20848 # after its creation but before its name has been assigned to `$tmp'.
20849 $debug ||
20850 {
20851   tmp=
20852   trap 'exit_status=$?
20853   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20854 ' 0
20855   trap '{ (exit 1); exit 1; }' 1 2 13 15
20856 }
20857 # Create a (secure) tmp directory for tmp files.
20858
20859 {
20860   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20861   test -n "$tmp" && test -d "$tmp"
20862 }  ||
20863 {
20864   tmp=./conf$$-$RANDOM
20865   (umask 077 && mkdir "$tmp")
20866 } ||
20867 {
20868    echo "$me: cannot create a temporary directory in ." >&2
20869    { (exit 1); exit 1; }
20870 }
20871
20872 #
20873 # Set up the sed scripts for CONFIG_FILES section.
20874 #
20875
20876 # No need to generate the scripts if there are no CONFIG_FILES.
20877 # This happens for instance when ./config.status config.h
20878 if test -n "$CONFIG_FILES"; then
20879
20880 _ACEOF
20881
20882
20883
20884 ac_delim='%!_!# '
20885 for ac_last_try in false false false false false :; do
20886   cat >conf$$subs.sed <<_ACEOF
20887 SHELL!$SHELL$ac_delim
20888 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20889 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20890 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20891 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20892 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20893 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20894 exec_prefix!$exec_prefix$ac_delim
20895 prefix!$prefix$ac_delim
20896 program_transform_name!$program_transform_name$ac_delim
20897 bindir!$bindir$ac_delim
20898 sbindir!$sbindir$ac_delim
20899 libexecdir!$libexecdir$ac_delim
20900 datarootdir!$datarootdir$ac_delim
20901 datadir!$datadir$ac_delim
20902 sysconfdir!$sysconfdir$ac_delim
20903 sharedstatedir!$sharedstatedir$ac_delim
20904 localstatedir!$localstatedir$ac_delim
20905 includedir!$includedir$ac_delim
20906 oldincludedir!$oldincludedir$ac_delim
20907 docdir!$docdir$ac_delim
20908 infodir!$infodir$ac_delim
20909 htmldir!$htmldir$ac_delim
20910 dvidir!$dvidir$ac_delim
20911 pdfdir!$pdfdir$ac_delim
20912 psdir!$psdir$ac_delim
20913 libdir!$libdir$ac_delim
20914 localedir!$localedir$ac_delim
20915 mandir!$mandir$ac_delim
20916 DEFS!$DEFS$ac_delim
20917 ECHO_C!$ECHO_C$ac_delim
20918 ECHO_N!$ECHO_N$ac_delim
20919 ECHO_T!$ECHO_T$ac_delim
20920 LIBS!$LIBS$ac_delim
20921 build_alias!$build_alias$ac_delim
20922 host_alias!$host_alias$ac_delim
20923 target_alias!$target_alias$ac_delim
20924 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
20925 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
20926 INSTALL_DATA!$INSTALL_DATA$ac_delim
20927 am__isrc!$am__isrc$ac_delim
20928 CYGPATH_W!$CYGPATH_W$ac_delim
20929 PACKAGE!$PACKAGE$ac_delim
20930 VERSION!$VERSION$ac_delim
20931 ACLOCAL!$ACLOCAL$ac_delim
20932 AUTOCONF!$AUTOCONF$ac_delim
20933 AUTOMAKE!$AUTOMAKE$ac_delim
20934 AUTOHEADER!$AUTOHEADER$ac_delim
20935 MAKEINFO!$MAKEINFO$ac_delim
20936 install_sh!$install_sh$ac_delim
20937 STRIP!$STRIP$ac_delim
20938 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
20939 mkdir_p!$mkdir_p$ac_delim
20940 AWK!$AWK$ac_delim
20941 SET_MAKE!$SET_MAKE$ac_delim
20942 am__leading_dot!$am__leading_dot$ac_delim
20943 AMTAR!$AMTAR$ac_delim
20944 am__tar!$am__tar$ac_delim
20945 am__untar!$am__untar$ac_delim
20946 CC!$CC$ac_delim
20947 CFLAGS!$CFLAGS$ac_delim
20948 LDFLAGS!$LDFLAGS$ac_delim
20949 CPPFLAGS!$CPPFLAGS$ac_delim
20950 ac_ct_CC!$ac_ct_CC$ac_delim
20951 EXEEXT!$EXEEXT$ac_delim
20952 OBJEXT!$OBJEXT$ac_delim
20953 DEPDIR!$DEPDIR$ac_delim
20954 am__include!$am__include$ac_delim
20955 am__quote!$am__quote$ac_delim
20956 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
20957 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
20958 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
20959 CCDEPMODE!$CCDEPMODE$ac_delim
20960 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
20961 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
20962 build!$build$ac_delim
20963 build_cpu!$build_cpu$ac_delim
20964 build_vendor!$build_vendor$ac_delim
20965 build_os!$build_os$ac_delim
20966 host!$host$ac_delim
20967 host_cpu!$host_cpu$ac_delim
20968 host_vendor!$host_vendor$ac_delim
20969 host_os!$host_os$ac_delim
20970 SED!$SED$ac_delim
20971 GREP!$GREP$ac_delim
20972 EGREP!$EGREP$ac_delim
20973 LN_S!$LN_S$ac_delim
20974 ECHO!$ECHO$ac_delim
20975 AR!$AR$ac_delim
20976 RANLIB!$RANLIB$ac_delim
20977 DSYMUTIL!$DSYMUTIL$ac_delim
20978 NMEDIT!$NMEDIT$ac_delim
20979 CPP!$CPP$ac_delim
20980 CXX!$CXX$ac_delim
20981 CXXFLAGS!$CXXFLAGS$ac_delim
20982 ac_ct_CXX!$ac_ct_CXX$ac_delim
20983 CXXDEPMODE!$CXXDEPMODE$ac_delim
20984 _ACEOF
20985
20986   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
20987     break
20988   elif $ac_last_try; then
20989     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20990 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20991    { (exit 1); exit 1; }; }
20992   else
20993     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20994   fi
20995 done
20996
20997 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20998 if test -n "$ac_eof"; then
20999   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21000   ac_eof=`expr $ac_eof + 1`
21001 fi
21002
21003 cat >>$CONFIG_STATUS <<_ACEOF
21004 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21005 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21006 _ACEOF
21007 sed '
21008 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21009 s/^/s,@/; s/!/@,|#_!!_#|/
21010 :n
21011 t n
21012 s/'"$ac_delim"'$/,g/; t
21013 s/$/\\/; p
21014 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21015 ' >>$CONFIG_STATUS <conf$$subs.sed
21016 rm -f conf$$subs.sed
21017 cat >>$CONFIG_STATUS <<_ACEOF
21018 CEOF$ac_eof
21019 _ACEOF
21020
21021
21022 ac_delim='%!_!# '
21023 for ac_last_try in false false false false false :; do
21024   cat >conf$$subs.sed <<_ACEOF
21025 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
21026 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
21027 CXXCPP!$CXXCPP$ac_delim
21028 F77!$F77$ac_delim
21029 FFLAGS!$FFLAGS$ac_delim
21030 ac_ct_F77!$ac_ct_F77$ac_delim
21031 LIBTOOL!$LIBTOOL$ac_delim
21032 blacklist_modules!$blacklist_modules$ac_delim
21033 ENABLE_STATIC_TRUE!$ENABLE_STATIC_TRUE$ac_delim
21034 ENABLE_STATIC_FALSE!$ENABLE_STATIC_FALSE$ac_delim
21035 ENABLE_SHARED_TRUE!$ENABLE_SHARED_TRUE$ac_delim
21036 ENABLE_SHARED_FALSE!$ENABLE_SHARED_FALSE$ac_delim
21037 ENABLE_IPV4_TRUE!$ENABLE_IPV4_TRUE$ac_delim
21038 ENABLE_IPV4_FALSE!$ENABLE_IPV4_FALSE$ac_delim
21039 ENABLE_IPV6_TRUE!$ENABLE_IPV6_TRUE$ac_delim
21040 ENABLE_IPV6_FALSE!$ENABLE_IPV6_FALSE$ac_delim
21041 ENABLE_DEVEL_TRUE!$ENABLE_DEVEL_TRUE$ac_delim
21042 ENABLE_DEVEL_FALSE!$ENABLE_DEVEL_FALSE$ac_delim
21043 ENABLE_LIBIPQ_TRUE!$ENABLE_LIBIPQ_TRUE$ac_delim
21044 ENABLE_LIBIPQ_FALSE!$ENABLE_LIBIPQ_FALSE$ac_delim
21045 regular_CFLAGS!$regular_CFLAGS$ac_delim
21046 kinclude_CFLAGS!$kinclude_CFLAGS$ac_delim
21047 kbuilddir!$kbuilddir$ac_delim
21048 ksourcedir!$ksourcedir$ac_delim
21049 xtlibdir!$xtlibdir$ac_delim
21050 pkgconfigdir!$pkgconfigdir$ac_delim
21051 libxtables_vcurrent!$libxtables_vcurrent$ac_delim
21052 libxtables_vage!$libxtables_vage$ac_delim
21053 libxtables_vmajor!$libxtables_vmajor$ac_delim
21054 LIBOBJS!$LIBOBJS$ac_delim
21055 LTLIBOBJS!$LTLIBOBJS$ac_delim
21056 _ACEOF
21057
21058   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 31; then
21059     break
21060   elif $ac_last_try; then
21061     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21062 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21063    { (exit 1); exit 1; }; }
21064   else
21065     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21066   fi
21067 done
21068
21069 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21070 if test -n "$ac_eof"; then
21071   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21072   ac_eof=`expr $ac_eof + 1`
21073 fi
21074
21075 cat >>$CONFIG_STATUS <<_ACEOF
21076 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21077 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21078 _ACEOF
21079 sed '
21080 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21081 s/^/s,@/; s/!/@,|#_!!_#|/
21082 :n
21083 t n
21084 s/'"$ac_delim"'$/,g/; t
21085 s/$/\\/; p
21086 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21087 ' >>$CONFIG_STATUS <conf$$subs.sed
21088 rm -f conf$$subs.sed
21089 cat >>$CONFIG_STATUS <<_ACEOF
21090 :end
21091 s/|#_!!_#|//g
21092 CEOF$ac_eof
21093 _ACEOF
21094
21095
21096 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21097 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21098 # trailing colons and then remove the whole line if VPATH becomes empty
21099 # (actually we leave an empty line to preserve line numbers).
21100 if test "x$srcdir" = x.; then
21101   ac_vpsub='/^[  ]*VPATH[        ]*=/{
21102 s/:*\$(srcdir):*/:/
21103 s/:*\${srcdir}:*/:/
21104 s/:*@srcdir@:*/:/
21105 s/^\([^=]*=[     ]*\):*/\1/
21106 s/:*$//
21107 s/^[^=]*=[       ]*$//
21108 }'
21109 fi
21110
21111 cat >>$CONFIG_STATUS <<\_ACEOF
21112 fi # test -n "$CONFIG_FILES"
21113
21114
21115 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
21116 do
21117   case $ac_tag in
21118   :[FHLC]) ac_mode=$ac_tag; continue;;
21119   esac
21120   case $ac_mode$ac_tag in
21121   :[FHL]*:*);;
21122   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21123 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21124    { (exit 1); exit 1; }; };;
21125   :[FH]-) ac_tag=-:-;;
21126   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21127   esac
21128   ac_save_IFS=$IFS
21129   IFS=:
21130   set x $ac_tag
21131   IFS=$ac_save_IFS
21132   shift
21133   ac_file=$1
21134   shift
21135
21136   case $ac_mode in
21137   :L) ac_source=$1;;
21138   :[FH])
21139     ac_file_inputs=
21140     for ac_f
21141     do
21142       case $ac_f in
21143       -) ac_f="$tmp/stdin";;
21144       *) # Look for the file first in the build tree, then in the source tree
21145          # (if the path is not absolute).  The absolute path cannot be DOS-style,
21146          # because $ac_f cannot contain `:'.
21147          test -f "$ac_f" ||
21148            case $ac_f in
21149            [\\/$]*) false;;
21150            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21151            esac ||
21152            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21153 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21154    { (exit 1); exit 1; }; };;
21155       esac
21156       ac_file_inputs="$ac_file_inputs $ac_f"
21157     done
21158
21159     # Let's still pretend it is `configure' which instantiates (i.e., don't
21160     # use $as_me), people would be surprised to read:
21161     #    /* config.h.  Generated by config.status.  */
21162     configure_input="Generated from "`IFS=:
21163           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21164     if test x"$ac_file" != x-; then
21165       configure_input="$ac_file.  $configure_input"
21166       { echo "$as_me:$LINENO: creating $ac_file" >&5
21167 echo "$as_me: creating $ac_file" >&6;}
21168     fi
21169
21170     case $ac_tag in
21171     *:-:* | *:-) cat >"$tmp/stdin";;
21172     esac
21173     ;;
21174   esac
21175
21176   ac_dir=`$as_dirname -- "$ac_file" ||
21177 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21178          X"$ac_file" : 'X\(//\)[^/]' \| \
21179          X"$ac_file" : 'X\(//\)$' \| \
21180          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21181 echo X"$ac_file" |
21182     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21183             s//\1/
21184             q
21185           }
21186           /^X\(\/\/\)[^/].*/{
21187             s//\1/
21188             q
21189           }
21190           /^X\(\/\/\)$/{
21191             s//\1/
21192             q
21193           }
21194           /^X\(\/\).*/{
21195             s//\1/
21196             q
21197           }
21198           s/.*/./; q'`
21199   { as_dir="$ac_dir"
21200   case $as_dir in #(
21201   -*) as_dir=./$as_dir;;
21202   esac
21203   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21204     as_dirs=
21205     while :; do
21206       case $as_dir in #(
21207       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21208       *) as_qdir=$as_dir;;
21209       esac
21210       as_dirs="'$as_qdir' $as_dirs"
21211       as_dir=`$as_dirname -- "$as_dir" ||
21212 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21213          X"$as_dir" : 'X\(//\)[^/]' \| \
21214          X"$as_dir" : 'X\(//\)$' \| \
21215          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21216 echo X"$as_dir" |
21217     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21218             s//\1/
21219             q
21220           }
21221           /^X\(\/\/\)[^/].*/{
21222             s//\1/
21223             q
21224           }
21225           /^X\(\/\/\)$/{
21226             s//\1/
21227             q
21228           }
21229           /^X\(\/\).*/{
21230             s//\1/
21231             q
21232           }
21233           s/.*/./; q'`
21234       test -d "$as_dir" && break
21235     done
21236     test -z "$as_dirs" || eval "mkdir $as_dirs"
21237   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21238 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21239    { (exit 1); exit 1; }; }; }
21240   ac_builddir=.
21241
21242 case "$ac_dir" in
21243 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21244 *)
21245   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21246   # A ".." for each directory in $ac_dir_suffix.
21247   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21248   case $ac_top_builddir_sub in
21249   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21250   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21251   esac ;;
21252 esac
21253 ac_abs_top_builddir=$ac_pwd
21254 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21255 # for backward compatibility:
21256 ac_top_builddir=$ac_top_build_prefix
21257
21258 case $srcdir in
21259   .)  # We are building in place.
21260     ac_srcdir=.
21261     ac_top_srcdir=$ac_top_builddir_sub
21262     ac_abs_top_srcdir=$ac_pwd ;;
21263   [\\/]* | ?:[\\/]* )  # Absolute name.
21264     ac_srcdir=$srcdir$ac_dir_suffix;
21265     ac_top_srcdir=$srcdir
21266     ac_abs_top_srcdir=$srcdir ;;
21267   *) # Relative name.
21268     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21269     ac_top_srcdir=$ac_top_build_prefix$srcdir
21270     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21271 esac
21272 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21273
21274
21275   case $ac_mode in
21276   :F)
21277   #
21278   # CONFIG_FILE
21279   #
21280
21281   case $INSTALL in
21282   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21283   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21284   esac
21285   ac_MKDIR_P=$MKDIR_P
21286   case $MKDIR_P in
21287   [\\/$]* | ?:[\\/]* ) ;;
21288   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21289   esac
21290 _ACEOF
21291
21292 cat >>$CONFIG_STATUS <<\_ACEOF
21293 # If the template does not know about datarootdir, expand it.
21294 # FIXME: This hack should be removed a few years after 2.60.
21295 ac_datarootdir_hack=; ac_datarootdir_seen=
21296
21297 case `sed -n '/datarootdir/ {
21298   p
21299   q
21300 }
21301 /@datadir@/p
21302 /@docdir@/p
21303 /@infodir@/p
21304 /@localedir@/p
21305 /@mandir@/p
21306 ' $ac_file_inputs` in
21307 *datarootdir*) ac_datarootdir_seen=yes;;
21308 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21309   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21310 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21311 _ACEOF
21312 cat >>$CONFIG_STATUS <<_ACEOF
21313   ac_datarootdir_hack='
21314   s&@datadir@&$datadir&g
21315   s&@docdir@&$docdir&g
21316   s&@infodir@&$infodir&g
21317   s&@localedir@&$localedir&g
21318   s&@mandir@&$mandir&g
21319     s&\\\${datarootdir}&$datarootdir&g' ;;
21320 esac
21321 _ACEOF
21322
21323 # Neutralize VPATH when `$srcdir' = `.'.
21324 # Shell code in configure.ac might set extrasub.
21325 # FIXME: do we really want to maintain this feature?
21326 cat >>$CONFIG_STATUS <<_ACEOF
21327   sed "$ac_vpsub
21328 $extrasub
21329 _ACEOF
21330 cat >>$CONFIG_STATUS <<\_ACEOF
21331 :t
21332 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21333 s&@configure_input@&$configure_input&;t t
21334 s&@top_builddir@&$ac_top_builddir_sub&;t t
21335 s&@srcdir@&$ac_srcdir&;t t
21336 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21337 s&@top_srcdir@&$ac_top_srcdir&;t t
21338 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21339 s&@builddir@&$ac_builddir&;t t
21340 s&@abs_builddir@&$ac_abs_builddir&;t t
21341 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21342 s&@INSTALL@&$ac_INSTALL&;t t
21343 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21344 $ac_datarootdir_hack
21345 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21346
21347 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21348   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21349   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21350   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21351 which seems to be undefined.  Please make sure it is defined." >&5
21352 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21353 which seems to be undefined.  Please make sure it is defined." >&2;}
21354
21355   rm -f "$tmp/stdin"
21356   case $ac_file in
21357   -) cat "$tmp/out"; rm -f "$tmp/out";;
21358   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21359   esac
21360  ;;
21361   :H)
21362   #
21363   # CONFIG_HEADER
21364   #
21365 _ACEOF
21366
21367 # Transform confdefs.h into a sed script `conftest.defines', that
21368 # substitutes the proper values into config.h.in to produce config.h.
21369 rm -f conftest.defines conftest.tail
21370 # First, append a space to every undef/define line, to ease matching.
21371 echo 's/$/ /' >conftest.defines
21372 # Then, protect against being on the right side of a sed subst, or in
21373 # an unquoted here document, in config.status.  If some macros were
21374 # called several times there might be several #defines for the same
21375 # symbol, which is useless.  But do not sort them, since the last
21376 # AC_DEFINE must be honored.
21377 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21378 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21379 # NAME is the cpp macro being defined, VALUE is the value it is being given.
21380 # PARAMS is the parameter list in the macro definition--in most cases, it's
21381 # just an empty string.
21382 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
21383 ac_dB='\\)[      (].*,\\1define\\2'
21384 ac_dC=' '
21385 ac_dD=' ,'
21386
21387 uniq confdefs.h |
21388   sed -n '
21389         t rset
21390         :rset
21391         s/^[     ]*#[    ]*define[       ][      ]*//
21392         t ok
21393         d
21394         :ok
21395         s/[\\&,]/\\&/g
21396         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21397         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21398   ' >>conftest.defines
21399
21400 # Remove the space that was appended to ease matching.
21401 # Then replace #undef with comments.  This is necessary, for
21402 # example, in the case of _POSIX_SOURCE, which is predefined and required
21403 # on some systems where configure will not decide to define it.
21404 # (The regexp can be short, since the line contains either #define or #undef.)
21405 echo 's/ $//
21406 s,^[     #]*u.*,/* & */,' >>conftest.defines
21407
21408 # Break up conftest.defines:
21409 ac_max_sed_lines=50
21410
21411 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21412 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21413 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21414 # et cetera.
21415 ac_in='$ac_file_inputs'
21416 ac_out='"$tmp/out1"'
21417 ac_nxt='"$tmp/out2"'
21418
21419 while :
21420 do
21421   # Write a here document:
21422     cat >>$CONFIG_STATUS <<_ACEOF
21423     # First, check the format of the line:
21424     cat >"\$tmp/defines.sed" <<\\CEOF
21425 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
21426 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
21427 b
21428 :def
21429 _ACEOF
21430   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21431   echo 'CEOF
21432     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21433   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21434   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21435   grep . conftest.tail >/dev/null || break
21436   rm -f conftest.defines
21437   mv conftest.tail conftest.defines
21438 done
21439 rm -f conftest.defines conftest.tail
21440
21441 echo "ac_result=$ac_in" >>$CONFIG_STATUS
21442 cat >>$CONFIG_STATUS <<\_ACEOF
21443   if test x"$ac_file" != x-; then
21444     echo "/* $configure_input  */" >"$tmp/config.h"
21445     cat "$ac_result" >>"$tmp/config.h"
21446     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21447       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21448 echo "$as_me: $ac_file is unchanged" >&6;}
21449     else
21450       rm -f $ac_file
21451       mv "$tmp/config.h" $ac_file
21452     fi
21453   else
21454     echo "/* $configure_input  */"
21455     cat "$ac_result"
21456   fi
21457   rm -f "$tmp/out12"
21458 # Compute $ac_file's index in $config_headers.
21459 _am_arg=$ac_file
21460 _am_stamp_count=1
21461 for _am_header in $config_headers :; do
21462   case $_am_header in
21463     $_am_arg | $_am_arg:* )
21464       break ;;
21465     * )
21466       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21467   esac
21468 done
21469 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21470 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21471          X"$_am_arg" : 'X\(//\)[^/]' \| \
21472          X"$_am_arg" : 'X\(//\)$' \| \
21473          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21474 echo X"$_am_arg" |
21475     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21476             s//\1/
21477             q
21478           }
21479           /^X\(\/\/\)[^/].*/{
21480             s//\1/
21481             q
21482           }
21483           /^X\(\/\/\)$/{
21484             s//\1/
21485             q
21486           }
21487           /^X\(\/\).*/{
21488             s//\1/
21489             q
21490           }
21491           s/.*/./; q'`/stamp-h$_am_stamp_count
21492  ;;
21493
21494   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21495 echo "$as_me: executing $ac_file commands" >&6;}
21496  ;;
21497   esac
21498
21499
21500   case $ac_file$ac_mode in
21501     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21502   # Strip MF so we end up with the name of the file.
21503   mf=`echo "$mf" | sed -e 's/:.*$//'`
21504   # Check whether this is an Automake generated Makefile or not.
21505   # We used to match only the files named `Makefile.in', but
21506   # some people rename them; so instead we look at the file content.
21507   # Grep'ing the first line is not enough: some people post-process
21508   # each Makefile.in and add a new line on top of each file to say so.
21509   # Grep'ing the whole file is not good either: AIX grep has a line
21510   # limit of 2048, but all sed's we know have understand at least 4000.
21511   if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21512     dirpart=`$as_dirname -- "$mf" ||
21513 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21514          X"$mf" : 'X\(//\)[^/]' \| \
21515          X"$mf" : 'X\(//\)$' \| \
21516          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21517 echo X"$mf" |
21518     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21519             s//\1/
21520             q
21521           }
21522           /^X\(\/\/\)[^/].*/{
21523             s//\1/
21524             q
21525           }
21526           /^X\(\/\/\)$/{
21527             s//\1/
21528             q
21529           }
21530           /^X\(\/\).*/{
21531             s//\1/
21532             q
21533           }
21534           s/.*/./; q'`
21535   else
21536     continue
21537   fi
21538   # Extract the definition of DEPDIR, am__include, and am__quote
21539   # from the Makefile without running `make'.
21540   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21541   test -z "$DEPDIR" && continue
21542   am__include=`sed -n 's/^am__include = //p' < "$mf"`
21543   test -z "am__include" && continue
21544   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21545   # When using ansi2knr, U may be empty or an underscore; expand it
21546   U=`sed -n 's/^U = //p' < "$mf"`
21547   # Find all dependency output files, they are included files with
21548   # $(DEPDIR) in their names.  We invoke sed twice because it is the
21549   # simplest approach to changing $(DEPDIR) to its actual value in the
21550   # expansion.
21551   for file in `sed -n "
21552     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21553        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21554     # Make sure the directory exists.
21555     test -f "$dirpart/$file" && continue
21556     fdir=`$as_dirname -- "$file" ||
21557 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21558          X"$file" : 'X\(//\)[^/]' \| \
21559          X"$file" : 'X\(//\)$' \| \
21560          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21561 echo X"$file" |
21562     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21563             s//\1/
21564             q
21565           }
21566           /^X\(\/\/\)[^/].*/{
21567             s//\1/
21568             q
21569           }
21570           /^X\(\/\/\)$/{
21571             s//\1/
21572             q
21573           }
21574           /^X\(\/\).*/{
21575             s//\1/
21576             q
21577           }
21578           s/.*/./; q'`
21579     { as_dir=$dirpart/$fdir
21580   case $as_dir in #(
21581   -*) as_dir=./$as_dir;;
21582   esac
21583   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21584     as_dirs=
21585     while :; do
21586       case $as_dir in #(
21587       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21588       *) as_qdir=$as_dir;;
21589       esac
21590       as_dirs="'$as_qdir' $as_dirs"
21591       as_dir=`$as_dirname -- "$as_dir" ||
21592 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21593          X"$as_dir" : 'X\(//\)[^/]' \| \
21594          X"$as_dir" : 'X\(//\)$' \| \
21595          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21596 echo X"$as_dir" |
21597     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21598             s//\1/
21599             q
21600           }
21601           /^X\(\/\/\)[^/].*/{
21602             s//\1/
21603             q
21604           }
21605           /^X\(\/\/\)$/{
21606             s//\1/
21607             q
21608           }
21609           /^X\(\/\).*/{
21610             s//\1/
21611             q
21612           }
21613           s/.*/./; q'`
21614       test -d "$as_dir" && break
21615     done
21616     test -z "$as_dirs" || eval "mkdir $as_dirs"
21617   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21618 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21619    { (exit 1); exit 1; }; }; }
21620     # echo "creating $dirpart/$file"
21621     echo '# dummy' > "$dirpart/$file"
21622   done
21623 done
21624  ;;
21625
21626   esac
21627 done # for ac_tag
21628
21629
21630 { (exit 0); exit 0; }
21631 _ACEOF
21632 chmod +x $CONFIG_STATUS
21633 ac_clean_files=$ac_clean_files_save
21634
21635
21636 # configure is writing to config.log, and then calls config.status.
21637 # config.status does its own redirection, appending to config.log.
21638 # Unfortunately, on DOS this fails, as config.log is still kept open
21639 # by configure, so config.status won't be able to write to it; its
21640 # output is simply discarded.  So we exec the FD to /dev/null,
21641 # effectively closing config.log, so it can be properly (re)opened and
21642 # appended to by config.status.  When coming back to configure, we
21643 # need to make the FD available again.
21644 if test "$no_create" != yes; then
21645   ac_cs_success=:
21646   ac_config_status_args=
21647   test "$silent" = yes &&
21648     ac_config_status_args="$ac_config_status_args --quiet"
21649   exec 5>/dev/null
21650   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21651   exec 5>>config.log
21652   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21653   # would make configure fail if this is the last instruction.
21654   $ac_cs_success || { (exit 1); exit 1; }
21655 fi
21656