]> git.sur5r.net Git - openldap/blob - contrib/ldapc++/configure
happy belated New Year
[openldap] / contrib / ldapc++ / configure
1 #! /bin/sh
2 # From configure.in OpenLDAP: pkg/ldap/contrib/ldapc++/configure.in,v 1.14 2008/06/23 09:08:36 ralf Exp .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for ldapcpplib  .
5 #
6 # Report bugs to <http://www.openldap.org/its/ >.
7 #
8 # Copyright 2000-2010 The OpenLDAP Foundation. All rights reserved.
9 # Restrictions apply, see COPYRIGHT and LICENSE files.
10 #
11 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
12 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## --------------------- ##
16 ## M4sh Initialization.  ##
17 ## --------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22   emulate sh
23   NULLCMD=:
24   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25   # is contrary to our usage.  Disable this feature.
26   alias -g '${1+"$@"}'='"$@"'
27   setopt NO_GLOB_SUBST
28 else
29   case `(set -o) 2>/dev/null` in
30   *posix*) set -o posix ;;
31 esac
32
33 fi
34
35
36
37
38 # PATH needs CR
39 # Avoid depending upon Character Ranges.
40 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
41 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
42 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
43 as_cr_digits='0123456789'
44 as_cr_alnum=$as_cr_Letters$as_cr_digits
45
46 # The user is always right.
47 if test "${PATH_SEPARATOR+set}" != set; then
48   echo "#! /bin/sh" >conf$$.sh
49   echo  "exit 0"   >>conf$$.sh
50   chmod +x conf$$.sh
51   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
52     PATH_SEPARATOR=';'
53   else
54     PATH_SEPARATOR=:
55   fi
56   rm -f conf$$.sh
57 fi
58
59 # Support unset when possible.
60 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
61   as_unset=unset
62 else
63   as_unset=false
64 fi
65
66
67 # IFS
68 # We need space, tab and new line, in precisely that order.  Quoting is
69 # there to prevent editors from complaining about space-tab.
70 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
71 # splitting by setting IFS to empty value.)
72 as_nl='
73 '
74 IFS=" ""        $as_nl"
75
76 # Find who we are.  Look in the path if we contain no directory separator.
77 case $0 in
78   *[\\/]* ) as_myself=$0 ;;
79   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
80 for as_dir in $PATH
81 do
82   IFS=$as_save_IFS
83   test -z "$as_dir" && as_dir=.
84   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
85 done
86 IFS=$as_save_IFS
87
88      ;;
89 esac
90 # We did not find ourselves, most probably we were run as `sh COMMAND'
91 # in which case we are not to be found in the path.
92 if test "x$as_myself" = x; then
93   as_myself=$0
94 fi
95 if test ! -f "$as_myself"; then
96   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
97   { (exit 1); exit 1; }
98 fi
99
100 # Work around bugs in pre-3.0 UWIN ksh.
101 for as_var in ENV MAIL MAILPATH
102 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
103 done
104 PS1='$ '
105 PS2='> '
106 PS4='+ '
107
108 # NLS nuisances.
109 for as_var in \
110   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
111   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
112   LC_TELEPHONE LC_TIME
113 do
114   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
115     eval $as_var=C; export $as_var
116   else
117     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
118   fi
119 done
120
121 # Required to use basename.
122 if expr a : '\(a\)' >/dev/null 2>&1 &&
123    test "X`expr 00001 : '.*\(...\)'`" = X001; then
124   as_expr=expr
125 else
126   as_expr=false
127 fi
128
129 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130   as_basename=basename
131 else
132   as_basename=false
133 fi
134
135
136 # Name of the executable.
137 as_me=`$as_basename -- "$0" ||
138 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
139          X"$0" : 'X\(//\)$' \| \
140          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
141 echo X/"$0" |
142     sed '/^.*\/\([^/][^/]*\)\/*$/{
143             s//\1/
144             q
145           }
146           /^X\/\(\/\/\)$/{
147             s//\1/
148             q
149           }
150           /^X\/\(\/\).*/{
151             s//\1/
152             q
153           }
154           s/.*/./; q'`
155
156 # CDPATH.
157 $as_unset CDPATH
158
159
160 if test "x$CONFIG_SHELL" = x; then
161   if (eval ":") 2>/dev/null; then
162   as_have_required=yes
163 else
164   as_have_required=no
165 fi
166
167   if test $as_have_required = yes &&     (eval ":
168 (as_func_return () {
169   (exit \$1)
170 }
171 as_func_success () {
172   as_func_return 0
173 }
174 as_func_failure () {
175   as_func_return 1
176 }
177 as_func_ret_success () {
178   return 0
179 }
180 as_func_ret_failure () {
181   return 1
182 }
183
184 exitcode=0
185 if as_func_success; then
186   :
187 else
188   exitcode=1
189   echo as_func_success failed.
190 fi
191
192 if as_func_failure; then
193   exitcode=1
194   echo as_func_failure succeeded.
195 fi
196
197 if as_func_ret_success; then
198   :
199 else
200   exitcode=1
201   echo as_func_ret_success failed.
202 fi
203
204 if as_func_ret_failure; then
205   exitcode=1
206   echo as_func_ret_failure succeeded.
207 fi
208
209 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
210   :
211 else
212   exitcode=1
213   echo positional parameters were not saved.
214 fi
215
216 test \$exitcode = 0) || { (exit 1); exit 1; }
217
218 (
219   as_lineno_1=\$LINENO
220   as_lineno_2=\$LINENO
221   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
222   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
223 ") 2> /dev/null; then
224   :
225 else
226   as_candidate_shells=
227     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
228 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
229 do
230   IFS=$as_save_IFS
231   test -z "$as_dir" && as_dir=.
232   case $as_dir in
233          /*)
234            for as_base in sh bash ksh sh5; do
235              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236            done;;
237        esac
238 done
239 IFS=$as_save_IFS
240
241
242       for as_shell in $as_candidate_shells $SHELL; do
243          # Try only shells that exist, to save several forks.
244          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
245                 { ("$as_shell") 2> /dev/null <<\_ASEOF
246 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
247   emulate sh
248   NULLCMD=:
249   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
250   # is contrary to our usage.  Disable this feature.
251   alias -g '${1+"$@"}'='"$@"'
252   setopt NO_GLOB_SUBST
253 else
254   case `(set -o) 2>/dev/null` in
255   *posix*) set -o posix ;;
256 esac
257
258 fi
259
260
261 :
262 _ASEOF
263 }; then
264   CONFIG_SHELL=$as_shell
265                as_have_required=yes
266                if { "$as_shell" 2> /dev/null <<\_ASEOF
267 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
268   emulate sh
269   NULLCMD=:
270   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
271   # is contrary to our usage.  Disable this feature.
272   alias -g '${1+"$@"}'='"$@"'
273   setopt NO_GLOB_SUBST
274 else
275   case `(set -o) 2>/dev/null` in
276   *posix*) set -o posix ;;
277 esac
278
279 fi
280
281
282 :
283 (as_func_return () {
284   (exit $1)
285 }
286 as_func_success () {
287   as_func_return 0
288 }
289 as_func_failure () {
290   as_func_return 1
291 }
292 as_func_ret_success () {
293   return 0
294 }
295 as_func_ret_failure () {
296   return 1
297 }
298
299 exitcode=0
300 if as_func_success; then
301   :
302 else
303   exitcode=1
304   echo as_func_success failed.
305 fi
306
307 if as_func_failure; then
308   exitcode=1
309   echo as_func_failure succeeded.
310 fi
311
312 if as_func_ret_success; then
313   :
314 else
315   exitcode=1
316   echo as_func_ret_success failed.
317 fi
318
319 if as_func_ret_failure; then
320   exitcode=1
321   echo as_func_ret_failure succeeded.
322 fi
323
324 if ( set x; as_func_ret_success y && test x = "$1" ); then
325   :
326 else
327   exitcode=1
328   echo positional parameters were not saved.
329 fi
330
331 test $exitcode = 0) || { (exit 1); exit 1; }
332
333 (
334   as_lineno_1=$LINENO
335   as_lineno_2=$LINENO
336   test "x$as_lineno_1" != "x$as_lineno_2" &&
337   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
338
339 _ASEOF
340 }; then
341   break
342 fi
343
344 fi
345
346       done
347
348       if test "x$CONFIG_SHELL" != x; then
349   for as_var in BASH_ENV ENV
350         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
351         done
352         export CONFIG_SHELL
353         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
354 fi
355
356
357     if test $as_have_required = no; then
358   echo This script requires a shell more modern than all the
359       echo shells that I found on your system.  Please install a
360       echo modern shell, or manually run the script under such a
361       echo shell if you do have one.
362       { (exit 1); exit 1; }
363 fi
364
365
366 fi
367
368 fi
369
370
371
372 (eval "as_func_return () {
373   (exit \$1)
374 }
375 as_func_success () {
376   as_func_return 0
377 }
378 as_func_failure () {
379   as_func_return 1
380 }
381 as_func_ret_success () {
382   return 0
383 }
384 as_func_ret_failure () {
385   return 1
386 }
387
388 exitcode=0
389 if as_func_success; then
390   :
391 else
392   exitcode=1
393   echo as_func_success failed.
394 fi
395
396 if as_func_failure; then
397   exitcode=1
398   echo as_func_failure succeeded.
399 fi
400
401 if as_func_ret_success; then
402   :
403 else
404   exitcode=1
405   echo as_func_ret_success failed.
406 fi
407
408 if as_func_ret_failure; then
409   exitcode=1
410   echo as_func_ret_failure succeeded.
411 fi
412
413 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
414   :
415 else
416   exitcode=1
417   echo positional parameters were not saved.
418 fi
419
420 test \$exitcode = 0") || {
421   echo No shell found that supports shell functions.
422   echo Please tell autoconf@gnu.org about your system,
423   echo including any error possibly output before this
424   echo message
425 }
426
427
428
429   as_lineno_1=$LINENO
430   as_lineno_2=$LINENO
431   test "x$as_lineno_1" != "x$as_lineno_2" &&
432   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
433
434   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
435   # uniformly replaced by the line number.  The first 'sed' inserts a
436   # line-number line after each line using $LINENO; the second 'sed'
437   # does the real work.  The second script uses 'N' to pair each
438   # line-number line with the line containing $LINENO, and appends
439   # trailing '-' during substitution so that $LINENO is not a special
440   # case at line end.
441   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
442   # scripts with optimization help from Paolo Bonzini.  Blame Lee
443   # E. McMahon (1931-1989) for sed's syntax.  :-)
444   sed -n '
445     p
446     /[$]LINENO/=
447   ' <$as_myself |
448     sed '
449       s/[$]LINENO.*/&-/
450       t lineno
451       b
452       :lineno
453       N
454       :loop
455       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
456       t loop
457       s/-\n.*//
458     ' >$as_me.lineno &&
459   chmod +x "$as_me.lineno" ||
460     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
461    { (exit 1); exit 1; }; }
462
463   # Don't try to exec as it changes $[0], causing all sort of problems
464   # (the dirname of $[0] is not the place where we might find the
465   # original and so on.  Autoconf is especially sensitive to this).
466   . "./$as_me.lineno"
467   # Exit status is that of the last command.
468   exit
469 }
470
471
472 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
473   as_dirname=dirname
474 else
475   as_dirname=false
476 fi
477
478 ECHO_C= ECHO_N= ECHO_T=
479 case `echo -n x` in
480 -n*)
481   case `echo 'x\c'` in
482   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
483   *)   ECHO_C='\c';;
484   esac;;
485 *)
486   ECHO_N='-n';;
487 esac
488
489 if expr a : '\(a\)' >/dev/null 2>&1 &&
490    test "X`expr 00001 : '.*\(...\)'`" = X001; then
491   as_expr=expr
492 else
493   as_expr=false
494 fi
495
496 rm -f conf$$ conf$$.exe conf$$.file
497 if test -d conf$$.dir; then
498   rm -f conf$$.dir/conf$$.file
499 else
500   rm -f conf$$.dir
501   mkdir conf$$.dir
502 fi
503 echo >conf$$.file
504 if ln -s conf$$.file conf$$ 2>/dev/null; then
505   as_ln_s='ln -s'
506   # ... but there are two gotchas:
507   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
508   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
509   # In both cases, we have to default to `cp -p'.
510   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
511     as_ln_s='cp -p'
512 elif ln conf$$.file conf$$ 2>/dev/null; then
513   as_ln_s=ln
514 else
515   as_ln_s='cp -p'
516 fi
517 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
518 rmdir conf$$.dir 2>/dev/null
519
520 if mkdir -p . 2>/dev/null; then
521   as_mkdir_p=:
522 else
523   test -d ./-p && rmdir ./-p
524   as_mkdir_p=false
525 fi
526
527 if test -x / >/dev/null 2>&1; then
528   as_test_x='test -x'
529 else
530   if ls -dL / >/dev/null 2>&1; then
531     as_ls_L_option=L
532   else
533     as_ls_L_option=
534   fi
535   as_test_x='
536     eval sh -c '\''
537       if test -d "$1"; then
538         test -d "$1/.";
539       else
540         case $1 in
541         -*)set "./$1";;
542         esac;
543         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
544         ???[sx]*):;;*)false;;esac;fi
545     '\'' sh
546   '
547 fi
548 as_executable_p=$as_test_x
549
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557
558
559 # Check that we are running under the correct shell.
560 SHELL=${CONFIG_SHELL-/bin/sh}
561
562 case X$ECHO in
563 X*--fallback-echo)
564   # Remove one level of quotation (which was required for Make).
565   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
566   ;;
567 esac
568
569 echo=${ECHO-echo}
570 if test "X$1" = X--no-reexec; then
571   # Discard the --no-reexec flag, and continue.
572   shift
573 elif test "X$1" = X--fallback-echo; then
574   # Avoid inline document here, it may be left over
575   :
576 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
577   # Yippee, $echo works!
578   :
579 else
580   # Restart under the correct shell.
581   exec $SHELL "$0" --no-reexec ${1+"$@"}
582 fi
583
584 if test "X$1" = X--fallback-echo; then
585   # used as fallback echo
586   shift
587   cat <<EOF
588 $*
589 EOF
590   exit 0
591 fi
592
593 # The HP-UX ksh and POSIX shell print the target directory to stdout
594 # if CDPATH is set.
595 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
596
597 if test -z "$ECHO"; then
598 if test "X${echo_test_string+set}" != Xset; then
599 # find a string as large as possible, as long as the shell can cope with it
600   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
601     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
602     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
603        echo_test_string=`eval $cmd` &&
604        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
605     then
606       break
607     fi
608   done
609 fi
610
611 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
612    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
613    test "X$echo_testing_string" = "X$echo_test_string"; then
614   :
615 else
616   # The Solaris, AIX, and Digital Unix default echo programs unquote
617   # backslashes.  This makes it impossible to quote backslashes using
618   #   echo "$something" | sed 's/\\/\\\\/g'
619   #
620   # So, first we look for a working echo in the user's PATH.
621
622   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
623   for dir in $PATH /usr/ucb; do
624     IFS="$lt_save_ifs"
625     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
626        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
627        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
628        test "X$echo_testing_string" = "X$echo_test_string"; then
629       echo="$dir/echo"
630       break
631     fi
632   done
633   IFS="$lt_save_ifs"
634
635   if test "X$echo" = Xecho; then
636     # We didn't find a better echo, so look for alternatives.
637     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
638        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
639        test "X$echo_testing_string" = "X$echo_test_string"; then
640       # This shell has a builtin print -r that does the trick.
641       echo='print -r'
642     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
643          test "X$CONFIG_SHELL" != X/bin/ksh; then
644       # If we have ksh, try running configure again with it.
645       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
646       export ORIGINAL_CONFIG_SHELL
647       CONFIG_SHELL=/bin/ksh
648       export CONFIG_SHELL
649       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
650     else
651       # Try using printf.
652       echo='printf %s\n'
653       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
654          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
655          test "X$echo_testing_string" = "X$echo_test_string"; then
656         # Cool, printf works
657         :
658       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
659            test "X$echo_testing_string" = 'X\t' &&
660            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
661            test "X$echo_testing_string" = "X$echo_test_string"; then
662         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
663         export CONFIG_SHELL
664         SHELL="$CONFIG_SHELL"
665         export SHELL
666         echo="$CONFIG_SHELL $0 --fallback-echo"
667       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
668            test "X$echo_testing_string" = 'X\t' &&
669            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
670            test "X$echo_testing_string" = "X$echo_test_string"; then
671         echo="$CONFIG_SHELL $0 --fallback-echo"
672       else
673         # maybe with a smaller string...
674         prev=:
675
676         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
677           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
678           then
679             break
680           fi
681           prev="$cmd"
682         done
683
684         if test "$prev" != 'sed 50q "$0"'; then
685           echo_test_string=`eval $prev`
686           export echo_test_string
687           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
688         else
689           # Oops.  We lost completely, so just stick with echo.
690           echo=echo
691         fi
692       fi
693     fi
694   fi
695 fi
696 fi
697
698 # Copy echo and quote the copy suitably for passing to libtool from
699 # the Makefile, instead of quoting the original, which is used later.
700 ECHO=$echo
701 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
702    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
703 fi
704
705
706
707
708 tagnames=${tagnames+${tagnames},}CXX
709
710 tagnames=${tagnames+${tagnames},}F77
711
712 exec 7<&0 </dev/null 6>&1
713
714 # Name of the host.
715 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
716 # so uname gets run too.
717 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
718
719 #
720 # Initializations.
721 #
722 ac_default_prefix=/usr/local
723 ac_clean_files=
724 ac_config_libobj_dir=.
725 LIBOBJS=
726 cross_compiling=no
727 subdirs=
728 MFLAGS=
729 MAKEFLAGS=
730 SHELL=${CONFIG_SHELL-/bin/sh}
731
732 # Identity of this package.
733 PACKAGE_NAME='ldapcpplib'
734 PACKAGE_TARNAME='ldapcpplib'
735 PACKAGE_VERSION=' '
736 PACKAGE_STRING='ldapcpplib  '
737 PACKAGE_BUGREPORT='http://www.openldap.org/its/ '
738
739 ac_unique_file="src/LDAPConnection.h"
740 # Factoring default headers for most tests.
741 ac_includes_default="\
742 #include <stdio.h>
743 #ifdef HAVE_SYS_TYPES_H
744 # include <sys/types.h>
745 #endif
746 #ifdef HAVE_SYS_STAT_H
747 # include <sys/stat.h>
748 #endif
749 #ifdef STDC_HEADERS
750 # include <stdlib.h>
751 # include <stddef.h>
752 #else
753 # ifdef HAVE_STDLIB_H
754 #  include <stdlib.h>
755 # endif
756 #endif
757 #ifdef HAVE_STRING_H
758 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
759 #  include <memory.h>
760 # endif
761 # include <string.h>
762 #endif
763 #ifdef HAVE_STRINGS_H
764 # include <strings.h>
765 #endif
766 #ifdef HAVE_INTTYPES_H
767 # include <inttypes.h>
768 #endif
769 #ifdef HAVE_STDINT_H
770 # include <stdint.h>
771 #endif
772 #ifdef HAVE_UNISTD_H
773 # include <unistd.h>
774 #endif"
775
776 ac_subst_vars='SHELL
777 PATH_SEPARATOR
778 PACKAGE_NAME
779 PACKAGE_TARNAME
780 PACKAGE_VERSION
781 PACKAGE_STRING
782 PACKAGE_BUGREPORT
783 exec_prefix
784 prefix
785 program_transform_name
786 bindir
787 sbindir
788 libexecdir
789 datarootdir
790 datadir
791 sysconfdir
792 sharedstatedir
793 localstatedir
794 includedir
795 oldincludedir
796 docdir
797 infodir
798 htmldir
799 dvidir
800 pdfdir
801 psdir
802 libdir
803 localedir
804 mandir
805 DEFS
806 ECHO_C
807 ECHO_N
808 ECHO_T
809 LIBS
810 build_alias
811 host_alias
812 target_alias
813 INSTALL_PROGRAM
814 INSTALL_SCRIPT
815 INSTALL_DATA
816 am__isrc
817 CYGPATH_W
818 PACKAGE
819 VERSION
820 ACLOCAL
821 AUTOCONF
822 AUTOMAKE
823 AUTOHEADER
824 MAKEINFO
825 install_sh
826 STRIP
827 INSTALL_STRIP_PROGRAM
828 mkdir_p
829 AWK
830 SET_MAKE
831 am__leading_dot
832 AMTAR
833 am__tar
834 am__untar
835 OPENLDAP_CPP_API_VERSION
836 CXX
837 CXXFLAGS
838 LDFLAGS
839 CPPFLAGS
840 ac_ct_CXX
841 EXEEXT
842 OBJEXT
843 DEPDIR
844 am__include
845 am__quote
846 AMDEP_TRUE
847 AMDEP_FALSE
848 AMDEPBACKSLASH
849 CXXDEPMODE
850 am__fastdepCXX_TRUE
851 am__fastdepCXX_FALSE
852 build
853 build_cpu
854 build_vendor
855 build_os
856 host
857 host_cpu
858 host_vendor
859 host_os
860 CC
861 CFLAGS
862 ac_ct_CC
863 CCDEPMODE
864 am__fastdepCC_TRUE
865 am__fastdepCC_FALSE
866 SED
867 GREP
868 EGREP
869 LN_S
870 ECHO
871 AR
872 RANLIB
873 DSYMUTIL
874 NMEDIT
875 CPP
876 CXXCPP
877 F77
878 FFLAGS
879 ac_ct_F77
880 LIBTOOL
881 LIBOBJS
882 LTLIBOBJS'
883 ac_subst_files=''
884       ac_precious_vars='build_alias
885 host_alias
886 target_alias
887 CXX
888 CXXFLAGS
889 LDFLAGS
890 LIBS
891 CPPFLAGS
892 CCC
893 CC
894 CFLAGS
895 CPP
896 CXXCPP
897 F77
898 FFLAGS'
899
900
901 # Initialize some variables set by options.
902 ac_init_help=
903 ac_init_version=false
904 # The variables have the same names as the options, with
905 # dashes changed to underlines.
906 cache_file=/dev/null
907 exec_prefix=NONE
908 no_create=
909 no_recursion=
910 prefix=NONE
911 program_prefix=NONE
912 program_suffix=NONE
913 program_transform_name=s,x,x,
914 silent=
915 site=
916 srcdir=
917 verbose=
918 x_includes=NONE
919 x_libraries=NONE
920
921 # Installation directory options.
922 # These are left unexpanded so users can "make install exec_prefix=/foo"
923 # and all the variables that are supposed to be based on exec_prefix
924 # by default will actually change.
925 # Use braces instead of parens because sh, perl, etc. also accept them.
926 # (The list follows the same order as the GNU Coding Standards.)
927 bindir='${exec_prefix}/bin'
928 sbindir='${exec_prefix}/sbin'
929 libexecdir='${exec_prefix}/libexec'
930 datarootdir='${prefix}/share'
931 datadir='${datarootdir}'
932 sysconfdir='${prefix}/etc'
933 sharedstatedir='${prefix}/com'
934 localstatedir='${prefix}/var'
935 includedir='${prefix}/include'
936 oldincludedir='/usr/include'
937 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
938 infodir='${datarootdir}/info'
939 htmldir='${docdir}'
940 dvidir='${docdir}'
941 pdfdir='${docdir}'
942 psdir='${docdir}'
943 libdir='${exec_prefix}/lib'
944 localedir='${datarootdir}/locale'
945 mandir='${datarootdir}/man'
946
947 ac_prev=
948 ac_dashdash=
949 for ac_option
950 do
951   # If the previous option needs an argument, assign it.
952   if test -n "$ac_prev"; then
953     eval $ac_prev=\$ac_option
954     ac_prev=
955     continue
956   fi
957
958   case $ac_option in
959   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
960   *)    ac_optarg=yes ;;
961   esac
962
963   # Accept the important Cygnus configure options, so we can diagnose typos.
964
965   case $ac_dashdash$ac_option in
966   --)
967     ac_dashdash=yes ;;
968
969   -bindir | --bindir | --bindi | --bind | --bin | --bi)
970     ac_prev=bindir ;;
971   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
972     bindir=$ac_optarg ;;
973
974   -build | --build | --buil | --bui | --bu)
975     ac_prev=build_alias ;;
976   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
977     build_alias=$ac_optarg ;;
978
979   -cache-file | --cache-file | --cache-fil | --cache-fi \
980   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
981     ac_prev=cache_file ;;
982   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
983   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
984     cache_file=$ac_optarg ;;
985
986   --config-cache | -C)
987     cache_file=config.cache ;;
988
989   -datadir | --datadir | --datadi | --datad)
990     ac_prev=datadir ;;
991   -datadir=* | --datadir=* | --datadi=* | --datad=*)
992     datadir=$ac_optarg ;;
993
994   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
995   | --dataroo | --dataro | --datar)
996     ac_prev=datarootdir ;;
997   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
998   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
999     datarootdir=$ac_optarg ;;
1000
1001   -disable-* | --disable-*)
1002     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1003     # Reject names that are not valid shell variable names.
1004     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1005       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1006    { (exit 1); exit 1; }; }
1007     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1008     eval enable_$ac_feature=no ;;
1009
1010   -docdir | --docdir | --docdi | --doc | --do)
1011     ac_prev=docdir ;;
1012   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1013     docdir=$ac_optarg ;;
1014
1015   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1016     ac_prev=dvidir ;;
1017   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1018     dvidir=$ac_optarg ;;
1019
1020   -enable-* | --enable-*)
1021     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1022     # Reject names that are not valid shell variable names.
1023     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1024       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1025    { (exit 1); exit 1; }; }
1026     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1027     eval enable_$ac_feature=\$ac_optarg ;;
1028
1029   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1030   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1031   | --exec | --exe | --ex)
1032     ac_prev=exec_prefix ;;
1033   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1034   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1035   | --exec=* | --exe=* | --ex=*)
1036     exec_prefix=$ac_optarg ;;
1037
1038   -gas | --gas | --ga | --g)
1039     # Obsolete; use --with-gas.
1040     with_gas=yes ;;
1041
1042   -help | --help | --hel | --he | -h)
1043     ac_init_help=long ;;
1044   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1045     ac_init_help=recursive ;;
1046   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1047     ac_init_help=short ;;
1048
1049   -host | --host | --hos | --ho)
1050     ac_prev=host_alias ;;
1051   -host=* | --host=* | --hos=* | --ho=*)
1052     host_alias=$ac_optarg ;;
1053
1054   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1055     ac_prev=htmldir ;;
1056   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1057   | --ht=*)
1058     htmldir=$ac_optarg ;;
1059
1060   -includedir | --includedir | --includedi | --included | --include \
1061   | --includ | --inclu | --incl | --inc)
1062     ac_prev=includedir ;;
1063   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1064   | --includ=* | --inclu=* | --incl=* | --inc=*)
1065     includedir=$ac_optarg ;;
1066
1067   -infodir | --infodir | --infodi | --infod | --info | --inf)
1068     ac_prev=infodir ;;
1069   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1070     infodir=$ac_optarg ;;
1071
1072   -libdir | --libdir | --libdi | --libd)
1073     ac_prev=libdir ;;
1074   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1075     libdir=$ac_optarg ;;
1076
1077   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1078   | --libexe | --libex | --libe)
1079     ac_prev=libexecdir ;;
1080   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1081   | --libexe=* | --libex=* | --libe=*)
1082     libexecdir=$ac_optarg ;;
1083
1084   -localedir | --localedir | --localedi | --localed | --locale)
1085     ac_prev=localedir ;;
1086   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1087     localedir=$ac_optarg ;;
1088
1089   -localstatedir | --localstatedir | --localstatedi | --localstated \
1090   | --localstate | --localstat | --localsta | --localst | --locals)
1091     ac_prev=localstatedir ;;
1092   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1093   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1094     localstatedir=$ac_optarg ;;
1095
1096   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1097     ac_prev=mandir ;;
1098   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1099     mandir=$ac_optarg ;;
1100
1101   -nfp | --nfp | --nf)
1102     # Obsolete; use --without-fp.
1103     with_fp=no ;;
1104
1105   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1106   | --no-cr | --no-c | -n)
1107     no_create=yes ;;
1108
1109   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1110   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1111     no_recursion=yes ;;
1112
1113   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1114   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1115   | --oldin | --oldi | --old | --ol | --o)
1116     ac_prev=oldincludedir ;;
1117   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1118   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1119   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1120     oldincludedir=$ac_optarg ;;
1121
1122   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1123     ac_prev=prefix ;;
1124   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1125     prefix=$ac_optarg ;;
1126
1127   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1128   | --program-pre | --program-pr | --program-p)
1129     ac_prev=program_prefix ;;
1130   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1131   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1132     program_prefix=$ac_optarg ;;
1133
1134   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1135   | --program-suf | --program-su | --program-s)
1136     ac_prev=program_suffix ;;
1137   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1138   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1139     program_suffix=$ac_optarg ;;
1140
1141   -program-transform-name | --program-transform-name \
1142   | --program-transform-nam | --program-transform-na \
1143   | --program-transform-n | --program-transform- \
1144   | --program-transform | --program-transfor \
1145   | --program-transfo | --program-transf \
1146   | --program-trans | --program-tran \
1147   | --progr-tra | --program-tr | --program-t)
1148     ac_prev=program_transform_name ;;
1149   -program-transform-name=* | --program-transform-name=* \
1150   | --program-transform-nam=* | --program-transform-na=* \
1151   | --program-transform-n=* | --program-transform-=* \
1152   | --program-transform=* | --program-transfor=* \
1153   | --program-transfo=* | --program-transf=* \
1154   | --program-trans=* | --program-tran=* \
1155   | --progr-tra=* | --program-tr=* | --program-t=*)
1156     program_transform_name=$ac_optarg ;;
1157
1158   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1159     ac_prev=pdfdir ;;
1160   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1161     pdfdir=$ac_optarg ;;
1162
1163   -psdir | --psdir | --psdi | --psd | --ps)
1164     ac_prev=psdir ;;
1165   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1166     psdir=$ac_optarg ;;
1167
1168   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1169   | -silent | --silent | --silen | --sile | --sil)
1170     silent=yes ;;
1171
1172   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1173     ac_prev=sbindir ;;
1174   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1175   | --sbi=* | --sb=*)
1176     sbindir=$ac_optarg ;;
1177
1178   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1179   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1180   | --sharedst | --shareds | --shared | --share | --shar \
1181   | --sha | --sh)
1182     ac_prev=sharedstatedir ;;
1183   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1184   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1185   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1186   | --sha=* | --sh=*)
1187     sharedstatedir=$ac_optarg ;;
1188
1189   -site | --site | --sit)
1190     ac_prev=site ;;
1191   -site=* | --site=* | --sit=*)
1192     site=$ac_optarg ;;
1193
1194   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1195     ac_prev=srcdir ;;
1196   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1197     srcdir=$ac_optarg ;;
1198
1199   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1200   | --syscon | --sysco | --sysc | --sys | --sy)
1201     ac_prev=sysconfdir ;;
1202   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1203   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1204     sysconfdir=$ac_optarg ;;
1205
1206   -target | --target | --targe | --targ | --tar | --ta | --t)
1207     ac_prev=target_alias ;;
1208   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1209     target_alias=$ac_optarg ;;
1210
1211   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1212     verbose=yes ;;
1213
1214   -version | --version | --versio | --versi | --vers | -V)
1215     ac_init_version=: ;;
1216
1217   -with-* | --with-*)
1218     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1219     # Reject names that are not valid shell variable names.
1220     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1221       { echo "$as_me: error: invalid package name: $ac_package" >&2
1222    { (exit 1); exit 1; }; }
1223     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1224     eval with_$ac_package=\$ac_optarg ;;
1225
1226   -without-* | --without-*)
1227     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1228     # Reject names that are not valid shell variable names.
1229     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1230       { echo "$as_me: error: invalid package name: $ac_package" >&2
1231    { (exit 1); exit 1; }; }
1232     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1233     eval with_$ac_package=no ;;
1234
1235   --x)
1236     # Obsolete; use --with-x.
1237     with_x=yes ;;
1238
1239   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1240   | --x-incl | --x-inc | --x-in | --x-i)
1241     ac_prev=x_includes ;;
1242   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1243   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1244     x_includes=$ac_optarg ;;
1245
1246   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1247   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1248     ac_prev=x_libraries ;;
1249   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1250   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1251     x_libraries=$ac_optarg ;;
1252
1253   -*) { echo "$as_me: error: unrecognized option: $ac_option
1254 Try \`$0 --help' for more information." >&2
1255    { (exit 1); exit 1; }; }
1256     ;;
1257
1258   *=*)
1259     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1260     # Reject names that are not valid shell variable names.
1261     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1262       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1263    { (exit 1); exit 1; }; }
1264     eval $ac_envvar=\$ac_optarg
1265     export $ac_envvar ;;
1266
1267   *)
1268     # FIXME: should be removed in autoconf 3.0.
1269     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1270     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1271       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1272     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1273     ;;
1274
1275   esac
1276 done
1277
1278 if test -n "$ac_prev"; then
1279   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1280   { echo "$as_me: error: missing argument to $ac_option" >&2
1281    { (exit 1); exit 1; }; }
1282 fi
1283
1284 # Be sure to have absolute directory names.
1285 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1286                 datadir sysconfdir sharedstatedir localstatedir includedir \
1287                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1288                 libdir localedir mandir
1289 do
1290   eval ac_val=\$$ac_var
1291   case $ac_val in
1292     [\\/$]* | ?:[\\/]* )  continue;;
1293     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1294   esac
1295   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1296    { (exit 1); exit 1; }; }
1297 done
1298
1299 # There might be people who depend on the old broken behavior: `$host'
1300 # used to hold the argument of --host etc.
1301 # FIXME: To remove some day.
1302 build=$build_alias
1303 host=$host_alias
1304 target=$target_alias
1305
1306 # FIXME: To remove some day.
1307 if test "x$host_alias" != x; then
1308   if test "x$build_alias" = x; then
1309     cross_compiling=maybe
1310     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1311     If a cross compiler is detected then cross compile mode will be used." >&2
1312   elif test "x$build_alias" != "x$host_alias"; then
1313     cross_compiling=yes
1314   fi
1315 fi
1316
1317 ac_tool_prefix=
1318 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1319
1320 test "$silent" = yes && exec 6>/dev/null
1321
1322
1323 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1324 ac_ls_di=`ls -di .` &&
1325 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1326   { echo "$as_me: error: Working directory cannot be determined" >&2
1327    { (exit 1); exit 1; }; }
1328 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1329   { echo "$as_me: error: pwd does not report name of working directory" >&2
1330    { (exit 1); exit 1; }; }
1331
1332
1333 # Find the source files, if location was not specified.
1334 if test -z "$srcdir"; then
1335   ac_srcdir_defaulted=yes
1336   # Try the directory containing this script, then the parent directory.
1337   ac_confdir=`$as_dirname -- "$0" ||
1338 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1339          X"$0" : 'X\(//\)[^/]' \| \
1340          X"$0" : 'X\(//\)$' \| \
1341          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1342 echo X"$0" |
1343     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1344             s//\1/
1345             q
1346           }
1347           /^X\(\/\/\)[^/].*/{
1348             s//\1/
1349             q
1350           }
1351           /^X\(\/\/\)$/{
1352             s//\1/
1353             q
1354           }
1355           /^X\(\/\).*/{
1356             s//\1/
1357             q
1358           }
1359           s/.*/./; q'`
1360   srcdir=$ac_confdir
1361   if test ! -r "$srcdir/$ac_unique_file"; then
1362     srcdir=..
1363   fi
1364 else
1365   ac_srcdir_defaulted=no
1366 fi
1367 if test ! -r "$srcdir/$ac_unique_file"; then
1368   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1369   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1370    { (exit 1); exit 1; }; }
1371 fi
1372 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1373 ac_abs_confdir=`(
1374         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1375    { (exit 1); exit 1; }; }
1376         pwd)`
1377 # When building in place, set srcdir=.
1378 if test "$ac_abs_confdir" = "$ac_pwd"; then
1379   srcdir=.
1380 fi
1381 # Remove unnecessary trailing slashes from srcdir.
1382 # Double slashes in file names in object file debugging info
1383 # mess up M-x gdb in Emacs.
1384 case $srcdir in
1385 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1386 esac
1387 for ac_var in $ac_precious_vars; do
1388   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1389   eval ac_env_${ac_var}_value=\$${ac_var}
1390   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1391   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1392 done
1393
1394 #
1395 # Report the --help message.
1396 #
1397 if test "$ac_init_help" = "long"; then
1398   # Omit some internal or obsolete options to make the list less imposing.
1399   # This message is too long to be a string in the A/UX 3.1 sh.
1400   cat <<_ACEOF
1401 \`configure' configures ldapcpplib   to adapt to many kinds of systems.
1402
1403 Usage: $0 [OPTION]... [VAR=VALUE]...
1404
1405 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1406 VAR=VALUE.  See below for descriptions of some of the useful variables.
1407
1408 Defaults for the options are specified in brackets.
1409
1410 Configuration:
1411   -h, --help              display this help and exit
1412       --help=short        display options specific to this package
1413       --help=recursive    display the short help of all the included packages
1414   -V, --version           display version information and exit
1415   -q, --quiet, --silent   do not print \`checking...' messages
1416       --cache-file=FILE   cache test results in FILE [disabled]
1417   -C, --config-cache      alias for \`--cache-file=config.cache'
1418   -n, --no-create         do not create output files
1419       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1420
1421 Installation directories:
1422   --prefix=PREFIX         install architecture-independent files in PREFIX
1423                           [$ac_default_prefix]
1424   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1425                           [PREFIX]
1426
1427 By default, \`make install' will install all the files in
1428 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1429 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1430 for instance \`--prefix=\$HOME'.
1431
1432 For better control, use the options below.
1433
1434 Fine tuning of the installation directories:
1435   --bindir=DIR           user executables [EPREFIX/bin]
1436   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1437   --libexecdir=DIR       program executables [EPREFIX/libexec]
1438   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1439   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1440   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1441   --libdir=DIR           object code libraries [EPREFIX/lib]
1442   --includedir=DIR       C header files [PREFIX/include]
1443   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1444   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1445   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1446   --infodir=DIR          info documentation [DATAROOTDIR/info]
1447   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1448   --mandir=DIR           man documentation [DATAROOTDIR/man]
1449   --docdir=DIR           documentation root [DATAROOTDIR/doc/ldapcpplib]
1450   --htmldir=DIR          html documentation [DOCDIR]
1451   --dvidir=DIR           dvi documentation [DOCDIR]
1452   --pdfdir=DIR           pdf documentation [DOCDIR]
1453   --psdir=DIR            ps documentation [DOCDIR]
1454 _ACEOF
1455
1456   cat <<\_ACEOF
1457
1458 Program names:
1459   --program-prefix=PREFIX            prepend PREFIX to installed program names
1460   --program-suffix=SUFFIX            append SUFFIX to installed program names
1461   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1462
1463 System types:
1464   --build=BUILD     configure for building on BUILD [guessed]
1465   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1466 _ACEOF
1467 fi
1468
1469 if test -n "$ac_init_help"; then
1470   case $ac_init_help in
1471      short | recursive ) echo "Configuration of ldapcpplib  :";;
1472    esac
1473   cat <<\_ACEOF
1474
1475 Optional Features:
1476   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1477   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1478   --disable-dependency-tracking  speeds up one-time build
1479   --enable-dependency-tracking   do not reject slow dependency extractors
1480   --enable-shared[=PKGS]  build shared libraries [default=yes]
1481   --enable-static[=PKGS]  build static libraries [default=yes]
1482   --enable-fast-install[=PKGS]
1483                           optimize for fast installation [default=yes]
1484   --disable-libtool-lock  avoid locking (might break parallel builds)
1485   --enable-debug
1486
1487 Optional Packages:
1488   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1489   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1490   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1491   --with-pic              try to use only PIC/non-PIC objects [default=use
1492                           both]
1493   --with-tags[=TAGS]      include additional configurations [automatic]
1494   --with-libldap=DIR          Path to the libldap library /usr/local/lib
1495   --with-ldap-includes=DIR    Path to the libldap include files /usr/local/include
1496
1497 Some influential environment variables:
1498   CXX         C++ compiler command
1499   CXXFLAGS    C++ compiler flags
1500   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1501               nonstandard directory <lib dir>
1502   LIBS        libraries to pass to the linker, e.g. -l<library>
1503   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1504               you have headers in a nonstandard directory <include dir>
1505   CC          C compiler command
1506   CFLAGS      C compiler flags
1507   CPP         C preprocessor
1508   CXXCPP      C++ preprocessor
1509   F77         Fortran 77 compiler command
1510   FFLAGS      Fortran 77 compiler flags
1511
1512 Use these variables to override the choices made by `configure' or to help
1513 it to find libraries and programs with nonstandard names/locations.
1514
1515 Report bugs to <http://www.openldap.org/its/ >.
1516 _ACEOF
1517 ac_status=$?
1518 fi
1519
1520 if test "$ac_init_help" = "recursive"; then
1521   # If there are subdirs, report their specific --help.
1522   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1523     test -d "$ac_dir" || continue
1524     ac_builddir=.
1525
1526 case "$ac_dir" in
1527 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1528 *)
1529   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1530   # A ".." for each directory in $ac_dir_suffix.
1531   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1532   case $ac_top_builddir_sub in
1533   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1534   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1535   esac ;;
1536 esac
1537 ac_abs_top_builddir=$ac_pwd
1538 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1539 # for backward compatibility:
1540 ac_top_builddir=$ac_top_build_prefix
1541
1542 case $srcdir in
1543   .)  # We are building in place.
1544     ac_srcdir=.
1545     ac_top_srcdir=$ac_top_builddir_sub
1546     ac_abs_top_srcdir=$ac_pwd ;;
1547   [\\/]* | ?:[\\/]* )  # Absolute name.
1548     ac_srcdir=$srcdir$ac_dir_suffix;
1549     ac_top_srcdir=$srcdir
1550     ac_abs_top_srcdir=$srcdir ;;
1551   *) # Relative name.
1552     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1553     ac_top_srcdir=$ac_top_build_prefix$srcdir
1554     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1555 esac
1556 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1557
1558     cd "$ac_dir" || { ac_status=$?; continue; }
1559     # Check for guested configure.
1560     if test -f "$ac_srcdir/configure.gnu"; then
1561       echo &&
1562       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1563     elif test -f "$ac_srcdir/configure"; then
1564       echo &&
1565       $SHELL "$ac_srcdir/configure" --help=recursive
1566     else
1567       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1568     fi || ac_status=$?
1569     cd "$ac_pwd" || { ac_status=$?; break; }
1570   done
1571 fi
1572
1573 test -n "$ac_init_help" && exit $ac_status
1574 if $ac_init_version; then
1575   cat <<\_ACEOF
1576 ldapcpplib configure
1577 generated by GNU Autoconf 2.61
1578
1579 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1580 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1581 This configure script is free software; the Free Software Foundation
1582 gives unlimited permission to copy, distribute and modify it.
1583
1584 Copyright 2000-2010 The OpenLDAP Foundation. All rights reserved.
1585 Restrictions apply, see COPYRIGHT and LICENSE files.
1586 _ACEOF
1587   exit
1588 fi
1589 cat >config.log <<_ACEOF
1590 This file contains any messages produced by compilers while
1591 running configure, to aid debugging if configure makes a mistake.
1592
1593 It was created by ldapcpplib $as_me  , which was
1594 generated by GNU Autoconf 2.61.  Invocation command line was
1595
1596   $ $0 $@
1597
1598 _ACEOF
1599 exec 5>>config.log
1600 {
1601 cat <<_ASUNAME
1602 ## --------- ##
1603 ## Platform. ##
1604 ## --------- ##
1605
1606 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1607 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1608 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1609 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1610 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1611
1612 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1613 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1614
1615 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1616 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1617 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1618 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1619 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1620 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1621 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1622
1623 _ASUNAME
1624
1625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1626 for as_dir in $PATH
1627 do
1628   IFS=$as_save_IFS
1629   test -z "$as_dir" && as_dir=.
1630   echo "PATH: $as_dir"
1631 done
1632 IFS=$as_save_IFS
1633
1634 } >&5
1635
1636 cat >&5 <<_ACEOF
1637
1638
1639 ## ----------- ##
1640 ## Core tests. ##
1641 ## ----------- ##
1642
1643 _ACEOF
1644
1645
1646 # Keep a trace of the command line.
1647 # Strip out --no-create and --no-recursion so they do not pile up.
1648 # Strip out --silent because we don't want to record it for future runs.
1649 # Also quote any args containing shell meta-characters.
1650 # Make two passes to allow for proper duplicate-argument suppression.
1651 ac_configure_args=
1652 ac_configure_args0=
1653 ac_configure_args1=
1654 ac_must_keep_next=false
1655 for ac_pass in 1 2
1656 do
1657   for ac_arg
1658   do
1659     case $ac_arg in
1660     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1661     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1662     | -silent | --silent | --silen | --sile | --sil)
1663       continue ;;
1664     *\'*)
1665       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1666     esac
1667     case $ac_pass in
1668     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1669     2)
1670       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1671       if test $ac_must_keep_next = true; then
1672         ac_must_keep_next=false # Got value, back to normal.
1673       else
1674         case $ac_arg in
1675           *=* | --config-cache | -C | -disable-* | --disable-* \
1676           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1677           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1678           | -with-* | --with-* | -without-* | --without-* | --x)
1679             case "$ac_configure_args0 " in
1680               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1681             esac
1682             ;;
1683           -* ) ac_must_keep_next=true ;;
1684         esac
1685       fi
1686       ac_configure_args="$ac_configure_args '$ac_arg'"
1687       ;;
1688     esac
1689   done
1690 done
1691 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1692 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1693
1694 # When interrupted or exit'd, cleanup temporary files, and complete
1695 # config.log.  We remove comments because anyway the quotes in there
1696 # would cause problems or look ugly.
1697 # WARNING: Use '\'' to represent an apostrophe within the trap.
1698 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1699 trap 'exit_status=$?
1700   # Save into config.log some information that might help in debugging.
1701   {
1702     echo
1703
1704     cat <<\_ASBOX
1705 ## ---------------- ##
1706 ## Cache variables. ##
1707 ## ---------------- ##
1708 _ASBOX
1709     echo
1710     # The following way of writing the cache mishandles newlines in values,
1711 (
1712   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1713     eval ac_val=\$$ac_var
1714     case $ac_val in #(
1715     *${as_nl}*)
1716       case $ac_var in #(
1717       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1718 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1719       esac
1720       case $ac_var in #(
1721       _ | IFS | as_nl) ;; #(
1722       *) $as_unset $ac_var ;;
1723       esac ;;
1724     esac
1725   done
1726   (set) 2>&1 |
1727     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1728     *${as_nl}ac_space=\ *)
1729       sed -n \
1730         "s/'\''/'\''\\\\'\'''\''/g;
1731           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1732       ;; #(
1733     *)
1734       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1735       ;;
1736     esac |
1737     sort
1738 )
1739     echo
1740
1741     cat <<\_ASBOX
1742 ## ----------------- ##
1743 ## Output variables. ##
1744 ## ----------------- ##
1745 _ASBOX
1746     echo
1747     for ac_var in $ac_subst_vars
1748     do
1749       eval ac_val=\$$ac_var
1750       case $ac_val in
1751       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1752       esac
1753       echo "$ac_var='\''$ac_val'\''"
1754     done | sort
1755     echo
1756
1757     if test -n "$ac_subst_files"; then
1758       cat <<\_ASBOX
1759 ## ------------------- ##
1760 ## File substitutions. ##
1761 ## ------------------- ##
1762 _ASBOX
1763       echo
1764       for ac_var in $ac_subst_files
1765       do
1766         eval ac_val=\$$ac_var
1767         case $ac_val in
1768         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1769         esac
1770         echo "$ac_var='\''$ac_val'\''"
1771       done | sort
1772       echo
1773     fi
1774
1775     if test -s confdefs.h; then
1776       cat <<\_ASBOX
1777 ## ----------- ##
1778 ## confdefs.h. ##
1779 ## ----------- ##
1780 _ASBOX
1781       echo
1782       cat confdefs.h
1783       echo
1784     fi
1785     test "$ac_signal" != 0 &&
1786       echo "$as_me: caught signal $ac_signal"
1787     echo "$as_me: exit $exit_status"
1788   } >&5
1789   rm -f core *.core core.conftest.* &&
1790     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1791     exit $exit_status
1792 ' 0
1793 for ac_signal in 1 2 13 15; do
1794   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1795 done
1796 ac_signal=0
1797
1798 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1799 rm -f -r conftest* confdefs.h
1800
1801 # Predefined preprocessor variables.
1802
1803 cat >>confdefs.h <<_ACEOF
1804 #define PACKAGE_NAME "$PACKAGE_NAME"
1805 _ACEOF
1806
1807
1808 cat >>confdefs.h <<_ACEOF
1809 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1810 _ACEOF
1811
1812
1813 cat >>confdefs.h <<_ACEOF
1814 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1815 _ACEOF
1816
1817
1818 cat >>confdefs.h <<_ACEOF
1819 #define PACKAGE_STRING "$PACKAGE_STRING"
1820 _ACEOF
1821
1822
1823 cat >>confdefs.h <<_ACEOF
1824 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1825 _ACEOF
1826
1827
1828 # Let the site file select an alternate cache file if it wants to.
1829 # Prefer explicitly selected file to automatically selected ones.
1830 if test -n "$CONFIG_SITE"; then
1831   set x "$CONFIG_SITE"
1832 elif test "x$prefix" != xNONE; then
1833   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1834 else
1835   set x "$ac_default_prefix/share/config.site" \
1836         "$ac_default_prefix/etc/config.site"
1837 fi
1838 shift
1839 for ac_site_file
1840 do
1841   if test -r "$ac_site_file"; then
1842     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1843 echo "$as_me: loading site script $ac_site_file" >&6;}
1844     sed 's/^/| /' "$ac_site_file" >&5
1845     . "$ac_site_file"
1846   fi
1847 done
1848
1849 if test -r "$cache_file"; then
1850   # Some versions of bash will fail to source /dev/null (special
1851   # files actually), so we avoid doing that.
1852   if test -f "$cache_file"; then
1853     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1854 echo "$as_me: loading cache $cache_file" >&6;}
1855     case $cache_file in
1856       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1857       *)                      . "./$cache_file";;
1858     esac
1859   fi
1860 else
1861   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1862 echo "$as_me: creating cache $cache_file" >&6;}
1863   >$cache_file
1864 fi
1865
1866 # Check that the precious variables saved in the cache have kept the same
1867 # value.
1868 ac_cache_corrupted=false
1869 for ac_var in $ac_precious_vars; do
1870   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1871   eval ac_new_set=\$ac_env_${ac_var}_set
1872   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1873   eval ac_new_val=\$ac_env_${ac_var}_value
1874   case $ac_old_set,$ac_new_set in
1875     set,)
1876       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1877 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1878       ac_cache_corrupted=: ;;
1879     ,set)
1880       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1881 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1882       ac_cache_corrupted=: ;;
1883     ,);;
1884     *)
1885       if test "x$ac_old_val" != "x$ac_new_val"; then
1886         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1887 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1888         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1889 echo "$as_me:   former value:  $ac_old_val" >&2;}
1890         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1891 echo "$as_me:   current value: $ac_new_val" >&2;}
1892         ac_cache_corrupted=:
1893       fi;;
1894   esac
1895   # Pass precious variables to config.status.
1896   if test "$ac_new_set" = set; then
1897     case $ac_new_val in
1898     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1899     *) ac_arg=$ac_var=$ac_new_val ;;
1900     esac
1901     case " $ac_configure_args " in
1902       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1903       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1904     esac
1905   fi
1906 done
1907 if $ac_cache_corrupted; then
1908   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1909 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1910   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1911 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1912    { (exit 1); exit 1; }; }
1913 fi
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939 ac_ext=c
1940 ac_cpp='$CPP $CPPFLAGS'
1941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1944
1945
1946
1947 am__api_version='1.10'
1948
1949 ac_aux_dir=
1950 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1951   if test -f "$ac_dir/install-sh"; then
1952     ac_aux_dir=$ac_dir
1953     ac_install_sh="$ac_aux_dir/install-sh -c"
1954     break
1955   elif test -f "$ac_dir/install.sh"; then
1956     ac_aux_dir=$ac_dir
1957     ac_install_sh="$ac_aux_dir/install.sh -c"
1958     break
1959   elif test -f "$ac_dir/shtool"; then
1960     ac_aux_dir=$ac_dir
1961     ac_install_sh="$ac_aux_dir/shtool install -c"
1962     break
1963   fi
1964 done
1965 if test -z "$ac_aux_dir"; then
1966   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1967 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1968    { (exit 1); exit 1; }; }
1969 fi
1970
1971 # These three variables are undocumented and unsupported,
1972 # and are intended to be withdrawn in a future Autoconf release.
1973 # They can cause serious problems if a builder's source tree is in a directory
1974 # whose full name contains unusual characters.
1975 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1976 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1977 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1978
1979
1980 # Find a good install program.  We prefer a C program (faster),
1981 # so one script is as good as another.  But avoid the broken or
1982 # incompatible versions:
1983 # SysV /etc/install, /usr/sbin/install
1984 # SunOS /usr/etc/install
1985 # IRIX /sbin/install
1986 # AIX /bin/install
1987 # AmigaOS /C/install, which installs bootblocks on floppy discs
1988 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1989 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1990 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1991 # OS/2's system install, which has a completely different semantic
1992 # ./install, which can be erroneously created by make from ./install.sh.
1993 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1994 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1995 if test -z "$INSTALL"; then
1996 if test "${ac_cv_path_install+set}" = set; then
1997   echo $ECHO_N "(cached) $ECHO_C" >&6
1998 else
1999   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2000 for as_dir in $PATH
2001 do
2002   IFS=$as_save_IFS
2003   test -z "$as_dir" && as_dir=.
2004   # Account for people who put trailing slashes in PATH elements.
2005 case $as_dir/ in
2006   ./ | .// | /cC/* | \
2007   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2008   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2009   /usr/ucb/* ) ;;
2010   *)
2011     # OSF1 and SCO ODT 3.0 have their own names for install.
2012     # Don't use installbsd from OSF since it installs stuff as root
2013     # by default.
2014     for ac_prog in ginstall scoinst install; do
2015       for ac_exec_ext in '' $ac_executable_extensions; do
2016         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2017           if test $ac_prog = install &&
2018             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2019             # AIX install.  It has an incompatible calling convention.
2020             :
2021           elif test $ac_prog = install &&
2022             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2023             # program-specific install script used by HP pwplus--don't use.
2024             :
2025           else
2026             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2027             break 3
2028           fi
2029         fi
2030       done
2031     done
2032     ;;
2033 esac
2034 done
2035 IFS=$as_save_IFS
2036
2037
2038 fi
2039   if test "${ac_cv_path_install+set}" = set; then
2040     INSTALL=$ac_cv_path_install
2041   else
2042     # As a last resort, use the slow shell script.  Don't cache a
2043     # value for INSTALL within a source directory, because that will
2044     # break other packages using the cache if that directory is
2045     # removed, or if the value is a relative name.
2046     INSTALL=$ac_install_sh
2047   fi
2048 fi
2049 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2050 echo "${ECHO_T}$INSTALL" >&6; }
2051
2052 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2053 # It thinks the first close brace ends the variable substitution.
2054 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2055
2056 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2057
2058 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2059
2060 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2061 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2062 # Just in case
2063 sleep 1
2064 echo timestamp > conftest.file
2065 # Do `set' in a subshell so we don't clobber the current shell's
2066 # arguments.  Must try -L first in case configure is actually a
2067 # symlink; some systems play weird games with the mod time of symlinks
2068 # (eg FreeBSD returns the mod time of the symlink's containing
2069 # directory).
2070 if (
2071    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2072    if test "$*" = "X"; then
2073       # -L didn't work.
2074       set X `ls -t $srcdir/configure conftest.file`
2075    fi
2076    rm -f conftest.file
2077    if test "$*" != "X $srcdir/configure conftest.file" \
2078       && test "$*" != "X conftest.file $srcdir/configure"; then
2079
2080       # If neither matched, then we have a broken ls.  This can happen
2081       # if, for instance, CONFIG_SHELL is bash and it inherits a
2082       # broken ls alias from the environment.  This has actually
2083       # happened.  Such a system could not be considered "sane".
2084       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2085 alias in your environment" >&5
2086 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2087 alias in your environment" >&2;}
2088    { (exit 1); exit 1; }; }
2089    fi
2090
2091    test "$2" = conftest.file
2092    )
2093 then
2094    # Ok.
2095    :
2096 else
2097    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2098 Check your system clock" >&5
2099 echo "$as_me: error: newly created file is older than distributed files!
2100 Check your system clock" >&2;}
2101    { (exit 1); exit 1; }; }
2102 fi
2103 { echo "$as_me:$LINENO: result: yes" >&5
2104 echo "${ECHO_T}yes" >&6; }
2105 test "$program_prefix" != NONE &&
2106   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2107 # Use a double $ so make ignores it.
2108 test "$program_suffix" != NONE &&
2109   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2110 # Double any \ or $.  echo might interpret backslashes.
2111 # By default was `s,x,x', remove it if useless.
2112 cat <<\_ACEOF >conftest.sed
2113 s/[\\$]/&&/g;s/;s,x,x,$//
2114 _ACEOF
2115 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2116 rm -f conftest.sed
2117
2118 # expand $ac_aux_dir to an absolute path
2119 am_aux_dir=`cd $ac_aux_dir && pwd`
2120
2121 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2122 # Use eval to expand $SHELL
2123 if eval "$MISSING --run true"; then
2124   am_missing_run="$MISSING --run "
2125 else
2126   am_missing_run=
2127   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2128 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2129 fi
2130
2131 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2132 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2133 if test -z "$MKDIR_P"; then
2134   if test "${ac_cv_path_mkdir+set}" = set; then
2135   echo $ECHO_N "(cached) $ECHO_C" >&6
2136 else
2137   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2138 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2139 do
2140   IFS=$as_save_IFS
2141   test -z "$as_dir" && as_dir=.
2142   for ac_prog in mkdir gmkdir; do
2143          for ac_exec_ext in '' $ac_executable_extensions; do
2144            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2145            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2146              'mkdir (GNU coreutils) '* | \
2147              'mkdir (coreutils) '* | \
2148              'mkdir (fileutils) '4.1*)
2149                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2150                break 3;;
2151            esac
2152          done
2153        done
2154 done
2155 IFS=$as_save_IFS
2156
2157 fi
2158
2159   if test "${ac_cv_path_mkdir+set}" = set; then
2160     MKDIR_P="$ac_cv_path_mkdir -p"
2161   else
2162     # As a last resort, use the slow shell script.  Don't cache a
2163     # value for MKDIR_P within a source directory, because that will
2164     # break other packages using the cache if that directory is
2165     # removed, or if the value is a relative name.
2166     test -d ./--version && rmdir ./--version
2167     MKDIR_P="$ac_install_sh -d"
2168   fi
2169 fi
2170 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2171 echo "${ECHO_T}$MKDIR_P" >&6; }
2172
2173 mkdir_p="$MKDIR_P"
2174 case $mkdir_p in
2175   [\\/$]* | ?:[\\/]*) ;;
2176   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2177 esac
2178
2179 for ac_prog in gawk mawk nawk awk
2180 do
2181   # Extract the first word of "$ac_prog", so it can be a program name with args.
2182 set dummy $ac_prog; ac_word=$2
2183 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2185 if test "${ac_cv_prog_AWK+set}" = set; then
2186   echo $ECHO_N "(cached) $ECHO_C" >&6
2187 else
2188   if test -n "$AWK"; then
2189   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2190 else
2191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2192 for as_dir in $PATH
2193 do
2194   IFS=$as_save_IFS
2195   test -z "$as_dir" && as_dir=.
2196   for ac_exec_ext in '' $ac_executable_extensions; do
2197   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2198     ac_cv_prog_AWK="$ac_prog"
2199     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2200     break 2
2201   fi
2202 done
2203 done
2204 IFS=$as_save_IFS
2205
2206 fi
2207 fi
2208 AWK=$ac_cv_prog_AWK
2209 if test -n "$AWK"; then
2210   { echo "$as_me:$LINENO: result: $AWK" >&5
2211 echo "${ECHO_T}$AWK" >&6; }
2212 else
2213   { echo "$as_me:$LINENO: result: no" >&5
2214 echo "${ECHO_T}no" >&6; }
2215 fi
2216
2217
2218   test -n "$AWK" && break
2219 done
2220
2221 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2222 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2223 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2224 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2225   echo $ECHO_N "(cached) $ECHO_C" >&6
2226 else
2227   cat >conftest.make <<\_ACEOF
2228 SHELL = /bin/sh
2229 all:
2230         @echo '@@@%%%=$(MAKE)=@@@%%%'
2231 _ACEOF
2232 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2233 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2234   *@@@%%%=?*=@@@%%%*)
2235     eval ac_cv_prog_make_${ac_make}_set=yes;;
2236   *)
2237     eval ac_cv_prog_make_${ac_make}_set=no;;
2238 esac
2239 rm -f conftest.make
2240 fi
2241 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2242   { echo "$as_me:$LINENO: result: yes" >&5
2243 echo "${ECHO_T}yes" >&6; }
2244   SET_MAKE=
2245 else
2246   { echo "$as_me:$LINENO: result: no" >&5
2247 echo "${ECHO_T}no" >&6; }
2248   SET_MAKE="MAKE=${MAKE-make}"
2249 fi
2250
2251 rm -rf .tst 2>/dev/null
2252 mkdir .tst 2>/dev/null
2253 if test -d .tst; then
2254   am__leading_dot=.
2255 else
2256   am__leading_dot=_
2257 fi
2258 rmdir .tst 2>/dev/null
2259
2260 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2261   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2262   # is not polluted with repeated "-I."
2263   am__isrc=' -I$(srcdir)'
2264   # test to see if srcdir already configured
2265   if test -f $srcdir/config.status; then
2266     { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2267 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2268    { (exit 1); exit 1; }; }
2269   fi
2270 fi
2271
2272 # test whether we have cygpath
2273 if test -z "$CYGPATH_W"; then
2274   if (cygpath --version) >/dev/null 2>/dev/null; then
2275     CYGPATH_W='cygpath -w'
2276   else
2277     CYGPATH_W=echo
2278   fi
2279 fi
2280
2281
2282 # Define the identity of the package.
2283  PACKAGE='ldapcpplib'
2284  VERSION=' '
2285
2286
2287 cat >>confdefs.h <<_ACEOF
2288 #define PACKAGE "$PACKAGE"
2289 _ACEOF
2290
2291
2292 cat >>confdefs.h <<_ACEOF
2293 #define VERSION "$VERSION"
2294 _ACEOF
2295
2296 # Some tools Automake needs.
2297
2298 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2299
2300
2301 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2302
2303
2304 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2305
2306
2307 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2308
2309
2310 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2311
2312 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2313
2314 # Installed binaries are usually stripped using `strip' when the user
2315 # run `make install-strip'.  However `strip' might not be the right
2316 # tool to use in cross-compilation environments, therefore Automake
2317 # will honor the `STRIP' environment variable to overrule this program.
2318 if test "$cross_compiling" != no; then
2319   if test -n "$ac_tool_prefix"; then
2320   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2321 set dummy ${ac_tool_prefix}strip; ac_word=$2
2322 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2324 if test "${ac_cv_prog_STRIP+set}" = set; then
2325   echo $ECHO_N "(cached) $ECHO_C" >&6
2326 else
2327   if test -n "$STRIP"; then
2328   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2329 else
2330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2331 for as_dir in $PATH
2332 do
2333   IFS=$as_save_IFS
2334   test -z "$as_dir" && as_dir=.
2335   for ac_exec_ext in '' $ac_executable_extensions; do
2336   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2337     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2338     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2339     break 2
2340   fi
2341 done
2342 done
2343 IFS=$as_save_IFS
2344
2345 fi
2346 fi
2347 STRIP=$ac_cv_prog_STRIP
2348 if test -n "$STRIP"; then
2349   { echo "$as_me:$LINENO: result: $STRIP" >&5
2350 echo "${ECHO_T}$STRIP" >&6; }
2351 else
2352   { echo "$as_me:$LINENO: result: no" >&5
2353 echo "${ECHO_T}no" >&6; }
2354 fi
2355
2356
2357 fi
2358 if test -z "$ac_cv_prog_STRIP"; then
2359   ac_ct_STRIP=$STRIP
2360   # Extract the first word of "strip", so it can be a program name with args.
2361 set dummy strip; ac_word=$2
2362 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2364 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2365   echo $ECHO_N "(cached) $ECHO_C" >&6
2366 else
2367   if test -n "$ac_ct_STRIP"; then
2368   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2369 else
2370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2371 for as_dir in $PATH
2372 do
2373   IFS=$as_save_IFS
2374   test -z "$as_dir" && as_dir=.
2375   for ac_exec_ext in '' $ac_executable_extensions; do
2376   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2377     ac_cv_prog_ac_ct_STRIP="strip"
2378     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2379     break 2
2380   fi
2381 done
2382 done
2383 IFS=$as_save_IFS
2384
2385 fi
2386 fi
2387 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2388 if test -n "$ac_ct_STRIP"; then
2389   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2390 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2391 else
2392   { echo "$as_me:$LINENO: result: no" >&5
2393 echo "${ECHO_T}no" >&6; }
2394 fi
2395
2396   if test "x$ac_ct_STRIP" = x; then
2397     STRIP=":"
2398   else
2399     case $cross_compiling:$ac_tool_warned in
2400 yes:)
2401 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2402 whose name does not start with the host triplet.  If you think this
2403 configuration is useful to you, please write to autoconf@gnu.org." >&5
2404 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2405 whose name does not start with the host triplet.  If you think this
2406 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2407 ac_tool_warned=yes ;;
2408 esac
2409     STRIP=$ac_ct_STRIP
2410   fi
2411 else
2412   STRIP="$ac_cv_prog_STRIP"
2413 fi
2414
2415 fi
2416 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2417
2418 # We need awk for the "check" target.  The system "awk" is bad on
2419 # some platforms.
2420 # Always define AMTAR for backward compatibility.
2421
2422 AMTAR=${AMTAR-"${am_missing_run}tar"}
2423
2424 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2425
2426
2427
2428
2429
2430 ac_config_headers="$ac_config_headers src/config.h"
2431
2432
2433 eval `$ac_aux_dir/version.sh`
2434 if test -z "$OL_CPP_API_RELEASE"; then
2435         { { echo "$as_me:$LINENO: error: could not determine version" >&5
2436 echo "$as_me: error: could not determine version" >&2;}
2437    { (exit 1); exit 1; }; }
2438 fi
2439
2440 VERSION=$OL_CPP_API_RELEASE
2441 OPENLDAP_CPP_API_VERSION=$OL_CPP_API_VERSION
2442
2443
2444 # Find a good install program.  We prefer a C program (faster),
2445 # so one script is as good as another.  But avoid the broken or
2446 # incompatible versions:
2447 # SysV /etc/install, /usr/sbin/install
2448 # SunOS /usr/etc/install
2449 # IRIX /sbin/install
2450 # AIX /bin/install
2451 # AmigaOS /C/install, which installs bootblocks on floppy discs
2452 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2453 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2454 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2455 # OS/2's system install, which has a completely different semantic
2456 # ./install, which can be erroneously created by make from ./install.sh.
2457 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2458 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2459 if test -z "$INSTALL"; then
2460 if test "${ac_cv_path_install+set}" = set; then
2461   echo $ECHO_N "(cached) $ECHO_C" >&6
2462 else
2463   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2464 for as_dir in $PATH
2465 do
2466   IFS=$as_save_IFS
2467   test -z "$as_dir" && as_dir=.
2468   # Account for people who put trailing slashes in PATH elements.
2469 case $as_dir/ in
2470   ./ | .// | /cC/* | \
2471   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2472   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2473   /usr/ucb/* ) ;;
2474   *)
2475     # OSF1 and SCO ODT 3.0 have their own names for install.
2476     # Don't use installbsd from OSF since it installs stuff as root
2477     # by default.
2478     for ac_prog in ginstall scoinst install; do
2479       for ac_exec_ext in '' $ac_executable_extensions; do
2480         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2481           if test $ac_prog = install &&
2482             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2483             # AIX install.  It has an incompatible calling convention.
2484             :
2485           elif test $ac_prog = install &&
2486             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2487             # program-specific install script used by HP pwplus--don't use.
2488             :
2489           else
2490             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2491             break 3
2492           fi
2493         fi
2494       done
2495     done
2496     ;;
2497 esac
2498 done
2499 IFS=$as_save_IFS
2500
2501
2502 fi
2503   if test "${ac_cv_path_install+set}" = set; then
2504     INSTALL=$ac_cv_path_install
2505   else
2506     # As a last resort, use the slow shell script.  Don't cache a
2507     # value for INSTALL within a source directory, because that will
2508     # break other packages using the cache if that directory is
2509     # removed, or if the value is a relative name.
2510     INSTALL=$ac_install_sh
2511   fi
2512 fi
2513 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2514 echo "${ECHO_T}$INSTALL" >&6; }
2515
2516 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2517 # It thinks the first close brace ends the variable substitution.
2518 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2519
2520 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2521
2522 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2523
2524 ac_ext=cpp
2525 ac_cpp='$CXXCPP $CPPFLAGS'
2526 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2527 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2528 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2529 if test -z "$CXX"; then
2530   if test -n "$CCC"; then
2531     CXX=$CCC
2532   else
2533     if test -n "$ac_tool_prefix"; then
2534   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2535   do
2536     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2537 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2538 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2540 if test "${ac_cv_prog_CXX+set}" = set; then
2541   echo $ECHO_N "(cached) $ECHO_C" >&6
2542 else
2543   if test -n "$CXX"; then
2544   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2545 else
2546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2547 for as_dir in $PATH
2548 do
2549   IFS=$as_save_IFS
2550   test -z "$as_dir" && as_dir=.
2551   for ac_exec_ext in '' $ac_executable_extensions; do
2552   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2553     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2554     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2555     break 2
2556   fi
2557 done
2558 done
2559 IFS=$as_save_IFS
2560
2561 fi
2562 fi
2563 CXX=$ac_cv_prog_CXX
2564 if test -n "$CXX"; then
2565   { echo "$as_me:$LINENO: result: $CXX" >&5
2566 echo "${ECHO_T}$CXX" >&6; }
2567 else
2568   { echo "$as_me:$LINENO: result: no" >&5
2569 echo "${ECHO_T}no" >&6; }
2570 fi
2571
2572
2573     test -n "$CXX" && break
2574   done
2575 fi
2576 if test -z "$CXX"; then
2577   ac_ct_CXX=$CXX
2578   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2579 do
2580   # Extract the first word of "$ac_prog", so it can be a program name with args.
2581 set dummy $ac_prog; ac_word=$2
2582 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2584 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2585   echo $ECHO_N "(cached) $ECHO_C" >&6
2586 else
2587   if test -n "$ac_ct_CXX"; then
2588   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2589 else
2590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2591 for as_dir in $PATH
2592 do
2593   IFS=$as_save_IFS
2594   test -z "$as_dir" && as_dir=.
2595   for ac_exec_ext in '' $ac_executable_extensions; do
2596   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2597     ac_cv_prog_ac_ct_CXX="$ac_prog"
2598     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2599     break 2
2600   fi
2601 done
2602 done
2603 IFS=$as_save_IFS
2604
2605 fi
2606 fi
2607 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2608 if test -n "$ac_ct_CXX"; then
2609   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2610 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2611 else
2612   { echo "$as_me:$LINENO: result: no" >&5
2613 echo "${ECHO_T}no" >&6; }
2614 fi
2615
2616
2617   test -n "$ac_ct_CXX" && break
2618 done
2619
2620   if test "x$ac_ct_CXX" = x; then
2621     CXX="g++"
2622   else
2623     case $cross_compiling:$ac_tool_warned in
2624 yes:)
2625 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2626 whose name does not start with the host triplet.  If you think this
2627 configuration is useful to you, please write to autoconf@gnu.org." >&5
2628 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2629 whose name does not start with the host triplet.  If you think this
2630 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2631 ac_tool_warned=yes ;;
2632 esac
2633     CXX=$ac_ct_CXX
2634   fi
2635 fi
2636
2637   fi
2638 fi
2639 # Provide some information about the compiler.
2640 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2641 ac_compiler=`set X $ac_compile; echo $2`
2642 { (ac_try="$ac_compiler --version >&5"
2643 case "(($ac_try" in
2644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2645   *) ac_try_echo=$ac_try;;
2646 esac
2647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2648   (eval "$ac_compiler --version >&5") 2>&5
2649   ac_status=$?
2650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651   (exit $ac_status); }
2652 { (ac_try="$ac_compiler -v >&5"
2653 case "(($ac_try" in
2654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2655   *) ac_try_echo=$ac_try;;
2656 esac
2657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2658   (eval "$ac_compiler -v >&5") 2>&5
2659   ac_status=$?
2660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661   (exit $ac_status); }
2662 { (ac_try="$ac_compiler -V >&5"
2663 case "(($ac_try" in
2664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2665   *) ac_try_echo=$ac_try;;
2666 esac
2667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2668   (eval "$ac_compiler -V >&5") 2>&5
2669   ac_status=$?
2670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671   (exit $ac_status); }
2672
2673 cat >conftest.$ac_ext <<_ACEOF
2674 /* confdefs.h.  */
2675 _ACEOF
2676 cat confdefs.h >>conftest.$ac_ext
2677 cat >>conftest.$ac_ext <<_ACEOF
2678 /* end confdefs.h.  */
2679
2680 int
2681 main ()
2682 {
2683
2684   ;
2685   return 0;
2686 }
2687 _ACEOF
2688 ac_clean_files_save=$ac_clean_files
2689 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2690 # Try to create an executable without -o first, disregard a.out.
2691 # It will help us diagnose broken compilers, and finding out an intuition
2692 # of exeext.
2693 { echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2694 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
2695 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2696 #
2697 # List of possible output files, starting from the most likely.
2698 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2699 # only as a last resort.  b.out is created by i960 compilers.
2700 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2701 #
2702 # The IRIX 6 linker writes into existing files which may not be
2703 # executable, retaining their permissions.  Remove them first so a
2704 # subsequent execution test works.
2705 ac_rmfiles=
2706 for ac_file in $ac_files
2707 do
2708   case $ac_file in
2709     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2710     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2711   esac
2712 done
2713 rm -f $ac_rmfiles
2714
2715 if { (ac_try="$ac_link_default"
2716 case "(($ac_try" in
2717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2718   *) ac_try_echo=$ac_try;;
2719 esac
2720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2721   (eval "$ac_link_default") 2>&5
2722   ac_status=$?
2723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2724   (exit $ac_status); }; then
2725   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2726 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2727 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2728 # so that the user can short-circuit this test for compilers unknown to
2729 # Autoconf.
2730 for ac_file in $ac_files ''
2731 do
2732   test -f "$ac_file" || continue
2733   case $ac_file in
2734     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2735         ;;
2736     [ab].out )
2737         # We found the default executable, but exeext='' is most
2738         # certainly right.
2739         break;;
2740     *.* )
2741         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2742         then :; else
2743            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2744         fi
2745         # We set ac_cv_exeext here because the later test for it is not
2746         # safe: cross compilers may not add the suffix if given an `-o'
2747         # argument, so we may need to know it at that point already.
2748         # Even if this section looks crufty: it has the advantage of
2749         # actually working.
2750         break;;
2751     * )
2752         break;;
2753   esac
2754 done
2755 test "$ac_cv_exeext" = no && ac_cv_exeext=
2756
2757 else
2758   ac_file=''
2759 fi
2760
2761 { echo "$as_me:$LINENO: result: $ac_file" >&5
2762 echo "${ECHO_T}$ac_file" >&6; }
2763 if test -z "$ac_file"; then
2764   echo "$as_me: failed program was:" >&5
2765 sed 's/^/| /' conftest.$ac_ext >&5
2766
2767 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2768 See \`config.log' for more details." >&5
2769 echo "$as_me: error: C++ compiler cannot create executables
2770 See \`config.log' for more details." >&2;}
2771    { (exit 77); exit 77; }; }
2772 fi
2773
2774 ac_exeext=$ac_cv_exeext
2775
2776 # Check that the compiler produces executables we can run.  If not, either
2777 # the compiler is broken, or we cross compile.
2778 { echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2779 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
2780 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2781 # If not cross compiling, check that we can run a simple program.
2782 if test "$cross_compiling" != yes; then
2783   if { ac_try='./$ac_file'
2784   { (case "(($ac_try" in
2785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2786   *) ac_try_echo=$ac_try;;
2787 esac
2788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2789   (eval "$ac_try") 2>&5
2790   ac_status=$?
2791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792   (exit $ac_status); }; }; then
2793     cross_compiling=no
2794   else
2795     if test "$cross_compiling" = maybe; then
2796         cross_compiling=yes
2797     else
2798         { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2799 If you meant to cross compile, use \`--host'.
2800 See \`config.log' for more details." >&5
2801 echo "$as_me: error: cannot run C++ compiled programs.
2802 If you meant to cross compile, use \`--host'.
2803 See \`config.log' for more details." >&2;}
2804    { (exit 1); exit 1; }; }
2805     fi
2806   fi
2807 fi
2808 { echo "$as_me:$LINENO: result: yes" >&5
2809 echo "${ECHO_T}yes" >&6; }
2810
2811 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2812 ac_clean_files=$ac_clean_files_save
2813 # Check that the compiler produces executables we can run.  If not, either
2814 # the compiler is broken, or we cross compile.
2815 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2816 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2817 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2818 echo "${ECHO_T}$cross_compiling" >&6; }
2819
2820 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2821 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2822 if { (ac_try="$ac_link"
2823 case "(($ac_try" in
2824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2825   *) ac_try_echo=$ac_try;;
2826 esac
2827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2828   (eval "$ac_link") 2>&5
2829   ac_status=$?
2830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831   (exit $ac_status); }; then
2832   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2833 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2834 # work properly (i.e., refer to `conftest.exe'), while it won't with
2835 # `rm'.
2836 for ac_file in conftest.exe conftest conftest.*; do
2837   test -f "$ac_file" || continue
2838   case $ac_file in
2839     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2840     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2841           break;;
2842     * ) break;;
2843   esac
2844 done
2845 else
2846   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2847 See \`config.log' for more details." >&5
2848 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2849 See \`config.log' for more details." >&2;}
2850    { (exit 1); exit 1; }; }
2851 fi
2852
2853 rm -f conftest$ac_cv_exeext
2854 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2855 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2856
2857 rm -f conftest.$ac_ext
2858 EXEEXT=$ac_cv_exeext
2859 ac_exeext=$EXEEXT
2860 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2861 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2862 if test "${ac_cv_objext+set}" = set; then
2863   echo $ECHO_N "(cached) $ECHO_C" >&6
2864 else
2865   cat >conftest.$ac_ext <<_ACEOF
2866 /* confdefs.h.  */
2867 _ACEOF
2868 cat confdefs.h >>conftest.$ac_ext
2869 cat >>conftest.$ac_ext <<_ACEOF
2870 /* end confdefs.h.  */
2871
2872 int
2873 main ()
2874 {
2875
2876   ;
2877   return 0;
2878 }
2879 _ACEOF
2880 rm -f conftest.o conftest.obj
2881 if { (ac_try="$ac_compile"
2882 case "(($ac_try" in
2883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2884   *) ac_try_echo=$ac_try;;
2885 esac
2886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2887   (eval "$ac_compile") 2>&5
2888   ac_status=$?
2889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890   (exit $ac_status); }; then
2891   for ac_file in conftest.o conftest.obj conftest.*; do
2892   test -f "$ac_file" || continue;
2893   case $ac_file in
2894     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2895     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2896        break;;
2897   esac
2898 done
2899 else
2900   echo "$as_me: failed program was:" >&5
2901 sed 's/^/| /' conftest.$ac_ext >&5
2902
2903 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2904 See \`config.log' for more details." >&5
2905 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2906 See \`config.log' for more details." >&2;}
2907    { (exit 1); exit 1; }; }
2908 fi
2909
2910 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2911 fi
2912 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2913 echo "${ECHO_T}$ac_cv_objext" >&6; }
2914 OBJEXT=$ac_cv_objext
2915 ac_objext=$OBJEXT
2916 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2917 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2918 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2919   echo $ECHO_N "(cached) $ECHO_C" >&6
2920 else
2921   cat >conftest.$ac_ext <<_ACEOF
2922 /* confdefs.h.  */
2923 _ACEOF
2924 cat confdefs.h >>conftest.$ac_ext
2925 cat >>conftest.$ac_ext <<_ACEOF
2926 /* end confdefs.h.  */
2927
2928 int
2929 main ()
2930 {
2931 #ifndef __GNUC__
2932        choke me
2933 #endif
2934
2935   ;
2936   return 0;
2937 }
2938 _ACEOF
2939 rm -f conftest.$ac_objext
2940 if { (ac_try="$ac_compile"
2941 case "(($ac_try" in
2942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2943   *) ac_try_echo=$ac_try;;
2944 esac
2945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2946   (eval "$ac_compile") 2>conftest.er1
2947   ac_status=$?
2948   grep -v '^ *+' conftest.er1 >conftest.err
2949   rm -f conftest.er1
2950   cat conftest.err >&5
2951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2952   (exit $ac_status); } && {
2953          test -z "$ac_cxx_werror_flag" ||
2954          test ! -s conftest.err
2955        } && test -s conftest.$ac_objext; then
2956   ac_compiler_gnu=yes
2957 else
2958   echo "$as_me: failed program was:" >&5
2959 sed 's/^/| /' conftest.$ac_ext >&5
2960
2961         ac_compiler_gnu=no
2962 fi
2963
2964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2965 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2966
2967 fi
2968 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2969 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2970 GXX=`test $ac_compiler_gnu = yes && echo yes`
2971 ac_test_CXXFLAGS=${CXXFLAGS+set}
2972 ac_save_CXXFLAGS=$CXXFLAGS
2973 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2974 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2975 if test "${ac_cv_prog_cxx_g+set}" = set; then
2976   echo $ECHO_N "(cached) $ECHO_C" >&6
2977 else
2978   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2979    ac_cxx_werror_flag=yes
2980    ac_cv_prog_cxx_g=no
2981    CXXFLAGS="-g"
2982    cat >conftest.$ac_ext <<_ACEOF
2983 /* confdefs.h.  */
2984 _ACEOF
2985 cat confdefs.h >>conftest.$ac_ext
2986 cat >>conftest.$ac_ext <<_ACEOF
2987 /* end confdefs.h.  */
2988
2989 int
2990 main ()
2991 {
2992
2993   ;
2994   return 0;
2995 }
2996 _ACEOF
2997 rm -f conftest.$ac_objext
2998 if { (ac_try="$ac_compile"
2999 case "(($ac_try" in
3000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3001   *) ac_try_echo=$ac_try;;
3002 esac
3003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3004   (eval "$ac_compile") 2>conftest.er1
3005   ac_status=$?
3006   grep -v '^ *+' conftest.er1 >conftest.err
3007   rm -f conftest.er1
3008   cat conftest.err >&5
3009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010   (exit $ac_status); } && {
3011          test -z "$ac_cxx_werror_flag" ||
3012          test ! -s conftest.err
3013        } && test -s conftest.$ac_objext; then
3014   ac_cv_prog_cxx_g=yes
3015 else
3016   echo "$as_me: failed program was:" >&5
3017 sed 's/^/| /' conftest.$ac_ext >&5
3018
3019         CXXFLAGS=""
3020       cat >conftest.$ac_ext <<_ACEOF
3021 /* confdefs.h.  */
3022 _ACEOF
3023 cat confdefs.h >>conftest.$ac_ext
3024 cat >>conftest.$ac_ext <<_ACEOF
3025 /* end confdefs.h.  */
3026
3027 int
3028 main ()
3029 {
3030
3031   ;
3032   return 0;
3033 }
3034 _ACEOF
3035 rm -f conftest.$ac_objext
3036 if { (ac_try="$ac_compile"
3037 case "(($ac_try" in
3038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3039   *) ac_try_echo=$ac_try;;
3040 esac
3041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3042   (eval "$ac_compile") 2>conftest.er1
3043   ac_status=$?
3044   grep -v '^ *+' conftest.er1 >conftest.err
3045   rm -f conftest.er1
3046   cat conftest.err >&5
3047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048   (exit $ac_status); } && {
3049          test -z "$ac_cxx_werror_flag" ||
3050          test ! -s conftest.err
3051        } && test -s conftest.$ac_objext; then
3052   :
3053 else
3054   echo "$as_me: failed program was:" >&5
3055 sed 's/^/| /' conftest.$ac_ext >&5
3056
3057         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3058          CXXFLAGS="-g"
3059          cat >conftest.$ac_ext <<_ACEOF
3060 /* confdefs.h.  */
3061 _ACEOF
3062 cat confdefs.h >>conftest.$ac_ext
3063 cat >>conftest.$ac_ext <<_ACEOF
3064 /* end confdefs.h.  */
3065
3066 int
3067 main ()
3068 {
3069
3070   ;
3071   return 0;
3072 }
3073 _ACEOF
3074 rm -f conftest.$ac_objext
3075 if { (ac_try="$ac_compile"
3076 case "(($ac_try" in
3077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3078   *) ac_try_echo=$ac_try;;
3079 esac
3080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3081   (eval "$ac_compile") 2>conftest.er1
3082   ac_status=$?
3083   grep -v '^ *+' conftest.er1 >conftest.err
3084   rm -f conftest.er1
3085   cat conftest.err >&5
3086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087   (exit $ac_status); } && {
3088          test -z "$ac_cxx_werror_flag" ||
3089          test ! -s conftest.err
3090        } && test -s conftest.$ac_objext; then
3091   ac_cv_prog_cxx_g=yes
3092 else
3093   echo "$as_me: failed program was:" >&5
3094 sed 's/^/| /' conftest.$ac_ext >&5
3095
3096
3097 fi
3098
3099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3100 fi
3101
3102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3103 fi
3104
3105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3106    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3107 fi
3108 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3109 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3110 if test "$ac_test_CXXFLAGS" = set; then
3111   CXXFLAGS=$ac_save_CXXFLAGS
3112 elif test $ac_cv_prog_cxx_g = yes; then
3113   if test "$GXX" = yes; then
3114     CXXFLAGS="-g -O2"
3115   else
3116     CXXFLAGS="-g"
3117   fi
3118 else
3119   if test "$GXX" = yes; then
3120     CXXFLAGS="-O2"
3121   else
3122     CXXFLAGS=
3123   fi
3124 fi
3125 ac_ext=c
3126 ac_cpp='$CPP $CPPFLAGS'
3127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3130 DEPDIR="${am__leading_dot}deps"
3131
3132 ac_config_commands="$ac_config_commands depfiles"
3133
3134
3135 am_make=${MAKE-make}
3136 cat > confinc << 'END'
3137 am__doit:
3138         @echo done
3139 .PHONY: am__doit
3140 END
3141 # If we don't find an include directive, just comment out the code.
3142 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3143 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3144 am__include="#"
3145 am__quote=
3146 _am_result=none
3147 # First try GNU make style include.
3148 echo "include confinc" > confmf
3149 # We grep out `Entering directory' and `Leaving directory'
3150 # messages which can occur if `w' ends up in MAKEFLAGS.
3151 # In particular we don't look at `^make:' because GNU make might
3152 # be invoked under some other name (usually "gmake"), in which
3153 # case it prints its new name instead of `make'.
3154 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3155    am__include=include
3156    am__quote=
3157    _am_result=GNU
3158 fi
3159 # Now try BSD make style include.
3160 if test "$am__include" = "#"; then
3161    echo '.include "confinc"' > confmf
3162    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3163       am__include=.include
3164       am__quote="\""
3165       _am_result=BSD
3166    fi
3167 fi
3168
3169
3170 { echo "$as_me:$LINENO: result: $_am_result" >&5
3171 echo "${ECHO_T}$_am_result" >&6; }
3172 rm -f confinc confmf
3173
3174 # Check whether --enable-dependency-tracking was given.
3175 if test "${enable_dependency_tracking+set}" = set; then
3176   enableval=$enable_dependency_tracking;
3177 fi
3178
3179 if test "x$enable_dependency_tracking" != xno; then
3180   am_depcomp="$ac_aux_dir/depcomp"
3181   AMDEPBACKSLASH='\'
3182 fi
3183  if test "x$enable_dependency_tracking" != xno; then
3184   AMDEP_TRUE=
3185   AMDEP_FALSE='#'
3186 else
3187   AMDEP_TRUE='#'
3188   AMDEP_FALSE=
3189 fi
3190
3191
3192
3193 depcc="$CXX"  am_compiler_list=
3194
3195 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3196 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3197 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3198   echo $ECHO_N "(cached) $ECHO_C" >&6
3199 else
3200   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3201   # We make a subdir and do the tests there.  Otherwise we can end up
3202   # making bogus files that we don't know about and never remove.  For
3203   # instance it was reported that on HP-UX the gcc test will end up
3204   # making a dummy file named `D' -- because `-MD' means `put the output
3205   # in D'.
3206   mkdir conftest.dir
3207   # Copy depcomp to subdir because otherwise we won't find it if we're
3208   # using a relative directory.
3209   cp "$am_depcomp" conftest.dir
3210   cd conftest.dir
3211   # We will build objects and dependencies in a subdirectory because
3212   # it helps to detect inapplicable dependency modes.  For instance
3213   # both Tru64's cc and ICC support -MD to output dependencies as a
3214   # side effect of compilation, but ICC will put the dependencies in
3215   # the current directory while Tru64 will put them in the object
3216   # directory.
3217   mkdir sub
3218
3219   am_cv_CXX_dependencies_compiler_type=none
3220   if test "$am_compiler_list" = ""; then
3221      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3222   fi
3223   for depmode in $am_compiler_list; do
3224     # Setup a source with many dependencies, because some compilers
3225     # like to wrap large dependency lists on column 80 (with \), and
3226     # we should not choose a depcomp mode which is confused by this.
3227     #
3228     # We need to recreate these files for each test, as the compiler may
3229     # overwrite some of them when testing with obscure command lines.
3230     # This happens at least with the AIX C compiler.
3231     : > sub/conftest.c
3232     for i in 1 2 3 4 5 6; do
3233       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3234       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3235       # Solaris 8's {/usr,}/bin/sh.
3236       touch sub/conftst$i.h
3237     done
3238     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3239
3240     case $depmode in
3241     nosideeffect)
3242       # after this tag, mechanisms are not by side-effect, so they'll
3243       # only be used when explicitly requested
3244       if test "x$enable_dependency_tracking" = xyes; then
3245         continue
3246       else
3247         break
3248       fi
3249       ;;
3250     none) break ;;
3251     esac
3252     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3253     # mode.  It turns out that the SunPro C++ compiler does not properly
3254     # handle `-M -o', and we need to detect this.
3255     if depmode=$depmode \
3256        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3257        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3258        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3259          >/dev/null 2>conftest.err &&
3260        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3261        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3262        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3263        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3264       # icc doesn't choke on unknown options, it will just issue warnings
3265       # or remarks (even with -Werror).  So we grep stderr for any message
3266       # that says an option was ignored or not supported.
3267       # When given -MP, icc 7.0 and 7.1 complain thusly:
3268       #   icc: Command line warning: ignoring option '-M'; no argument required
3269       # The diagnosis changed in icc 8.0:
3270       #   icc: Command line remark: option '-MP' not supported
3271       if (grep 'ignoring option' conftest.err ||
3272           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3273         am_cv_CXX_dependencies_compiler_type=$depmode
3274         break
3275       fi
3276     fi
3277   done
3278
3279   cd ..
3280   rm -rf conftest.dir
3281 else
3282   am_cv_CXX_dependencies_compiler_type=none
3283 fi
3284
3285 fi
3286 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3287 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
3288 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3289
3290  if
3291   test "x$enable_dependency_tracking" != xno \
3292   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3293   am__fastdepCXX_TRUE=
3294   am__fastdepCXX_FALSE='#'
3295 else
3296   am__fastdepCXX_TRUE='#'
3297   am__fastdepCXX_FALSE=
3298 fi
3299
3300
3301 # Check whether --enable-shared was given.
3302 if test "${enable_shared+set}" = set; then
3303   enableval=$enable_shared; p=${PACKAGE-default}
3304     case $enableval in
3305     yes) enable_shared=yes ;;
3306     no) enable_shared=no ;;
3307     *)
3308       enable_shared=no
3309       # Look at the argument we got.  We use all the common list separators.
3310       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3311       for pkg in $enableval; do
3312         IFS="$lt_save_ifs"
3313         if test "X$pkg" = "X$p"; then
3314           enable_shared=yes
3315         fi
3316       done
3317       IFS="$lt_save_ifs"
3318       ;;
3319     esac
3320 else
3321   enable_shared=yes
3322 fi
3323
3324
3325 # Check whether --enable-static was given.
3326 if test "${enable_static+set}" = set; then
3327   enableval=$enable_static; p=${PACKAGE-default}
3328     case $enableval in
3329     yes) enable_static=yes ;;
3330     no) enable_static=no ;;
3331     *)
3332      enable_static=no
3333       # Look at the argument we got.  We use all the common list separators.
3334       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3335       for pkg in $enableval; do
3336         IFS="$lt_save_ifs"
3337         if test "X$pkg" = "X$p"; then
3338           enable_static=yes
3339         fi
3340       done
3341       IFS="$lt_save_ifs"
3342       ;;
3343     esac
3344 else
3345   enable_static=yes
3346 fi
3347
3348
3349 # Check whether --enable-fast-install was given.
3350 if test "${enable_fast_install+set}" = set; then
3351   enableval=$enable_fast_install; p=${PACKAGE-default}
3352     case $enableval in
3353     yes) enable_fast_install=yes ;;
3354     no) enable_fast_install=no ;;
3355     *)
3356       enable_fast_install=no
3357       # Look at the argument we got.  We use all the common list separators.
3358       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3359       for pkg in $enableval; do
3360         IFS="$lt_save_ifs"
3361         if test "X$pkg" = "X$p"; then
3362           enable_fast_install=yes
3363         fi
3364       done
3365       IFS="$lt_save_ifs"
3366       ;;
3367     esac
3368 else
3369   enable_fast_install=yes
3370 fi
3371
3372
3373 # Make sure we can run config.sub.
3374 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3375   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3376 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3377    { (exit 1); exit 1; }; }
3378
3379 { echo "$as_me:$LINENO: checking build system type" >&5
3380 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3381 if test "${ac_cv_build+set}" = set; then
3382   echo $ECHO_N "(cached) $ECHO_C" >&6
3383 else
3384   ac_build_alias=$build_alias
3385 test "x$ac_build_alias" = x &&
3386   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3387 test "x$ac_build_alias" = x &&
3388   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3389 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3390    { (exit 1); exit 1; }; }
3391 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3392   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3393 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3394    { (exit 1); exit 1; }; }
3395
3396 fi
3397 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3398 echo "${ECHO_T}$ac_cv_build" >&6; }
3399 case $ac_cv_build in
3400 *-*-*) ;;
3401 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3402 echo "$as_me: error: invalid value of canonical build" >&2;}
3403    { (exit 1); exit 1; }; };;
3404 esac
3405 build=$ac_cv_build
3406 ac_save_IFS=$IFS; IFS='-'
3407 set x $ac_cv_build
3408 shift
3409 build_cpu=$1
3410 build_vendor=$2
3411 shift; shift
3412 # Remember, the first character of IFS is used to create $*,
3413 # except with old shells:
3414 build_os=$*
3415 IFS=$ac_save_IFS
3416 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3417
3418
3419 { echo "$as_me:$LINENO: checking host system type" >&5
3420 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3421 if test "${ac_cv_host+set}" = set; then
3422   echo $ECHO_N "(cached) $ECHO_C" >&6
3423 else
3424   if test "x$host_alias" = x; then
3425   ac_cv_host=$ac_cv_build
3426 else
3427   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3428     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3429 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3430    { (exit 1); exit 1; }; }
3431 fi
3432
3433 fi
3434 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3435 echo "${ECHO_T}$ac_cv_host" >&6; }
3436 case $ac_cv_host in
3437 *-*-*) ;;
3438 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3439 echo "$as_me: error: invalid value of canonical host" >&2;}
3440    { (exit 1); exit 1; }; };;
3441 esac
3442 host=$ac_cv_host
3443 ac_save_IFS=$IFS; IFS='-'
3444 set x $ac_cv_host
3445 shift
3446 host_cpu=$1
3447 host_vendor=$2
3448 shift; shift
3449 # Remember, the first character of IFS is used to create $*,
3450 # except with old shells:
3451 host_os=$*
3452 IFS=$ac_save_IFS
3453 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3454
3455
3456 ac_ext=c
3457 ac_cpp='$CPP $CPPFLAGS'
3458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3461 if test -n "$ac_tool_prefix"; then
3462   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3463 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3464 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3466 if test "${ac_cv_prog_CC+set}" = set; then
3467   echo $ECHO_N "(cached) $ECHO_C" >&6
3468 else
3469   if test -n "$CC"; then
3470   ac_cv_prog_CC="$CC" # Let the user override the test.
3471 else
3472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3473 for as_dir in $PATH
3474 do
3475   IFS=$as_save_IFS
3476   test -z "$as_dir" && as_dir=.
3477   for ac_exec_ext in '' $ac_executable_extensions; do
3478   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3479     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3480     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3481     break 2
3482   fi
3483 done
3484 done
3485 IFS=$as_save_IFS
3486
3487 fi
3488 fi
3489 CC=$ac_cv_prog_CC
3490 if test -n "$CC"; then
3491   { echo "$as_me:$LINENO: result: $CC" >&5
3492 echo "${ECHO_T}$CC" >&6; }
3493 else
3494   { echo "$as_me:$LINENO: result: no" >&5
3495 echo "${ECHO_T}no" >&6; }
3496 fi
3497
3498
3499 fi
3500 if test -z "$ac_cv_prog_CC"; then
3501   ac_ct_CC=$CC
3502   # Extract the first word of "gcc", so it can be a program name with args.
3503 set dummy gcc; ac_word=$2
3504 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3506 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3507   echo $ECHO_N "(cached) $ECHO_C" >&6
3508 else
3509   if test -n "$ac_ct_CC"; then
3510   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3511 else
3512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3513 for as_dir in $PATH
3514 do
3515   IFS=$as_save_IFS
3516   test -z "$as_dir" && as_dir=.
3517   for ac_exec_ext in '' $ac_executable_extensions; do
3518   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3519     ac_cv_prog_ac_ct_CC="gcc"
3520     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3521     break 2
3522   fi
3523 done
3524 done
3525 IFS=$as_save_IFS
3526
3527 fi
3528 fi
3529 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3530 if test -n "$ac_ct_CC"; then
3531   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3532 echo "${ECHO_T}$ac_ct_CC" >&6; }
3533 else
3534   { echo "$as_me:$LINENO: result: no" >&5
3535 echo "${ECHO_T}no" >&6; }
3536 fi
3537
3538   if test "x$ac_ct_CC" = x; then
3539     CC=""
3540   else
3541     case $cross_compiling:$ac_tool_warned in
3542 yes:)
3543 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3544 whose name does not start with the host triplet.  If you think this
3545 configuration is useful to you, please write to autoconf@gnu.org." >&5
3546 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3547 whose name does not start with the host triplet.  If you think this
3548 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3549 ac_tool_warned=yes ;;
3550 esac
3551     CC=$ac_ct_CC
3552   fi
3553 else
3554   CC="$ac_cv_prog_CC"
3555 fi
3556
3557 if test -z "$CC"; then
3558           if test -n "$ac_tool_prefix"; then
3559     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3560 set dummy ${ac_tool_prefix}cc; ac_word=$2
3561 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3563 if test "${ac_cv_prog_CC+set}" = set; then
3564   echo $ECHO_N "(cached) $ECHO_C" >&6
3565 else
3566   if test -n "$CC"; then
3567   ac_cv_prog_CC="$CC" # Let the user override the test.
3568 else
3569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3570 for as_dir in $PATH
3571 do
3572   IFS=$as_save_IFS
3573   test -z "$as_dir" && as_dir=.
3574   for ac_exec_ext in '' $ac_executable_extensions; do
3575   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3576     ac_cv_prog_CC="${ac_tool_prefix}cc"
3577     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3578     break 2
3579   fi
3580 done
3581 done
3582 IFS=$as_save_IFS
3583
3584 fi
3585 fi
3586 CC=$ac_cv_prog_CC
3587 if test -n "$CC"; then
3588   { echo "$as_me:$LINENO: result: $CC" >&5
3589 echo "${ECHO_T}$CC" >&6; }
3590 else
3591   { echo "$as_me:$LINENO: result: no" >&5
3592 echo "${ECHO_T}no" >&6; }
3593 fi
3594
3595
3596   fi
3597 fi
3598 if test -z "$CC"; then
3599   # Extract the first word of "cc", so it can be a program name with args.
3600 set dummy cc; ac_word=$2
3601 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3603 if test "${ac_cv_prog_CC+set}" = set; then
3604   echo $ECHO_N "(cached) $ECHO_C" >&6
3605 else
3606   if test -n "$CC"; then
3607   ac_cv_prog_CC="$CC" # Let the user override the test.
3608 else
3609   ac_prog_rejected=no
3610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3611 for as_dir in $PATH
3612 do
3613   IFS=$as_save_IFS
3614   test -z "$as_dir" && as_dir=.
3615   for ac_exec_ext in '' $ac_executable_extensions; do
3616   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3617     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3618        ac_prog_rejected=yes
3619        continue
3620      fi
3621     ac_cv_prog_CC="cc"
3622     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3623     break 2
3624   fi
3625 done
3626 done
3627 IFS=$as_save_IFS
3628
3629 if test $ac_prog_rejected = yes; then
3630   # We found a bogon in the path, so make sure we never use it.
3631   set dummy $ac_cv_prog_CC
3632   shift
3633   if test $# != 0; then
3634     # We chose a different compiler from the bogus one.
3635     # However, it has the same basename, so the bogon will be chosen
3636     # first if we set CC to just the basename; use the full file name.
3637     shift
3638     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3639   fi
3640 fi
3641 fi
3642 fi
3643 CC=$ac_cv_prog_CC
3644 if test -n "$CC"; then
3645   { echo "$as_me:$LINENO: result: $CC" >&5
3646 echo "${ECHO_T}$CC" >&6; }
3647 else
3648   { echo "$as_me:$LINENO: result: no" >&5
3649 echo "${ECHO_T}no" >&6; }
3650 fi
3651
3652
3653 fi
3654 if test -z "$CC"; then
3655   if test -n "$ac_tool_prefix"; then
3656   for ac_prog in cl.exe
3657   do
3658     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3659 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3660 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3662 if test "${ac_cv_prog_CC+set}" = set; then
3663   echo $ECHO_N "(cached) $ECHO_C" >&6
3664 else
3665   if test -n "$CC"; then
3666   ac_cv_prog_CC="$CC" # Let the user override the test.
3667 else
3668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3669 for as_dir in $PATH
3670 do
3671   IFS=$as_save_IFS
3672   test -z "$as_dir" && as_dir=.
3673   for ac_exec_ext in '' $ac_executable_extensions; do
3674   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3675     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3676     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3677     break 2
3678   fi
3679 done
3680 done
3681 IFS=$as_save_IFS
3682
3683 fi
3684 fi
3685 CC=$ac_cv_prog_CC
3686 if test -n "$CC"; then
3687   { echo "$as_me:$LINENO: result: $CC" >&5
3688 echo "${ECHO_T}$CC" >&6; }
3689 else
3690   { echo "$as_me:$LINENO: result: no" >&5
3691 echo "${ECHO_T}no" >&6; }
3692 fi
3693
3694
3695     test -n "$CC" && break
3696   done
3697 fi
3698 if test -z "$CC"; then
3699   ac_ct_CC=$CC
3700   for ac_prog in cl.exe
3701 do
3702   # Extract the first word of "$ac_prog", so it can be a program name with args.
3703 set dummy $ac_prog; ac_word=$2
3704 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3706 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3707   echo $ECHO_N "(cached) $ECHO_C" >&6
3708 else
3709   if test -n "$ac_ct_CC"; then
3710   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3711 else
3712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3713 for as_dir in $PATH
3714 do
3715   IFS=$as_save_IFS
3716   test -z "$as_dir" && as_dir=.
3717   for ac_exec_ext in '' $ac_executable_extensions; do
3718   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3719     ac_cv_prog_ac_ct_CC="$ac_prog"
3720     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3721     break 2
3722   fi
3723 done
3724 done
3725 IFS=$as_save_IFS
3726
3727 fi
3728 fi
3729 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3730 if test -n "$ac_ct_CC"; then
3731   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3732 echo "${ECHO_T}$ac_ct_CC" >&6; }
3733 else
3734   { echo "$as_me:$LINENO: result: no" >&5
3735 echo "${ECHO_T}no" >&6; }
3736 fi
3737
3738
3739   test -n "$ac_ct_CC" && break
3740 done
3741
3742   if test "x$ac_ct_CC" = x; then
3743     CC=""
3744   else
3745     case $cross_compiling:$ac_tool_warned in
3746 yes:)
3747 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3748 whose name does not start with the host triplet.  If you think this
3749 configuration is useful to you, please write to autoconf@gnu.org." >&5
3750 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3751 whose name does not start with the host triplet.  If you think this
3752 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3753 ac_tool_warned=yes ;;
3754 esac
3755     CC=$ac_ct_CC
3756   fi
3757 fi
3758
3759 fi
3760
3761
3762 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3763 See \`config.log' for more details." >&5
3764 echo "$as_me: error: no acceptable C compiler found in \$PATH
3765 See \`config.log' for more details." >&2;}
3766    { (exit 1); exit 1; }; }
3767
3768 # Provide some information about the compiler.
3769 echo "$as_me:$LINENO: checking for C compiler version" >&5
3770 ac_compiler=`set X $ac_compile; echo $2`
3771 { (ac_try="$ac_compiler --version >&5"
3772 case "(($ac_try" in
3773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3774   *) ac_try_echo=$ac_try;;
3775 esac
3776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3777   (eval "$ac_compiler --version >&5") 2>&5
3778   ac_status=$?
3779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780   (exit $ac_status); }
3781 { (ac_try="$ac_compiler -v >&5"
3782 case "(($ac_try" in
3783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3784   *) ac_try_echo=$ac_try;;
3785 esac
3786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3787   (eval "$ac_compiler -v >&5") 2>&5
3788   ac_status=$?
3789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3790   (exit $ac_status); }
3791 { (ac_try="$ac_compiler -V >&5"
3792 case "(($ac_try" in
3793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3794   *) ac_try_echo=$ac_try;;
3795 esac
3796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3797   (eval "$ac_compiler -V >&5") 2>&5
3798   ac_status=$?
3799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800   (exit $ac_status); }
3801
3802 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3803 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3804 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3805   echo $ECHO_N "(cached) $ECHO_C" >&6
3806 else
3807   cat >conftest.$ac_ext <<_ACEOF
3808 /* confdefs.h.  */
3809 _ACEOF
3810 cat confdefs.h >>conftest.$ac_ext
3811 cat >>conftest.$ac_ext <<_ACEOF
3812 /* end confdefs.h.  */
3813
3814 int
3815 main ()
3816 {
3817 #ifndef __GNUC__
3818        choke me
3819 #endif
3820
3821   ;
3822   return 0;
3823 }
3824 _ACEOF
3825 rm -f conftest.$ac_objext
3826 if { (ac_try="$ac_compile"
3827 case "(($ac_try" in
3828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3829   *) ac_try_echo=$ac_try;;
3830 esac
3831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3832   (eval "$ac_compile") 2>conftest.er1
3833   ac_status=$?
3834   grep -v '^ *+' conftest.er1 >conftest.err
3835   rm -f conftest.er1
3836   cat conftest.err >&5
3837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3838   (exit $ac_status); } && {
3839          test -z "$ac_c_werror_flag" ||
3840          test ! -s conftest.err
3841        } && test -s conftest.$ac_objext; then
3842   ac_compiler_gnu=yes
3843 else
3844   echo "$as_me: failed program was:" >&5
3845 sed 's/^/| /' conftest.$ac_ext >&5
3846
3847         ac_compiler_gnu=no
3848 fi
3849
3850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3851 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3852
3853 fi
3854 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3855 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3856 GCC=`test $ac_compiler_gnu = yes && echo yes`
3857 ac_test_CFLAGS=${CFLAGS+set}
3858 ac_save_CFLAGS=$CFLAGS
3859 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3860 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3861 if test "${ac_cv_prog_cc_g+set}" = set; then
3862   echo $ECHO_N "(cached) $ECHO_C" >&6
3863 else
3864   ac_save_c_werror_flag=$ac_c_werror_flag
3865    ac_c_werror_flag=yes
3866    ac_cv_prog_cc_g=no
3867    CFLAGS="-g"
3868    cat >conftest.$ac_ext <<_ACEOF
3869 /* confdefs.h.  */
3870 _ACEOF
3871 cat confdefs.h >>conftest.$ac_ext
3872 cat >>conftest.$ac_ext <<_ACEOF
3873 /* end confdefs.h.  */
3874
3875 int
3876 main ()
3877 {
3878
3879   ;
3880   return 0;
3881 }
3882 _ACEOF
3883 rm -f conftest.$ac_objext
3884 if { (ac_try="$ac_compile"
3885 case "(($ac_try" in
3886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3887   *) ac_try_echo=$ac_try;;
3888 esac
3889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3890   (eval "$ac_compile") 2>conftest.er1
3891   ac_status=$?
3892   grep -v '^ *+' conftest.er1 >conftest.err
3893   rm -f conftest.er1
3894   cat conftest.err >&5
3895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3896   (exit $ac_status); } && {
3897          test -z "$ac_c_werror_flag" ||
3898          test ! -s conftest.err
3899        } && test -s conftest.$ac_objext; then
3900   ac_cv_prog_cc_g=yes
3901 else
3902   echo "$as_me: failed program was:" >&5
3903 sed 's/^/| /' conftest.$ac_ext >&5
3904
3905         CFLAGS=""
3906       cat >conftest.$ac_ext <<_ACEOF
3907 /* confdefs.h.  */
3908 _ACEOF
3909 cat confdefs.h >>conftest.$ac_ext
3910 cat >>conftest.$ac_ext <<_ACEOF
3911 /* end confdefs.h.  */
3912
3913 int
3914 main ()
3915 {
3916
3917   ;
3918   return 0;
3919 }
3920 _ACEOF
3921 rm -f conftest.$ac_objext
3922 if { (ac_try="$ac_compile"
3923 case "(($ac_try" in
3924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3925   *) ac_try_echo=$ac_try;;
3926 esac
3927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3928   (eval "$ac_compile") 2>conftest.er1
3929   ac_status=$?
3930   grep -v '^ *+' conftest.er1 >conftest.err
3931   rm -f conftest.er1
3932   cat conftest.err >&5
3933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3934   (exit $ac_status); } && {
3935          test -z "$ac_c_werror_flag" ||
3936          test ! -s conftest.err
3937        } && test -s conftest.$ac_objext; then
3938   :
3939 else
3940   echo "$as_me: failed program was:" >&5
3941 sed 's/^/| /' conftest.$ac_ext >&5
3942
3943         ac_c_werror_flag=$ac_save_c_werror_flag
3944          CFLAGS="-g"
3945          cat >conftest.$ac_ext <<_ACEOF
3946 /* confdefs.h.  */
3947 _ACEOF
3948 cat confdefs.h >>conftest.$ac_ext
3949 cat >>conftest.$ac_ext <<_ACEOF
3950 /* end confdefs.h.  */
3951
3952 int
3953 main ()
3954 {
3955
3956   ;
3957   return 0;
3958 }
3959 _ACEOF
3960 rm -f conftest.$ac_objext
3961 if { (ac_try="$ac_compile"
3962 case "(($ac_try" in
3963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3964   *) ac_try_echo=$ac_try;;
3965 esac
3966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3967   (eval "$ac_compile") 2>conftest.er1
3968   ac_status=$?
3969   grep -v '^ *+' conftest.er1 >conftest.err
3970   rm -f conftest.er1
3971   cat conftest.err >&5
3972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3973   (exit $ac_status); } && {
3974          test -z "$ac_c_werror_flag" ||
3975          test ! -s conftest.err
3976        } && test -s conftest.$ac_objext; then
3977   ac_cv_prog_cc_g=yes
3978 else
3979   echo "$as_me: failed program was:" >&5
3980 sed 's/^/| /' conftest.$ac_ext >&5
3981
3982
3983 fi
3984
3985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3986 fi
3987
3988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3989 fi
3990
3991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3992    ac_c_werror_flag=$ac_save_c_werror_flag
3993 fi
3994 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3995 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3996 if test "$ac_test_CFLAGS" = set; then
3997   CFLAGS=$ac_save_CFLAGS
3998 elif test $ac_cv_prog_cc_g = yes; then
3999   if test "$GCC" = yes; then
4000     CFLAGS="-g -O2"
4001   else
4002     CFLAGS="-g"
4003   fi
4004 else
4005   if test "$GCC" = yes; then
4006     CFLAGS="-O2"
4007   else
4008     CFLAGS=
4009   fi
4010 fi
4011 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4012 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4013 if test "${ac_cv_prog_cc_c89+set}" = set; then
4014   echo $ECHO_N "(cached) $ECHO_C" >&6
4015 else
4016   ac_cv_prog_cc_c89=no
4017 ac_save_CC=$CC
4018 cat >conftest.$ac_ext <<_ACEOF
4019 /* confdefs.h.  */
4020 _ACEOF
4021 cat confdefs.h >>conftest.$ac_ext
4022 cat >>conftest.$ac_ext <<_ACEOF
4023 /* end confdefs.h.  */
4024 #include <stdarg.h>
4025 #include <stdio.h>
4026 #include <sys/types.h>
4027 #include <sys/stat.h>
4028 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4029 struct buf { int x; };
4030 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4031 static char *e (p, i)
4032      char **p;
4033      int i;
4034 {
4035   return p[i];
4036 }
4037 static char *f (char * (*g) (char **, int), char **p, ...)
4038 {
4039   char *s;
4040   va_list v;
4041   va_start (v,p);
4042   s = g (p, va_arg (v,int));
4043   va_end (v);
4044   return s;
4045 }
4046
4047 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4048    function prototypes and stuff, but not '\xHH' hex character constants.
4049    These don't provoke an error unfortunately, instead are silently treated
4050    as 'x'.  The following induces an error, until -std is added to get
4051    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4052    array size at least.  It's necessary to write '\x00'==0 to get something
4053    that's true only with -std.  */
4054 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4055
4056 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4057    inside strings and character constants.  */
4058 #define FOO(x) 'x'
4059 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4060
4061 int test (int i, double x);
4062 struct s1 {int (*f) (int a);};
4063 struct s2 {int (*f) (double a);};
4064 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4065 int argc;
4066 char **argv;
4067 int
4068 main ()
4069 {
4070 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4071   ;
4072   return 0;
4073 }
4074 _ACEOF
4075 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4076         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4077 do
4078   CC="$ac_save_CC $ac_arg"
4079   rm -f conftest.$ac_objext
4080 if { (ac_try="$ac_compile"
4081 case "(($ac_try" in
4082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4083   *) ac_try_echo=$ac_try;;
4084 esac
4085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4086   (eval "$ac_compile") 2>conftest.er1
4087   ac_status=$?
4088   grep -v '^ *+' conftest.er1 >conftest.err
4089   rm -f conftest.er1
4090   cat conftest.err >&5
4091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092   (exit $ac_status); } && {
4093          test -z "$ac_c_werror_flag" ||
4094          test ! -s conftest.err
4095        } && test -s conftest.$ac_objext; then
4096   ac_cv_prog_cc_c89=$ac_arg
4097 else
4098   echo "$as_me: failed program was:" >&5
4099 sed 's/^/| /' conftest.$ac_ext >&5
4100
4101
4102 fi
4103
4104 rm -f core conftest.err conftest.$ac_objext
4105   test "x$ac_cv_prog_cc_c89" != "xno" && break
4106 done
4107 rm -f conftest.$ac_ext
4108 CC=$ac_save_CC
4109
4110 fi
4111 # AC_CACHE_VAL
4112 case "x$ac_cv_prog_cc_c89" in
4113   x)
4114     { echo "$as_me:$LINENO: result: none needed" >&5
4115 echo "${ECHO_T}none needed" >&6; } ;;
4116   xno)
4117     { echo "$as_me:$LINENO: result: unsupported" >&5
4118 echo "${ECHO_T}unsupported" >&6; } ;;
4119   *)
4120     CC="$CC $ac_cv_prog_cc_c89"
4121     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4122 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4123 esac
4124
4125
4126 ac_ext=c
4127 ac_cpp='$CPP $CPPFLAGS'
4128 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4129 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4130 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4131
4132 depcc="$CC"   am_compiler_list=
4133
4134 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4135 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4136 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4137   echo $ECHO_N "(cached) $ECHO_C" >&6
4138 else
4139   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4140   # We make a subdir and do the tests there.  Otherwise we can end up
4141   # making bogus files that we don't know about and never remove.  For
4142   # instance it was reported that on HP-UX the gcc test will end up
4143   # making a dummy file named `D' -- because `-MD' means `put the output
4144   # in D'.
4145   mkdir conftest.dir
4146   # Copy depcomp to subdir because otherwise we won't find it if we're
4147   # using a relative directory.
4148   cp "$am_depcomp" conftest.dir
4149   cd conftest.dir
4150   # We will build objects and dependencies in a subdirectory because
4151   # it helps to detect inapplicable dependency modes.  For instance
4152   # both Tru64's cc and ICC support -MD to output dependencies as a
4153   # side effect of compilation, but ICC will put the dependencies in
4154   # the current directory while Tru64 will put them in the object
4155   # directory.
4156   mkdir sub
4157
4158   am_cv_CC_dependencies_compiler_type=none
4159   if test "$am_compiler_list" = ""; then
4160      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4161   fi
4162   for depmode in $am_compiler_list; do
4163     # Setup a source with many dependencies, because some compilers
4164     # like to wrap large dependency lists on column 80 (with \), and
4165     # we should not choose a depcomp mode which is confused by this.
4166     #
4167     # We need to recreate these files for each test, as the compiler may
4168     # overwrite some of them when testing with obscure command lines.
4169     # This happens at least with the AIX C compiler.
4170     : > sub/conftest.c
4171     for i in 1 2 3 4 5 6; do
4172       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4173       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4174       # Solaris 8's {/usr,}/bin/sh.
4175       touch sub/conftst$i.h
4176     done
4177     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4178
4179     case $depmode in
4180     nosideeffect)
4181       # after this tag, mechanisms are not by side-effect, so they'll
4182       # only be used when explicitly requested
4183       if test "x$enable_dependency_tracking" = xyes; then
4184         continue
4185       else
4186         break
4187       fi
4188       ;;
4189     none) break ;;
4190     esac
4191     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4192     # mode.  It turns out that the SunPro C++ compiler does not properly
4193     # handle `-M -o', and we need to detect this.
4194     if depmode=$depmode \
4195        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4196        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4197        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4198          >/dev/null 2>conftest.err &&
4199        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4200        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4201        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4202        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4203       # icc doesn't choke on unknown options, it will just issue warnings
4204       # or remarks (even with -Werror).  So we grep stderr for any message
4205       # that says an option was ignored or not supported.
4206       # When given -MP, icc 7.0 and 7.1 complain thusly:
4207       #   icc: Command line warning: ignoring option '-M'; no argument required
4208       # The diagnosis changed in icc 8.0:
4209       #   icc: Command line remark: option '-MP' not supported
4210       if (grep 'ignoring option' conftest.err ||
4211           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4212         am_cv_CC_dependencies_compiler_type=$depmode
4213         break
4214       fi
4215     fi
4216   done
4217
4218   cd ..
4219   rm -rf conftest.dir
4220 else
4221   am_cv_CC_dependencies_compiler_type=none
4222 fi
4223
4224 fi
4225 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4226 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4227 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4228
4229  if
4230   test "x$enable_dependency_tracking" != xno \
4231   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4232   am__fastdepCC_TRUE=
4233   am__fastdepCC_FALSE='#'
4234 else
4235   am__fastdepCC_TRUE='#'
4236   am__fastdepCC_FALSE=
4237 fi
4238
4239
4240 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4241 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4242 if test "${lt_cv_path_SED+set}" = set; then
4243   echo $ECHO_N "(cached) $ECHO_C" >&6
4244 else
4245   # Loop through the user's path and test for sed and gsed.
4246 # Then use that list of sed's as ones to test for truncation.
4247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4248 for as_dir in $PATH
4249 do
4250   IFS=$as_save_IFS
4251   test -z "$as_dir" && as_dir=.
4252   for lt_ac_prog in sed gsed; do
4253     for ac_exec_ext in '' $ac_executable_extensions; do
4254       if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
4255         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4256       fi
4257     done
4258   done
4259 done
4260 IFS=$as_save_IFS
4261 lt_ac_max=0
4262 lt_ac_count=0
4263 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4264 # along with /bin/sed that truncates output.
4265 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4266   test ! -f $lt_ac_sed && continue
4267   cat /dev/null > conftest.in
4268   lt_ac_count=0
4269   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4270   # Check for GNU sed and select it if it is found.
4271   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4272     lt_cv_path_SED=$lt_ac_sed
4273     break
4274   fi
4275   while true; do
4276     cat conftest.in conftest.in >conftest.tmp
4277     mv conftest.tmp conftest.in
4278     cp conftest.in conftest.nl
4279     echo >>conftest.nl
4280     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4281     cmp -s conftest.out conftest.nl || break
4282     # 10000 chars as input seems more than enough
4283     test $lt_ac_count -gt 10 && break
4284     lt_ac_count=`expr $lt_ac_count + 1`
4285     if test $lt_ac_count -gt $lt_ac_max; then
4286       lt_ac_max=$lt_ac_count
4287       lt_cv_path_SED=$lt_ac_sed
4288     fi
4289   done
4290 done
4291
4292 fi
4293
4294 SED=$lt_cv_path_SED
4295
4296 { echo "$as_me:$LINENO: result: $SED" >&5
4297 echo "${ECHO_T}$SED" >&6; }
4298
4299 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4300 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4301 if test "${ac_cv_path_GREP+set}" = set; then
4302   echo $ECHO_N "(cached) $ECHO_C" >&6
4303 else
4304   # Extract the first word of "grep ggrep" to use in msg output
4305 if test -z "$GREP"; then
4306 set dummy grep ggrep; ac_prog_name=$2
4307 if test "${ac_cv_path_GREP+set}" = set; then
4308   echo $ECHO_N "(cached) $ECHO_C" >&6
4309 else
4310   ac_path_GREP_found=false
4311 # Loop through the user's path and test for each of PROGNAME-LIST
4312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4313 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4314 do
4315   IFS=$as_save_IFS
4316   test -z "$as_dir" && as_dir=.
4317   for ac_prog in grep ggrep; do
4318   for ac_exec_ext in '' $ac_executable_extensions; do
4319     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4320     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4321     # Check for GNU ac_path_GREP and select it if it is found.
4322   # Check for GNU $ac_path_GREP
4323 case `"$ac_path_GREP" --version 2>&1` in
4324 *GNU*)
4325   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4326 *)
4327   ac_count=0
4328   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4329   while :
4330   do
4331     cat "conftest.in" "conftest.in" >"conftest.tmp"
4332     mv "conftest.tmp" "conftest.in"
4333     cp "conftest.in" "conftest.nl"
4334     echo 'GREP' >> "conftest.nl"
4335     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4336     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4337     ac_count=`expr $ac_count + 1`
4338     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4339       # Best one so far, save it but keep looking for a better one
4340       ac_cv_path_GREP="$ac_path_GREP"
4341       ac_path_GREP_max=$ac_count
4342     fi
4343     # 10*(2^10) chars as input seems more than enough
4344     test $ac_count -gt 10 && break
4345   done
4346   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4347 esac
4348
4349
4350     $ac_path_GREP_found && break 3
4351   done
4352 done
4353
4354 done
4355 IFS=$as_save_IFS
4356
4357
4358 fi
4359
4360 GREP="$ac_cv_path_GREP"
4361 if test -z "$GREP"; then
4362   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4363 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4364    { (exit 1); exit 1; }; }
4365 fi
4366
4367 else
4368   ac_cv_path_GREP=$GREP
4369 fi
4370
4371
4372 fi
4373 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4374 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4375  GREP="$ac_cv_path_GREP"
4376
4377
4378 { echo "$as_me:$LINENO: checking for egrep" >&5
4379 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4380 if test "${ac_cv_path_EGREP+set}" = set; then
4381   echo $ECHO_N "(cached) $ECHO_C" >&6
4382 else
4383   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4384    then ac_cv_path_EGREP="$GREP -E"
4385    else
4386      # Extract the first word of "egrep" to use in msg output
4387 if test -z "$EGREP"; then
4388 set dummy egrep; ac_prog_name=$2
4389 if test "${ac_cv_path_EGREP+set}" = set; then
4390   echo $ECHO_N "(cached) $ECHO_C" >&6
4391 else
4392   ac_path_EGREP_found=false
4393 # Loop through the user's path and test for each of PROGNAME-LIST
4394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4395 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4396 do
4397   IFS=$as_save_IFS
4398   test -z "$as_dir" && as_dir=.
4399   for ac_prog in egrep; do
4400   for ac_exec_ext in '' $ac_executable_extensions; do
4401     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4402     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4403     # Check for GNU ac_path_EGREP and select it if it is found.
4404   # Check for GNU $ac_path_EGREP
4405 case `"$ac_path_EGREP" --version 2>&1` in
4406 *GNU*)
4407   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4408 *)
4409   ac_count=0
4410   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4411   while :
4412   do
4413     cat "conftest.in" "conftest.in" >"conftest.tmp"
4414     mv "conftest.tmp" "conftest.in"
4415     cp "conftest.in" "conftest.nl"
4416     echo 'EGREP' >> "conftest.nl"
4417     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4418     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4419     ac_count=`expr $ac_count + 1`
4420     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4421       # Best one so far, save it but keep looking for a better one
4422       ac_cv_path_EGREP="$ac_path_EGREP"
4423       ac_path_EGREP_max=$ac_count
4424     fi
4425     # 10*(2^10) chars as input seems more than enough
4426     test $ac_count -gt 10 && break
4427   done
4428   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4429 esac
4430
4431
4432     $ac_path_EGREP_found && break 3
4433   done
4434 done
4435
4436 done
4437 IFS=$as_save_IFS
4438
4439
4440 fi
4441
4442 EGREP="$ac_cv_path_EGREP"
4443 if test -z "$EGREP"; then
4444   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4445 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4446    { (exit 1); exit 1; }; }
4447 fi
4448
4449 else
4450   ac_cv_path_EGREP=$EGREP
4451 fi
4452
4453
4454    fi
4455 fi
4456 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4457 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4458  EGREP="$ac_cv_path_EGREP"
4459
4460
4461
4462 # Check whether --with-gnu-ld was given.
4463 if test "${with_gnu_ld+set}" = set; then
4464   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4465 else
4466   with_gnu_ld=no
4467 fi
4468
4469 ac_prog=ld
4470 if test "$GCC" = yes; then
4471   # Check if gcc -print-prog-name=ld gives a path.
4472   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4473 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4474   case $host in
4475   *-*-mingw*)
4476     # gcc leaves a trailing carriage return which upsets mingw
4477     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4478   *)
4479     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4480   esac
4481   case $ac_prog in
4482     # Accept absolute paths.
4483     [\\/]* | ?:[\\/]*)
4484       re_direlt='/[^/][^/]*/\.\./'
4485       # Canonicalize the pathname of ld
4486       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4487       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4488         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4489       done
4490       test -z "$LD" && LD="$ac_prog"
4491       ;;
4492   "")
4493     # If it fails, then pretend we aren't using GCC.
4494     ac_prog=ld
4495     ;;
4496   *)
4497     # If it is relative, then search for the first ld in PATH.
4498     with_gnu_ld=unknown
4499     ;;
4500   esac
4501 elif test "$with_gnu_ld" = yes; then
4502   { echo "$as_me:$LINENO: checking for GNU ld" >&5
4503 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4504 else
4505   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4506 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4507 fi
4508 if test "${lt_cv_path_LD+set}" = set; then
4509   echo $ECHO_N "(cached) $ECHO_C" >&6
4510 else
4511   if test -z "$LD"; then
4512   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4513   for ac_dir in $PATH; do
4514     IFS="$lt_save_ifs"
4515     test -z "$ac_dir" && ac_dir=.
4516     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4517       lt_cv_path_LD="$ac_dir/$ac_prog"
4518       # Check to see if the program is GNU ld.  I'd rather use --version,
4519       # but apparently some variants of GNU ld only accept -v.
4520       # Break only if it was the GNU/non-GNU ld that we prefer.
4521       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4522       *GNU* | *'with BFD'*)
4523         test "$with_gnu_ld" != no && break
4524         ;;
4525       *)
4526         test "$with_gnu_ld" != yes && break
4527         ;;
4528       esac
4529     fi
4530   done
4531   IFS="$lt_save_ifs"
4532 else
4533   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4534 fi
4535 fi
4536
4537 LD="$lt_cv_path_LD"
4538 if test -n "$LD"; then
4539   { echo "$as_me:$LINENO: result: $LD" >&5
4540 echo "${ECHO_T}$LD" >&6; }
4541 else
4542   { echo "$as_me:$LINENO: result: no" >&5
4543 echo "${ECHO_T}no" >&6; }
4544 fi
4545 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4546 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4547    { (exit 1); exit 1; }; }
4548 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4549 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4550 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4551   echo $ECHO_N "(cached) $ECHO_C" >&6
4552 else
4553   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4554 case `$LD -v 2>&1 </dev/null` in
4555 *GNU* | *'with BFD'*)
4556   lt_cv_prog_gnu_ld=yes
4557   ;;
4558 *)
4559   lt_cv_prog_gnu_ld=no
4560   ;;
4561 esac
4562 fi
4563 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4564 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4565 with_gnu_ld=$lt_cv_prog_gnu_ld
4566
4567
4568 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4569 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4570 if test "${lt_cv_ld_reload_flag+set}" = set; then
4571   echo $ECHO_N "(cached) $ECHO_C" >&6
4572 else
4573   lt_cv_ld_reload_flag='-r'
4574 fi
4575 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4576 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4577 reload_flag=$lt_cv_ld_reload_flag
4578 case $reload_flag in
4579 "" | " "*) ;;
4580 *) reload_flag=" $reload_flag" ;;
4581 esac
4582 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4583 case $host_os in
4584   darwin*)
4585     if test "$GCC" = yes; then
4586       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4587     else
4588       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4589     fi
4590     ;;
4591 esac
4592
4593 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4594 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4595 if test "${lt_cv_path_NM+set}" = set; then
4596   echo $ECHO_N "(cached) $ECHO_C" >&6
4597 else
4598   if test -n "$NM"; then
4599   # Let the user override the test.
4600   lt_cv_path_NM="$NM"
4601 else
4602   lt_nm_to_check="${ac_tool_prefix}nm"
4603   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4604     lt_nm_to_check="$lt_nm_to_check nm"
4605   fi
4606   for lt_tmp_nm in $lt_nm_to_check; do
4607     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4608     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4609       IFS="$lt_save_ifs"
4610       test -z "$ac_dir" && ac_dir=.
4611       tmp_nm="$ac_dir/$lt_tmp_nm"
4612       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4613         # Check to see if the nm accepts a BSD-compat flag.
4614         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4615         #   nm: unknown option "B" ignored
4616         # Tru64's nm complains that /dev/null is an invalid object file
4617         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4618         */dev/null* | *'Invalid file or object type'*)
4619           lt_cv_path_NM="$tmp_nm -B"
4620           break
4621           ;;
4622         *)
4623           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4624           */dev/null*)
4625             lt_cv_path_NM="$tmp_nm -p"
4626             break
4627             ;;
4628           *)
4629             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4630             continue # so that we can try to find one that supports BSD flags
4631             ;;
4632           esac
4633           ;;
4634         esac
4635       fi
4636     done
4637     IFS="$lt_save_ifs"
4638   done
4639   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4640 fi
4641 fi
4642 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4643 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4644 NM="$lt_cv_path_NM"
4645
4646 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4647 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4648 LN_S=$as_ln_s
4649 if test "$LN_S" = "ln -s"; then
4650   { echo "$as_me:$LINENO: result: yes" >&5
4651 echo "${ECHO_T}yes" >&6; }
4652 else
4653   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4654 echo "${ECHO_T}no, using $LN_S" >&6; }
4655 fi
4656
4657 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4658 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4659 if test "${lt_cv_deplibs_check_method+set}" = set; then
4660   echo $ECHO_N "(cached) $ECHO_C" >&6
4661 else
4662   lt_cv_file_magic_cmd='$MAGIC_CMD'
4663 lt_cv_file_magic_test_file=
4664 lt_cv_deplibs_check_method='unknown'
4665 # Need to set the preceding variable on all platforms that support
4666 # interlibrary dependencies.
4667 # 'none' -- dependencies not supported.
4668 # `unknown' -- same as none, but documents that we really don't know.
4669 # 'pass_all' -- all dependencies passed with no checks.
4670 # 'test_compile' -- check by making test program.
4671 # 'file_magic [[regex]]' -- check by looking for files in library path
4672 # which responds to the $file_magic_cmd with a given extended regex.
4673 # If you have `file' or equivalent on your system and you're not sure
4674 # whether `pass_all' will *always* work, you probably want this one.
4675
4676 case $host_os in
4677 aix[4-9]*)
4678   lt_cv_deplibs_check_method=pass_all
4679   ;;
4680
4681 beos*)
4682   lt_cv_deplibs_check_method=pass_all
4683   ;;
4684
4685 bsdi[45]*)
4686   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4687   lt_cv_file_magic_cmd='/usr/bin/file -L'
4688   lt_cv_file_magic_test_file=/shlib/libc.so
4689   ;;
4690
4691 cygwin*)
4692   # func_win32_libid is a shell function defined in ltmain.sh
4693   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4694   lt_cv_file_magic_cmd='func_win32_libid'
4695   ;;
4696
4697 mingw* | pw32*)
4698   # Base MSYS/MinGW do not provide the 'file' command needed by
4699   # func_win32_libid shell function, so use a weaker test based on 'objdump',
4700   # unless we find 'file', for example because we are cross-compiling.
4701   if ( file / ) >/dev/null 2>&1; then
4702     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4703     lt_cv_file_magic_cmd='func_win32_libid'
4704   else
4705     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4706     lt_cv_file_magic_cmd='$OBJDUMP -f'
4707   fi
4708   ;;
4709
4710 darwin* | rhapsody*)
4711   lt_cv_deplibs_check_method=pass_all
4712   ;;
4713
4714 freebsd* | dragonfly*)
4715   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4716     case $host_cpu in
4717     i*86 )
4718       # Not sure whether the presence of OpenBSD here was a mistake.
4719       # Let's accept both of them until this is cleared up.
4720       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4721       lt_cv_file_magic_cmd=/usr/bin/file
4722       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4723       ;;
4724     esac
4725   else
4726     lt_cv_deplibs_check_method=pass_all
4727   fi
4728   ;;
4729
4730 gnu*)
4731   lt_cv_deplibs_check_method=pass_all
4732   ;;
4733
4734 hpux10.20* | hpux11*)
4735   lt_cv_file_magic_cmd=/usr/bin/file
4736   case $host_cpu in
4737   ia64*)
4738     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4739     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4740     ;;
4741   hppa*64*)
4742     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]'
4743     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4744     ;;
4745   *)
4746     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4747     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4748     ;;
4749   esac
4750   ;;
4751
4752 interix[3-9]*)
4753   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4754   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4755   ;;
4756
4757 irix5* | irix6* | nonstopux*)
4758   case $LD in
4759   *-32|*"-32 ") libmagic=32-bit;;
4760   *-n32|*"-n32 ") libmagic=N32;;
4761   *-64|*"-64 ") libmagic=64-bit;;
4762   *) libmagic=never-match;;
4763   esac
4764   lt_cv_deplibs_check_method=pass_all
4765   ;;
4766
4767 # This must be Linux ELF.
4768 linux* | k*bsd*-gnu)
4769   lt_cv_deplibs_check_method=pass_all
4770   ;;
4771
4772 netbsd*)
4773   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4774     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4775   else
4776     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4777   fi
4778   ;;
4779
4780 newos6*)
4781   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4782   lt_cv_file_magic_cmd=/usr/bin/file
4783   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4784   ;;
4785
4786 nto-qnx*)
4787   lt_cv_deplibs_check_method=unknown
4788   ;;
4789
4790 openbsd*)
4791   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4792     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4793   else
4794     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4795   fi
4796   ;;
4797
4798 osf3* | osf4* | osf5*)
4799   lt_cv_deplibs_check_method=pass_all
4800   ;;
4801
4802 rdos*)
4803   lt_cv_deplibs_check_method=pass_all
4804   ;;
4805
4806 solaris*)
4807   lt_cv_deplibs_check_method=pass_all
4808   ;;
4809
4810 sysv4 | sysv4.3*)
4811   case $host_vendor in
4812   motorola)
4813     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]'
4814     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4815     ;;
4816   ncr)
4817     lt_cv_deplibs_check_method=pass_all
4818     ;;
4819   sequent)
4820     lt_cv_file_magic_cmd='/bin/file'
4821     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4822     ;;
4823   sni)
4824     lt_cv_file_magic_cmd='/bin/file'
4825     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4826     lt_cv_file_magic_test_file=/lib/libc.so
4827     ;;
4828   siemens)
4829     lt_cv_deplibs_check_method=pass_all
4830     ;;
4831   pc)
4832     lt_cv_deplibs_check_method=pass_all
4833     ;;
4834   esac
4835   ;;
4836
4837 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4838   lt_cv_deplibs_check_method=pass_all
4839   ;;
4840 esac
4841
4842 fi
4843 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4844 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4845 file_magic_cmd=$lt_cv_file_magic_cmd
4846 deplibs_check_method=$lt_cv_deplibs_check_method
4847 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4848
4849
4850
4851
4852 # If no C compiler was specified, use CC.
4853 LTCC=${LTCC-"$CC"}
4854
4855 # If no C compiler flags were specified, use CFLAGS.
4856 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4857
4858 # Allow CC to be a program name with arguments.
4859 compiler=$CC
4860
4861
4862 # Check whether --enable-libtool-lock was given.
4863 if test "${enable_libtool_lock+set}" = set; then
4864   enableval=$enable_libtool_lock;
4865 fi
4866
4867 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4868
4869 # Some flags need to be propagated to the compiler or linker for good
4870 # libtool support.
4871 case $host in
4872 ia64-*-hpux*)
4873   # Find out which ABI we are using.
4874   echo 'int i;' > conftest.$ac_ext
4875   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4876   (eval $ac_compile) 2>&5
4877   ac_status=$?
4878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4879   (exit $ac_status); }; then
4880     case `/usr/bin/file conftest.$ac_objext` in
4881     *ELF-32*)
4882       HPUX_IA64_MODE="32"
4883       ;;
4884     *ELF-64*)
4885       HPUX_IA64_MODE="64"
4886       ;;
4887     esac
4888   fi
4889   rm -rf conftest*
4890   ;;
4891 *-*-irix6*)
4892   # Find out which ABI we are using.
4893   echo '#line 4893 "configure"' > conftest.$ac_ext
4894   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4895   (eval $ac_compile) 2>&5
4896   ac_status=$?
4897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4898   (exit $ac_status); }; then
4899    if test "$lt_cv_prog_gnu_ld" = yes; then
4900     case `/usr/bin/file conftest.$ac_objext` in
4901     *32-bit*)
4902       LD="${LD-ld} -melf32bsmip"
4903       ;;
4904     *N32*)
4905       LD="${LD-ld} -melf32bmipn32"
4906       ;;
4907     *64-bit*)
4908       LD="${LD-ld} -melf64bmip"
4909       ;;
4910     esac
4911    else
4912     case `/usr/bin/file conftest.$ac_objext` in
4913     *32-bit*)
4914       LD="${LD-ld} -32"
4915       ;;
4916     *N32*)
4917       LD="${LD-ld} -n32"
4918       ;;
4919     *64-bit*)
4920       LD="${LD-ld} -64"
4921       ;;
4922     esac
4923    fi
4924   fi
4925   rm -rf conftest*
4926   ;;
4927
4928 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4929 s390*-*linux*|sparc*-*linux*)
4930   # Find out which ABI we are using.
4931   echo 'int i;' > conftest.$ac_ext
4932   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4933   (eval $ac_compile) 2>&5
4934   ac_status=$?
4935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4936   (exit $ac_status); }; then
4937     case `/usr/bin/file conftest.o` in
4938     *32-bit*)
4939       case $host in
4940         x86_64-*kfreebsd*-gnu)
4941           LD="${LD-ld} -m elf_i386_fbsd"
4942           ;;
4943         x86_64-*linux*)
4944           LD="${LD-ld} -m elf_i386"
4945           ;;
4946         ppc64-*linux*|powerpc64-*linux*)
4947           LD="${LD-ld} -m elf32ppclinux"
4948           ;;
4949         s390x-*linux*)
4950           LD="${LD-ld} -m elf_s390"
4951           ;;
4952         sparc64-*linux*)
4953           LD="${LD-ld} -m elf32_sparc"
4954           ;;
4955       esac
4956       ;;
4957     *64-bit*)
4958       case $host in
4959         x86_64-*kfreebsd*-gnu)
4960           LD="${LD-ld} -m elf_x86_64_fbsd"
4961           ;;
4962         x86_64-*linux*)
4963           LD="${LD-ld} -m elf_x86_64"
4964           ;;
4965         ppc*-*linux*|powerpc*-*linux*)
4966           LD="${LD-ld} -m elf64ppc"
4967           ;;
4968         s390*-*linux*)
4969           LD="${LD-ld} -m elf64_s390"
4970           ;;
4971         sparc*-*linux*)
4972           LD="${LD-ld} -m elf64_sparc"
4973           ;;
4974       esac
4975       ;;
4976     esac
4977   fi
4978   rm -rf conftest*
4979   ;;
4980
4981 *-*-sco3.2v5*)
4982   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4983   SAVE_CFLAGS="$CFLAGS"
4984   CFLAGS="$CFLAGS -belf"
4985   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4986 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4987 if test "${lt_cv_cc_needs_belf+set}" = set; then
4988   echo $ECHO_N "(cached) $ECHO_C" >&6
4989 else
4990   ac_ext=c
4991 ac_cpp='$CPP $CPPFLAGS'
4992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4995
4996      cat >conftest.$ac_ext <<_ACEOF
4997 /* confdefs.h.  */
4998 _ACEOF
4999 cat confdefs.h >>conftest.$ac_ext
5000 cat >>conftest.$ac_ext <<_ACEOF
5001 /* end confdefs.h.  */
5002
5003 int
5004 main ()
5005 {
5006
5007   ;
5008   return 0;
5009 }
5010 _ACEOF
5011 rm -f conftest.$ac_objext conftest$ac_exeext
5012 if { (ac_try="$ac_link"
5013 case "(($ac_try" in
5014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5015   *) ac_try_echo=$ac_try;;
5016 esac
5017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5018   (eval "$ac_link") 2>conftest.er1
5019   ac_status=$?
5020   grep -v '^ *+' conftest.er1 >conftest.err
5021   rm -f conftest.er1
5022   cat conftest.err >&5
5023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5024   (exit $ac_status); } && {
5025          test -z "$ac_c_werror_flag" ||
5026          test ! -s conftest.err
5027        } && test -s conftest$ac_exeext &&
5028        $as_test_x conftest$ac_exeext; then
5029   lt_cv_cc_needs_belf=yes
5030 else
5031   echo "$as_me: failed program was:" >&5
5032 sed 's/^/| /' conftest.$ac_ext >&5
5033
5034         lt_cv_cc_needs_belf=no
5035 fi
5036
5037 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5038       conftest$ac_exeext conftest.$ac_ext
5039      ac_ext=c
5040 ac_cpp='$CPP $CPPFLAGS'
5041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5044
5045 fi
5046 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5047 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5048   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5049     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5050     CFLAGS="$SAVE_CFLAGS"
5051   fi
5052   ;;
5053 sparc*-*solaris*)
5054   # Find out which ABI we are using.
5055   echo 'int i;' > conftest.$ac_ext
5056   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5057   (eval $ac_compile) 2>&5
5058   ac_status=$?
5059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5060   (exit $ac_status); }; then
5061     case `/usr/bin/file conftest.o` in
5062     *64-bit*)
5063       case $lt_cv_prog_gnu_ld in
5064       yes*) LD="${LD-ld} -m elf64_sparc" ;;
5065       *)
5066         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5067           LD="${LD-ld} -64"
5068         fi
5069         ;;
5070       esac
5071       ;;
5072     esac
5073   fi
5074   rm -rf conftest*
5075   ;;
5076
5077
5078 esac
5079
5080 need_locks="$enable_libtool_lock"
5081
5082
5083 ac_ext=c
5084 ac_cpp='$CPP $CPPFLAGS'
5085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5088 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5089 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5090 # On Suns, sometimes $CPP names a directory.
5091 if test -n "$CPP" && test -d "$CPP"; then
5092   CPP=
5093 fi
5094 if test -z "$CPP"; then
5095   if test "${ac_cv_prog_CPP+set}" = set; then
5096   echo $ECHO_N "(cached) $ECHO_C" >&6
5097 else
5098       # Double quotes because CPP needs to be expanded
5099     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5100     do
5101       ac_preproc_ok=false
5102 for ac_c_preproc_warn_flag in '' yes
5103 do
5104   # Use a header file that comes with gcc, so configuring glibc
5105   # with a fresh cross-compiler works.
5106   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5107   # <limits.h> exists even on freestanding compilers.
5108   # On the NeXT, cc -E runs the code through the compiler's parser,
5109   # not just through cpp. "Syntax error" is here to catch this case.
5110   cat >conftest.$ac_ext <<_ACEOF
5111 /* confdefs.h.  */
5112 _ACEOF
5113 cat confdefs.h >>conftest.$ac_ext
5114 cat >>conftest.$ac_ext <<_ACEOF
5115 /* end confdefs.h.  */
5116 #ifdef __STDC__
5117 # include <limits.h>
5118 #else
5119 # include <assert.h>
5120 #endif
5121                      Syntax error
5122 _ACEOF
5123 if { (ac_try="$ac_cpp conftest.$ac_ext"
5124 case "(($ac_try" in
5125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5126   *) ac_try_echo=$ac_try;;
5127 esac
5128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5129   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5130   ac_status=$?
5131   grep -v '^ *+' conftest.er1 >conftest.err
5132   rm -f conftest.er1
5133   cat conftest.err >&5
5134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135   (exit $ac_status); } >/dev/null && {
5136          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5137          test ! -s conftest.err
5138        }; then
5139   :
5140 else
5141   echo "$as_me: failed program was:" >&5
5142 sed 's/^/| /' conftest.$ac_ext >&5
5143
5144   # Broken: fails on valid input.
5145 continue
5146 fi
5147
5148 rm -f conftest.err conftest.$ac_ext
5149
5150   # OK, works on sane cases.  Now check whether nonexistent headers
5151   # can be detected and how.
5152   cat >conftest.$ac_ext <<_ACEOF
5153 /* confdefs.h.  */
5154 _ACEOF
5155 cat confdefs.h >>conftest.$ac_ext
5156 cat >>conftest.$ac_ext <<_ACEOF
5157 /* end confdefs.h.  */
5158 #include <ac_nonexistent.h>
5159 _ACEOF
5160 if { (ac_try="$ac_cpp conftest.$ac_ext"
5161 case "(($ac_try" in
5162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5163   *) ac_try_echo=$ac_try;;
5164 esac
5165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5166   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5167   ac_status=$?
5168   grep -v '^ *+' conftest.er1 >conftest.err
5169   rm -f conftest.er1
5170   cat conftest.err >&5
5171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5172   (exit $ac_status); } >/dev/null && {
5173          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5174          test ! -s conftest.err
5175        }; then
5176   # Broken: success on invalid input.
5177 continue
5178 else
5179   echo "$as_me: failed program was:" >&5
5180 sed 's/^/| /' conftest.$ac_ext >&5
5181
5182   # Passes both tests.
5183 ac_preproc_ok=:
5184 break
5185 fi
5186
5187 rm -f conftest.err conftest.$ac_ext
5188
5189 done
5190 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5191 rm -f conftest.err conftest.$ac_ext
5192 if $ac_preproc_ok; then
5193   break
5194 fi
5195
5196     done
5197     ac_cv_prog_CPP=$CPP
5198
5199 fi
5200   CPP=$ac_cv_prog_CPP
5201 else
5202   ac_cv_prog_CPP=$CPP
5203 fi
5204 { echo "$as_me:$LINENO: result: $CPP" >&5
5205 echo "${ECHO_T}$CPP" >&6; }
5206 ac_preproc_ok=false
5207 for ac_c_preproc_warn_flag in '' yes
5208 do
5209   # Use a header file that comes with gcc, so configuring glibc
5210   # with a fresh cross-compiler works.
5211   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5212   # <limits.h> exists even on freestanding compilers.
5213   # On the NeXT, cc -E runs the code through the compiler's parser,
5214   # not just through cpp. "Syntax error" is here to catch this case.
5215   cat >conftest.$ac_ext <<_ACEOF
5216 /* confdefs.h.  */
5217 _ACEOF
5218 cat confdefs.h >>conftest.$ac_ext
5219 cat >>conftest.$ac_ext <<_ACEOF
5220 /* end confdefs.h.  */
5221 #ifdef __STDC__
5222 # include <limits.h>
5223 #else
5224 # include <assert.h>
5225 #endif
5226                      Syntax error
5227 _ACEOF
5228 if { (ac_try="$ac_cpp conftest.$ac_ext"
5229 case "(($ac_try" in
5230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5231   *) ac_try_echo=$ac_try;;
5232 esac
5233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5234   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5235   ac_status=$?
5236   grep -v '^ *+' conftest.er1 >conftest.err
5237   rm -f conftest.er1
5238   cat conftest.err >&5
5239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240   (exit $ac_status); } >/dev/null && {
5241          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5242          test ! -s conftest.err
5243        }; then
5244   :
5245 else
5246   echo "$as_me: failed program was:" >&5
5247 sed 's/^/| /' conftest.$ac_ext >&5
5248
5249   # Broken: fails on valid input.
5250 continue
5251 fi
5252
5253 rm -f conftest.err conftest.$ac_ext
5254
5255   # OK, works on sane cases.  Now check whether nonexistent headers
5256   # can be detected and how.
5257   cat >conftest.$ac_ext <<_ACEOF
5258 /* confdefs.h.  */
5259 _ACEOF
5260 cat confdefs.h >>conftest.$ac_ext
5261 cat >>conftest.$ac_ext <<_ACEOF
5262 /* end confdefs.h.  */
5263 #include <ac_nonexistent.h>
5264 _ACEOF
5265 if { (ac_try="$ac_cpp conftest.$ac_ext"
5266 case "(($ac_try" in
5267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5268   *) ac_try_echo=$ac_try;;
5269 esac
5270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5271   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5272   ac_status=$?
5273   grep -v '^ *+' conftest.er1 >conftest.err
5274   rm -f conftest.er1
5275   cat conftest.err >&5
5276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5277   (exit $ac_status); } >/dev/null && {
5278          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5279          test ! -s conftest.err
5280        }; then
5281   # Broken: success on invalid input.
5282 continue
5283 else
5284   echo "$as_me: failed program was:" >&5
5285 sed 's/^/| /' conftest.$ac_ext >&5
5286
5287   # Passes both tests.
5288 ac_preproc_ok=:
5289 break
5290 fi
5291
5292 rm -f conftest.err conftest.$ac_ext
5293
5294 done
5295 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5296 rm -f conftest.err conftest.$ac_ext
5297 if $ac_preproc_ok; then
5298   :
5299 else
5300   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5301 See \`config.log' for more details." >&5
5302 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5303 See \`config.log' for more details." >&2;}
5304    { (exit 1); exit 1; }; }
5305 fi
5306
5307 ac_ext=c
5308 ac_cpp='$CPP $CPPFLAGS'
5309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5312
5313
5314 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5315 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5316 if test "${ac_cv_header_stdc+set}" = set; then
5317   echo $ECHO_N "(cached) $ECHO_C" >&6
5318 else
5319   cat >conftest.$ac_ext <<_ACEOF
5320 /* confdefs.h.  */
5321 _ACEOF
5322 cat confdefs.h >>conftest.$ac_ext
5323 cat >>conftest.$ac_ext <<_ACEOF
5324 /* end confdefs.h.  */
5325 #include <stdlib.h>
5326 #include <stdarg.h>
5327 #include <string.h>
5328 #include <float.h>
5329
5330 int
5331 main ()
5332 {
5333
5334   ;
5335   return 0;
5336 }
5337 _ACEOF
5338 rm -f conftest.$ac_objext
5339 if { (ac_try="$ac_compile"
5340 case "(($ac_try" in
5341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5342   *) ac_try_echo=$ac_try;;
5343 esac
5344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5345   (eval "$ac_compile") 2>conftest.er1
5346   ac_status=$?
5347   grep -v '^ *+' conftest.er1 >conftest.err
5348   rm -f conftest.er1
5349   cat conftest.err >&5
5350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5351   (exit $ac_status); } && {
5352          test -z "$ac_c_werror_flag" ||
5353          test ! -s conftest.err
5354        } && test -s conftest.$ac_objext; then
5355   ac_cv_header_stdc=yes
5356 else
5357   echo "$as_me: failed program was:" >&5
5358 sed 's/^/| /' conftest.$ac_ext >&5
5359
5360         ac_cv_header_stdc=no
5361 fi
5362
5363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5364
5365 if test $ac_cv_header_stdc = yes; then
5366   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5367   cat >conftest.$ac_ext <<_ACEOF
5368 /* confdefs.h.  */
5369 _ACEOF
5370 cat confdefs.h >>conftest.$ac_ext
5371 cat >>conftest.$ac_ext <<_ACEOF
5372 /* end confdefs.h.  */
5373 #include <string.h>
5374
5375 _ACEOF
5376 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5377   $EGREP "memchr" >/dev/null 2>&1; then
5378   :
5379 else
5380   ac_cv_header_stdc=no
5381 fi
5382 rm -f conftest*
5383
5384 fi
5385
5386 if test $ac_cv_header_stdc = yes; then
5387   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5388   cat >conftest.$ac_ext <<_ACEOF
5389 /* confdefs.h.  */
5390 _ACEOF
5391 cat confdefs.h >>conftest.$ac_ext
5392 cat >>conftest.$ac_ext <<_ACEOF
5393 /* end confdefs.h.  */
5394 #include <stdlib.h>
5395
5396 _ACEOF
5397 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5398   $EGREP "free" >/dev/null 2>&1; then
5399   :
5400 else
5401   ac_cv_header_stdc=no
5402 fi
5403 rm -f conftest*
5404
5405 fi
5406
5407 if test $ac_cv_header_stdc = yes; then
5408   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5409   if test "$cross_compiling" = yes; then
5410   :
5411 else
5412   cat >conftest.$ac_ext <<_ACEOF
5413 /* confdefs.h.  */
5414 _ACEOF
5415 cat confdefs.h >>conftest.$ac_ext
5416 cat >>conftest.$ac_ext <<_ACEOF
5417 /* end confdefs.h.  */
5418 #include <ctype.h>
5419 #include <stdlib.h>
5420 #if ((' ' & 0x0FF) == 0x020)
5421 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5422 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5423 #else
5424 # define ISLOWER(c) \
5425                    (('a' <= (c) && (c) <= 'i') \
5426                      || ('j' <= (c) && (c) <= 'r') \
5427                      || ('s' <= (c) && (c) <= 'z'))
5428 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5429 #endif
5430
5431 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5432 int
5433 main ()
5434 {
5435   int i;
5436   for (i = 0; i < 256; i++)
5437     if (XOR (islower (i), ISLOWER (i))
5438         || toupper (i) != TOUPPER (i))
5439       return 2;
5440   return 0;
5441 }
5442 _ACEOF
5443 rm -f conftest$ac_exeext
5444 if { (ac_try="$ac_link"
5445 case "(($ac_try" in
5446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5447   *) ac_try_echo=$ac_try;;
5448 esac
5449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5450   (eval "$ac_link") 2>&5
5451   ac_status=$?
5452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5453   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5454   { (case "(($ac_try" in
5455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5456   *) ac_try_echo=$ac_try;;
5457 esac
5458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5459   (eval "$ac_try") 2>&5
5460   ac_status=$?
5461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5462   (exit $ac_status); }; }; then
5463   :
5464 else
5465   echo "$as_me: program exited with status $ac_status" >&5
5466 echo "$as_me: failed program was:" >&5
5467 sed 's/^/| /' conftest.$ac_ext >&5
5468
5469 ( exit $ac_status )
5470 ac_cv_header_stdc=no
5471 fi
5472 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5473 fi
5474
5475
5476 fi
5477 fi
5478 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5479 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5480 if test $ac_cv_header_stdc = yes; then
5481
5482 cat >>confdefs.h <<\_ACEOF
5483 #define STDC_HEADERS 1
5484 _ACEOF
5485
5486 fi
5487
5488 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5499                   inttypes.h stdint.h unistd.h
5500 do
5501 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5502 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5503 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5504 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5505   echo $ECHO_N "(cached) $ECHO_C" >&6
5506 else
5507   cat >conftest.$ac_ext <<_ACEOF
5508 /* confdefs.h.  */
5509 _ACEOF
5510 cat confdefs.h >>conftest.$ac_ext
5511 cat >>conftest.$ac_ext <<_ACEOF
5512 /* end confdefs.h.  */
5513 $ac_includes_default
5514
5515 #include <$ac_header>
5516 _ACEOF
5517 rm -f conftest.$ac_objext
5518 if { (ac_try="$ac_compile"
5519 case "(($ac_try" in
5520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5521   *) ac_try_echo=$ac_try;;
5522 esac
5523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5524   (eval "$ac_compile") 2>conftest.er1
5525   ac_status=$?
5526   grep -v '^ *+' conftest.er1 >conftest.err
5527   rm -f conftest.er1
5528   cat conftest.err >&5
5529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530   (exit $ac_status); } && {
5531          test -z "$ac_c_werror_flag" ||
5532          test ! -s conftest.err
5533        } && test -s conftest.$ac_objext; then
5534   eval "$as_ac_Header=yes"
5535 else
5536   echo "$as_me: failed program was:" >&5
5537 sed 's/^/| /' conftest.$ac_ext >&5
5538
5539         eval "$as_ac_Header=no"
5540 fi
5541
5542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5543 fi
5544 ac_res=`eval echo '${'$as_ac_Header'}'`
5545                { echo "$as_me:$LINENO: result: $ac_res" >&5
5546 echo "${ECHO_T}$ac_res" >&6; }
5547 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5548   cat >>confdefs.h <<_ACEOF
5549 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5550 _ACEOF
5551
5552 fi
5553
5554 done
5555
5556
5557
5558 for ac_header in dlfcn.h
5559 do
5560 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5561 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5562   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5563 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5564 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5565   echo $ECHO_N "(cached) $ECHO_C" >&6
5566 fi
5567 ac_res=`eval echo '${'$as_ac_Header'}'`
5568                { echo "$as_me:$LINENO: result: $ac_res" >&5
5569 echo "${ECHO_T}$ac_res" >&6; }
5570 else
5571   # Is the header compilable?
5572 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5573 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5574 cat >conftest.$ac_ext <<_ACEOF
5575 /* confdefs.h.  */
5576 _ACEOF
5577 cat confdefs.h >>conftest.$ac_ext
5578 cat >>conftest.$ac_ext <<_ACEOF
5579 /* end confdefs.h.  */
5580 $ac_includes_default
5581 #include <$ac_header>
5582 _ACEOF
5583 rm -f conftest.$ac_objext
5584 if { (ac_try="$ac_compile"
5585 case "(($ac_try" in
5586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5587   *) ac_try_echo=$ac_try;;
5588 esac
5589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5590   (eval "$ac_compile") 2>conftest.er1
5591   ac_status=$?
5592   grep -v '^ *+' conftest.er1 >conftest.err
5593   rm -f conftest.er1
5594   cat conftest.err >&5
5595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5596   (exit $ac_status); } && {
5597          test -z "$ac_c_werror_flag" ||
5598          test ! -s conftest.err
5599        } && test -s conftest.$ac_objext; then
5600   ac_header_compiler=yes
5601 else
5602   echo "$as_me: failed program was:" >&5
5603 sed 's/^/| /' conftest.$ac_ext >&5
5604
5605         ac_header_compiler=no
5606 fi
5607
5608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5609 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5610 echo "${ECHO_T}$ac_header_compiler" >&6; }
5611
5612 # Is the header present?
5613 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5614 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5615 cat >conftest.$ac_ext <<_ACEOF
5616 /* confdefs.h.  */
5617 _ACEOF
5618 cat confdefs.h >>conftest.$ac_ext
5619 cat >>conftest.$ac_ext <<_ACEOF
5620 /* end confdefs.h.  */
5621 #include <$ac_header>
5622 _ACEOF
5623 if { (ac_try="$ac_cpp conftest.$ac_ext"
5624 case "(($ac_try" in
5625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5626   *) ac_try_echo=$ac_try;;
5627 esac
5628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5629   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5630   ac_status=$?
5631   grep -v '^ *+' conftest.er1 >conftest.err
5632   rm -f conftest.er1
5633   cat conftest.err >&5
5634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5635   (exit $ac_status); } >/dev/null && {
5636          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5637          test ! -s conftest.err
5638        }; then
5639   ac_header_preproc=yes
5640 else
5641   echo "$as_me: failed program was:" >&5
5642 sed 's/^/| /' conftest.$ac_ext >&5
5643
5644   ac_header_preproc=no
5645 fi
5646
5647 rm -f conftest.err conftest.$ac_ext
5648 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5649 echo "${ECHO_T}$ac_header_preproc" >&6; }
5650
5651 # So?  What about this header?
5652 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5653   yes:no: )
5654     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5655 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5656     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5657 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5658     ac_header_preproc=yes
5659     ;;
5660   no:yes:* )
5661     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5662 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5663     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5664 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5665     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5666 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5667     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5668 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5669     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5670 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5671     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5672 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5673     ( cat <<\_ASBOX
5674 ## -------------------------------------------- ##
5675 ## Report this to http://www.openldap.org/its/  ##
5676 ## -------------------------------------------- ##
5677 _ASBOX
5678      ) | sed "s/^/$as_me: WARNING:     /" >&2
5679     ;;
5680 esac
5681 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5682 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5683 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5684   echo $ECHO_N "(cached) $ECHO_C" >&6
5685 else
5686   eval "$as_ac_Header=\$ac_header_preproc"
5687 fi
5688 ac_res=`eval echo '${'$as_ac_Header'}'`
5689                { echo "$as_me:$LINENO: result: $ac_res" >&5
5690 echo "${ECHO_T}$ac_res" >&6; }
5691
5692 fi
5693 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5694   cat >>confdefs.h <<_ACEOF
5695 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5696 _ACEOF
5697
5698 fi
5699
5700 done
5701
5702
5703
5704 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5705     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5706     (test "X$CXX" != "Xg++"))) ; then
5707   ac_ext=cpp
5708 ac_cpp='$CXXCPP $CPPFLAGS'
5709 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5710 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5711 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5712 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5713 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5714 if test -z "$CXXCPP"; then
5715   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5716   echo $ECHO_N "(cached) $ECHO_C" >&6
5717 else
5718       # Double quotes because CXXCPP needs to be expanded
5719     for CXXCPP in "$CXX -E" "/lib/cpp"
5720     do
5721       ac_preproc_ok=false
5722 for ac_cxx_preproc_warn_flag in '' yes
5723 do
5724   # Use a header file that comes with gcc, so configuring glibc
5725   # with a fresh cross-compiler works.
5726   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5727   # <limits.h> exists even on freestanding compilers.
5728   # On the NeXT, cc -E runs the code through the compiler's parser,
5729   # not just through cpp. "Syntax error" is here to catch this case.
5730   cat >conftest.$ac_ext <<_ACEOF
5731 /* confdefs.h.  */
5732 _ACEOF
5733 cat confdefs.h >>conftest.$ac_ext
5734 cat >>conftest.$ac_ext <<_ACEOF
5735 /* end confdefs.h.  */
5736 #ifdef __STDC__
5737 # include <limits.h>
5738 #else
5739 # include <assert.h>
5740 #endif
5741                      Syntax error
5742 _ACEOF
5743 if { (ac_try="$ac_cpp conftest.$ac_ext"
5744 case "(($ac_try" in
5745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5746   *) ac_try_echo=$ac_try;;
5747 esac
5748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5749   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5750   ac_status=$?
5751   grep -v '^ *+' conftest.er1 >conftest.err
5752   rm -f conftest.er1
5753   cat conftest.err >&5
5754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5755   (exit $ac_status); } >/dev/null && {
5756          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5757          test ! -s conftest.err
5758        }; then
5759   :
5760 else
5761   echo "$as_me: failed program was:" >&5
5762 sed 's/^/| /' conftest.$ac_ext >&5
5763
5764   # Broken: fails on valid input.
5765 continue
5766 fi
5767
5768 rm -f conftest.err conftest.$ac_ext
5769
5770   # OK, works on sane cases.  Now check whether nonexistent headers
5771   # can be detected and how.
5772   cat >conftest.$ac_ext <<_ACEOF
5773 /* confdefs.h.  */
5774 _ACEOF
5775 cat confdefs.h >>conftest.$ac_ext
5776 cat >>conftest.$ac_ext <<_ACEOF
5777 /* end confdefs.h.  */
5778 #include <ac_nonexistent.h>
5779 _ACEOF
5780 if { (ac_try="$ac_cpp conftest.$ac_ext"
5781 case "(($ac_try" in
5782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5783   *) ac_try_echo=$ac_try;;
5784 esac
5785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5786   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5787   ac_status=$?
5788   grep -v '^ *+' conftest.er1 >conftest.err
5789   rm -f conftest.er1
5790   cat conftest.err >&5
5791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5792   (exit $ac_status); } >/dev/null && {
5793          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5794          test ! -s conftest.err
5795        }; then
5796   # Broken: success on invalid input.
5797 continue
5798 else
5799   echo "$as_me: failed program was:" >&5
5800 sed 's/^/| /' conftest.$ac_ext >&5
5801
5802   # Passes both tests.
5803 ac_preproc_ok=:
5804 break
5805 fi
5806
5807 rm -f conftest.err conftest.$ac_ext
5808
5809 done
5810 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5811 rm -f conftest.err conftest.$ac_ext
5812 if $ac_preproc_ok; then
5813   break
5814 fi
5815
5816     done
5817     ac_cv_prog_CXXCPP=$CXXCPP
5818
5819 fi
5820   CXXCPP=$ac_cv_prog_CXXCPP
5821 else
5822   ac_cv_prog_CXXCPP=$CXXCPP
5823 fi
5824 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5825 echo "${ECHO_T}$CXXCPP" >&6; }
5826 ac_preproc_ok=false
5827 for ac_cxx_preproc_warn_flag in '' yes
5828 do
5829   # Use a header file that comes with gcc, so configuring glibc
5830   # with a fresh cross-compiler works.
5831   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5832   # <limits.h> exists even on freestanding compilers.
5833   # On the NeXT, cc -E runs the code through the compiler's parser,
5834   # not just through cpp. "Syntax error" is here to catch this case.
5835   cat >conftest.$ac_ext <<_ACEOF
5836 /* confdefs.h.  */
5837 _ACEOF
5838 cat confdefs.h >>conftest.$ac_ext
5839 cat >>conftest.$ac_ext <<_ACEOF
5840 /* end confdefs.h.  */
5841 #ifdef __STDC__
5842 # include <limits.h>
5843 #else
5844 # include <assert.h>
5845 #endif
5846                      Syntax error
5847 _ACEOF
5848 if { (ac_try="$ac_cpp conftest.$ac_ext"
5849 case "(($ac_try" in
5850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5851   *) ac_try_echo=$ac_try;;
5852 esac
5853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5854   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5855   ac_status=$?
5856   grep -v '^ *+' conftest.er1 >conftest.err
5857   rm -f conftest.er1
5858   cat conftest.err >&5
5859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5860   (exit $ac_status); } >/dev/null && {
5861          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5862          test ! -s conftest.err
5863        }; then
5864   :
5865 else
5866   echo "$as_me: failed program was:" >&5
5867 sed 's/^/| /' conftest.$ac_ext >&5
5868
5869   # Broken: fails on valid input.
5870 continue
5871 fi
5872
5873 rm -f conftest.err conftest.$ac_ext
5874
5875   # OK, works on sane cases.  Now check whether nonexistent headers
5876   # can be detected and how.
5877   cat >conftest.$ac_ext <<_ACEOF
5878 /* confdefs.h.  */
5879 _ACEOF
5880 cat confdefs.h >>conftest.$ac_ext
5881 cat >>conftest.$ac_ext <<_ACEOF
5882 /* end confdefs.h.  */
5883 #include <ac_nonexistent.h>
5884 _ACEOF
5885 if { (ac_try="$ac_cpp conftest.$ac_ext"
5886 case "(($ac_try" in
5887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5888   *) ac_try_echo=$ac_try;;
5889 esac
5890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5891   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5892   ac_status=$?
5893   grep -v '^ *+' conftest.er1 >conftest.err
5894   rm -f conftest.er1
5895   cat conftest.err >&5
5896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5897   (exit $ac_status); } >/dev/null && {
5898          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5899          test ! -s conftest.err
5900        }; then
5901   # Broken: success on invalid input.
5902 continue
5903 else
5904   echo "$as_me: failed program was:" >&5
5905 sed 's/^/| /' conftest.$ac_ext >&5
5906
5907   # Passes both tests.
5908 ac_preproc_ok=:
5909 break
5910 fi
5911
5912 rm -f conftest.err conftest.$ac_ext
5913
5914 done
5915 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5916 rm -f conftest.err conftest.$ac_ext
5917 if $ac_preproc_ok; then
5918   :
5919 else
5920   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5921 See \`config.log' for more details." >&5
5922 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5923 See \`config.log' for more details." >&2;}
5924    { (exit 1); exit 1; }; }
5925 fi
5926
5927 ac_ext=cpp
5928 ac_cpp='$CXXCPP $CPPFLAGS'
5929 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5930 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5931 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5932
5933 fi
5934
5935
5936 ac_ext=f
5937 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5938 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5939 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5940 if test -n "$ac_tool_prefix"; then
5941   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
5942   do
5943     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5944 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5945 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5947 if test "${ac_cv_prog_F77+set}" = set; then
5948   echo $ECHO_N "(cached) $ECHO_C" >&6
5949 else
5950   if test -n "$F77"; then
5951   ac_cv_prog_F77="$F77" # Let the user override the test.
5952 else
5953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5954 for as_dir in $PATH
5955 do
5956   IFS=$as_save_IFS
5957   test -z "$as_dir" && as_dir=.
5958   for ac_exec_ext in '' $ac_executable_extensions; do
5959   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5960     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5961     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5962     break 2
5963   fi
5964 done
5965 done
5966 IFS=$as_save_IFS
5967
5968 fi
5969 fi
5970 F77=$ac_cv_prog_F77
5971 if test -n "$F77"; then
5972   { echo "$as_me:$LINENO: result: $F77" >&5
5973 echo "${ECHO_T}$F77" >&6; }
5974 else
5975   { echo "$as_me:$LINENO: result: no" >&5
5976 echo "${ECHO_T}no" >&6; }
5977 fi
5978
5979
5980     test -n "$F77" && break
5981   done
5982 fi
5983 if test -z "$F77"; then
5984   ac_ct_F77=$F77
5985   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
5986 do
5987   # Extract the first word of "$ac_prog", so it can be a program name with args.
5988 set dummy $ac_prog; ac_word=$2
5989 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5991 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5992   echo $ECHO_N "(cached) $ECHO_C" >&6
5993 else
5994   if test -n "$ac_ct_F77"; then
5995   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5996 else
5997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5998 for as_dir in $PATH
5999 do
6000   IFS=$as_save_IFS
6001   test -z "$as_dir" && as_dir=.
6002   for ac_exec_ext in '' $ac_executable_extensions; do
6003   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6004     ac_cv_prog_ac_ct_F77="$ac_prog"
6005     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6006     break 2
6007   fi
6008 done
6009 done
6010 IFS=$as_save_IFS
6011
6012 fi
6013 fi
6014 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6015 if test -n "$ac_ct_F77"; then
6016   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6017 echo "${ECHO_T}$ac_ct_F77" >&6; }
6018 else
6019   { echo "$as_me:$LINENO: result: no" >&5
6020 echo "${ECHO_T}no" >&6; }
6021 fi
6022
6023
6024   test -n "$ac_ct_F77" && break
6025 done
6026
6027   if test "x$ac_ct_F77" = x; then
6028     F77=""
6029   else
6030     case $cross_compiling:$ac_tool_warned in
6031 yes:)
6032 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6033 whose name does not start with the host triplet.  If you think this
6034 configuration is useful to you, please write to autoconf@gnu.org." >&5
6035 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6036 whose name does not start with the host triplet.  If you think this
6037 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6038 ac_tool_warned=yes ;;
6039 esac
6040     F77=$ac_ct_F77
6041   fi
6042 fi
6043
6044
6045 # Provide some information about the compiler.
6046 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6047 ac_compiler=`set X $ac_compile; echo $2`
6048 { (ac_try="$ac_compiler --version >&5"
6049 case "(($ac_try" in
6050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6051   *) ac_try_echo=$ac_try;;
6052 esac
6053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6054   (eval "$ac_compiler --version >&5") 2>&5
6055   ac_status=$?
6056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6057   (exit $ac_status); }
6058 { (ac_try="$ac_compiler -v >&5"
6059 case "(($ac_try" in
6060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6061   *) ac_try_echo=$ac_try;;
6062 esac
6063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6064   (eval "$ac_compiler -v >&5") 2>&5
6065   ac_status=$?
6066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067   (exit $ac_status); }
6068 { (ac_try="$ac_compiler -V >&5"
6069 case "(($ac_try" in
6070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6071   *) ac_try_echo=$ac_try;;
6072 esac
6073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6074   (eval "$ac_compiler -V >&5") 2>&5
6075   ac_status=$?
6076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077   (exit $ac_status); }
6078 rm -f a.out
6079
6080 # If we don't use `.F' as extension, the preprocessor is not run on the
6081 # input file.  (Note that this only needs to work for GNU compilers.)
6082 ac_save_ext=$ac_ext
6083 ac_ext=F
6084 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6085 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6086 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6087   echo $ECHO_N "(cached) $ECHO_C" >&6
6088 else
6089   cat >conftest.$ac_ext <<_ACEOF
6090       program main
6091 #ifndef __GNUC__
6092        choke me
6093 #endif
6094
6095       end
6096 _ACEOF
6097 rm -f conftest.$ac_objext
6098 if { (ac_try="$ac_compile"
6099 case "(($ac_try" in
6100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6101   *) ac_try_echo=$ac_try;;
6102 esac
6103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6104   (eval "$ac_compile") 2>conftest.er1
6105   ac_status=$?
6106   grep -v '^ *+' conftest.er1 >conftest.err
6107   rm -f conftest.er1
6108   cat conftest.err >&5
6109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6110   (exit $ac_status); } && {
6111          test -z "$ac_f77_werror_flag" ||
6112          test ! -s conftest.err
6113        } && test -s conftest.$ac_objext; then
6114   ac_compiler_gnu=yes
6115 else
6116   echo "$as_me: failed program was:" >&5
6117 sed 's/^/| /' conftest.$ac_ext >&5
6118
6119         ac_compiler_gnu=no
6120 fi
6121
6122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6123 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6124
6125 fi
6126 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6127 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6128 ac_ext=$ac_save_ext
6129 ac_test_FFLAGS=${FFLAGS+set}
6130 ac_save_FFLAGS=$FFLAGS
6131 FFLAGS=
6132 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6133 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6134 if test "${ac_cv_prog_f77_g+set}" = set; then
6135   echo $ECHO_N "(cached) $ECHO_C" >&6
6136 else
6137   FFLAGS=-g
6138 cat >conftest.$ac_ext <<_ACEOF
6139       program main
6140
6141       end
6142 _ACEOF
6143 rm -f conftest.$ac_objext
6144 if { (ac_try="$ac_compile"
6145 case "(($ac_try" in
6146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6147   *) ac_try_echo=$ac_try;;
6148 esac
6149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6150   (eval "$ac_compile") 2>conftest.er1
6151   ac_status=$?
6152   grep -v '^ *+' conftest.er1 >conftest.err
6153   rm -f conftest.er1
6154   cat conftest.err >&5
6155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156   (exit $ac_status); } && {
6157          test -z "$ac_f77_werror_flag" ||
6158          test ! -s conftest.err
6159        } && test -s conftest.$ac_objext; then
6160   ac_cv_prog_f77_g=yes
6161 else
6162   echo "$as_me: failed program was:" >&5
6163 sed 's/^/| /' conftest.$ac_ext >&5
6164
6165         ac_cv_prog_f77_g=no
6166 fi
6167
6168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6169
6170 fi
6171 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6172 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6173 if test "$ac_test_FFLAGS" = set; then
6174   FFLAGS=$ac_save_FFLAGS
6175 elif test $ac_cv_prog_f77_g = yes; then
6176   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6177     FFLAGS="-g -O2"
6178   else
6179     FFLAGS="-g"
6180   fi
6181 else
6182   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6183     FFLAGS="-O2"
6184   else
6185     FFLAGS=
6186   fi
6187 fi
6188
6189 G77=`test $ac_compiler_gnu = yes && echo yes`
6190 ac_ext=c
6191 ac_cpp='$CPP $CPPFLAGS'
6192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6195
6196
6197
6198 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6199 # find the maximum length of command line arguments
6200 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6201 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6202 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6203   echo $ECHO_N "(cached) $ECHO_C" >&6
6204 else
6205     i=0
6206   teststring="ABCD"
6207
6208   case $build_os in
6209   msdosdjgpp*)
6210     # On DJGPP, this test can blow up pretty badly due to problems in libc
6211     # (any single argument exceeding 2000 bytes causes a buffer overrun
6212     # during glob expansion).  Even if it were fixed, the result of this
6213     # check would be larger than it should be.
6214     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6215     ;;
6216
6217   gnu*)
6218     # Under GNU Hurd, this test is not required because there is
6219     # no limit to the length of command line arguments.
6220     # Libtool will interpret -1 as no limit whatsoever
6221     lt_cv_sys_max_cmd_len=-1;
6222     ;;
6223
6224   cygwin* | mingw*)
6225     # On Win9x/ME, this test blows up -- it succeeds, but takes
6226     # about 5 minutes as the teststring grows exponentially.
6227     # Worse, since 9x/ME are not pre-emptively multitasking,
6228     # you end up with a "frozen" computer, even though with patience
6229     # the test eventually succeeds (with a max line length of 256k).
6230     # Instead, let's just punt: use the minimum linelength reported by
6231     # all of the supported platforms: 8192 (on NT/2K/XP).
6232     lt_cv_sys_max_cmd_len=8192;
6233     ;;
6234
6235   amigaos*)
6236     # On AmigaOS with pdksh, this test takes hours, literally.
6237     # So we just punt and use a minimum line length of 8192.
6238     lt_cv_sys_max_cmd_len=8192;
6239     ;;
6240
6241   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6242     # This has been around since 386BSD, at least.  Likely further.
6243     if test -x /sbin/sysctl; then
6244       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6245     elif test -x /usr/sbin/sysctl; then
6246       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6247     else
6248       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6249     fi
6250     # And add a safety zone
6251     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6252     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6253     ;;
6254
6255   interix*)
6256     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6257     lt_cv_sys_max_cmd_len=196608
6258     ;;
6259
6260   osf*)
6261     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6262     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6263     # nice to cause kernel panics so lets avoid the loop below.
6264     # First set a reasonable default.
6265     lt_cv_sys_max_cmd_len=16384
6266     #
6267     if test -x /sbin/sysconfig; then
6268       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6269         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6270       esac
6271     fi
6272     ;;
6273   sco3.2v5*)
6274     lt_cv_sys_max_cmd_len=102400
6275     ;;
6276   sysv5* | sco5v6* | sysv4.2uw2*)
6277     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6278     if test -n "$kargmax"; then
6279       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6280     else
6281       lt_cv_sys_max_cmd_len=32768
6282     fi
6283     ;;
6284   *)
6285     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6286     if test -n "$lt_cv_sys_max_cmd_len"; then
6287       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6288       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6289     else
6290       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6291       while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6292                = "XX$teststring") >/dev/null 2>&1 &&
6293               new_result=`expr "X$teststring" : ".*" 2>&1` &&
6294               lt_cv_sys_max_cmd_len=$new_result &&
6295               test $i != 17 # 1/2 MB should be enough
6296       do
6297         i=`expr $i + 1`
6298         teststring=$teststring$teststring
6299       done
6300       teststring=
6301       # Add a significant safety factor because C++ compilers can tack on massive
6302       # amounts of additional arguments before passing them to the linker.
6303       # It appears as though 1/2 is a usable value.
6304       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6305     fi
6306     ;;
6307   esac
6308
6309 fi
6310
6311 if test -n $lt_cv_sys_max_cmd_len ; then
6312   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6313 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6314 else
6315   { echo "$as_me:$LINENO: result: none" >&5
6316 echo "${ECHO_T}none" >&6; }
6317 fi
6318
6319
6320
6321
6322
6323 # Check for command to grab the raw symbol name followed by C symbol from nm.
6324 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6325 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6326 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6327   echo $ECHO_N "(cached) $ECHO_C" >&6
6328 else
6329
6330 # These are sane defaults that work on at least a few old systems.
6331 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6332
6333 # Character class describing NM global symbol codes.
6334 symcode='[BCDEGRST]'
6335
6336 # Regexp to match symbols that can be accessed directly from C.
6337 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6338
6339 # Transform an extracted symbol line into a proper C declaration
6340 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6341
6342 # Transform an extracted symbol line into symbol name and symbol address
6343 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'"
6344
6345 # Define system-specific variables.
6346 case $host_os in
6347 aix*)
6348   symcode='[BCDT]'
6349   ;;
6350 cygwin* | mingw* | pw32*)
6351   symcode='[ABCDGISTW]'
6352   ;;
6353 hpux*) # Its linker distinguishes data from code symbols
6354   if test "$host_cpu" = ia64; then
6355     symcode='[ABCDEGRST]'
6356   fi
6357   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6358   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'"
6359   ;;
6360 linux* | k*bsd*-gnu)
6361   if test "$host_cpu" = ia64; then
6362     symcode='[ABCDGIRSTW]'
6363     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6364     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'"
6365   fi
6366   ;;
6367 irix* | nonstopux*)
6368   symcode='[BCDEGRST]'
6369   ;;
6370 osf*)
6371   symcode='[BCDEGQRST]'
6372   ;;
6373 solaris*)
6374   symcode='[BDRT]'
6375   ;;
6376 sco3.2v5*)
6377   symcode='[DT]'
6378   ;;
6379 sysv4.2uw2*)
6380   symcode='[DT]'
6381   ;;
6382 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6383   symcode='[ABDT]'
6384   ;;
6385 sysv4)
6386   symcode='[DFNSTU]'
6387   ;;
6388 esac
6389
6390 # Handle CRLF in mingw tool chain
6391 opt_cr=
6392 case $build_os in
6393 mingw*)
6394   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6395   ;;
6396 esac
6397
6398 # If we're using GNU nm, then use its standard symbol codes.
6399 case `$NM -V 2>&1` in
6400 *GNU* | *'with BFD'*)
6401   symcode='[ABCDGIRSTW]' ;;
6402 esac
6403
6404 # Try without a prefix undercore, then with it.
6405 for ac_symprfx in "" "_"; do
6406
6407   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6408   symxfrm="\\1 $ac_symprfx\\2 \\2"
6409
6410   # Write the raw and C identifiers.
6411   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6412
6413   # Check to see that the pipe works correctly.
6414   pipe_works=no
6415
6416   rm -f conftest*
6417   cat > conftest.$ac_ext <<EOF
6418 #ifdef __cplusplus
6419 extern "C" {
6420 #endif
6421 char nm_test_var;
6422 void nm_test_func(){}
6423 #ifdef __cplusplus
6424 }
6425 #endif
6426 int main(){nm_test_var='a';nm_test_func();return(0);}
6427 EOF
6428
6429   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6430   (eval $ac_compile) 2>&5
6431   ac_status=$?
6432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6433   (exit $ac_status); }; then
6434     # Now try to grab the symbols.
6435     nlist=conftest.nm
6436     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6437   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6438   ac_status=$?
6439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440   (exit $ac_status); } && test -s "$nlist"; then
6441       # Try sorting and uniquifying the output.
6442       if sort "$nlist" | uniq > "$nlist"T; then
6443         mv -f "$nlist"T "$nlist"
6444       else
6445         rm -f "$nlist"T
6446       fi
6447
6448       # Make sure that we snagged all the symbols we need.
6449       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6450         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6451           cat <<EOF > conftest.$ac_ext
6452 #ifdef __cplusplus
6453 extern "C" {
6454 #endif
6455
6456 EOF
6457           # Now generate the symbol file.
6458           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6459
6460           cat <<EOF >> conftest.$ac_ext
6461 #if defined (__STDC__) && __STDC__
6462 # define lt_ptr_t void *
6463 #else
6464 # define lt_ptr_t char *
6465 # define const
6466 #endif
6467
6468 /* The mapping between symbol names and symbols. */
6469 const struct {
6470   const char *name;
6471   lt_ptr_t address;
6472 }
6473 lt_preloaded_symbols[] =
6474 {
6475 EOF
6476           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6477           cat <<\EOF >> conftest.$ac_ext
6478   {0, (lt_ptr_t) 0}
6479 };
6480
6481 #ifdef __cplusplus
6482 }
6483 #endif
6484 EOF
6485           # Now try linking the two files.
6486           mv conftest.$ac_objext conftstm.$ac_objext
6487           lt_save_LIBS="$LIBS"
6488           lt_save_CFLAGS="$CFLAGS"
6489           LIBS="conftstm.$ac_objext"
6490           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6491           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6492   (eval $ac_link) 2>&5
6493   ac_status=$?
6494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6495   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6496             pipe_works=yes
6497           fi
6498           LIBS="$lt_save_LIBS"
6499           CFLAGS="$lt_save_CFLAGS"
6500         else
6501           echo "cannot find nm_test_func in $nlist" >&5
6502         fi
6503       else
6504         echo "cannot find nm_test_var in $nlist" >&5
6505       fi
6506     else
6507       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6508     fi
6509   else
6510     echo "$progname: failed program was:" >&5
6511     cat conftest.$ac_ext >&5
6512   fi
6513   rm -rf conftest* conftst*
6514
6515   # Do not use the global_symbol_pipe unless it works.
6516   if test "$pipe_works" = yes; then
6517     break
6518   else
6519     lt_cv_sys_global_symbol_pipe=
6520   fi
6521 done
6522
6523 fi
6524
6525 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6526   lt_cv_sys_global_symbol_to_cdecl=
6527 fi
6528 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6529   { echo "$as_me:$LINENO: result: failed" >&5
6530 echo "${ECHO_T}failed" >&6; }
6531 else
6532   { echo "$as_me:$LINENO: result: ok" >&5
6533 echo "${ECHO_T}ok" >&6; }
6534 fi
6535
6536 { echo "$as_me:$LINENO: checking for objdir" >&5
6537 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6538 if test "${lt_cv_objdir+set}" = set; then
6539   echo $ECHO_N "(cached) $ECHO_C" >&6
6540 else
6541   rm -f .libs 2>/dev/null
6542 mkdir .libs 2>/dev/null
6543 if test -d .libs; then
6544   lt_cv_objdir=.libs
6545 else
6546   # MS-DOS does not allow filenames that begin with a dot.
6547   lt_cv_objdir=_libs
6548 fi
6549 rmdir .libs 2>/dev/null
6550 fi
6551 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6552 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6553 objdir=$lt_cv_objdir
6554
6555
6556
6557
6558
6559 case $host_os in
6560 aix3*)
6561   # AIX sometimes has problems with the GCC collect2 program.  For some
6562   # reason, if we set the COLLECT_NAMES environment variable, the problems
6563   # vanish in a puff of smoke.
6564   if test "X${COLLECT_NAMES+set}" != Xset; then
6565     COLLECT_NAMES=
6566     export COLLECT_NAMES
6567   fi
6568   ;;
6569 esac
6570
6571 # Sed substitution that helps us do robust quoting.  It backslashifies
6572 # metacharacters that are still active within double-quoted strings.
6573 Xsed='sed -e 1s/^X//'
6574 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6575
6576 # Same as above, but do not quote variable references.
6577 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6578
6579 # Sed substitution to delay expansion of an escaped shell variable in a
6580 # double_quote_subst'ed string.
6581 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6582
6583 # Sed substitution to avoid accidental globbing in evaled expressions
6584 no_glob_subst='s/\*/\\\*/g'
6585
6586 # Constants:
6587 rm="rm -f"
6588
6589 # Global variables:
6590 default_ofile=libtool
6591 can_build_shared=yes
6592
6593 # All known linkers require a `.a' archive for static linking (except MSVC,
6594 # which needs '.lib').
6595 libext=a
6596 ltmain="$ac_aux_dir/ltmain.sh"
6597 ofile="$default_ofile"
6598 with_gnu_ld="$lt_cv_prog_gnu_ld"
6599
6600 if test -n "$ac_tool_prefix"; then
6601   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6602 set dummy ${ac_tool_prefix}ar; ac_word=$2
6603 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6605 if test "${ac_cv_prog_AR+set}" = set; then
6606   echo $ECHO_N "(cached) $ECHO_C" >&6
6607 else
6608   if test -n "$AR"; then
6609   ac_cv_prog_AR="$AR" # Let the user override the test.
6610 else
6611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6612 for as_dir in $PATH
6613 do
6614   IFS=$as_save_IFS
6615   test -z "$as_dir" && as_dir=.
6616   for ac_exec_ext in '' $ac_executable_extensions; do
6617   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6618     ac_cv_prog_AR="${ac_tool_prefix}ar"
6619     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6620     break 2
6621   fi
6622 done
6623 done
6624 IFS=$as_save_IFS
6625
6626 fi
6627 fi
6628 AR=$ac_cv_prog_AR
6629 if test -n "$AR"; then
6630   { echo "$as_me:$LINENO: result: $AR" >&5
6631 echo "${ECHO_T}$AR" >&6; }
6632 else
6633   { echo "$as_me:$LINENO: result: no" >&5
6634 echo "${ECHO_T}no" >&6; }
6635 fi
6636
6637
6638 fi
6639 if test -z "$ac_cv_prog_AR"; then
6640   ac_ct_AR=$AR
6641   # Extract the first word of "ar", so it can be a program name with args.
6642 set dummy ar; ac_word=$2
6643 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6645 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6646   echo $ECHO_N "(cached) $ECHO_C" >&6
6647 else
6648   if test -n "$ac_ct_AR"; then
6649   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6650 else
6651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6652 for as_dir in $PATH
6653 do
6654   IFS=$as_save_IFS
6655   test -z "$as_dir" && as_dir=.
6656   for ac_exec_ext in '' $ac_executable_extensions; do
6657   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6658     ac_cv_prog_ac_ct_AR="ar"
6659     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6660     break 2
6661   fi
6662 done
6663 done
6664 IFS=$as_save_IFS
6665
6666 fi
6667 fi
6668 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6669 if test -n "$ac_ct_AR"; then
6670   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6671 echo "${ECHO_T}$ac_ct_AR" >&6; }
6672 else
6673   { echo "$as_me:$LINENO: result: no" >&5
6674 echo "${ECHO_T}no" >&6; }
6675 fi
6676
6677   if test "x$ac_ct_AR" = x; then
6678     AR="false"
6679   else
6680     case $cross_compiling:$ac_tool_warned in
6681 yes:)
6682 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6683 whose name does not start with the host triplet.  If you think this
6684 configuration is useful to you, please write to autoconf@gnu.org." >&5
6685 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6686 whose name does not start with the host triplet.  If you think this
6687 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6688 ac_tool_warned=yes ;;
6689 esac
6690     AR=$ac_ct_AR
6691   fi
6692 else
6693   AR="$ac_cv_prog_AR"
6694 fi
6695
6696 if test -n "$ac_tool_prefix"; then
6697   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6698 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6699 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6701 if test "${ac_cv_prog_RANLIB+set}" = set; then
6702   echo $ECHO_N "(cached) $ECHO_C" >&6
6703 else
6704   if test -n "$RANLIB"; then
6705   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6706 else
6707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6708 for as_dir in $PATH
6709 do
6710   IFS=$as_save_IFS
6711   test -z "$as_dir" && as_dir=.
6712   for ac_exec_ext in '' $ac_executable_extensions; do
6713   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6714     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6715     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6716     break 2
6717   fi
6718 done
6719 done
6720 IFS=$as_save_IFS
6721
6722 fi
6723 fi
6724 RANLIB=$ac_cv_prog_RANLIB
6725 if test -n "$RANLIB"; then
6726   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6727 echo "${ECHO_T}$RANLIB" >&6; }
6728 else
6729   { echo "$as_me:$LINENO: result: no" >&5
6730 echo "${ECHO_T}no" >&6; }
6731 fi
6732
6733
6734 fi
6735 if test -z "$ac_cv_prog_RANLIB"; then
6736   ac_ct_RANLIB=$RANLIB
6737   # Extract the first word of "ranlib", so it can be a program name with args.
6738 set dummy ranlib; ac_word=$2
6739 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6741 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6742   echo $ECHO_N "(cached) $ECHO_C" >&6
6743 else
6744   if test -n "$ac_ct_RANLIB"; then
6745   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6746 else
6747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6748 for as_dir in $PATH
6749 do
6750   IFS=$as_save_IFS
6751   test -z "$as_dir" && as_dir=.
6752   for ac_exec_ext in '' $ac_executable_extensions; do
6753   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6754     ac_cv_prog_ac_ct_RANLIB="ranlib"
6755     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6756     break 2
6757   fi
6758 done
6759 done
6760 IFS=$as_save_IFS
6761
6762 fi
6763 fi
6764 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6765 if test -n "$ac_ct_RANLIB"; then
6766   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6767 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6768 else
6769   { echo "$as_me:$LINENO: result: no" >&5
6770 echo "${ECHO_T}no" >&6; }
6771 fi
6772
6773   if test "x$ac_ct_RANLIB" = x; then
6774     RANLIB=":"
6775   else
6776     case $cross_compiling:$ac_tool_warned in
6777 yes:)
6778 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6779 whose name does not start with the host triplet.  If you think this
6780 configuration is useful to you, please write to autoconf@gnu.org." >&5
6781 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6782 whose name does not start with the host triplet.  If you think this
6783 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6784 ac_tool_warned=yes ;;
6785 esac
6786     RANLIB=$ac_ct_RANLIB
6787   fi
6788 else
6789   RANLIB="$ac_cv_prog_RANLIB"
6790 fi
6791
6792 if test -n "$ac_tool_prefix"; then
6793   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6794 set dummy ${ac_tool_prefix}strip; ac_word=$2
6795 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6797 if test "${ac_cv_prog_STRIP+set}" = set; then
6798   echo $ECHO_N "(cached) $ECHO_C" >&6
6799 else
6800   if test -n "$STRIP"; then
6801   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6802 else
6803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6804 for as_dir in $PATH
6805 do
6806   IFS=$as_save_IFS
6807   test -z "$as_dir" && as_dir=.
6808   for ac_exec_ext in '' $ac_executable_extensions; do
6809   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6810     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6811     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6812     break 2
6813   fi
6814 done
6815 done
6816 IFS=$as_save_IFS
6817
6818 fi
6819 fi
6820 STRIP=$ac_cv_prog_STRIP
6821 if test -n "$STRIP"; then
6822   { echo "$as_me:$LINENO: result: $STRIP" >&5
6823 echo "${ECHO_T}$STRIP" >&6; }
6824 else
6825   { echo "$as_me:$LINENO: result: no" >&5
6826 echo "${ECHO_T}no" >&6; }
6827 fi
6828
6829
6830 fi
6831 if test -z "$ac_cv_prog_STRIP"; then
6832   ac_ct_STRIP=$STRIP
6833   # Extract the first word of "strip", so it can be a program name with args.
6834 set dummy strip; ac_word=$2
6835 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6837 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6838   echo $ECHO_N "(cached) $ECHO_C" >&6
6839 else
6840   if test -n "$ac_ct_STRIP"; then
6841   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6842 else
6843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6844 for as_dir in $PATH
6845 do
6846   IFS=$as_save_IFS
6847   test -z "$as_dir" && as_dir=.
6848   for ac_exec_ext in '' $ac_executable_extensions; do
6849   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6850     ac_cv_prog_ac_ct_STRIP="strip"
6851     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6852     break 2
6853   fi
6854 done
6855 done
6856 IFS=$as_save_IFS
6857
6858 fi
6859 fi
6860 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6861 if test -n "$ac_ct_STRIP"; then
6862   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6863 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6864 else
6865   { echo "$as_me:$LINENO: result: no" >&5
6866 echo "${ECHO_T}no" >&6; }
6867 fi
6868
6869   if test "x$ac_ct_STRIP" = x; then
6870     STRIP=":"
6871   else
6872     case $cross_compiling:$ac_tool_warned in
6873 yes:)
6874 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6875 whose name does not start with the host triplet.  If you think this
6876 configuration is useful to you, please write to autoconf@gnu.org." >&5
6877 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6878 whose name does not start with the host triplet.  If you think this
6879 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6880 ac_tool_warned=yes ;;
6881 esac
6882     STRIP=$ac_ct_STRIP
6883   fi
6884 else
6885   STRIP="$ac_cv_prog_STRIP"
6886 fi
6887
6888
6889 old_CC="$CC"
6890 old_CFLAGS="$CFLAGS"
6891
6892 # Set sane defaults for various variables
6893 test -z "$AR" && AR=ar
6894 test -z "$AR_FLAGS" && AR_FLAGS=cru
6895 test -z "$AS" && AS=as
6896 test -z "$CC" && CC=cc
6897 test -z "$LTCC" && LTCC=$CC
6898 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6899 test -z "$DLLTOOL" && DLLTOOL=dlltool
6900 test -z "$LD" && LD=ld
6901 test -z "$LN_S" && LN_S="ln -s"
6902 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6903 test -z "$NM" && NM=nm
6904 test -z "$SED" && SED=sed
6905 test -z "$OBJDUMP" && OBJDUMP=objdump
6906 test -z "$RANLIB" && RANLIB=:
6907 test -z "$STRIP" && STRIP=:
6908 test -z "$ac_objext" && ac_objext=o
6909
6910 # Determine commands to create old-style static archives.
6911 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6912 old_postinstall_cmds='chmod 644 $oldlib'
6913 old_postuninstall_cmds=
6914
6915 if test -n "$RANLIB"; then
6916   case $host_os in
6917   openbsd*)
6918     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6919     ;;
6920   *)
6921     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6922     ;;
6923   esac
6924   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6925 fi
6926
6927 for cc_temp in $compiler""; do
6928   case $cc_temp in
6929     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6930     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6931     \-*) ;;
6932     *) break;;
6933   esac
6934 done
6935 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6936
6937
6938 # Only perform the check for file, if the check method requires it
6939 case $deplibs_check_method in
6940 file_magic*)
6941   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6942     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6943 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6944 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6945   echo $ECHO_N "(cached) $ECHO_C" >&6
6946 else
6947   case $MAGIC_CMD in
6948 [\\/*] |  ?:[\\/]*)
6949   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6950   ;;
6951 *)
6952   lt_save_MAGIC_CMD="$MAGIC_CMD"
6953   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6954   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6955   for ac_dir in $ac_dummy; do
6956     IFS="$lt_save_ifs"
6957     test -z "$ac_dir" && ac_dir=.
6958     if test -f $ac_dir/${ac_tool_prefix}file; then
6959       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6960       if test -n "$file_magic_test_file"; then
6961         case $deplibs_check_method in
6962         "file_magic "*)
6963           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6964           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6965           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6966             $EGREP "$file_magic_regex" > /dev/null; then
6967             :
6968           else
6969             cat <<EOF 1>&2
6970
6971 *** Warning: the command libtool uses to detect shared libraries,
6972 *** $file_magic_cmd, produces output that libtool cannot recognize.
6973 *** The result is that libtool may fail to recognize shared libraries
6974 *** as such.  This will affect the creation of libtool libraries that
6975 *** depend on shared libraries, but programs linked with such libtool
6976 *** libraries will work regardless of this problem.  Nevertheless, you
6977 *** may want to report the problem to your system manager and/or to
6978 *** bug-libtool@gnu.org
6979
6980 EOF
6981           fi ;;
6982         esac
6983       fi
6984       break
6985     fi
6986   done
6987   IFS="$lt_save_ifs"
6988   MAGIC_CMD="$lt_save_MAGIC_CMD"
6989   ;;
6990 esac
6991 fi
6992
6993 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6994 if test -n "$MAGIC_CMD"; then
6995   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6996 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6997 else
6998   { echo "$as_me:$LINENO: result: no" >&5
6999 echo "${ECHO_T}no" >&6; }
7000 fi
7001
7002 if test -z "$lt_cv_path_MAGIC_CMD"; then
7003   if test -n "$ac_tool_prefix"; then
7004     { echo "$as_me:$LINENO: checking for file" >&5
7005 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7006 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7007   echo $ECHO_N "(cached) $ECHO_C" >&6
7008 else
7009   case $MAGIC_CMD in
7010 [\\/*] |  ?:[\\/]*)
7011   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7012   ;;
7013 *)
7014   lt_save_MAGIC_CMD="$MAGIC_CMD"
7015   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7016   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7017   for ac_dir in $ac_dummy; do
7018     IFS="$lt_save_ifs"
7019     test -z "$ac_dir" && ac_dir=.
7020     if test -f $ac_dir/file; then
7021       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7022       if test -n "$file_magic_test_file"; then
7023         case $deplibs_check_method in
7024         "file_magic "*)
7025           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7026           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7027           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7028             $EGREP "$file_magic_regex" > /dev/null; then
7029             :
7030           else
7031             cat <<EOF 1>&2
7032
7033 *** Warning: the command libtool uses to detect shared libraries,
7034 *** $file_magic_cmd, produces output that libtool cannot recognize.
7035 *** The result is that libtool may fail to recognize shared libraries
7036 *** as such.  This will affect the creation of libtool libraries that
7037 *** depend on shared libraries, but programs linked with such libtool
7038 *** libraries will work regardless of this problem.  Nevertheless, you
7039 *** may want to report the problem to your system manager and/or to
7040 *** bug-libtool@gnu.org
7041
7042 EOF
7043           fi ;;
7044         esac
7045       fi
7046       break
7047     fi
7048   done
7049   IFS="$lt_save_ifs"
7050   MAGIC_CMD="$lt_save_MAGIC_CMD"
7051   ;;
7052 esac
7053 fi
7054
7055 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7056 if test -n "$MAGIC_CMD"; then
7057   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7058 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7059 else
7060   { echo "$as_me:$LINENO: result: no" >&5
7061 echo "${ECHO_T}no" >&6; }
7062 fi
7063
7064   else
7065     MAGIC_CMD=:
7066   fi
7067 fi
7068
7069   fi
7070   ;;
7071 esac
7072
7073
7074   case $host_os in
7075     rhapsody* | darwin*)
7076     if test -n "$ac_tool_prefix"; then
7077   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7078 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7079 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7081 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7082   echo $ECHO_N "(cached) $ECHO_C" >&6
7083 else
7084   if test -n "$DSYMUTIL"; then
7085   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7086 else
7087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7088 for as_dir in $PATH
7089 do
7090   IFS=$as_save_IFS
7091   test -z "$as_dir" && as_dir=.
7092   for ac_exec_ext in '' $ac_executable_extensions; do
7093   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7094     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7095     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7096     break 2
7097   fi
7098 done
7099 done
7100 IFS=$as_save_IFS
7101
7102 fi
7103 fi
7104 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7105 if test -n "$DSYMUTIL"; then
7106   { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7107 echo "${ECHO_T}$DSYMUTIL" >&6; }
7108 else
7109   { echo "$as_me:$LINENO: result: no" >&5
7110 echo "${ECHO_T}no" >&6; }
7111 fi
7112
7113
7114 fi
7115 if test -z "$ac_cv_prog_DSYMUTIL"; then
7116   ac_ct_DSYMUTIL=$DSYMUTIL
7117   # Extract the first word of "dsymutil", so it can be a program name with args.
7118 set dummy dsymutil; ac_word=$2
7119 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7121 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7122   echo $ECHO_N "(cached) $ECHO_C" >&6
7123 else
7124   if test -n "$ac_ct_DSYMUTIL"; then
7125   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7126 else
7127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7128 for as_dir in $PATH
7129 do
7130   IFS=$as_save_IFS
7131   test -z "$as_dir" && as_dir=.
7132   for ac_exec_ext in '' $ac_executable_extensions; do
7133   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7134     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7135     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7136     break 2
7137   fi
7138 done
7139 done
7140 IFS=$as_save_IFS
7141
7142 fi
7143 fi
7144 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7145 if test -n "$ac_ct_DSYMUTIL"; then
7146   { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7147 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7148 else
7149   { echo "$as_me:$LINENO: result: no" >&5
7150 echo "${ECHO_T}no" >&6; }
7151 fi
7152
7153   if test "x$ac_ct_DSYMUTIL" = x; then
7154     DSYMUTIL=":"
7155   else
7156     case $cross_compiling:$ac_tool_warned in
7157 yes:)
7158 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7159 whose name does not start with the host triplet.  If you think this
7160 configuration is useful to you, please write to autoconf@gnu.org." >&5
7161 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7162 whose name does not start with the host triplet.  If you think this
7163 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7164 ac_tool_warned=yes ;;
7165 esac
7166     DSYMUTIL=$ac_ct_DSYMUTIL
7167   fi
7168 else
7169   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7170 fi
7171
7172     if test -n "$ac_tool_prefix"; then
7173   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7174 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7175 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7177 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7178   echo $ECHO_N "(cached) $ECHO_C" >&6
7179 else
7180   if test -n "$NMEDIT"; then
7181   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7182 else
7183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7184 for as_dir in $PATH
7185 do
7186   IFS=$as_save_IFS
7187   test -z "$as_dir" && as_dir=.
7188   for ac_exec_ext in '' $ac_executable_extensions; do
7189   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7190     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7191     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7192     break 2
7193   fi
7194 done
7195 done
7196 IFS=$as_save_IFS
7197
7198 fi
7199 fi
7200 NMEDIT=$ac_cv_prog_NMEDIT
7201 if test -n "$NMEDIT"; then
7202   { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7203 echo "${ECHO_T}$NMEDIT" >&6; }
7204 else
7205   { echo "$as_me:$LINENO: result: no" >&5
7206 echo "${ECHO_T}no" >&6; }
7207 fi
7208
7209
7210 fi
7211 if test -z "$ac_cv_prog_NMEDIT"; then
7212   ac_ct_NMEDIT=$NMEDIT
7213   # Extract the first word of "nmedit", so it can be a program name with args.
7214 set dummy nmedit; ac_word=$2
7215 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7217 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7218   echo $ECHO_N "(cached) $ECHO_C" >&6
7219 else
7220   if test -n "$ac_ct_NMEDIT"; then
7221   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7222 else
7223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7224 for as_dir in $PATH
7225 do
7226   IFS=$as_save_IFS
7227   test -z "$as_dir" && as_dir=.
7228   for ac_exec_ext in '' $ac_executable_extensions; do
7229   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7230     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7231     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7232     break 2
7233   fi
7234 done
7235 done
7236 IFS=$as_save_IFS
7237
7238 fi
7239 fi
7240 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7241 if test -n "$ac_ct_NMEDIT"; then
7242   { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7243 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7244 else
7245   { echo "$as_me:$LINENO: result: no" >&5
7246 echo "${ECHO_T}no" >&6; }
7247 fi
7248
7249   if test "x$ac_ct_NMEDIT" = x; then
7250     NMEDIT=":"
7251   else
7252     case $cross_compiling:$ac_tool_warned in
7253 yes:)
7254 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7255 whose name does not start with the host triplet.  If you think this
7256 configuration is useful to you, please write to autoconf@gnu.org." >&5
7257 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7258 whose name does not start with the host triplet.  If you think this
7259 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7260 ac_tool_warned=yes ;;
7261 esac
7262     NMEDIT=$ac_ct_NMEDIT
7263   fi
7264 else
7265   NMEDIT="$ac_cv_prog_NMEDIT"
7266 fi
7267
7268
7269     { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7270 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7271 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7272   echo $ECHO_N "(cached) $ECHO_C" >&6
7273 else
7274   lt_cv_apple_cc_single_mod=no
7275       if test -z "${LT_MULTI_MODULE}"; then
7276    # By default we will add the -single_module flag. You can override
7277    # by either setting the environment variable LT_MULTI_MODULE
7278    # non-empty at configure time, or by adding -multi_module to the
7279    # link flags.
7280    echo "int foo(void){return 1;}" > conftest.c
7281    $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7282      -dynamiclib ${wl}-single_module conftest.c
7283    if test -f libconftest.dylib; then
7284      lt_cv_apple_cc_single_mod=yes
7285      rm -rf libconftest.dylib*
7286    fi
7287    rm conftest.c
7288       fi
7289 fi
7290 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7291 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7292     { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7293 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7294 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7295   echo $ECHO_N "(cached) $ECHO_C" >&6
7296 else
7297   lt_cv_ld_exported_symbols_list=no
7298       save_LDFLAGS=$LDFLAGS
7299       echo "_main" > conftest.sym
7300       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7301       cat >conftest.$ac_ext <<_ACEOF
7302 /* confdefs.h.  */
7303 _ACEOF
7304 cat confdefs.h >>conftest.$ac_ext
7305 cat >>conftest.$ac_ext <<_ACEOF
7306 /* end confdefs.h.  */
7307
7308 int
7309 main ()
7310 {
7311
7312   ;
7313   return 0;
7314 }
7315 _ACEOF
7316 rm -f conftest.$ac_objext conftest$ac_exeext
7317 if { (ac_try="$ac_link"
7318 case "(($ac_try" in
7319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7320   *) ac_try_echo=$ac_try;;
7321 esac
7322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7323   (eval "$ac_link") 2>conftest.er1
7324   ac_status=$?
7325   grep -v '^ *+' conftest.er1 >conftest.err
7326   rm -f conftest.er1
7327   cat conftest.err >&5
7328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7329   (exit $ac_status); } && {
7330          test -z "$ac_c_werror_flag" ||
7331          test ! -s conftest.err
7332        } && test -s conftest$ac_exeext &&
7333        $as_test_x conftest$ac_exeext; then
7334   lt_cv_ld_exported_symbols_list=yes
7335 else
7336   echo "$as_me: failed program was:" >&5
7337 sed 's/^/| /' conftest.$ac_ext >&5
7338
7339         lt_cv_ld_exported_symbols_list=no
7340 fi
7341
7342 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7343       conftest$ac_exeext conftest.$ac_ext
7344    LDFLAGS="$save_LDFLAGS"
7345
7346 fi
7347 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7348 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7349     case $host_os in
7350     rhapsody* | darwin1.[0123])
7351       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7352     darwin1.*)
7353      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7354     darwin*)
7355       # if running on 10.5 or later, the deployment target defaults
7356       # to the OS version, if on x86, and 10.4, the deployment
7357       # target defaults to 10.4. Don't you love it?
7358       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7359    10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7360      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7361    10.[012]*)
7362      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7363    10.*)
7364      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7365       esac
7366     ;;
7367   esac
7368     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7369       _lt_dar_single_mod='$single_module'
7370     fi
7371     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7372       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7373     else
7374       _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7375     fi
7376     if test "$DSYMUTIL" != ":"; then
7377       _lt_dsymutil="~$DSYMUTIL \$lib || :"
7378     else
7379       _lt_dsymutil=
7380     fi
7381     ;;
7382   esac
7383
7384
7385 enable_dlopen=no
7386 enable_win32_dll=no
7387
7388 # Check whether --enable-libtool-lock was given.
7389 if test "${enable_libtool_lock+set}" = set; then
7390   enableval=$enable_libtool_lock;
7391 fi
7392
7393 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7394
7395
7396 # Check whether --with-pic was given.
7397 if test "${with_pic+set}" = set; then
7398   withval=$with_pic; pic_mode="$withval"
7399 else
7400   pic_mode=default
7401 fi
7402
7403 test -z "$pic_mode" && pic_mode=default
7404
7405 # Use C for the default configuration in the libtool script
7406 tagname=
7407 lt_save_CC="$CC"
7408 ac_ext=c
7409 ac_cpp='$CPP $CPPFLAGS'
7410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7413
7414
7415 # Source file extension for C test sources.
7416 ac_ext=c
7417
7418 # Object file extension for compiled C test sources.
7419 objext=o
7420 objext=$objext
7421
7422 # Code to be used in simple compile tests
7423 lt_simple_compile_test_code="int some_variable = 0;"
7424
7425 # Code to be used in simple link tests
7426 lt_simple_link_test_code='int main(){return(0);}'
7427
7428
7429 # If no C compiler was specified, use CC.
7430 LTCC=${LTCC-"$CC"}
7431
7432 # If no C compiler flags were specified, use CFLAGS.
7433 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7434
7435 # Allow CC to be a program name with arguments.
7436 compiler=$CC
7437
7438
7439 # save warnings/boilerplate of simple test code
7440 ac_outfile=conftest.$ac_objext
7441 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7442 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7443 _lt_compiler_boilerplate=`cat conftest.err`
7444 $rm conftest*
7445
7446 ac_outfile=conftest.$ac_objext
7447 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7448 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7449 _lt_linker_boilerplate=`cat conftest.err`
7450 $rm -r conftest*
7451
7452
7453
7454 lt_prog_compiler_no_builtin_flag=
7455
7456 if test "$GCC" = yes; then
7457   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7458
7459
7460 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7461 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7462 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7463   echo $ECHO_N "(cached) $ECHO_C" >&6
7464 else
7465   lt_cv_prog_compiler_rtti_exceptions=no
7466   ac_outfile=conftest.$ac_objext
7467    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7468    lt_compiler_flag="-fno-rtti -fno-exceptions"
7469    # Insert the option either (1) after the last *FLAGS variable, or
7470    # (2) before a word containing "conftest.", or (3) at the end.
7471    # Note that $ac_compile itself does not contain backslashes and begins
7472    # with a dollar sign (not a hyphen), so the echo should work correctly.
7473    # The option is referenced via a variable to avoid confusing sed.
7474    lt_compile=`echo "$ac_compile" | $SED \
7475    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7476    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7477    -e 's:$: $lt_compiler_flag:'`
7478    (eval echo "\"\$as_me:7478: $lt_compile\"" >&5)
7479    (eval "$lt_compile" 2>conftest.err)
7480    ac_status=$?
7481    cat conftest.err >&5
7482    echo "$as_me:7482: \$? = $ac_status" >&5
7483    if (exit $ac_status) && test -s "$ac_outfile"; then
7484      # The compiler can only warn and ignore the option if not recognized
7485      # So say no if there are warnings other than the usual output.
7486      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7487      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7488      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7489        lt_cv_prog_compiler_rtti_exceptions=yes
7490      fi
7491    fi
7492    $rm conftest*
7493
7494 fi
7495 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7496 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7497
7498 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7499     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7500 else
7501     :
7502 fi
7503
7504 fi
7505
7506 lt_prog_compiler_wl=
7507 lt_prog_compiler_pic=
7508 lt_prog_compiler_static=
7509
7510 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7511 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7512
7513   if test "$GCC" = yes; then
7514     lt_prog_compiler_wl='-Wl,'
7515     lt_prog_compiler_static='-static'
7516
7517     case $host_os in
7518       aix*)
7519       # All AIX code is PIC.
7520       if test "$host_cpu" = ia64; then
7521         # AIX 5 now supports IA64 processor
7522         lt_prog_compiler_static='-Bstatic'
7523       fi
7524       ;;
7525
7526     amigaos*)
7527       # FIXME: we need at least 68020 code to build shared libraries, but
7528       # adding the `-m68020' flag to GCC prevents building anything better,
7529       # like `-m68040'.
7530       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7531       ;;
7532
7533     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7534       # PIC is the default for these OSes.
7535       ;;
7536
7537     mingw* | cygwin* | pw32* | os2*)
7538       # This hack is so that the source file can tell whether it is being
7539       # built for inclusion in a dll (and should export symbols for example).
7540       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7541       # (--disable-auto-import) libraries
7542       lt_prog_compiler_pic='-DDLL_EXPORT'
7543       ;;
7544
7545     darwin* | rhapsody*)
7546       # PIC is the default on this platform
7547       # Common symbols not allowed in MH_DYLIB files
7548       lt_prog_compiler_pic='-fno-common'
7549       ;;
7550
7551     interix[3-9]*)
7552       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7553       # Instead, we relocate shared libraries at runtime.
7554       ;;
7555
7556     msdosdjgpp*)
7557       # Just because we use GCC doesn't mean we suddenly get shared libraries
7558       # on systems that don't support them.
7559       lt_prog_compiler_can_build_shared=no
7560       enable_shared=no
7561       ;;
7562
7563     sysv4*MP*)
7564       if test -d /usr/nec; then
7565         lt_prog_compiler_pic=-Kconform_pic
7566       fi
7567       ;;
7568
7569     hpux*)
7570       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7571       # not for PA HP-UX.
7572       case $host_cpu in
7573       hppa*64*|ia64*)
7574         # +Z the default
7575         ;;
7576       *)
7577         lt_prog_compiler_pic='-fPIC'
7578         ;;
7579       esac
7580       ;;
7581
7582     *)
7583       lt_prog_compiler_pic='-fPIC'
7584       ;;
7585     esac
7586   else
7587     # PORTME Check for flag to pass linker flags through the system compiler.
7588     case $host_os in
7589     aix*)
7590       lt_prog_compiler_wl='-Wl,'
7591       if test "$host_cpu" = ia64; then
7592         # AIX 5 now supports IA64 processor
7593         lt_prog_compiler_static='-Bstatic'
7594       else
7595         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7596       fi
7597       ;;
7598       darwin*)
7599         # PIC is the default on this platform
7600         # Common symbols not allowed in MH_DYLIB files
7601        case $cc_basename in
7602          xlc*)
7603          lt_prog_compiler_pic='-qnocommon'
7604          lt_prog_compiler_wl='-Wl,'
7605          ;;
7606        esac
7607        ;;
7608
7609     mingw* | cygwin* | pw32* | os2*)
7610       # This hack is so that the source file can tell whether it is being
7611       # built for inclusion in a dll (and should export symbols for example).
7612       lt_prog_compiler_pic='-DDLL_EXPORT'
7613       ;;
7614
7615     hpux9* | hpux10* | hpux11*)
7616       lt_prog_compiler_wl='-Wl,'
7617       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7618       # not for PA HP-UX.
7619       case $host_cpu in
7620       hppa*64*|ia64*)
7621         # +Z the default
7622         ;;
7623       *)
7624         lt_prog_compiler_pic='+Z'
7625         ;;
7626       esac
7627       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7628       lt_prog_compiler_static='${wl}-a ${wl}archive'
7629       ;;
7630
7631     irix5* | irix6* | nonstopux*)
7632       lt_prog_compiler_wl='-Wl,'
7633       # PIC (with -KPIC) is the default.
7634       lt_prog_compiler_static='-non_shared'
7635       ;;
7636
7637     newsos6)
7638       lt_prog_compiler_pic='-KPIC'
7639       lt_prog_compiler_static='-Bstatic'
7640       ;;
7641
7642     linux* | k*bsd*-gnu)
7643       case $cc_basename in
7644       icc* | ecc*)
7645         lt_prog_compiler_wl='-Wl,'
7646         lt_prog_compiler_pic='-KPIC'
7647         lt_prog_compiler_static='-static'
7648         ;;
7649       pgcc* | pgf77* | pgf90* | pgf95*)
7650         # Portland Group compilers (*not* the Pentium gcc compiler,
7651         # which looks to be a dead project)
7652         lt_prog_compiler_wl='-Wl,'
7653         lt_prog_compiler_pic='-fpic'
7654         lt_prog_compiler_static='-Bstatic'
7655         ;;
7656       ccc*)
7657         lt_prog_compiler_wl='-Wl,'
7658         # All Alpha code is PIC.
7659         lt_prog_compiler_static='-non_shared'
7660         ;;
7661       *)
7662         case `$CC -V 2>&1 | sed 5q` in
7663         *Sun\ C*)
7664           # Sun C 5.9
7665           lt_prog_compiler_pic='-KPIC'
7666           lt_prog_compiler_static='-Bstatic'
7667           lt_prog_compiler_wl='-Wl,'
7668           ;;
7669         *Sun\ F*)
7670           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7671           lt_prog_compiler_pic='-KPIC'
7672           lt_prog_compiler_static='-Bstatic'
7673           lt_prog_compiler_wl=''
7674           ;;
7675         esac
7676         ;;
7677       esac
7678       ;;
7679
7680     osf3* | osf4* | osf5*)
7681       lt_prog_compiler_wl='-Wl,'
7682       # All OSF/1 code is PIC.
7683       lt_prog_compiler_static='-non_shared'
7684       ;;
7685
7686     rdos*)
7687       lt_prog_compiler_static='-non_shared'
7688       ;;
7689
7690     solaris*)
7691       lt_prog_compiler_pic='-KPIC'
7692       lt_prog_compiler_static='-Bstatic'
7693       case $cc_basename in
7694       f77* | f90* | f95*)
7695         lt_prog_compiler_wl='-Qoption ld ';;
7696       *)
7697         lt_prog_compiler_wl='-Wl,';;
7698       esac
7699       ;;
7700
7701     sunos4*)
7702       lt_prog_compiler_wl='-Qoption ld '
7703       lt_prog_compiler_pic='-PIC'
7704       lt_prog_compiler_static='-Bstatic'
7705       ;;
7706
7707     sysv4 | sysv4.2uw2* | sysv4.3*)
7708       lt_prog_compiler_wl='-Wl,'
7709       lt_prog_compiler_pic='-KPIC'
7710       lt_prog_compiler_static='-Bstatic'
7711       ;;
7712
7713     sysv4*MP*)
7714       if test -d /usr/nec ;then
7715         lt_prog_compiler_pic='-Kconform_pic'
7716         lt_prog_compiler_static='-Bstatic'
7717       fi
7718       ;;
7719
7720     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7721       lt_prog_compiler_wl='-Wl,'
7722       lt_prog_compiler_pic='-KPIC'
7723       lt_prog_compiler_static='-Bstatic'
7724       ;;
7725
7726     unicos*)
7727       lt_prog_compiler_wl='-Wl,'
7728       lt_prog_compiler_can_build_shared=no
7729       ;;
7730
7731     uts4*)
7732       lt_prog_compiler_pic='-pic'
7733       lt_prog_compiler_static='-Bstatic'
7734       ;;
7735
7736     *)
7737       lt_prog_compiler_can_build_shared=no
7738       ;;
7739     esac
7740   fi
7741
7742 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7743 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7744
7745 #
7746 # Check to make sure the PIC flag actually works.
7747 #
7748 if test -n "$lt_prog_compiler_pic"; then
7749
7750 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7751 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7752 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7753   echo $ECHO_N "(cached) $ECHO_C" >&6
7754 else
7755   lt_cv_prog_compiler_pic_works=no
7756   ac_outfile=conftest.$ac_objext
7757    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7758    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7759    # Insert the option either (1) after the last *FLAGS variable, or
7760    # (2) before a word containing "conftest.", or (3) at the end.
7761    # Note that $ac_compile itself does not contain backslashes and begins
7762    # with a dollar sign (not a hyphen), so the echo should work correctly.
7763    # The option is referenced via a variable to avoid confusing sed.
7764    lt_compile=`echo "$ac_compile" | $SED \
7765    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7766    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7767    -e 's:$: $lt_compiler_flag:'`
7768    (eval echo "\"\$as_me:7768: $lt_compile\"" >&5)
7769    (eval "$lt_compile" 2>conftest.err)
7770    ac_status=$?
7771    cat conftest.err >&5
7772    echo "$as_me:7772: \$? = $ac_status" >&5
7773    if (exit $ac_status) && test -s "$ac_outfile"; then
7774      # The compiler can only warn and ignore the option if not recognized
7775      # So say no if there are warnings other than the usual output.
7776      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7777      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7778      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7779        lt_cv_prog_compiler_pic_works=yes
7780      fi
7781    fi
7782    $rm conftest*
7783
7784 fi
7785 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7786 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7787
7788 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7789     case $lt_prog_compiler_pic in
7790      "" | " "*) ;;
7791      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7792      esac
7793 else
7794     lt_prog_compiler_pic=
7795      lt_prog_compiler_can_build_shared=no
7796 fi
7797
7798 fi
7799 case $host_os in
7800   # For platforms which do not support PIC, -DPIC is meaningless:
7801   *djgpp*)
7802     lt_prog_compiler_pic=
7803     ;;
7804   *)
7805     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7806     ;;
7807 esac
7808
7809 #
7810 # Check to make sure the static flag actually works.
7811 #
7812 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7813 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7814 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7815 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7816   echo $ECHO_N "(cached) $ECHO_C" >&6
7817 else
7818   lt_cv_prog_compiler_static_works=no
7819    save_LDFLAGS="$LDFLAGS"
7820    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7821    echo "$lt_simple_link_test_code" > conftest.$ac_ext
7822    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7823      # The linker can only warn and ignore the option if not recognized
7824      # So say no if there are warnings
7825      if test -s conftest.err; then
7826        # Append any errors to the config.log.
7827        cat conftest.err 1>&5
7828        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7829        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7830        if diff conftest.exp conftest.er2 >/dev/null; then
7831          lt_cv_prog_compiler_static_works=yes
7832        fi
7833      else
7834        lt_cv_prog_compiler_static_works=yes
7835      fi
7836    fi
7837    $rm -r conftest*
7838    LDFLAGS="$save_LDFLAGS"
7839
7840 fi
7841 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7842 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
7843
7844 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7845     :
7846 else
7847     lt_prog_compiler_static=
7848 fi
7849
7850
7851 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7852 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7853 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7854   echo $ECHO_N "(cached) $ECHO_C" >&6
7855 else
7856   lt_cv_prog_compiler_c_o=no
7857    $rm -r conftest 2>/dev/null
7858    mkdir conftest
7859    cd conftest
7860    mkdir out
7861    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7862
7863    lt_compiler_flag="-o out/conftest2.$ac_objext"
7864    # Insert the option either (1) after the last *FLAGS variable, or
7865    # (2) before a word containing "conftest.", or (3) at the end.
7866    # Note that $ac_compile itself does not contain backslashes and begins
7867    # with a dollar sign (not a hyphen), so the echo should work correctly.
7868    lt_compile=`echo "$ac_compile" | $SED \
7869    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7870    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7871    -e 's:$: $lt_compiler_flag:'`
7872    (eval echo "\"\$as_me:7872: $lt_compile\"" >&5)
7873    (eval "$lt_compile" 2>out/conftest.err)
7874    ac_status=$?
7875    cat out/conftest.err >&5
7876    echo "$as_me:7876: \$? = $ac_status" >&5
7877    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7878    then
7879      # The compiler can only warn and ignore the option if not recognized
7880      # So say no if there are warnings
7881      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7882      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7883      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7884        lt_cv_prog_compiler_c_o=yes
7885      fi
7886    fi
7887    chmod u+w . 2>&5
7888    $rm conftest*
7889    # SGI C++ compiler will create directory out/ii_files/ for
7890    # template instantiation
7891    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7892    $rm out/* && rmdir out
7893    cd ..
7894    rmdir conftest
7895    $rm conftest*
7896
7897 fi
7898 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7899 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7900
7901
7902 hard_links="nottested"
7903 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7904   # do not overwrite the value of need_locks provided by the user
7905   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7906 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7907   hard_links=yes
7908   $rm conftest*
7909   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7910   touch conftest.a
7911   ln conftest.a conftest.b 2>&5 || hard_links=no
7912   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7913   { echo "$as_me:$LINENO: result: $hard_links" >&5
7914 echo "${ECHO_T}$hard_links" >&6; }
7915   if test "$hard_links" = no; then
7916     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7917 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7918     need_locks=warn
7919   fi
7920 else
7921   need_locks=no
7922 fi
7923
7924 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7925 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7926
7927   runpath_var=
7928   allow_undefined_flag=
7929   enable_shared_with_static_runtimes=no
7930   archive_cmds=
7931   archive_expsym_cmds=
7932   old_archive_From_new_cmds=
7933   old_archive_from_expsyms_cmds=
7934   export_dynamic_flag_spec=
7935   whole_archive_flag_spec=
7936   thread_safe_flag_spec=
7937   hardcode_libdir_flag_spec=
7938   hardcode_libdir_flag_spec_ld=
7939   hardcode_libdir_separator=
7940   hardcode_direct=no
7941   hardcode_minus_L=no
7942   hardcode_shlibpath_var=unsupported
7943   link_all_deplibs=unknown
7944   hardcode_automatic=no
7945   module_cmds=
7946   module_expsym_cmds=
7947   always_export_symbols=no
7948   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7949   # include_expsyms should be a list of space-separated symbols to be *always*
7950   # included in the symbol list
7951   include_expsyms=
7952   # exclude_expsyms can be an extended regexp of symbols to exclude
7953   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7954   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7955   # as well as any symbol that contains `d'.
7956   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7957   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7958   # platforms (ab)use it in PIC code, but their linkers get confused if
7959   # the symbol is explicitly referenced.  Since portable code cannot
7960   # rely on this symbol name, it's probably fine to never include it in
7961   # preloaded symbol tables.
7962   # Exclude shared library initialization/finalization symbols.
7963   extract_expsyms_cmds=
7964   # Just being paranoid about ensuring that cc_basename is set.
7965   for cc_temp in $compiler""; do
7966   case $cc_temp in
7967     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7968     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7969     \-*) ;;
7970     *) break;;
7971   esac
7972 done
7973 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7974
7975   case $host_os in
7976   cygwin* | mingw* | pw32*)
7977     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7978     # When not using gcc, we currently assume that we are using
7979     # Microsoft Visual C++.
7980     if test "$GCC" != yes; then
7981       with_gnu_ld=no
7982     fi
7983     ;;
7984   interix*)
7985     # we just hope/assume this is gcc and not c89 (= MSVC++)
7986     with_gnu_ld=yes
7987     ;;
7988   openbsd*)
7989     with_gnu_ld=no
7990     ;;
7991   esac
7992
7993   ld_shlibs=yes
7994   if test "$with_gnu_ld" = yes; then
7995     # If archive_cmds runs LD, not CC, wlarc should be empty
7996     wlarc='${wl}'
7997
7998     # Set some defaults for GNU ld with shared library support. These
7999     # are reset later if shared libraries are not supported. Putting them
8000     # here allows them to be overridden if necessary.
8001     runpath_var=LD_RUN_PATH
8002     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8003     export_dynamic_flag_spec='${wl}--export-dynamic'
8004     # ancient GNU ld didn't support --whole-archive et. al.
8005     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8006         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8007       else
8008         whole_archive_flag_spec=
8009     fi
8010     supports_anon_versioning=no
8011     case `$LD -v 2>/dev/null` in
8012       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8013       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8014       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8015       *\ 2.11.*) ;; # other 2.11 versions
8016       *) supports_anon_versioning=yes ;;
8017     esac
8018
8019     # See if GNU ld supports shared libraries.
8020     case $host_os in
8021     aix[3-9]*)
8022       # On AIX/PPC, the GNU linker is very broken
8023       if test "$host_cpu" != ia64; then
8024         ld_shlibs=no
8025         cat <<EOF 1>&2
8026
8027 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8028 *** to be unable to reliably create shared libraries on AIX.
8029 *** Therefore, libtool is disabling shared libraries support.  If you
8030 *** really care for shared libraries, you may want to modify your PATH
8031 *** so that a non-GNU linker is found, and then restart.
8032
8033 EOF
8034       fi
8035       ;;
8036
8037     amigaos*)
8038       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)'
8039       hardcode_libdir_flag_spec='-L$libdir'
8040       hardcode_minus_L=yes
8041
8042       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8043       # that the semantics of dynamic libraries on AmigaOS, at least up
8044       # to version 4, is to share data among multiple programs linked
8045       # with the same dynamic library.  Since this doesn't match the
8046       # behavior of shared libraries on other platforms, we can't use
8047       # them.
8048       ld_shlibs=no
8049       ;;
8050
8051     beos*)
8052       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8053         allow_undefined_flag=unsupported
8054         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8055         # support --undefined.  This deserves some investigation.  FIXME
8056         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8057       else
8058         ld_shlibs=no
8059       fi
8060       ;;
8061
8062     cygwin* | mingw* | pw32*)
8063       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8064       # as there is no search path for DLLs.
8065       hardcode_libdir_flag_spec='-L$libdir'
8066       allow_undefined_flag=unsupported
8067       always_export_symbols=no
8068       enable_shared_with_static_runtimes=yes
8069       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8070
8071       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8072         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8073         # If the export-symbols file already is a .def file (1st line
8074         # is EXPORTS), use it as is; otherwise, prepend...
8075         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8076           cp $export_symbols $output_objdir/$soname.def;
8077         else
8078           echo EXPORTS > $output_objdir/$soname.def;
8079           cat $export_symbols >> $output_objdir/$soname.def;
8080         fi~
8081         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8082       else
8083         ld_shlibs=no
8084       fi
8085       ;;
8086
8087     interix[3-9]*)
8088       hardcode_direct=no
8089       hardcode_shlibpath_var=no
8090       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8091       export_dynamic_flag_spec='${wl}-E'
8092       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8093       # Instead, shared libraries are loaded at an image base (0x10000000 by
8094       # default) and relocated if they conflict, which is a slow very memory
8095       # consuming and fragmenting process.  To avoid this, we pick a random,
8096       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8097       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8098       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8099       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'
8100       ;;
8101
8102     gnu* | linux* | k*bsd*-gnu)
8103       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8104         tmp_addflag=
8105         case $cc_basename,$host_cpu in
8106         pgcc*)                          # Portland Group C compiler
8107           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'
8108           tmp_addflag=' $pic_flag'
8109           ;;
8110         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8111           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'
8112           tmp_addflag=' $pic_flag -Mnomain' ;;
8113         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8114           tmp_addflag=' -i_dynamic' ;;
8115         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8116           tmp_addflag=' -i_dynamic -nofor_main' ;;
8117         ifc* | ifort*)                  # Intel Fortran compiler
8118           tmp_addflag=' -nofor_main' ;;
8119         esac
8120         case `$CC -V 2>&1 | sed 5q` in
8121         *Sun\ C*)                       # Sun C 5.9
8122           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'
8123           tmp_sharedflag='-G' ;;
8124         *Sun\ F*)                       # Sun Fortran 8.3
8125           tmp_sharedflag='-G' ;;
8126         *)
8127           tmp_sharedflag='-shared' ;;
8128         esac
8129         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8130
8131         if test $supports_anon_versioning = yes; then
8132           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8133   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8134   $echo "local: *; };" >> $output_objdir/$libname.ver~
8135           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8136         fi
8137       else
8138         ld_shlibs=no
8139       fi
8140       ;;
8141
8142     netbsd*)
8143       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8144         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8145         wlarc=
8146       else
8147         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8148         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8149       fi
8150       ;;
8151
8152     solaris*)
8153       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8154         ld_shlibs=no
8155         cat <<EOF 1>&2
8156
8157 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8158 *** create shared libraries on Solaris systems.  Therefore, libtool
8159 *** is disabling shared libraries support.  We urge you to upgrade GNU
8160 *** binutils to release 2.9.1 or newer.  Another option is to modify
8161 *** your PATH or compiler configuration so that the native linker is
8162 *** used, and then restart.
8163
8164 EOF
8165       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8166         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8167         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8168       else
8169         ld_shlibs=no
8170       fi
8171       ;;
8172
8173     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8174       case `$LD -v 2>&1` in
8175         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8176         ld_shlibs=no
8177         cat <<_LT_EOF 1>&2
8178
8179 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8180 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8181 *** is disabling shared libraries support.  We urge you to upgrade GNU
8182 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8183 *** your PATH or compiler configuration so that the native linker is
8184 *** used, and then restart.
8185
8186 _LT_EOF
8187         ;;
8188         *)
8189           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8190             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8191             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8192             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8193           else
8194             ld_shlibs=no
8195           fi
8196         ;;
8197       esac
8198       ;;
8199
8200     sunos4*)
8201       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8202       wlarc=
8203       hardcode_direct=yes
8204       hardcode_shlibpath_var=no
8205       ;;
8206
8207     *)
8208       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8209         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8210         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8211       else
8212         ld_shlibs=no
8213       fi
8214       ;;
8215     esac
8216
8217     if test "$ld_shlibs" = no; then
8218       runpath_var=
8219       hardcode_libdir_flag_spec=
8220       export_dynamic_flag_spec=
8221       whole_archive_flag_spec=
8222     fi
8223   else
8224     # PORTME fill in a description of your system's linker (not GNU ld)
8225     case $host_os in
8226     aix3*)
8227       allow_undefined_flag=unsupported
8228       always_export_symbols=yes
8229       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'
8230       # Note: this linker hardcodes the directories in LIBPATH if there
8231       # are no directories specified by -L.
8232       hardcode_minus_L=yes
8233       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8234         # Neither direct hardcoding nor static linking is supported with a
8235         # broken collect2.
8236         hardcode_direct=unsupported
8237       fi
8238       ;;
8239
8240     aix[4-9]*)
8241       if test "$host_cpu" = ia64; then
8242         # On IA64, the linker does run time linking by default, so we don't
8243         # have to do anything special.
8244         aix_use_runtimelinking=no
8245         exp_sym_flag='-Bexport'
8246         no_entry_flag=""
8247       else
8248         # If we're using GNU nm, then we don't want the "-C" option.
8249         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8250         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8251           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'
8252         else
8253           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'
8254         fi
8255         aix_use_runtimelinking=no
8256
8257         # Test if we are trying to use run time linking or normal
8258         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8259         # need to do runtime linking.
8260         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8261           for ld_flag in $LDFLAGS; do
8262           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8263             aix_use_runtimelinking=yes
8264             break
8265           fi
8266           done
8267           ;;
8268         esac
8269
8270         exp_sym_flag='-bexport'
8271         no_entry_flag='-bnoentry'
8272       fi
8273
8274       # When large executables or shared objects are built, AIX ld can
8275       # have problems creating the table of contents.  If linking a library
8276       # or program results in "error TOC overflow" add -mminimal-toc to
8277       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8278       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8279
8280       archive_cmds=''
8281       hardcode_direct=yes
8282       hardcode_libdir_separator=':'
8283       link_all_deplibs=yes
8284
8285       if test "$GCC" = yes; then
8286         case $host_os in aix4.[012]|aix4.[012].*)
8287         # We only want to do this on AIX 4.2 and lower, the check
8288         # below for broken collect2 doesn't work under 4.3+
8289           collect2name=`${CC} -print-prog-name=collect2`
8290           if test -f "$collect2name" && \
8291            strings "$collect2name" | grep resolve_lib_name >/dev/null
8292           then
8293           # We have reworked collect2
8294           :
8295           else
8296           # We have old collect2
8297           hardcode_direct=unsupported
8298           # It fails to find uninstalled libraries when the uninstalled
8299           # path is not listed in the libpath.  Setting hardcode_minus_L
8300           # to unsupported forces relinking
8301           hardcode_minus_L=yes
8302           hardcode_libdir_flag_spec='-L$libdir'
8303           hardcode_libdir_separator=
8304           fi
8305           ;;
8306         esac
8307         shared_flag='-shared'
8308         if test "$aix_use_runtimelinking" = yes; then
8309           shared_flag="$shared_flag "'${wl}-G'
8310         fi
8311       else
8312         # not using gcc
8313         if test "$host_cpu" = ia64; then
8314         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8315         # chokes on -Wl,-G. The following line is correct:
8316           shared_flag='-G'
8317         else
8318           if test "$aix_use_runtimelinking" = yes; then
8319             shared_flag='${wl}-G'
8320           else
8321             shared_flag='${wl}-bM:SRE'
8322           fi
8323         fi
8324       fi
8325
8326       # It seems that -bexpall does not export symbols beginning with
8327       # underscore (_), so it is better to generate a list of symbols to export.
8328       always_export_symbols=yes
8329       if test "$aix_use_runtimelinking" = yes; then
8330         # Warning - without using the other runtime loading flags (-brtl),
8331         # -berok will link without error, but may produce a broken library.
8332         allow_undefined_flag='-berok'
8333        # Determine the default libpath from the value encoded in an empty executable.
8334        cat >conftest.$ac_ext <<_ACEOF
8335 /* confdefs.h.  */
8336 _ACEOF
8337 cat confdefs.h >>conftest.$ac_ext
8338 cat >>conftest.$ac_ext <<_ACEOF
8339 /* end confdefs.h.  */
8340
8341 int
8342 main ()
8343 {
8344
8345   ;
8346   return 0;
8347 }
8348 _ACEOF
8349 rm -f conftest.$ac_objext conftest$ac_exeext
8350 if { (ac_try="$ac_link"
8351 case "(($ac_try" in
8352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8353   *) ac_try_echo=$ac_try;;
8354 esac
8355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8356   (eval "$ac_link") 2>conftest.er1
8357   ac_status=$?
8358   grep -v '^ *+' conftest.er1 >conftest.err
8359   rm -f conftest.er1
8360   cat conftest.err >&5
8361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362   (exit $ac_status); } && {
8363          test -z "$ac_c_werror_flag" ||
8364          test ! -s conftest.err
8365        } && test -s conftest$ac_exeext &&
8366        $as_test_x conftest$ac_exeext; then
8367
8368 lt_aix_libpath_sed='
8369     /Import File Strings/,/^$/ {
8370         /^0/ {
8371             s/^0  *\(.*\)$/\1/
8372             p
8373         }
8374     }'
8375 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8376 # Check for a 64-bit object if we didn't find anything.
8377 if test -z "$aix_libpath"; then
8378   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8379 fi
8380 else
8381   echo "$as_me: failed program was:" >&5
8382 sed 's/^/| /' conftest.$ac_ext >&5
8383
8384
8385 fi
8386
8387 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8388       conftest$ac_exeext conftest.$ac_ext
8389 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8390
8391        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8392         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"
8393        else
8394         if test "$host_cpu" = ia64; then
8395           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8396           allow_undefined_flag="-z nodefs"
8397           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"
8398         else
8399          # Determine the default libpath from the value encoded in an empty executable.
8400          cat >conftest.$ac_ext <<_ACEOF
8401 /* confdefs.h.  */
8402 _ACEOF
8403 cat confdefs.h >>conftest.$ac_ext
8404 cat >>conftest.$ac_ext <<_ACEOF
8405 /* end confdefs.h.  */
8406
8407 int
8408 main ()
8409 {
8410
8411   ;
8412   return 0;
8413 }
8414 _ACEOF
8415 rm -f conftest.$ac_objext conftest$ac_exeext
8416 if { (ac_try="$ac_link"
8417 case "(($ac_try" in
8418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8419   *) ac_try_echo=$ac_try;;
8420 esac
8421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8422   (eval "$ac_link") 2>conftest.er1
8423   ac_status=$?
8424   grep -v '^ *+' conftest.er1 >conftest.err
8425   rm -f conftest.er1
8426   cat conftest.err >&5
8427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8428   (exit $ac_status); } && {
8429          test -z "$ac_c_werror_flag" ||
8430          test ! -s conftest.err
8431        } && test -s conftest$ac_exeext &&
8432        $as_test_x conftest$ac_exeext; then
8433
8434 lt_aix_libpath_sed='
8435     /Import File Strings/,/^$/ {
8436         /^0/ {
8437             s/^0  *\(.*\)$/\1/
8438             p
8439         }
8440     }'
8441 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8442 # Check for a 64-bit object if we didn't find anything.
8443 if test -z "$aix_libpath"; then
8444   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8445 fi
8446 else
8447   echo "$as_me: failed program was:" >&5
8448 sed 's/^/| /' conftest.$ac_ext >&5
8449
8450
8451 fi
8452
8453 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8454       conftest$ac_exeext conftest.$ac_ext
8455 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8456
8457          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8458           # Warning - without using the other run time loading flags,
8459           # -berok will link without error, but may produce a broken library.
8460           no_undefined_flag=' ${wl}-bernotok'
8461           allow_undefined_flag=' ${wl}-berok'
8462           # Exported symbols can be pulled into shared objects from archives
8463           whole_archive_flag_spec='$convenience'
8464           archive_cmds_need_lc=yes
8465           # This is similar to how AIX traditionally builds its shared libraries.
8466           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'
8467         fi
8468       fi
8469       ;;
8470
8471     amigaos*)
8472       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)'
8473       hardcode_libdir_flag_spec='-L$libdir'
8474       hardcode_minus_L=yes
8475       # see comment about different semantics on the GNU ld section
8476       ld_shlibs=no
8477       ;;
8478
8479     bsdi[45]*)
8480       export_dynamic_flag_spec=-rdynamic
8481       ;;
8482
8483     cygwin* | mingw* | pw32*)
8484       # When not using gcc, we currently assume that we are using
8485       # Microsoft Visual C++.
8486       # hardcode_libdir_flag_spec is actually meaningless, as there is
8487       # no search path for DLLs.
8488       hardcode_libdir_flag_spec=' '
8489       allow_undefined_flag=unsupported
8490       # Tell ltmain to make .lib files, not .a files.
8491       libext=lib
8492       # Tell ltmain to make .dll files, not .so files.
8493       shrext_cmds=".dll"
8494       # FIXME: Setting linknames here is a bad hack.
8495       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8496       # The linker will automatically build a .lib file if we build a DLL.
8497       old_archive_From_new_cmds='true'
8498       # FIXME: Should let the user specify the lib program.
8499       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8500       fix_srcfile_path='`cygpath -w "$srcfile"`'
8501       enable_shared_with_static_runtimes=yes
8502       ;;
8503
8504     darwin* | rhapsody*)
8505       case $host_os in
8506         rhapsody* | darwin1.[012])
8507          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8508          ;;
8509        *) # Darwin 1.3 on
8510          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8511            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8512          else
8513            case ${MACOSX_DEPLOYMENT_TARGET} in
8514              10.[012])
8515                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8516                ;;
8517              10.*)
8518                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8519                ;;
8520            esac
8521          fi
8522          ;;
8523       esac
8524       archive_cmds_need_lc=no
8525       hardcode_direct=no
8526       hardcode_automatic=yes
8527       hardcode_shlibpath_var=unsupported
8528       whole_archive_flag_spec=''
8529       link_all_deplibs=yes
8530     if test "$GCC" = yes ; then
8531         output_verbose_link_cmd='echo'
8532         archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8533         module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8534         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}"
8535         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}"
8536     else
8537       case $cc_basename in
8538         xlc*)
8539          output_verbose_link_cmd='echo'
8540          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8541          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8542           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8543          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}'
8544           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}'
8545           ;;
8546        *)
8547          ld_shlibs=no
8548           ;;
8549       esac
8550     fi
8551       ;;
8552
8553     dgux*)
8554       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8555       hardcode_libdir_flag_spec='-L$libdir'
8556       hardcode_shlibpath_var=no
8557       ;;
8558
8559     freebsd1*)
8560       ld_shlibs=no
8561       ;;
8562
8563     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8564     # support.  Future versions do this automatically, but an explicit c++rt0.o
8565     # does not break anything, and helps significantly (at the cost of a little
8566     # extra space).
8567     freebsd2.2*)
8568       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8569       hardcode_libdir_flag_spec='-R$libdir'
8570       hardcode_direct=yes
8571       hardcode_shlibpath_var=no
8572       ;;
8573
8574     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8575     freebsd2*)
8576       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8577       hardcode_direct=yes
8578       hardcode_minus_L=yes
8579       hardcode_shlibpath_var=no
8580       ;;
8581
8582     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8583     freebsd* | dragonfly*)
8584       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8585       hardcode_libdir_flag_spec='-R$libdir'
8586       hardcode_direct=yes
8587       hardcode_shlibpath_var=no
8588       ;;
8589
8590     hpux9*)
8591       if test "$GCC" = yes; then
8592         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'
8593       else
8594         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'
8595       fi
8596       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8597       hardcode_libdir_separator=:
8598       hardcode_direct=yes
8599
8600       # hardcode_minus_L: Not really in the search PATH,
8601       # but as the default location of the library.
8602       hardcode_minus_L=yes
8603       export_dynamic_flag_spec='${wl}-E'
8604       ;;
8605
8606     hpux10*)
8607       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8608         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8609       else
8610         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8611       fi
8612       if test "$with_gnu_ld" = no; then
8613         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8614         hardcode_libdir_separator=:
8615
8616         hardcode_direct=yes
8617         export_dynamic_flag_spec='${wl}-E'
8618
8619         # hardcode_minus_L: Not really in the search PATH,
8620         # but as the default location of the library.
8621         hardcode_minus_L=yes
8622       fi
8623       ;;
8624
8625     hpux11*)
8626       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8627         case $host_cpu in
8628         hppa*64*)
8629           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8630           ;;
8631         ia64*)
8632           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8633           ;;
8634         *)
8635           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8636           ;;
8637         esac
8638       else
8639         case $host_cpu in
8640         hppa*64*)
8641           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8642           ;;
8643         ia64*)
8644           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8645           ;;
8646         *)
8647           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8648           ;;
8649         esac
8650       fi
8651       if test "$with_gnu_ld" = no; then
8652         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8653         hardcode_libdir_separator=:
8654
8655         case $host_cpu in
8656         hppa*64*|ia64*)
8657           hardcode_libdir_flag_spec_ld='+b $libdir'
8658           hardcode_direct=no
8659           hardcode_shlibpath_var=no
8660           ;;
8661         *)
8662           hardcode_direct=yes
8663           export_dynamic_flag_spec='${wl}-E'
8664
8665           # hardcode_minus_L: Not really in the search PATH,
8666           # but as the default location of the library.
8667           hardcode_minus_L=yes
8668           ;;
8669         esac
8670       fi
8671       ;;
8672
8673     irix5* | irix6* | nonstopux*)
8674       if test "$GCC" = yes; then
8675         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'
8676       else
8677         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'
8678         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8679       fi
8680       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8681       hardcode_libdir_separator=:
8682       link_all_deplibs=yes
8683       ;;
8684
8685     netbsd*)
8686       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8687         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8688       else
8689         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8690       fi
8691       hardcode_libdir_flag_spec='-R$libdir'
8692       hardcode_direct=yes
8693       hardcode_shlibpath_var=no
8694       ;;
8695
8696     newsos6)
8697       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8698       hardcode_direct=yes
8699       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8700       hardcode_libdir_separator=:
8701       hardcode_shlibpath_var=no
8702       ;;
8703
8704     openbsd*)
8705       if test -f /usr/libexec/ld.so; then
8706         hardcode_direct=yes
8707         hardcode_shlibpath_var=no
8708         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8709           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8710           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8711           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8712           export_dynamic_flag_spec='${wl}-E'
8713         else
8714           case $host_os in
8715            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8716              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8717              hardcode_libdir_flag_spec='-R$libdir'
8718              ;;
8719            *)
8720              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8721              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8722              ;;
8723           esac
8724         fi
8725       else
8726         ld_shlibs=no
8727       fi
8728       ;;
8729
8730     os2*)
8731       hardcode_libdir_flag_spec='-L$libdir'
8732       hardcode_minus_L=yes
8733       allow_undefined_flag=unsupported
8734       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'
8735       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8736       ;;
8737
8738     osf3*)
8739       if test "$GCC" = yes; then
8740         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8741         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'
8742       else
8743         allow_undefined_flag=' -expect_unresolved \*'
8744         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'
8745       fi
8746       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8747       hardcode_libdir_separator=:
8748       ;;
8749
8750     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8751       if test "$GCC" = yes; then
8752         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8753         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'
8754         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8755       else
8756         allow_undefined_flag=' -expect_unresolved \*'
8757         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'
8758         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8759         $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'
8760
8761         # Both c and cxx compiler support -rpath directly
8762         hardcode_libdir_flag_spec='-rpath $libdir'
8763       fi
8764       hardcode_libdir_separator=:
8765       ;;
8766
8767     solaris*)
8768       no_undefined_flag=' -z text'
8769       if test "$GCC" = yes; then
8770         wlarc='${wl}'
8771         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8772         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8773           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8774       else
8775         wlarc=''
8776         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8777         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8778         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8779       fi
8780       hardcode_libdir_flag_spec='-R$libdir'
8781       hardcode_shlibpath_var=no
8782       case $host_os in
8783       solaris2.[0-5] | solaris2.[0-5].*) ;;
8784       *)
8785         # The compiler driver will combine and reorder linker options,
8786         # but understands `-z linker_flag'.  GCC discards it without `$wl',
8787         # but is careful enough not to reorder.
8788         # Supported since Solaris 2.6 (maybe 2.5.1?)
8789         if test "$GCC" = yes; then
8790           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8791         else
8792           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8793         fi
8794         ;;
8795       esac
8796       link_all_deplibs=yes
8797       ;;
8798
8799     sunos4*)
8800       if test "x$host_vendor" = xsequent; then
8801         # Use $CC to link under sequent, because it throws in some extra .o
8802         # files that make .init and .fini sections work.
8803         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8804       else
8805         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8806       fi
8807       hardcode_libdir_flag_spec='-L$libdir'
8808       hardcode_direct=yes
8809       hardcode_minus_L=yes
8810       hardcode_shlibpath_var=no
8811       ;;
8812
8813     sysv4)
8814       case $host_vendor in
8815         sni)
8816           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8817           hardcode_direct=yes # is this really true???
8818         ;;
8819         siemens)
8820           ## LD is ld it makes a PLAMLIB
8821           ## CC just makes a GrossModule.
8822           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8823           reload_cmds='$CC -r -o $output$reload_objs'
8824           hardcode_direct=no
8825         ;;
8826         motorola)
8827           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8828           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8829         ;;
8830       esac
8831       runpath_var='LD_RUN_PATH'
8832       hardcode_shlibpath_var=no
8833       ;;
8834
8835     sysv4.3*)
8836       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8837       hardcode_shlibpath_var=no
8838       export_dynamic_flag_spec='-Bexport'
8839       ;;
8840
8841     sysv4*MP*)
8842       if test -d /usr/nec; then
8843         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8844         hardcode_shlibpath_var=no
8845         runpath_var=LD_RUN_PATH
8846         hardcode_runpath_var=yes
8847         ld_shlibs=yes
8848       fi
8849       ;;
8850
8851     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8852       no_undefined_flag='${wl}-z,text'
8853       archive_cmds_need_lc=no
8854       hardcode_shlibpath_var=no
8855       runpath_var='LD_RUN_PATH'
8856
8857       if test "$GCC" = yes; then
8858         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8859         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8860       else
8861         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8862         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8863       fi
8864       ;;
8865
8866     sysv5* | sco3.2v5* | sco5v6*)
8867       # Note: We can NOT use -z defs as we might desire, because we do not
8868       # link with -lc, and that would cause any symbols used from libc to
8869       # always be unresolved, which means just about no library would
8870       # ever link correctly.  If we're not using GNU ld we use -z text
8871       # though, which does catch some bad symbols but isn't as heavy-handed
8872       # as -z defs.
8873       no_undefined_flag='${wl}-z,text'
8874       allow_undefined_flag='${wl}-z,nodefs'
8875       archive_cmds_need_lc=no
8876       hardcode_shlibpath_var=no
8877       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8878       hardcode_libdir_separator=':'
8879       link_all_deplibs=yes
8880       export_dynamic_flag_spec='${wl}-Bexport'
8881       runpath_var='LD_RUN_PATH'
8882
8883       if test "$GCC" = yes; then
8884         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8885         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8886       else
8887         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8888         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8889       fi
8890       ;;
8891
8892     uts4*)
8893       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8894       hardcode_libdir_flag_spec='-L$libdir'
8895       hardcode_shlibpath_var=no
8896       ;;
8897
8898     *)
8899       ld_shlibs=no
8900       ;;
8901     esac
8902   fi
8903
8904 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8905 echo "${ECHO_T}$ld_shlibs" >&6; }
8906 test "$ld_shlibs" = no && can_build_shared=no
8907
8908 #
8909 # Do we need to explicitly link libc?
8910 #
8911 case "x$archive_cmds_need_lc" in
8912 x|xyes)
8913   # Assume -lc should be added
8914   archive_cmds_need_lc=yes
8915
8916   if test "$enable_shared" = yes && test "$GCC" = yes; then
8917     case $archive_cmds in
8918     *'~'*)
8919       # FIXME: we may have to deal with multi-command sequences.
8920       ;;
8921     '$CC '*)
8922       # Test whether the compiler implicitly links with -lc since on some
8923       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8924       # to ld, don't add -lc before -lgcc.
8925       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8926 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8927       $rm conftest*
8928       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8929
8930       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8931   (eval $ac_compile) 2>&5
8932   ac_status=$?
8933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8934   (exit $ac_status); } 2>conftest.err; then
8935         soname=conftest
8936         lib=conftest
8937         libobjs=conftest.$ac_objext
8938         deplibs=
8939         wl=$lt_prog_compiler_wl
8940         pic_flag=$lt_prog_compiler_pic
8941         compiler_flags=-v
8942         linker_flags=-v
8943         verstring=
8944         output_objdir=.
8945         libname=conftest
8946         lt_save_allow_undefined_flag=$allow_undefined_flag
8947         allow_undefined_flag=
8948         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8949   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8950   ac_status=$?
8951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8952   (exit $ac_status); }
8953         then
8954           archive_cmds_need_lc=no
8955         else
8956           archive_cmds_need_lc=yes
8957         fi
8958         allow_undefined_flag=$lt_save_allow_undefined_flag
8959       else
8960         cat conftest.err 1>&5
8961       fi
8962       $rm conftest*
8963       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8964 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8965       ;;
8966     esac
8967   fi
8968   ;;
8969 esac
8970
8971 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8972 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8973 library_names_spec=
8974 libname_spec='lib$name'
8975 soname_spec=
8976 shrext_cmds=".so"
8977 postinstall_cmds=
8978 postuninstall_cmds=
8979 finish_cmds=
8980 finish_eval=
8981 shlibpath_var=
8982 shlibpath_overrides_runpath=unknown
8983 version_type=none
8984 dynamic_linker="$host_os ld.so"
8985 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8986
8987 if test "$GCC" = yes; then
8988   case $host_os in
8989     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8990     *) lt_awk_arg="/^libraries:/" ;;
8991   esac
8992   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8993   if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8994     # if the path contains ";" then we assume it to be the separator
8995     # otherwise default to the standard path separator (i.e. ":") - it is
8996     # assumed that no part of a normal pathname contains ";" but that should
8997     # okay in the real world where ";" in dirpaths is itself problematic.
8998     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8999   else
9000     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9001   fi
9002   # Ok, now we have the path, separated by spaces, we can step through it
9003   # and add multilib dir if necessary.
9004   lt_tmp_lt_search_path_spec=
9005   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9006   for lt_sys_path in $lt_search_path_spec; do
9007     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9008       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9009     else
9010       test -d "$lt_sys_path" && \
9011         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9012     fi
9013   done
9014   lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9015 BEGIN {RS=" "; FS="/|\n";} {
9016   lt_foo="";
9017   lt_count=0;
9018   for (lt_i = NF; lt_i > 0; lt_i--) {
9019     if ($lt_i != "" && $lt_i != ".") {
9020       if ($lt_i == "..") {
9021         lt_count++;
9022       } else {
9023         if (lt_count == 0) {
9024           lt_foo="/" $lt_i lt_foo;
9025         } else {
9026           lt_count--;
9027         }
9028       }
9029     }
9030   }
9031   if (lt_foo != "") { lt_freq[lt_foo]++; }
9032   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9033 }'`
9034   sys_lib_search_path_spec=`echo $lt_search_path_spec`
9035 else
9036   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9037 fi
9038 need_lib_prefix=unknown
9039 hardcode_into_libs=no
9040
9041 # when you set need_version to no, make sure it does not cause -set_version
9042 # flags to be left without arguments
9043 need_version=unknown
9044
9045 case $host_os in
9046 aix3*)
9047   version_type=linux
9048   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9049   shlibpath_var=LIBPATH
9050
9051   # AIX 3 has no versioning support, so we append a major version to the name.
9052   soname_spec='${libname}${release}${shared_ext}$major'
9053   ;;
9054
9055 aix[4-9]*)
9056   version_type=linux
9057   need_lib_prefix=no
9058   need_version=no
9059   hardcode_into_libs=yes
9060   if test "$host_cpu" = ia64; then
9061     # AIX 5 supports IA64
9062     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9063     shlibpath_var=LD_LIBRARY_PATH
9064   else
9065     # With GCC up to 2.95.x, collect2 would create an import file
9066     # for dependence libraries.  The import file would start with
9067     # the line `#! .'.  This would cause the generated library to
9068     # depend on `.', always an invalid library.  This was fixed in
9069     # development snapshots of GCC prior to 3.0.
9070     case $host_os in
9071       aix4 | aix4.[01] | aix4.[01].*)
9072       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9073            echo ' yes '
9074            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9075         :
9076       else
9077         can_build_shared=no
9078       fi
9079       ;;
9080     esac
9081     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9082     # soname into executable. Probably we can add versioning support to
9083     # collect2, so additional links can be useful in future.
9084     if test "$aix_use_runtimelinking" = yes; then
9085       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9086       # instead of lib<name>.a to let people know that these are not
9087       # typical AIX shared libraries.
9088       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9089     else
9090       # We preserve .a as extension for shared libraries through AIX4.2
9091       # and later when we are not doing run time linking.
9092       library_names_spec='${libname}${release}.a $libname.a'
9093       soname_spec='${libname}${release}${shared_ext}$major'
9094     fi
9095     shlibpath_var=LIBPATH
9096   fi
9097   ;;
9098
9099 amigaos*)
9100   library_names_spec='$libname.ixlibrary $libname.a'
9101   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9102   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'
9103   ;;
9104
9105 beos*)
9106   library_names_spec='${libname}${shared_ext}'
9107   dynamic_linker="$host_os ld.so"
9108   shlibpath_var=LIBRARY_PATH
9109   ;;
9110
9111 bsdi[45]*)
9112   version_type=linux
9113   need_version=no
9114   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9115   soname_spec='${libname}${release}${shared_ext}$major'
9116   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9117   shlibpath_var=LD_LIBRARY_PATH
9118   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9119   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9120   # the default ld.so.conf also contains /usr/contrib/lib and
9121   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9122   # libtool to hard-code these into programs
9123   ;;
9124
9125 cygwin* | mingw* | pw32*)
9126   version_type=windows
9127   shrext_cmds=".dll"
9128   need_version=no
9129   need_lib_prefix=no
9130
9131   case $GCC,$host_os in
9132   yes,cygwin* | yes,mingw* | yes,pw32*)
9133     library_names_spec='$libname.dll.a'
9134     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9135     postinstall_cmds='base_file=`basename \${file}`~
9136       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9137       dldir=$destdir/`dirname \$dlpath`~
9138       test -d \$dldir || mkdir -p \$dldir~
9139       $install_prog $dir/$dlname \$dldir/$dlname~
9140       chmod a+x \$dldir/$dlname'
9141     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9142       dlpath=$dir/\$dldll~
9143        $rm \$dlpath'
9144     shlibpath_overrides_runpath=yes
9145
9146     case $host_os in
9147     cygwin*)
9148       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9149       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9150       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9151       ;;
9152     mingw*)
9153       # MinGW DLLs use traditional 'lib' prefix
9154       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9155       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9156       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9157         # It is most probably a Windows format PATH printed by
9158         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9159         # path with ; separators, and with drive letters. We can handle the
9160         # drive letters (cygwin fileutils understands them), so leave them,
9161         # especially as we might pass files found there to a mingw objdump,
9162         # which wouldn't understand a cygwinified path. Ahh.
9163         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9164       else
9165         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9166       fi
9167       ;;
9168     pw32*)
9169       # pw32 DLLs use 'pw' prefix rather than 'lib'
9170       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9171       ;;
9172     esac
9173     ;;
9174
9175   *)
9176     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9177     ;;
9178   esac
9179   dynamic_linker='Win32 ld.exe'
9180   # FIXME: first we should search . and the directory the executable is in
9181   shlibpath_var=PATH
9182   ;;
9183
9184 darwin* | rhapsody*)
9185   dynamic_linker="$host_os dyld"
9186   version_type=darwin
9187   need_lib_prefix=no
9188   need_version=no
9189   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9190   soname_spec='${libname}${release}${major}$shared_ext'
9191   shlibpath_overrides_runpath=yes
9192   shlibpath_var=DYLD_LIBRARY_PATH
9193   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9194
9195   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9196   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9197   ;;
9198
9199 dgux*)
9200   version_type=linux
9201   need_lib_prefix=no
9202   need_version=no
9203   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9204   soname_spec='${libname}${release}${shared_ext}$major'
9205   shlibpath_var=LD_LIBRARY_PATH
9206   ;;
9207
9208 freebsd1*)
9209   dynamic_linker=no
9210   ;;
9211
9212 freebsd* | dragonfly*)
9213   # DragonFly does not have aout.  When/if they implement a new
9214   # versioning mechanism, adjust this.
9215   if test -x /usr/bin/objformat; then
9216     objformat=`/usr/bin/objformat`
9217   else
9218     case $host_os in
9219     freebsd[123]*) objformat=aout ;;
9220     *) objformat=elf ;;
9221     esac
9222   fi
9223   version_type=freebsd-$objformat
9224   case $version_type in
9225     freebsd-elf*)
9226       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9227       need_version=no
9228       need_lib_prefix=no
9229       ;;
9230     freebsd-*)
9231       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9232       need_version=yes
9233       ;;
9234   esac
9235   shlibpath_var=LD_LIBRARY_PATH
9236   case $host_os in
9237   freebsd2*)
9238     shlibpath_overrides_runpath=yes
9239     ;;
9240   freebsd3.[01]* | freebsdelf3.[01]*)
9241     shlibpath_overrides_runpath=yes
9242     hardcode_into_libs=yes
9243     ;;
9244   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9245   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9246     shlibpath_overrides_runpath=no
9247     hardcode_into_libs=yes
9248     ;;
9249   *) # from 4.6 on, and DragonFly
9250     shlibpath_overrides_runpath=yes
9251     hardcode_into_libs=yes
9252     ;;
9253   esac
9254   ;;
9255
9256 gnu*)
9257   version_type=linux
9258   need_lib_prefix=no
9259   need_version=no
9260   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9261   soname_spec='${libname}${release}${shared_ext}$major'
9262   shlibpath_var=LD_LIBRARY_PATH
9263   hardcode_into_libs=yes
9264   ;;
9265
9266 hpux9* | hpux10* | hpux11*)
9267   # Give a soname corresponding to the major version so that dld.sl refuses to
9268   # link against other versions.
9269   version_type=sunos
9270   need_lib_prefix=no
9271   need_version=no
9272   case $host_cpu in
9273   ia64*)
9274     shrext_cmds='.so'
9275     hardcode_into_libs=yes
9276     dynamic_linker="$host_os dld.so"
9277     shlibpath_var=LD_LIBRARY_PATH
9278     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9279     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9280     soname_spec='${libname}${release}${shared_ext}$major'
9281     if test "X$HPUX_IA64_MODE" = X32; then
9282       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9283     else
9284       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9285     fi
9286     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9287     ;;
9288    hppa*64*)
9289      shrext_cmds='.sl'
9290      hardcode_into_libs=yes
9291      dynamic_linker="$host_os dld.sl"
9292      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9293      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9294      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9295      soname_spec='${libname}${release}${shared_ext}$major'
9296      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9297      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9298      ;;
9299    *)
9300     shrext_cmds='.sl'
9301     dynamic_linker="$host_os dld.sl"
9302     shlibpath_var=SHLIB_PATH
9303     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9304     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9305     soname_spec='${libname}${release}${shared_ext}$major'
9306     ;;
9307   esac
9308   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9309   postinstall_cmds='chmod 555 $lib'
9310   ;;
9311
9312 interix[3-9]*)
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   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9319   shlibpath_var=LD_LIBRARY_PATH
9320   shlibpath_overrides_runpath=no
9321   hardcode_into_libs=yes
9322   ;;
9323
9324 irix5* | irix6* | nonstopux*)
9325   case $host_os in
9326     nonstopux*) version_type=nonstopux ;;
9327     *)
9328         if test "$lt_cv_prog_gnu_ld" = yes; then
9329                 version_type=linux
9330         else
9331                 version_type=irix
9332         fi ;;
9333   esac
9334   need_lib_prefix=no
9335   need_version=no
9336   soname_spec='${libname}${release}${shared_ext}$major'
9337   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9338   case $host_os in
9339   irix5* | nonstopux*)
9340     libsuff= shlibsuff=
9341     ;;
9342   *)
9343     case $LD in # libtool.m4 will add one of these switches to LD
9344     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9345       libsuff= shlibsuff= libmagic=32-bit;;
9346     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9347       libsuff=32 shlibsuff=N32 libmagic=N32;;
9348     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9349       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9350     *) libsuff= shlibsuff= libmagic=never-match;;
9351     esac
9352     ;;
9353   esac
9354   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9355   shlibpath_overrides_runpath=no
9356   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9357   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9358   hardcode_into_libs=yes
9359   ;;
9360
9361 # No shared lib support for Linux oldld, aout, or coff.
9362 linux*oldld* | linux*aout* | linux*coff*)
9363   dynamic_linker=no
9364   ;;
9365
9366 # This must be Linux ELF.
9367 linux* | k*bsd*-gnu)
9368   version_type=linux
9369   need_lib_prefix=no
9370   need_version=no
9371   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9372   soname_spec='${libname}${release}${shared_ext}$major'
9373   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9374   shlibpath_var=LD_LIBRARY_PATH
9375   shlibpath_overrides_runpath=no
9376   # This implies no fast_install, which is unacceptable.
9377   # Some rework will be needed to allow for fast_install
9378   # before this can be enabled.
9379   hardcode_into_libs=yes
9380
9381   # Append ld.so.conf contents to the search path
9382   if test -f /etc/ld.so.conf; then
9383     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' ' '`
9384     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9385   fi
9386
9387   # We used to test for /lib/ld.so.1 and disable shared libraries on
9388   # powerpc, because MkLinux only supported shared libraries with the
9389   # GNU dynamic linker.  Since this was broken with cross compilers,
9390   # most powerpc-linux boxes support dynamic linking these days and
9391   # people can always --disable-shared, the test was removed, and we
9392   # assume the GNU/Linux dynamic linker is in use.
9393   dynamic_linker='GNU/Linux ld.so'
9394   ;;
9395
9396 netbsd*)
9397   version_type=sunos
9398   need_lib_prefix=no
9399   need_version=no
9400   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9401     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9402     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9403     dynamic_linker='NetBSD (a.out) ld.so'
9404   else
9405     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9406     soname_spec='${libname}${release}${shared_ext}$major'
9407     dynamic_linker='NetBSD ld.elf_so'
9408   fi
9409   shlibpath_var=LD_LIBRARY_PATH
9410   shlibpath_overrides_runpath=yes
9411   hardcode_into_libs=yes
9412   ;;
9413
9414 newsos6)
9415   version_type=linux
9416   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9417   shlibpath_var=LD_LIBRARY_PATH
9418   shlibpath_overrides_runpath=yes
9419   ;;
9420
9421 nto-qnx*)
9422   version_type=linux
9423   need_lib_prefix=no
9424   need_version=no
9425   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9426   soname_spec='${libname}${release}${shared_ext}$major'
9427   shlibpath_var=LD_LIBRARY_PATH
9428   shlibpath_overrides_runpath=yes
9429   ;;
9430
9431 openbsd*)
9432   version_type=sunos
9433   sys_lib_dlsearch_path_spec="/usr/lib"
9434   need_lib_prefix=no
9435   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9436   case $host_os in
9437     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9438     *)                         need_version=no  ;;
9439   esac
9440   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9441   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9442   shlibpath_var=LD_LIBRARY_PATH
9443   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9444     case $host_os in
9445       openbsd2.[89] | openbsd2.[89].*)
9446         shlibpath_overrides_runpath=no
9447         ;;
9448       *)
9449         shlibpath_overrides_runpath=yes
9450         ;;
9451       esac
9452   else
9453     shlibpath_overrides_runpath=yes
9454   fi
9455   ;;
9456
9457 os2*)
9458   libname_spec='$name'
9459   shrext_cmds=".dll"
9460   need_lib_prefix=no
9461   library_names_spec='$libname${shared_ext} $libname.a'
9462   dynamic_linker='OS/2 ld.exe'
9463   shlibpath_var=LIBPATH
9464   ;;
9465
9466 osf3* | osf4* | osf5*)
9467   version_type=osf
9468   need_lib_prefix=no
9469   need_version=no
9470   soname_spec='${libname}${release}${shared_ext}$major'
9471   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9472   shlibpath_var=LD_LIBRARY_PATH
9473   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9474   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9475   ;;
9476
9477 rdos*)
9478   dynamic_linker=no
9479   ;;
9480
9481 solaris*)
9482   version_type=linux
9483   need_lib_prefix=no
9484   need_version=no
9485   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9486   soname_spec='${libname}${release}${shared_ext}$major'
9487   shlibpath_var=LD_LIBRARY_PATH
9488   shlibpath_overrides_runpath=yes
9489   hardcode_into_libs=yes
9490   # ldd complains unless libraries are executable
9491   postinstall_cmds='chmod +x $lib'
9492   ;;
9493
9494 sunos4*)
9495   version_type=sunos
9496   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9497   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9498   shlibpath_var=LD_LIBRARY_PATH
9499   shlibpath_overrides_runpath=yes
9500   if test "$with_gnu_ld" = yes; then
9501     need_lib_prefix=no
9502   fi
9503   need_version=yes
9504   ;;
9505
9506 sysv4 | sysv4.3*)
9507   version_type=linux
9508   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9509   soname_spec='${libname}${release}${shared_ext}$major'
9510   shlibpath_var=LD_LIBRARY_PATH
9511   case $host_vendor in
9512     sni)
9513       shlibpath_overrides_runpath=no
9514       need_lib_prefix=no
9515       export_dynamic_flag_spec='${wl}-Blargedynsym'
9516       runpath_var=LD_RUN_PATH
9517       ;;
9518     siemens)
9519       need_lib_prefix=no
9520       ;;
9521     motorola)
9522       need_lib_prefix=no
9523       need_version=no
9524       shlibpath_overrides_runpath=no
9525       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9526       ;;
9527   esac
9528   ;;
9529
9530 sysv4*MP*)
9531   if test -d /usr/nec ;then
9532     version_type=linux
9533     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9534     soname_spec='$libname${shared_ext}.$major'
9535     shlibpath_var=LD_LIBRARY_PATH
9536   fi
9537   ;;
9538
9539 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9540   version_type=freebsd-elf
9541   need_lib_prefix=no
9542   need_version=no
9543   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9544   soname_spec='${libname}${release}${shared_ext}$major'
9545   shlibpath_var=LD_LIBRARY_PATH
9546   hardcode_into_libs=yes
9547   if test "$with_gnu_ld" = yes; then
9548     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9549     shlibpath_overrides_runpath=no
9550   else
9551     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9552     shlibpath_overrides_runpath=yes
9553     case $host_os in
9554       sco3.2v5*)
9555         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9556         ;;
9557     esac
9558   fi
9559   sys_lib_dlsearch_path_spec='/usr/lib'
9560   ;;
9561
9562 uts4*)
9563   version_type=linux
9564   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9565   soname_spec='${libname}${release}${shared_ext}$major'
9566   shlibpath_var=LD_LIBRARY_PATH
9567   ;;
9568
9569 *)
9570   dynamic_linker=no
9571   ;;
9572 esac
9573 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9574 echo "${ECHO_T}$dynamic_linker" >&6; }
9575 test "$dynamic_linker" = no && can_build_shared=no
9576
9577 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9578   echo $ECHO_N "(cached) $ECHO_C" >&6
9579 else
9580   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9581 fi
9582
9583 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9584 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9585   echo $ECHO_N "(cached) $ECHO_C" >&6
9586 else
9587   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9588 fi
9589
9590 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9591
9592 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9593 if test "$GCC" = yes; then
9594   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9595 fi
9596
9597 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9598 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9599 hardcode_action=
9600 if test -n "$hardcode_libdir_flag_spec" || \
9601    test -n "$runpath_var" || \
9602    test "X$hardcode_automatic" = "Xyes" ; then
9603
9604   # We can hardcode non-existant directories.
9605   if test "$hardcode_direct" != no &&
9606      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9607      # have to relink, otherwise we might link with an installed library
9608      # when we should be linking with a yet-to-be-installed one
9609      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9610      test "$hardcode_minus_L" != no; then
9611     # Linking always hardcodes the temporary library directory.
9612     hardcode_action=relink
9613   else
9614     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9615     hardcode_action=immediate
9616   fi
9617 else
9618   # We cannot hardcode anything, or else we can only hardcode existing
9619   # directories.
9620   hardcode_action=unsupported
9621 fi
9622 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9623 echo "${ECHO_T}$hardcode_action" >&6; }
9624
9625 if test "$hardcode_action" = relink; then
9626   # Fast installation is not supported
9627   enable_fast_install=no
9628 elif test "$shlibpath_overrides_runpath" = yes ||
9629      test "$enable_shared" = no; then
9630   # Fast installation is not necessary
9631   enable_fast_install=needless
9632 fi
9633
9634 striplib=
9635 old_striplib=
9636 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9637 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9638 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9639   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9640   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9641   { echo "$as_me:$LINENO: result: yes" >&5
9642 echo "${ECHO_T}yes" >&6; }
9643 else
9644 # FIXME - insert some real tests, host_os isn't really good enough
9645   case $host_os in
9646    darwin*)
9647        if test -n "$STRIP" ; then
9648          striplib="$STRIP -x"
9649          old_striplib="$STRIP -S"
9650          { echo "$as_me:$LINENO: result: yes" >&5
9651 echo "${ECHO_T}yes" >&6; }
9652        else
9653   { echo "$as_me:$LINENO: result: no" >&5
9654 echo "${ECHO_T}no" >&6; }
9655 fi
9656        ;;
9657    *)
9658   { echo "$as_me:$LINENO: result: no" >&5
9659 echo "${ECHO_T}no" >&6; }
9660     ;;
9661   esac
9662 fi
9663
9664 if test "x$enable_dlopen" != xyes; then
9665   enable_dlopen=unknown
9666   enable_dlopen_self=unknown
9667   enable_dlopen_self_static=unknown
9668 else
9669   lt_cv_dlopen=no
9670   lt_cv_dlopen_libs=
9671
9672   case $host_os in
9673   beos*)
9674     lt_cv_dlopen="load_add_on"
9675     lt_cv_dlopen_libs=
9676     lt_cv_dlopen_self=yes
9677     ;;
9678
9679   mingw* | pw32*)
9680     lt_cv_dlopen="LoadLibrary"
9681     lt_cv_dlopen_libs=
9682    ;;
9683
9684   cygwin*)
9685     lt_cv_dlopen="dlopen"
9686     lt_cv_dlopen_libs=
9687    ;;
9688
9689   darwin*)
9690   # if libdl is installed we need to link against it
9691     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9692 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9693 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9694   echo $ECHO_N "(cached) $ECHO_C" >&6
9695 else
9696   ac_check_lib_save_LIBS=$LIBS
9697 LIBS="-ldl  $LIBS"
9698 cat >conftest.$ac_ext <<_ACEOF
9699 /* confdefs.h.  */
9700 _ACEOF
9701 cat confdefs.h >>conftest.$ac_ext
9702 cat >>conftest.$ac_ext <<_ACEOF
9703 /* end confdefs.h.  */
9704
9705 /* Override any GCC internal prototype to avoid an error.
9706    Use char because int might match the return type of a GCC
9707    builtin and then its argument prototype would still apply.  */
9708 #ifdef __cplusplus
9709 extern "C"
9710 #endif
9711 char dlopen ();
9712 int
9713 main ()
9714 {
9715 return dlopen ();
9716   ;
9717   return 0;
9718 }
9719 _ACEOF
9720 rm -f conftest.$ac_objext conftest$ac_exeext
9721 if { (ac_try="$ac_link"
9722 case "(($ac_try" in
9723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9724   *) ac_try_echo=$ac_try;;
9725 esac
9726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9727   (eval "$ac_link") 2>conftest.er1
9728   ac_status=$?
9729   grep -v '^ *+' conftest.er1 >conftest.err
9730   rm -f conftest.er1
9731   cat conftest.err >&5
9732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9733   (exit $ac_status); } && {
9734          test -z "$ac_c_werror_flag" ||
9735          test ! -s conftest.err
9736        } && test -s conftest$ac_exeext &&
9737        $as_test_x conftest$ac_exeext; then
9738   ac_cv_lib_dl_dlopen=yes
9739 else
9740   echo "$as_me: failed program was:" >&5
9741 sed 's/^/| /' conftest.$ac_ext >&5
9742
9743         ac_cv_lib_dl_dlopen=no
9744 fi
9745
9746 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9747       conftest$ac_exeext conftest.$ac_ext
9748 LIBS=$ac_check_lib_save_LIBS
9749 fi
9750 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9751 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9752 if test $ac_cv_lib_dl_dlopen = yes; then
9753   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9754 else
9755
9756     lt_cv_dlopen="dyld"
9757     lt_cv_dlopen_libs=
9758     lt_cv_dlopen_self=yes
9759
9760 fi
9761
9762    ;;
9763
9764   *)
9765     { echo "$as_me:$LINENO: checking for shl_load" >&5
9766 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9767 if test "${ac_cv_func_shl_load+set}" = set; then
9768   echo $ECHO_N "(cached) $ECHO_C" >&6
9769 else
9770   cat >conftest.$ac_ext <<_ACEOF
9771 /* confdefs.h.  */
9772 _ACEOF
9773 cat confdefs.h >>conftest.$ac_ext
9774 cat >>conftest.$ac_ext <<_ACEOF
9775 /* end confdefs.h.  */
9776 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9777    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9778 #define shl_load innocuous_shl_load
9779
9780 /* System header to define __stub macros and hopefully few prototypes,
9781     which can conflict with char shl_load (); below.
9782     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9783     <limits.h> exists even on freestanding compilers.  */
9784
9785 #ifdef __STDC__
9786 # include <limits.h>
9787 #else
9788 # include <assert.h>
9789 #endif
9790
9791 #undef shl_load
9792
9793 /* Override any GCC internal prototype to avoid an error.
9794    Use char because int might match the return type of a GCC
9795    builtin and then its argument prototype would still apply.  */
9796 #ifdef __cplusplus
9797 extern "C"
9798 #endif
9799 char shl_load ();
9800 /* The GNU C library defines this for functions which it implements
9801     to always fail with ENOSYS.  Some functions are actually named
9802     something starting with __ and the normal name is an alias.  */
9803 #if defined __stub_shl_load || defined __stub___shl_load
9804 choke me
9805 #endif
9806
9807 int
9808 main ()
9809 {
9810 return shl_load ();
9811   ;
9812   return 0;
9813 }
9814 _ACEOF
9815 rm -f conftest.$ac_objext conftest$ac_exeext
9816 if { (ac_try="$ac_link"
9817 case "(($ac_try" in
9818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9819   *) ac_try_echo=$ac_try;;
9820 esac
9821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9822   (eval "$ac_link") 2>conftest.er1
9823   ac_status=$?
9824   grep -v '^ *+' conftest.er1 >conftest.err
9825   rm -f conftest.er1
9826   cat conftest.err >&5
9827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828   (exit $ac_status); } && {
9829          test -z "$ac_c_werror_flag" ||
9830          test ! -s conftest.err
9831        } && test -s conftest$ac_exeext &&
9832        $as_test_x conftest$ac_exeext; then
9833   ac_cv_func_shl_load=yes
9834 else
9835   echo "$as_me: failed program was:" >&5
9836 sed 's/^/| /' conftest.$ac_ext >&5
9837
9838         ac_cv_func_shl_load=no
9839 fi
9840
9841 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9842       conftest$ac_exeext conftest.$ac_ext
9843 fi
9844 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9845 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9846 if test $ac_cv_func_shl_load = yes; then
9847   lt_cv_dlopen="shl_load"
9848 else
9849   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9850 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9851 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9852   echo $ECHO_N "(cached) $ECHO_C" >&6
9853 else
9854   ac_check_lib_save_LIBS=$LIBS
9855 LIBS="-ldld  $LIBS"
9856 cat >conftest.$ac_ext <<_ACEOF
9857 /* confdefs.h.  */
9858 _ACEOF
9859 cat confdefs.h >>conftest.$ac_ext
9860 cat >>conftest.$ac_ext <<_ACEOF
9861 /* end confdefs.h.  */
9862
9863 /* Override any GCC internal prototype to avoid an error.
9864    Use char because int might match the return type of a GCC
9865    builtin and then its argument prototype would still apply.  */
9866 #ifdef __cplusplus
9867 extern "C"
9868 #endif
9869 char shl_load ();
9870 int
9871 main ()
9872 {
9873 return shl_load ();
9874   ;
9875   return 0;
9876 }
9877 _ACEOF
9878 rm -f conftest.$ac_objext conftest$ac_exeext
9879 if { (ac_try="$ac_link"
9880 case "(($ac_try" in
9881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9882   *) ac_try_echo=$ac_try;;
9883 esac
9884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9885   (eval "$ac_link") 2>conftest.er1
9886   ac_status=$?
9887   grep -v '^ *+' conftest.er1 >conftest.err
9888   rm -f conftest.er1
9889   cat conftest.err >&5
9890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9891   (exit $ac_status); } && {
9892          test -z "$ac_c_werror_flag" ||
9893          test ! -s conftest.err
9894        } && test -s conftest$ac_exeext &&
9895        $as_test_x conftest$ac_exeext; then
9896   ac_cv_lib_dld_shl_load=yes
9897 else
9898   echo "$as_me: failed program was:" >&5
9899 sed 's/^/| /' conftest.$ac_ext >&5
9900
9901         ac_cv_lib_dld_shl_load=no
9902 fi
9903
9904 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9905       conftest$ac_exeext conftest.$ac_ext
9906 LIBS=$ac_check_lib_save_LIBS
9907 fi
9908 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9909 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9910 if test $ac_cv_lib_dld_shl_load = yes; then
9911   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9912 else
9913   { echo "$as_me:$LINENO: checking for dlopen" >&5
9914 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9915 if test "${ac_cv_func_dlopen+set}" = set; then
9916   echo $ECHO_N "(cached) $ECHO_C" >&6
9917 else
9918   cat >conftest.$ac_ext <<_ACEOF
9919 /* confdefs.h.  */
9920 _ACEOF
9921 cat confdefs.h >>conftest.$ac_ext
9922 cat >>conftest.$ac_ext <<_ACEOF
9923 /* end confdefs.h.  */
9924 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9925    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9926 #define dlopen innocuous_dlopen
9927
9928 /* System header to define __stub macros and hopefully few prototypes,
9929     which can conflict with char dlopen (); below.
9930     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9931     <limits.h> exists even on freestanding compilers.  */
9932
9933 #ifdef __STDC__
9934 # include <limits.h>
9935 #else
9936 # include <assert.h>
9937 #endif
9938
9939 #undef dlopen
9940
9941 /* Override any GCC internal prototype to avoid an error.
9942    Use char because int might match the return type of a GCC
9943    builtin and then its argument prototype would still apply.  */
9944 #ifdef __cplusplus
9945 extern "C"
9946 #endif
9947 char dlopen ();
9948 /* The GNU C library defines this for functions which it implements
9949     to always fail with ENOSYS.  Some functions are actually named
9950     something starting with __ and the normal name is an alias.  */
9951 #if defined __stub_dlopen || defined __stub___dlopen
9952 choke me
9953 #endif
9954
9955 int
9956 main ()
9957 {
9958 return dlopen ();
9959   ;
9960   return 0;
9961 }
9962 _ACEOF
9963 rm -f conftest.$ac_objext conftest$ac_exeext
9964 if { (ac_try="$ac_link"
9965 case "(($ac_try" in
9966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9967   *) ac_try_echo=$ac_try;;
9968 esac
9969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9970   (eval "$ac_link") 2>conftest.er1
9971   ac_status=$?
9972   grep -v '^ *+' conftest.er1 >conftest.err
9973   rm -f conftest.er1
9974   cat conftest.err >&5
9975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9976   (exit $ac_status); } && {
9977          test -z "$ac_c_werror_flag" ||
9978          test ! -s conftest.err
9979        } && test -s conftest$ac_exeext &&
9980        $as_test_x conftest$ac_exeext; then
9981   ac_cv_func_dlopen=yes
9982 else
9983   echo "$as_me: failed program was:" >&5
9984 sed 's/^/| /' conftest.$ac_ext >&5
9985
9986         ac_cv_func_dlopen=no
9987 fi
9988
9989 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9990       conftest$ac_exeext conftest.$ac_ext
9991 fi
9992 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9993 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9994 if test $ac_cv_func_dlopen = yes; then
9995   lt_cv_dlopen="dlopen"
9996 else
9997   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9998 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9999 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10000   echo $ECHO_N "(cached) $ECHO_C" >&6
10001 else
10002   ac_check_lib_save_LIBS=$LIBS
10003 LIBS="-ldl  $LIBS"
10004 cat >conftest.$ac_ext <<_ACEOF
10005 /* confdefs.h.  */
10006 _ACEOF
10007 cat confdefs.h >>conftest.$ac_ext
10008 cat >>conftest.$ac_ext <<_ACEOF
10009 /* end confdefs.h.  */
10010
10011 /* Override any GCC internal prototype to avoid an error.
10012    Use char because int might match the return type of a GCC
10013    builtin and then its argument prototype would still apply.  */
10014 #ifdef __cplusplus
10015 extern "C"
10016 #endif
10017 char dlopen ();
10018 int
10019 main ()
10020 {
10021 return dlopen ();
10022   ;
10023   return 0;
10024 }
10025 _ACEOF
10026 rm -f conftest.$ac_objext conftest$ac_exeext
10027 if { (ac_try="$ac_link"
10028 case "(($ac_try" in
10029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10030   *) ac_try_echo=$ac_try;;
10031 esac
10032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10033   (eval "$ac_link") 2>conftest.er1
10034   ac_status=$?
10035   grep -v '^ *+' conftest.er1 >conftest.err
10036   rm -f conftest.er1
10037   cat conftest.err >&5
10038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10039   (exit $ac_status); } && {
10040          test -z "$ac_c_werror_flag" ||
10041          test ! -s conftest.err
10042        } && test -s conftest$ac_exeext &&
10043        $as_test_x conftest$ac_exeext; then
10044   ac_cv_lib_dl_dlopen=yes
10045 else
10046   echo "$as_me: failed program was:" >&5
10047 sed 's/^/| /' conftest.$ac_ext >&5
10048
10049         ac_cv_lib_dl_dlopen=no
10050 fi
10051
10052 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10053       conftest$ac_exeext conftest.$ac_ext
10054 LIBS=$ac_check_lib_save_LIBS
10055 fi
10056 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10057 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10058 if test $ac_cv_lib_dl_dlopen = yes; then
10059   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10060 else
10061   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10062 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10063 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10064   echo $ECHO_N "(cached) $ECHO_C" >&6
10065 else
10066   ac_check_lib_save_LIBS=$LIBS
10067 LIBS="-lsvld  $LIBS"
10068 cat >conftest.$ac_ext <<_ACEOF
10069 /* confdefs.h.  */
10070 _ACEOF
10071 cat confdefs.h >>conftest.$ac_ext
10072 cat >>conftest.$ac_ext <<_ACEOF
10073 /* end confdefs.h.  */
10074
10075 /* Override any GCC internal prototype to avoid an error.
10076    Use char because int might match the return type of a GCC
10077    builtin and then its argument prototype would still apply.  */
10078 #ifdef __cplusplus
10079 extern "C"
10080 #endif
10081 char dlopen ();
10082 int
10083 main ()
10084 {
10085 return dlopen ();
10086   ;
10087   return 0;
10088 }
10089 _ACEOF
10090 rm -f conftest.$ac_objext conftest$ac_exeext
10091 if { (ac_try="$ac_link"
10092 case "(($ac_try" in
10093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10094   *) ac_try_echo=$ac_try;;
10095 esac
10096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10097   (eval "$ac_link") 2>conftest.er1
10098   ac_status=$?
10099   grep -v '^ *+' conftest.er1 >conftest.err
10100   rm -f conftest.er1
10101   cat conftest.err >&5
10102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10103   (exit $ac_status); } && {
10104          test -z "$ac_c_werror_flag" ||
10105          test ! -s conftest.err
10106        } && test -s conftest$ac_exeext &&
10107        $as_test_x conftest$ac_exeext; then
10108   ac_cv_lib_svld_dlopen=yes
10109 else
10110   echo "$as_me: failed program was:" >&5
10111 sed 's/^/| /' conftest.$ac_ext >&5
10112
10113         ac_cv_lib_svld_dlopen=no
10114 fi
10115
10116 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10117       conftest$ac_exeext conftest.$ac_ext
10118 LIBS=$ac_check_lib_save_LIBS
10119 fi
10120 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10121 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10122 if test $ac_cv_lib_svld_dlopen = yes; then
10123   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10124 else
10125   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10126 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10127 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10128   echo $ECHO_N "(cached) $ECHO_C" >&6
10129 else
10130   ac_check_lib_save_LIBS=$LIBS
10131 LIBS="-ldld  $LIBS"
10132 cat >conftest.$ac_ext <<_ACEOF
10133 /* confdefs.h.  */
10134 _ACEOF
10135 cat confdefs.h >>conftest.$ac_ext
10136 cat >>conftest.$ac_ext <<_ACEOF
10137 /* end confdefs.h.  */
10138
10139 /* Override any GCC internal prototype to avoid an error.
10140    Use char because int might match the return type of a GCC
10141    builtin and then its argument prototype would still apply.  */
10142 #ifdef __cplusplus
10143 extern "C"
10144 #endif
10145 char dld_link ();
10146 int
10147 main ()
10148 {
10149 return dld_link ();
10150   ;
10151   return 0;
10152 }
10153 _ACEOF
10154 rm -f conftest.$ac_objext conftest$ac_exeext
10155 if { (ac_try="$ac_link"
10156 case "(($ac_try" in
10157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10158   *) ac_try_echo=$ac_try;;
10159 esac
10160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10161   (eval "$ac_link") 2>conftest.er1
10162   ac_status=$?
10163   grep -v '^ *+' conftest.er1 >conftest.err
10164   rm -f conftest.er1
10165   cat conftest.err >&5
10166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10167   (exit $ac_status); } && {
10168          test -z "$ac_c_werror_flag" ||
10169          test ! -s conftest.err
10170        } && test -s conftest$ac_exeext &&
10171        $as_test_x conftest$ac_exeext; then
10172   ac_cv_lib_dld_dld_link=yes
10173 else
10174   echo "$as_me: failed program was:" >&5
10175 sed 's/^/| /' conftest.$ac_ext >&5
10176
10177         ac_cv_lib_dld_dld_link=no
10178 fi
10179
10180 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10181       conftest$ac_exeext conftest.$ac_ext
10182 LIBS=$ac_check_lib_save_LIBS
10183 fi
10184 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10185 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10186 if test $ac_cv_lib_dld_dld_link = yes; then
10187   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10188 fi
10189
10190
10191 fi
10192
10193
10194 fi
10195
10196
10197 fi
10198
10199
10200 fi
10201
10202
10203 fi
10204
10205     ;;
10206   esac
10207
10208   if test "x$lt_cv_dlopen" != xno; then
10209     enable_dlopen=yes
10210   else
10211     enable_dlopen=no
10212   fi
10213
10214   case $lt_cv_dlopen in
10215   dlopen)
10216     save_CPPFLAGS="$CPPFLAGS"
10217     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10218
10219     save_LDFLAGS="$LDFLAGS"
10220     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10221
10222     save_LIBS="$LIBS"
10223     LIBS="$lt_cv_dlopen_libs $LIBS"
10224
10225     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10226 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10227 if test "${lt_cv_dlopen_self+set}" = set; then
10228   echo $ECHO_N "(cached) $ECHO_C" >&6
10229 else
10230           if test "$cross_compiling" = yes; then :
10231   lt_cv_dlopen_self=cross
10232 else
10233   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10234   lt_status=$lt_dlunknown
10235   cat > conftest.$ac_ext <<EOF
10236 #line 10236 "configure"
10237 #include "confdefs.h"
10238
10239 #if HAVE_DLFCN_H
10240 #include <dlfcn.h>
10241 #endif
10242
10243 #include <stdio.h>
10244
10245 #ifdef RTLD_GLOBAL
10246 #  define LT_DLGLOBAL           RTLD_GLOBAL
10247 #else
10248 #  ifdef DL_GLOBAL
10249 #    define LT_DLGLOBAL         DL_GLOBAL
10250 #  else
10251 #    define LT_DLGLOBAL         0
10252 #  endif
10253 #endif
10254
10255 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10256    find out it does not work in some platform. */
10257 #ifndef LT_DLLAZY_OR_NOW
10258 #  ifdef RTLD_LAZY
10259 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10260 #  else
10261 #    ifdef DL_LAZY
10262 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10263 #    else
10264 #      ifdef RTLD_NOW
10265 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10266 #      else
10267 #        ifdef DL_NOW
10268 #          define LT_DLLAZY_OR_NOW      DL_NOW
10269 #        else
10270 #          define LT_DLLAZY_OR_NOW      0
10271 #        endif
10272 #      endif
10273 #    endif
10274 #  endif
10275 #endif
10276
10277 #ifdef __cplusplus
10278 extern "C" void exit (int);
10279 #endif
10280
10281 void fnord() { int i=42;}
10282 int main ()
10283 {
10284   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10285   int status = $lt_dlunknown;
10286
10287   if (self)
10288     {
10289       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10290       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10291       /* dlclose (self); */
10292     }
10293   else
10294     puts (dlerror ());
10295
10296     exit (status);
10297 }
10298 EOF
10299   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10300   (eval $ac_link) 2>&5
10301   ac_status=$?
10302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10303   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10304     (./conftest; exit; ) >&5 2>/dev/null
10305     lt_status=$?
10306     case x$lt_status in
10307       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10308       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10309       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10310     esac
10311   else :
10312     # compilation failed
10313     lt_cv_dlopen_self=no
10314   fi
10315 fi
10316 rm -fr conftest*
10317
10318
10319 fi
10320 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10321 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10322
10323     if test "x$lt_cv_dlopen_self" = xyes; then
10324       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10325       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10326 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10327 if test "${lt_cv_dlopen_self_static+set}" = set; then
10328   echo $ECHO_N "(cached) $ECHO_C" >&6
10329 else
10330           if test "$cross_compiling" = yes; then :
10331   lt_cv_dlopen_self_static=cross
10332 else
10333   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10334   lt_status=$lt_dlunknown
10335   cat > conftest.$ac_ext <<EOF
10336 #line 10336 "configure"
10337 #include "confdefs.h"
10338
10339 #if HAVE_DLFCN_H
10340 #include <dlfcn.h>
10341 #endif
10342
10343 #include <stdio.h>
10344
10345 #ifdef RTLD_GLOBAL
10346 #  define LT_DLGLOBAL           RTLD_GLOBAL
10347 #else
10348 #  ifdef DL_GLOBAL
10349 #    define LT_DLGLOBAL         DL_GLOBAL
10350 #  else
10351 #    define LT_DLGLOBAL         0
10352 #  endif
10353 #endif
10354
10355 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10356    find out it does not work in some platform. */
10357 #ifndef LT_DLLAZY_OR_NOW
10358 #  ifdef RTLD_LAZY
10359 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10360 #  else
10361 #    ifdef DL_LAZY
10362 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10363 #    else
10364 #      ifdef RTLD_NOW
10365 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10366 #      else
10367 #        ifdef DL_NOW
10368 #          define LT_DLLAZY_OR_NOW      DL_NOW
10369 #        else
10370 #          define LT_DLLAZY_OR_NOW      0
10371 #        endif
10372 #      endif
10373 #    endif
10374 #  endif
10375 #endif
10376
10377 #ifdef __cplusplus
10378 extern "C" void exit (int);
10379 #endif
10380
10381 void fnord() { int i=42;}
10382 int main ()
10383 {
10384   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10385   int status = $lt_dlunknown;
10386
10387   if (self)
10388     {
10389       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10390       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10391       /* dlclose (self); */
10392     }
10393   else
10394     puts (dlerror ());
10395
10396     exit (status);
10397 }
10398 EOF
10399   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10400   (eval $ac_link) 2>&5
10401   ac_status=$?
10402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10403   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10404     (./conftest; exit; ) >&5 2>/dev/null
10405     lt_status=$?
10406     case x$lt_status in
10407       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10408       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10409       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10410     esac
10411   else :
10412     # compilation failed
10413     lt_cv_dlopen_self_static=no
10414   fi
10415 fi
10416 rm -fr conftest*
10417
10418
10419 fi
10420 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10421 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10422     fi
10423
10424     CPPFLAGS="$save_CPPFLAGS"
10425     LDFLAGS="$save_LDFLAGS"
10426     LIBS="$save_LIBS"
10427     ;;
10428   esac
10429
10430   case $lt_cv_dlopen_self in
10431   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10432   *) enable_dlopen_self=unknown ;;
10433   esac
10434
10435   case $lt_cv_dlopen_self_static in
10436   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10437   *) enable_dlopen_self_static=unknown ;;
10438   esac
10439 fi
10440
10441
10442 # Report which library types will actually be built
10443 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10444 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10445 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10446 echo "${ECHO_T}$can_build_shared" >&6; }
10447
10448 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10449 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10450 test "$can_build_shared" = "no" && enable_shared=no
10451
10452 # On AIX, shared libraries and static libraries use the same namespace, and
10453 # are all built from PIC.
10454 case $host_os in
10455 aix3*)
10456   test "$enable_shared" = yes && enable_static=no
10457   if test -n "$RANLIB"; then
10458     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10459     postinstall_cmds='$RANLIB $lib'
10460   fi
10461   ;;
10462
10463 aix[4-9]*)
10464   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10465     test "$enable_shared" = yes && enable_static=no
10466   fi
10467     ;;
10468 esac
10469 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10470 echo "${ECHO_T}$enable_shared" >&6; }
10471
10472 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10473 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10474 # Make sure either enable_shared or enable_static is yes.
10475 test "$enable_shared" = yes || enable_static=yes
10476 { echo "$as_me:$LINENO: result: $enable_static" >&5
10477 echo "${ECHO_T}$enable_static" >&6; }
10478
10479 # The else clause should only fire when bootstrapping the
10480 # libtool distribution, otherwise you forgot to ship ltmain.sh
10481 # with your package, and you will get complaints that there are
10482 # no rules to generate ltmain.sh.
10483 if test -f "$ltmain"; then
10484   # See if we are running on zsh, and set the options which allow our commands through
10485   # without removal of \ escapes.
10486   if test -n "${ZSH_VERSION+set}" ; then
10487     setopt NO_GLOB_SUBST
10488   fi
10489   # Now quote all the things that may contain metacharacters while being
10490   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10491   # variables and quote the copies for generation of the libtool script.
10492   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10493     SED SHELL STRIP \
10494     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10495     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10496     deplibs_check_method reload_flag reload_cmds need_locks \
10497     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10498     lt_cv_sys_global_symbol_to_c_name_address \
10499     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10500     old_postinstall_cmds old_postuninstall_cmds \
10501     compiler \
10502     CC \
10503     LD \
10504     lt_prog_compiler_wl \
10505     lt_prog_compiler_pic \
10506     lt_prog_compiler_static \
10507     lt_prog_compiler_no_builtin_flag \
10508     export_dynamic_flag_spec \
10509     thread_safe_flag_spec \
10510     whole_archive_flag_spec \
10511     enable_shared_with_static_runtimes \
10512     old_archive_cmds \
10513     old_archive_from_new_cmds \
10514     predep_objects \
10515     postdep_objects \
10516     predeps \
10517     postdeps \
10518     compiler_lib_search_path \
10519     compiler_lib_search_dirs \
10520     archive_cmds \
10521     archive_expsym_cmds \
10522     postinstall_cmds \
10523     postuninstall_cmds \
10524     old_archive_from_expsyms_cmds \
10525     allow_undefined_flag \
10526     no_undefined_flag \
10527     export_symbols_cmds \
10528     hardcode_libdir_flag_spec \
10529     hardcode_libdir_flag_spec_ld \
10530     hardcode_libdir_separator \
10531     hardcode_automatic \
10532     module_cmds \
10533     module_expsym_cmds \
10534     lt_cv_prog_compiler_c_o \
10535     fix_srcfile_path \
10536     exclude_expsyms \
10537     include_expsyms; do
10538
10539     case $var in
10540     old_archive_cmds | \
10541     old_archive_from_new_cmds | \
10542     archive_cmds | \
10543     archive_expsym_cmds | \
10544     module_cmds | \
10545     module_expsym_cmds | \
10546     old_archive_from_expsyms_cmds | \
10547     export_symbols_cmds | \
10548     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10549     postinstall_cmds | postuninstall_cmds | \
10550     old_postinstall_cmds | old_postuninstall_cmds | \
10551     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10552       # Double-quote double-evaled strings.
10553       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10554       ;;
10555     *)
10556       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10557       ;;
10558     esac
10559   done
10560
10561   case $lt_echo in
10562   *'\$0 --fallback-echo"')
10563     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10564     ;;
10565   esac
10566
10567 cfgfile="${ofile}T"
10568   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10569   $rm -f "$cfgfile"
10570   { echo "$as_me:$LINENO: creating $ofile" >&5
10571 echo "$as_me: creating $ofile" >&6;}
10572
10573   cat <<__EOF__ >> "$cfgfile"
10574 #! $SHELL
10575
10576 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10577 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10578 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10579 #
10580 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10581 # Free Software Foundation, Inc.
10582 #
10583 # This file is part of GNU Libtool:
10584 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10585 #
10586 # This program is free software; you can redistribute it and/or modify
10587 # it under the terms of the GNU General Public License as published by
10588 # the Free Software Foundation; either version 2 of the License, or
10589 # (at your option) any later version.
10590 #
10591 # This program is distributed in the hope that it will be useful, but
10592 # WITHOUT ANY WARRANTY; without even the implied warranty of
10593 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10594 # General Public License for more details.
10595 #
10596 # You should have received a copy of the GNU General Public License
10597 # along with this program; if not, write to the Free Software
10598 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10599 #
10600 # As a special exception to the GNU General Public License, if you
10601 # distribute this file as part of a program that contains a
10602 # configuration script generated by Autoconf, you may include it under
10603 # the same distribution terms that you use for the rest of that program.
10604
10605 # A sed program that does not truncate output.
10606 SED=$lt_SED
10607
10608 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10609 Xsed="$SED -e 1s/^X//"
10610
10611 # The HP-UX ksh and POSIX shell print the target directory to stdout
10612 # if CDPATH is set.
10613 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10614
10615 # The names of the tagged configurations supported by this script.
10616 available_tags=
10617
10618 # ### BEGIN LIBTOOL CONFIG
10619
10620 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10621
10622 # Shell to use when invoking shell scripts.
10623 SHELL=$lt_SHELL
10624
10625 # Whether or not to build shared libraries.
10626 build_libtool_libs=$enable_shared
10627
10628 # Whether or not to build static libraries.
10629 build_old_libs=$enable_static
10630
10631 # Whether or not to add -lc for building shared libraries.
10632 build_libtool_need_lc=$archive_cmds_need_lc
10633
10634 # Whether or not to disallow shared libs when runtime libs are static
10635 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10636
10637 # Whether or not to optimize for fast installation.
10638 fast_install=$enable_fast_install
10639
10640 # The host system.
10641 host_alias=$host_alias
10642 host=$host
10643 host_os=$host_os
10644
10645 # The build system.
10646 build_alias=$build_alias
10647 build=$build
10648 build_os=$build_os
10649
10650 # An echo program that does not interpret backslashes.
10651 echo=$lt_echo
10652
10653 # The archiver.
10654 AR=$lt_AR
10655 AR_FLAGS=$lt_AR_FLAGS
10656
10657 # A C compiler.
10658 LTCC=$lt_LTCC
10659
10660 # LTCC compiler flags.
10661 LTCFLAGS=$lt_LTCFLAGS
10662
10663 # A language-specific compiler.
10664 CC=$lt_compiler
10665
10666 # Is the compiler the GNU C compiler?
10667 with_gcc=$GCC
10668
10669 # An ERE matcher.
10670 EGREP=$lt_EGREP
10671
10672 # The linker used to build libraries.
10673 LD=$lt_LD
10674
10675 # Whether we need hard or soft links.
10676 LN_S=$lt_LN_S
10677
10678 # A BSD-compatible nm program.
10679 NM=$lt_NM
10680
10681 # A symbol stripping program
10682 STRIP=$lt_STRIP
10683
10684 # Used to examine libraries when file_magic_cmd begins "file"
10685 MAGIC_CMD=$MAGIC_CMD
10686
10687 # Used on cygwin: DLL creation program.
10688 DLLTOOL="$DLLTOOL"
10689
10690 # Used on cygwin: object dumper.
10691 OBJDUMP="$OBJDUMP"
10692
10693 # Used on cygwin: assembler.
10694 AS="$AS"
10695
10696 # The name of the directory that contains temporary libtool files.
10697 objdir=$objdir
10698
10699 # How to create reloadable object files.
10700 reload_flag=$lt_reload_flag
10701 reload_cmds=$lt_reload_cmds
10702
10703 # How to pass a linker flag through the compiler.
10704 wl=$lt_lt_prog_compiler_wl
10705
10706 # Object file suffix (normally "o").
10707 objext="$ac_objext"
10708
10709 # Old archive suffix (normally "a").
10710 libext="$libext"
10711
10712 # Shared library suffix (normally ".so").
10713 shrext_cmds='$shrext_cmds'
10714
10715 # Executable file suffix (normally "").
10716 exeext="$exeext"
10717
10718 # Additional compiler flags for building library objects.
10719 pic_flag=$lt_lt_prog_compiler_pic
10720 pic_mode=$pic_mode
10721
10722 # What is the maximum length of a command?
10723 max_cmd_len=$lt_cv_sys_max_cmd_len
10724
10725 # Does compiler simultaneously support -c and -o options?
10726 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10727
10728 # Must we lock files when doing compilation?
10729 need_locks=$lt_need_locks
10730
10731 # Do we need the lib prefix for modules?
10732 need_lib_prefix=$need_lib_prefix
10733
10734 # Do we need a version for libraries?
10735 need_version=$need_version
10736
10737 # Whether dlopen is supported.
10738 dlopen_support=$enable_dlopen
10739
10740 # Whether dlopen of programs is supported.
10741 dlopen_self=$enable_dlopen_self
10742
10743 # Whether dlopen of statically linked programs is supported.
10744 dlopen_self_static=$enable_dlopen_self_static
10745
10746 # Compiler flag to prevent dynamic linking.
10747 link_static_flag=$lt_lt_prog_compiler_static
10748
10749 # Compiler flag to turn off builtin functions.
10750 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10751
10752 # Compiler flag to allow reflexive dlopens.
10753 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10754
10755 # Compiler flag to generate shared objects directly from archives.
10756 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10757
10758 # Compiler flag to generate thread-safe objects.
10759 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10760
10761 # Library versioning type.
10762 version_type=$version_type
10763
10764 # Format of library name prefix.
10765 libname_spec=$lt_libname_spec
10766
10767 # List of archive names.  First name is the real one, the rest are links.
10768 # The last name is the one that the linker finds with -lNAME.
10769 library_names_spec=$lt_library_names_spec
10770
10771 # The coded name of the library, if different from the real name.
10772 soname_spec=$lt_soname_spec
10773
10774 # Commands used to build and install an old-style archive.
10775 RANLIB=$lt_RANLIB
10776 old_archive_cmds=$lt_old_archive_cmds
10777 old_postinstall_cmds=$lt_old_postinstall_cmds
10778 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10779
10780 # Create an old-style archive from a shared archive.
10781 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10782
10783 # Create a temporary old-style archive to link instead of a shared archive.
10784 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10785
10786 # Commands used to build and install a shared archive.
10787 archive_cmds=$lt_archive_cmds
10788 archive_expsym_cmds=$lt_archive_expsym_cmds
10789 postinstall_cmds=$lt_postinstall_cmds
10790 postuninstall_cmds=$lt_postuninstall_cmds
10791
10792 # Commands used to build a loadable module (assumed same as above if empty)
10793 module_cmds=$lt_module_cmds
10794 module_expsym_cmds=$lt_module_expsym_cmds
10795
10796 # Commands to strip libraries.
10797 old_striplib=$lt_old_striplib
10798 striplib=$lt_striplib
10799
10800 # Dependencies to place before the objects being linked to create a
10801 # shared library.
10802 predep_objects=$lt_predep_objects
10803
10804 # Dependencies to place after the objects being linked to create a
10805 # shared library.
10806 postdep_objects=$lt_postdep_objects
10807
10808 # Dependencies to place before the objects being linked to create a
10809 # shared library.
10810 predeps=$lt_predeps
10811
10812 # Dependencies to place after the objects being linked to create a
10813 # shared library.
10814 postdeps=$lt_postdeps
10815
10816 # The directories searched by this compiler when creating a shared
10817 # library
10818 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10819
10820 # The library search path used internally by the compiler when linking
10821 # a shared library.
10822 compiler_lib_search_path=$lt_compiler_lib_search_path
10823
10824 # Method to check whether dependent libraries are shared objects.
10825 deplibs_check_method=$lt_deplibs_check_method
10826
10827 # Command to use when deplibs_check_method == file_magic.
10828 file_magic_cmd=$lt_file_magic_cmd
10829
10830 # Flag that allows shared libraries with undefined symbols to be built.
10831 allow_undefined_flag=$lt_allow_undefined_flag
10832
10833 # Flag that forces no undefined symbols.
10834 no_undefined_flag=$lt_no_undefined_flag
10835
10836 # Commands used to finish a libtool library installation in a directory.
10837 finish_cmds=$lt_finish_cmds
10838
10839 # Same as above, but a single script fragment to be evaled but not shown.
10840 finish_eval=$lt_finish_eval
10841
10842 # Take the output of nm and produce a listing of raw symbols and C names.
10843 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10844
10845 # Transform the output of nm in a proper C declaration
10846 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10847
10848 # Transform the output of nm in a C name address pair
10849 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10850
10851 # This is the shared library runtime path variable.
10852 runpath_var=$runpath_var
10853
10854 # This is the shared library path variable.
10855 shlibpath_var=$shlibpath_var
10856
10857 # Is shlibpath searched before the hard-coded library search path?
10858 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10859
10860 # How to hardcode a shared library path into an executable.
10861 hardcode_action=$hardcode_action
10862
10863 # Whether we should hardcode library paths into libraries.
10864 hardcode_into_libs=$hardcode_into_libs
10865
10866 # Flag to hardcode \$libdir into a binary during linking.
10867 # This must work even if \$libdir does not exist.
10868 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10869
10870 # If ld is used when linking, flag to hardcode \$libdir into
10871 # a binary during linking. This must work even if \$libdir does
10872 # not exist.
10873 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10874
10875 # Whether we need a single -rpath flag with a separated argument.
10876 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10877
10878 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10879 # resulting binary.
10880 hardcode_direct=$hardcode_direct
10881
10882 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10883 # resulting binary.
10884 hardcode_minus_L=$hardcode_minus_L
10885
10886 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10887 # the resulting binary.
10888 hardcode_shlibpath_var=$hardcode_shlibpath_var
10889
10890 # Set to yes if building a shared library automatically hardcodes DIR into the library
10891 # and all subsequent libraries and executables linked against it.
10892 hardcode_automatic=$hardcode_automatic
10893
10894 # Variables whose values should be saved in libtool wrapper scripts and
10895 # restored at relink time.
10896 variables_saved_for_relink="$variables_saved_for_relink"
10897
10898 # Whether libtool must link a program against all its dependency libraries.
10899 link_all_deplibs=$link_all_deplibs
10900
10901 # Compile-time system search path for libraries
10902 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10903
10904 # Run-time system search path for libraries
10905 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10906
10907 # Fix the shell variable \$srcfile for the compiler.
10908 fix_srcfile_path=$lt_fix_srcfile_path
10909
10910 # Set to yes if exported symbols are required.
10911 always_export_symbols=$always_export_symbols
10912
10913 # The commands to list exported symbols.
10914 export_symbols_cmds=$lt_export_symbols_cmds
10915
10916 # The commands to extract the exported symbol list from a shared archive.
10917 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10918
10919 # Symbols that should not be listed in the preloaded symbols.
10920 exclude_expsyms=$lt_exclude_expsyms
10921
10922 # Symbols that must always be exported.
10923 include_expsyms=$lt_include_expsyms
10924
10925 # ### END LIBTOOL CONFIG
10926
10927 __EOF__
10928
10929
10930   case $host_os in
10931   aix3*)
10932     cat <<\EOF >> "$cfgfile"
10933
10934 # AIX sometimes has problems with the GCC collect2 program.  For some
10935 # reason, if we set the COLLECT_NAMES environment variable, the problems
10936 # vanish in a puff of smoke.
10937 if test "X${COLLECT_NAMES+set}" != Xset; then
10938   COLLECT_NAMES=
10939   export COLLECT_NAMES
10940 fi
10941 EOF
10942     ;;
10943   esac
10944
10945   # We use sed instead of cat because bash on DJGPP gets confused if
10946   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10947   # text mode, it properly converts lines to CR/LF.  This bash problem
10948   # is reportedly fixed, but why not run on old versions too?
10949   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10950
10951   mv -f "$cfgfile" "$ofile" || \
10952     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10953   chmod +x "$ofile"
10954
10955 else
10956   # If there is no Makefile yet, we rely on a make rule to execute
10957   # `config.status --recheck' to rerun these tests and create the
10958   # libtool script then.
10959   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10960   if test -f "$ltmain_in"; then
10961     test -f Makefile && make "$ltmain"
10962   fi
10963 fi
10964
10965
10966 ac_ext=c
10967 ac_cpp='$CPP $CPPFLAGS'
10968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10971
10972 CC="$lt_save_CC"
10973
10974
10975 # Check whether --with-tags was given.
10976 if test "${with_tags+set}" = set; then
10977   withval=$with_tags; tagnames="$withval"
10978 fi
10979
10980
10981 if test -f "$ltmain" && test -n "$tagnames"; then
10982   if test ! -f "${ofile}"; then
10983     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10984 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10985   fi
10986
10987   if test -z "$LTCC"; then
10988     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10989     if test -z "$LTCC"; then
10990       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10991 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10992     else
10993       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10994 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10995     fi
10996   fi
10997   if test -z "$LTCFLAGS"; then
10998     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10999   fi
11000
11001   # Extract list of available tagged configurations in $ofile.
11002   # Note that this assumes the entire list is on one line.
11003   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11004
11005   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11006   for tagname in $tagnames; do
11007     IFS="$lt_save_ifs"
11008     # Check whether tagname contains only valid characters
11009     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11010     "") ;;
11011     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11012 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11013    { (exit 1); exit 1; }; }
11014         ;;
11015     esac
11016
11017     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11018     then
11019       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11020 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11021    { (exit 1); exit 1; }; }
11022     fi
11023
11024     # Update the list of available tags.
11025     if test -n "$tagname"; then
11026       echo appending configuration tag \"$tagname\" to $ofile
11027
11028       case $tagname in
11029       CXX)
11030         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11031             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11032             (test "X$CXX" != "Xg++"))) ; then
11033           ac_ext=cpp
11034 ac_cpp='$CXXCPP $CPPFLAGS'
11035 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11036 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11037 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11038
11039
11040
11041
11042 archive_cmds_need_lc_CXX=no
11043 allow_undefined_flag_CXX=
11044 always_export_symbols_CXX=no
11045 archive_expsym_cmds_CXX=
11046 export_dynamic_flag_spec_CXX=
11047 hardcode_direct_CXX=no
11048 hardcode_libdir_flag_spec_CXX=
11049 hardcode_libdir_flag_spec_ld_CXX=
11050 hardcode_libdir_separator_CXX=
11051 hardcode_minus_L_CXX=no
11052 hardcode_shlibpath_var_CXX=unsupported
11053 hardcode_automatic_CXX=no
11054 module_cmds_CXX=
11055 module_expsym_cmds_CXX=
11056 link_all_deplibs_CXX=unknown
11057 old_archive_cmds_CXX=$old_archive_cmds
11058 no_undefined_flag_CXX=
11059 whole_archive_flag_spec_CXX=
11060 enable_shared_with_static_runtimes_CXX=no
11061
11062 # Dependencies to place before and after the object being linked:
11063 predep_objects_CXX=
11064 postdep_objects_CXX=
11065 predeps_CXX=
11066 postdeps_CXX=
11067 compiler_lib_search_path_CXX=
11068 compiler_lib_search_dirs_CXX=
11069
11070 # Source file extension for C++ test sources.
11071 ac_ext=cpp
11072
11073 # Object file extension for compiled C++ test sources.
11074 objext=o
11075 objext_CXX=$objext
11076
11077 # Code to be used in simple compile tests
11078 lt_simple_compile_test_code="int some_variable = 0;"
11079
11080 # Code to be used in simple link tests
11081 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11082
11083 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11084
11085 # If no C compiler was specified, use CC.
11086 LTCC=${LTCC-"$CC"}
11087
11088 # If no C compiler flags were specified, use CFLAGS.
11089 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11090
11091 # Allow CC to be a program name with arguments.
11092 compiler=$CC
11093
11094
11095 # save warnings/boilerplate of simple test code
11096 ac_outfile=conftest.$ac_objext
11097 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11098 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11099 _lt_compiler_boilerplate=`cat conftest.err`
11100 $rm conftest*
11101
11102 ac_outfile=conftest.$ac_objext
11103 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11104 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11105 _lt_linker_boilerplate=`cat conftest.err`
11106 $rm -r conftest*
11107
11108
11109 # Allow CC to be a program name with arguments.
11110 lt_save_CC=$CC
11111 lt_save_LD=$LD
11112 lt_save_GCC=$GCC
11113 GCC=$GXX
11114 lt_save_with_gnu_ld=$with_gnu_ld
11115 lt_save_path_LD=$lt_cv_path_LD
11116 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11117   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11118 else
11119   $as_unset lt_cv_prog_gnu_ld
11120 fi
11121 if test -n "${lt_cv_path_LDCXX+set}"; then
11122   lt_cv_path_LD=$lt_cv_path_LDCXX
11123 else
11124   $as_unset lt_cv_path_LD
11125 fi
11126 test -z "${LDCXX+set}" || LD=$LDCXX
11127 CC=${CXX-"c++"}
11128 compiler=$CC
11129 compiler_CXX=$CC
11130 for cc_temp in $compiler""; do
11131   case $cc_temp in
11132     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11133     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11134     \-*) ;;
11135     *) break;;
11136   esac
11137 done
11138 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11139
11140
11141 # We don't want -fno-exception wen compiling C++ code, so set the
11142 # no_builtin_flag separately
11143 if test "$GXX" = yes; then
11144   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11145 else
11146   lt_prog_compiler_no_builtin_flag_CXX=
11147 fi
11148
11149 if test "$GXX" = yes; then
11150   # Set up default GNU C++ configuration
11151
11152
11153 # Check whether --with-gnu-ld was given.
11154 if test "${with_gnu_ld+set}" = set; then
11155   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11156 else
11157   with_gnu_ld=no
11158 fi
11159
11160 ac_prog=ld
11161 if test "$GCC" = yes; then
11162   # Check if gcc -print-prog-name=ld gives a path.
11163   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11164 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11165   case $host in
11166   *-*-mingw*)
11167     # gcc leaves a trailing carriage return which upsets mingw
11168     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11169   *)
11170     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11171   esac
11172   case $ac_prog in
11173     # Accept absolute paths.
11174     [\\/]* | ?:[\\/]*)
11175       re_direlt='/[^/][^/]*/\.\./'
11176       # Canonicalize the pathname of ld
11177       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11178       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11179         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11180       done
11181       test -z "$LD" && LD="$ac_prog"
11182       ;;
11183   "")
11184     # If it fails, then pretend we aren't using GCC.
11185     ac_prog=ld
11186     ;;
11187   *)
11188     # If it is relative, then search for the first ld in PATH.
11189     with_gnu_ld=unknown
11190     ;;
11191   esac
11192 elif test "$with_gnu_ld" = yes; then
11193   { echo "$as_me:$LINENO: checking for GNU ld" >&5
11194 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11195 else
11196   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11197 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11198 fi
11199 if test "${lt_cv_path_LD+set}" = set; then
11200   echo $ECHO_N "(cached) $ECHO_C" >&6
11201 else
11202   if test -z "$LD"; then
11203   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11204   for ac_dir in $PATH; do
11205     IFS="$lt_save_ifs"
11206     test -z "$ac_dir" && ac_dir=.
11207     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11208       lt_cv_path_LD="$ac_dir/$ac_prog"
11209       # Check to see if the program is GNU ld.  I'd rather use --version,
11210       # but apparently some variants of GNU ld only accept -v.
11211       # Break only if it was the GNU/non-GNU ld that we prefer.
11212       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11213       *GNU* | *'with BFD'*)
11214         test "$with_gnu_ld" != no && break
11215         ;;
11216       *)
11217         test "$with_gnu_ld" != yes && break
11218         ;;
11219       esac
11220     fi
11221   done
11222   IFS="$lt_save_ifs"
11223 else
11224   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11225 fi
11226 fi
11227
11228 LD="$lt_cv_path_LD"
11229 if test -n "$LD"; then
11230   { echo "$as_me:$LINENO: result: $LD" >&5
11231 echo "${ECHO_T}$LD" >&6; }
11232 else
11233   { echo "$as_me:$LINENO: result: no" >&5
11234 echo "${ECHO_T}no" >&6; }
11235 fi
11236 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11237 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11238    { (exit 1); exit 1; }; }
11239 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11240 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11241 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11242   echo $ECHO_N "(cached) $ECHO_C" >&6
11243 else
11244   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11245 case `$LD -v 2>&1 </dev/null` in
11246 *GNU* | *'with BFD'*)
11247   lt_cv_prog_gnu_ld=yes
11248   ;;
11249 *)
11250   lt_cv_prog_gnu_ld=no
11251   ;;
11252 esac
11253 fi
11254 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11255 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11256 with_gnu_ld=$lt_cv_prog_gnu_ld
11257
11258
11259
11260   # Check if GNU C++ uses GNU ld as the underlying linker, since the
11261   # archiving commands below assume that GNU ld is being used.
11262   if test "$with_gnu_ld" = yes; then
11263     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11264     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'
11265
11266     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11267     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11268
11269     # If archive_cmds runs LD, not CC, wlarc should be empty
11270     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11271     #     investigate it a little bit more. (MM)
11272     wlarc='${wl}'
11273
11274     # ancient GNU ld didn't support --whole-archive et. al.
11275     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11276         grep 'no-whole-archive' > /dev/null; then
11277       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11278     else
11279       whole_archive_flag_spec_CXX=
11280     fi
11281   else
11282     with_gnu_ld=no
11283     wlarc=
11284
11285     # A generic and very simple default shared library creation
11286     # command for GNU C++ for the case where it uses the native
11287     # linker, instead of GNU ld.  If possible, this setting should
11288     # overridden to take advantage of the native linker features on
11289     # the platform it is being used on.
11290     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11291   fi
11292
11293   # Commands to make compiler produce verbose output that lists
11294   # what "hidden" libraries, object files and flags are used when
11295   # linking a shared library.
11296   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11297
11298 else
11299   GXX=no
11300   with_gnu_ld=no
11301   wlarc=
11302 fi
11303
11304 # PORTME: fill in a description of your system's C++ link characteristics
11305 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11306 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11307 ld_shlibs_CXX=yes
11308 case $host_os in
11309   aix3*)
11310     # FIXME: insert proper C++ library support
11311     ld_shlibs_CXX=no
11312     ;;
11313   aix[4-9]*)
11314     if test "$host_cpu" = ia64; then
11315       # On IA64, the linker does run time linking by default, so we don't
11316       # have to do anything special.
11317       aix_use_runtimelinking=no
11318       exp_sym_flag='-Bexport'
11319       no_entry_flag=""
11320     else
11321       aix_use_runtimelinking=no
11322
11323       # Test if we are trying to use run time linking or normal
11324       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11325       # need to do runtime linking.
11326       case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11327         for ld_flag in $LDFLAGS; do
11328           case $ld_flag in
11329           *-brtl*)
11330             aix_use_runtimelinking=yes
11331             break
11332             ;;
11333           esac
11334         done
11335         ;;
11336       esac
11337
11338       exp_sym_flag='-bexport'
11339       no_entry_flag='-bnoentry'
11340     fi
11341
11342     # When large executables or shared objects are built, AIX ld can
11343     # have problems creating the table of contents.  If linking a library
11344     # or program results in "error TOC overflow" add -mminimal-toc to
11345     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11346     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11347
11348     archive_cmds_CXX=''
11349     hardcode_direct_CXX=yes
11350     hardcode_libdir_separator_CXX=':'
11351     link_all_deplibs_CXX=yes
11352
11353     if test "$GXX" = yes; then
11354       case $host_os in aix4.[012]|aix4.[012].*)
11355       # We only want to do this on AIX 4.2 and lower, the check
11356       # below for broken collect2 doesn't work under 4.3+
11357         collect2name=`${CC} -print-prog-name=collect2`
11358         if test -f "$collect2name" && \
11359            strings "$collect2name" | grep resolve_lib_name >/dev/null
11360         then
11361           # We have reworked collect2
11362           :
11363         else
11364           # We have old collect2
11365           hardcode_direct_CXX=unsupported
11366           # It fails to find uninstalled libraries when the uninstalled
11367           # path is not listed in the libpath.  Setting hardcode_minus_L
11368           # to unsupported forces relinking
11369           hardcode_minus_L_CXX=yes
11370           hardcode_libdir_flag_spec_CXX='-L$libdir'
11371           hardcode_libdir_separator_CXX=
11372         fi
11373         ;;
11374       esac
11375       shared_flag='-shared'
11376       if test "$aix_use_runtimelinking" = yes; then
11377         shared_flag="$shared_flag "'${wl}-G'
11378       fi
11379     else
11380       # not using gcc
11381       if test "$host_cpu" = ia64; then
11382         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11383         # chokes on -Wl,-G. The following line is correct:
11384         shared_flag='-G'
11385       else
11386         if test "$aix_use_runtimelinking" = yes; then
11387           shared_flag='${wl}-G'
11388         else
11389           shared_flag='${wl}-bM:SRE'
11390         fi
11391       fi
11392     fi
11393
11394     # It seems that -bexpall does not export symbols beginning with
11395     # underscore (_), so it is better to generate a list of symbols to export.
11396     always_export_symbols_CXX=yes
11397     if test "$aix_use_runtimelinking" = yes; then
11398       # Warning - without using the other runtime loading flags (-brtl),
11399       # -berok will link without error, but may produce a broken library.
11400       allow_undefined_flag_CXX='-berok'
11401       # Determine the default libpath from the value encoded in an empty executable.
11402       cat >conftest.$ac_ext <<_ACEOF
11403 /* confdefs.h.  */
11404 _ACEOF
11405 cat confdefs.h >>conftest.$ac_ext
11406 cat >>conftest.$ac_ext <<_ACEOF
11407 /* end confdefs.h.  */
11408
11409 int
11410 main ()
11411 {
11412
11413   ;
11414   return 0;
11415 }
11416 _ACEOF
11417 rm -f conftest.$ac_objext conftest$ac_exeext
11418 if { (ac_try="$ac_link"
11419 case "(($ac_try" in
11420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11421   *) ac_try_echo=$ac_try;;
11422 esac
11423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11424   (eval "$ac_link") 2>conftest.er1
11425   ac_status=$?
11426   grep -v '^ *+' conftest.er1 >conftest.err
11427   rm -f conftest.er1
11428   cat conftest.err >&5
11429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11430   (exit $ac_status); } && {
11431          test -z "$ac_cxx_werror_flag" ||
11432          test ! -s conftest.err
11433        } && test -s conftest$ac_exeext &&
11434        $as_test_x conftest$ac_exeext; then
11435
11436 lt_aix_libpath_sed='
11437     /Import File Strings/,/^$/ {
11438         /^0/ {
11439             s/^0  *\(.*\)$/\1/
11440             p
11441         }
11442     }'
11443 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11444 # Check for a 64-bit object if we didn't find anything.
11445 if test -z "$aix_libpath"; then
11446   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11447 fi
11448 else
11449   echo "$as_me: failed program was:" >&5
11450 sed 's/^/| /' conftest.$ac_ext >&5
11451
11452
11453 fi
11454
11455 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11456       conftest$ac_exeext conftest.$ac_ext
11457 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11458
11459       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11460
11461       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"
11462      else
11463       if test "$host_cpu" = ia64; then
11464         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11465         allow_undefined_flag_CXX="-z nodefs"
11466         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"
11467       else
11468         # Determine the default libpath from the value encoded in an empty executable.
11469         cat >conftest.$ac_ext <<_ACEOF
11470 /* confdefs.h.  */
11471 _ACEOF
11472 cat confdefs.h >>conftest.$ac_ext
11473 cat >>conftest.$ac_ext <<_ACEOF
11474 /* end confdefs.h.  */
11475
11476 int
11477 main ()
11478 {
11479
11480   ;
11481   return 0;
11482 }
11483 _ACEOF
11484 rm -f conftest.$ac_objext conftest$ac_exeext
11485 if { (ac_try="$ac_link"
11486 case "(($ac_try" in
11487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11488   *) ac_try_echo=$ac_try;;
11489 esac
11490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11491   (eval "$ac_link") 2>conftest.er1
11492   ac_status=$?
11493   grep -v '^ *+' conftest.er1 >conftest.err
11494   rm -f conftest.er1
11495   cat conftest.err >&5
11496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497   (exit $ac_status); } && {
11498          test -z "$ac_cxx_werror_flag" ||
11499          test ! -s conftest.err
11500        } && test -s conftest$ac_exeext &&
11501        $as_test_x conftest$ac_exeext; then
11502
11503 lt_aix_libpath_sed='
11504     /Import File Strings/,/^$/ {
11505         /^0/ {
11506             s/^0  *\(.*\)$/\1/
11507             p
11508         }
11509     }'
11510 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11511 # Check for a 64-bit object if we didn't find anything.
11512 if test -z "$aix_libpath"; then
11513   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11514 fi
11515 else
11516   echo "$as_me: failed program was:" >&5
11517 sed 's/^/| /' conftest.$ac_ext >&5
11518
11519
11520 fi
11521
11522 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11523       conftest$ac_exeext conftest.$ac_ext
11524 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11525
11526         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11527         # Warning - without using the other run time loading flags,
11528         # -berok will link without error, but may produce a broken library.
11529         no_undefined_flag_CXX=' ${wl}-bernotok'
11530         allow_undefined_flag_CXX=' ${wl}-berok'
11531         # Exported symbols can be pulled into shared objects from archives
11532         whole_archive_flag_spec_CXX='$convenience'
11533         archive_cmds_need_lc_CXX=yes
11534         # This is similar to how AIX traditionally builds its shared libraries.
11535         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'
11536       fi
11537     fi
11538     ;;
11539
11540   beos*)
11541     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11542       allow_undefined_flag_CXX=unsupported
11543       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11544       # support --undefined.  This deserves some investigation.  FIXME
11545       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11546     else
11547       ld_shlibs_CXX=no
11548     fi
11549     ;;
11550
11551   chorus*)
11552     case $cc_basename in
11553       *)
11554         # FIXME: insert proper C++ library support
11555         ld_shlibs_CXX=no
11556         ;;
11557     esac
11558     ;;
11559
11560   cygwin* | mingw* | pw32*)
11561     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11562     # as there is no search path for DLLs.
11563     hardcode_libdir_flag_spec_CXX='-L$libdir'
11564     allow_undefined_flag_CXX=unsupported
11565     always_export_symbols_CXX=no
11566     enable_shared_with_static_runtimes_CXX=yes
11567
11568     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11569       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'
11570       # If the export-symbols file already is a .def file (1st line
11571       # is EXPORTS), use it as is; otherwise, prepend...
11572       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11573         cp $export_symbols $output_objdir/$soname.def;
11574       else
11575         echo EXPORTS > $output_objdir/$soname.def;
11576         cat $export_symbols >> $output_objdir/$soname.def;
11577       fi~
11578       $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'
11579     else
11580       ld_shlibs_CXX=no
11581     fi
11582   ;;
11583       darwin* | rhapsody*)
11584       archive_cmds_need_lc_CXX=no
11585       hardcode_direct_CXX=no
11586       hardcode_automatic_CXX=yes
11587       hardcode_shlibpath_var_CXX=unsupported
11588       whole_archive_flag_spec_CXX=''
11589       link_all_deplibs_CXX=yes
11590       allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11591       if test "$GXX" = yes ; then
11592       output_verbose_link_cmd='echo'
11593       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}"
11594       module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11595       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}"
11596       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}"
11597       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11598         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}"
11599         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}"
11600       fi
11601       else
11602       case $cc_basename in
11603         xlc*)
11604          output_verbose_link_cmd='echo'
11605           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'
11606           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11607           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11608           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}'
11609           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}'
11610           ;;
11611        *)
11612          ld_shlibs_CXX=no
11613           ;;
11614       esac
11615       fi
11616         ;;
11617
11618   dgux*)
11619     case $cc_basename in
11620       ec++*)
11621         # FIXME: insert proper C++ library support
11622         ld_shlibs_CXX=no
11623         ;;
11624       ghcx*)
11625         # Green Hills C++ Compiler
11626         # FIXME: insert proper C++ library support
11627         ld_shlibs_CXX=no
11628         ;;
11629       *)
11630         # FIXME: insert proper C++ library support
11631         ld_shlibs_CXX=no
11632         ;;
11633     esac
11634     ;;
11635   freebsd[12]*)
11636     # C++ shared libraries reported to be fairly broken before switch to ELF
11637     ld_shlibs_CXX=no
11638     ;;
11639   freebsd-elf*)
11640     archive_cmds_need_lc_CXX=no
11641     ;;
11642   freebsd* | dragonfly*)
11643     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11644     # conventions
11645     ld_shlibs_CXX=yes
11646     ;;
11647   gnu*)
11648     ;;
11649   hpux9*)
11650     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11651     hardcode_libdir_separator_CXX=:
11652     export_dynamic_flag_spec_CXX='${wl}-E'
11653     hardcode_direct_CXX=yes
11654     hardcode_minus_L_CXX=yes # Not in the search PATH,
11655                                 # but as the default
11656                                 # location of the library.
11657
11658     case $cc_basename in
11659     CC*)
11660       # FIXME: insert proper C++ library support
11661       ld_shlibs_CXX=no
11662       ;;
11663     aCC*)
11664       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'
11665       # Commands to make compiler produce verbose output that lists
11666       # what "hidden" libraries, object files and flags are used when
11667       # linking a shared library.
11668       #
11669       # There doesn't appear to be a way to prevent this compiler from
11670       # explicitly linking system object files so we need to strip them
11671       # from the output so that they don't get included in the library
11672       # dependencies.
11673       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'
11674       ;;
11675     *)
11676       if test "$GXX" = yes; then
11677         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'
11678       else
11679         # FIXME: insert proper C++ library support
11680         ld_shlibs_CXX=no
11681       fi
11682       ;;
11683     esac
11684     ;;
11685   hpux10*|hpux11*)
11686     if test $with_gnu_ld = no; then
11687       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11688       hardcode_libdir_separator_CXX=:
11689
11690       case $host_cpu in
11691       hppa*64*|ia64*) ;;
11692       *)
11693         export_dynamic_flag_spec_CXX='${wl}-E'
11694         ;;
11695       esac
11696     fi
11697     case $host_cpu in
11698     hppa*64*|ia64*)
11699       hardcode_direct_CXX=no
11700       hardcode_shlibpath_var_CXX=no
11701       ;;
11702     *)
11703       hardcode_direct_CXX=yes
11704       hardcode_minus_L_CXX=yes # Not in the search PATH,
11705                                               # but as the default
11706                                               # location of the library.
11707       ;;
11708     esac
11709
11710     case $cc_basename in
11711       CC*)
11712         # FIXME: insert proper C++ library support
11713         ld_shlibs_CXX=no
11714         ;;
11715       aCC*)
11716         case $host_cpu in
11717         hppa*64*)
11718           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11719           ;;
11720         ia64*)
11721           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11722           ;;
11723         *)
11724           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11725           ;;
11726         esac
11727         # Commands to make compiler produce verbose output that lists
11728         # what "hidden" libraries, object files and flags are used when
11729         # linking a shared library.
11730         #
11731         # There doesn't appear to be a way to prevent this compiler from
11732         # explicitly linking system object files so we need to strip them
11733         # from the output so that they don't get included in the library
11734         # dependencies.
11735         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'
11736         ;;
11737       *)
11738         if test "$GXX" = yes; then
11739           if test $with_gnu_ld = no; then
11740             case $host_cpu in
11741             hppa*64*)
11742               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11743               ;;
11744             ia64*)
11745               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11746               ;;
11747             *)
11748               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'
11749               ;;
11750             esac
11751           fi
11752         else
11753           # FIXME: insert proper C++ library support
11754           ld_shlibs_CXX=no
11755         fi
11756         ;;
11757     esac
11758     ;;
11759   interix[3-9]*)
11760     hardcode_direct_CXX=no
11761     hardcode_shlibpath_var_CXX=no
11762     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11763     export_dynamic_flag_spec_CXX='${wl}-E'
11764     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11765     # Instead, shared libraries are loaded at an image base (0x10000000 by
11766     # default) and relocated if they conflict, which is a slow very memory
11767     # consuming and fragmenting process.  To avoid this, we pick a random,
11768     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11769     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11770     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'
11771     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'
11772     ;;
11773   irix5* | irix6*)
11774     case $cc_basename in
11775       CC*)
11776         # SGI C++
11777         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'
11778
11779         # Archives containing C++ object files must be created using
11780         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11781         # necessary to make sure instantiated templates are included
11782         # in the archive.
11783         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11784         ;;
11785       *)
11786         if test "$GXX" = yes; then
11787           if test "$with_gnu_ld" = no; then
11788             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'
11789           else
11790             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'
11791           fi
11792         fi
11793         link_all_deplibs_CXX=yes
11794         ;;
11795     esac
11796     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11797     hardcode_libdir_separator_CXX=:
11798     ;;
11799   linux* | k*bsd*-gnu)
11800     case $cc_basename in
11801       KCC*)
11802         # Kuck and Associates, Inc. (KAI) C++ Compiler
11803
11804         # KCC will only create a shared library if the output file
11805         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11806         # to its proper name (with version) after linking.
11807         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'
11808         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'
11809         # Commands to make compiler produce verbose output that lists
11810         # what "hidden" libraries, object files and flags are used when
11811         # linking a shared library.
11812         #
11813         # There doesn't appear to be a way to prevent this compiler from
11814         # explicitly linking system object files so we need to strip them
11815         # from the output so that they don't get included in the library
11816         # dependencies.
11817         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'
11818
11819         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11820         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11821
11822         # Archives containing C++ object files must be created using
11823         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11824         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11825         ;;
11826       icpc*)
11827         # Intel C++
11828         with_gnu_ld=yes
11829         # version 8.0 and above of icpc choke on multiply defined symbols
11830         # if we add $predep_objects and $postdep_objects, however 7.1 and
11831         # earlier do not add the objects themselves.
11832         case `$CC -V 2>&1` in
11833         *"Version 7."*)
11834           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11835           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'
11836           ;;
11837         *)  # Version 8.0 or newer
11838           tmp_idyn=
11839           case $host_cpu in
11840             ia64*) tmp_idyn=' -i_dynamic';;
11841           esac
11842           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11843           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'
11844           ;;
11845         esac
11846         archive_cmds_need_lc_CXX=no
11847         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11848         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11849         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11850         ;;
11851       pgCC* | pgcpp*)
11852         # Portland Group C++ compiler
11853         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11854         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'
11855
11856         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11857         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11858         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'
11859         ;;
11860       cxx*)
11861         # Compaq C++
11862         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11863         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'
11864
11865         runpath_var=LD_RUN_PATH
11866         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11867         hardcode_libdir_separator_CXX=:
11868
11869         # Commands to make compiler produce verbose output that lists
11870         # what "hidden" libraries, object files and flags are used when
11871         # linking a shared library.
11872         #
11873         # There doesn't appear to be a way to prevent this compiler from
11874         # explicitly linking system object files so we need to strip them
11875         # from the output so that they don't get included in the library
11876         # dependencies.
11877         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'
11878         ;;
11879       *)
11880         case `$CC -V 2>&1 | sed 5q` in
11881         *Sun\ C*)
11882           # Sun C++ 5.9
11883           no_undefined_flag_CXX=' -zdefs'
11884           archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11885           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'
11886           hardcode_libdir_flag_spec_CXX='-R$libdir'
11887           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'
11888
11889           # Not sure whether something based on
11890           # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11891           # would be better.
11892           output_verbose_link_cmd='echo'
11893
11894           # Archives containing C++ object files must be created using
11895           # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11896           # necessary to make sure instantiated templates are included
11897           # in the archive.
11898           old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11899           ;;
11900         esac
11901         ;;
11902     esac
11903     ;;
11904   lynxos*)
11905     # FIXME: insert proper C++ library support
11906     ld_shlibs_CXX=no
11907     ;;
11908   m88k*)
11909     # FIXME: insert proper C++ library support
11910     ld_shlibs_CXX=no
11911     ;;
11912   mvs*)
11913     case $cc_basename in
11914       cxx*)
11915         # FIXME: insert proper C++ library support
11916         ld_shlibs_CXX=no
11917         ;;
11918       *)
11919         # FIXME: insert proper C++ library support
11920         ld_shlibs_CXX=no
11921         ;;
11922     esac
11923     ;;
11924   netbsd*)
11925     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11926       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11927       wlarc=
11928       hardcode_libdir_flag_spec_CXX='-R$libdir'
11929       hardcode_direct_CXX=yes
11930       hardcode_shlibpath_var_CXX=no
11931     fi
11932     # Workaround some broken pre-1.5 toolchains
11933     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11934     ;;
11935   openbsd2*)
11936     # C++ shared libraries are fairly broken
11937     ld_shlibs_CXX=no
11938     ;;
11939   openbsd*)
11940     if test -f /usr/libexec/ld.so; then
11941       hardcode_direct_CXX=yes
11942       hardcode_shlibpath_var_CXX=no
11943       archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11944       hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11945       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11946         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11947         export_dynamic_flag_spec_CXX='${wl}-E'
11948         whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11949       fi
11950       output_verbose_link_cmd='echo'
11951     else
11952       ld_shlibs_CXX=no
11953     fi
11954     ;;
11955   osf3*)
11956     case $cc_basename in
11957       KCC*)
11958         # Kuck and Associates, Inc. (KAI) C++ Compiler
11959
11960         # KCC will only create a shared library if the output file
11961         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11962         # to its proper name (with version) after linking.
11963         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'
11964
11965         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11966         hardcode_libdir_separator_CXX=:
11967
11968         # Archives containing C++ object files must be created using
11969         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11970         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11971
11972         ;;
11973       RCC*)
11974         # Rational C++ 2.4.1
11975         # FIXME: insert proper C++ library support
11976         ld_shlibs_CXX=no
11977         ;;
11978       cxx*)
11979         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11980         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'
11981
11982         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11983         hardcode_libdir_separator_CXX=:
11984
11985         # Commands to make compiler produce verbose output that lists
11986         # what "hidden" libraries, object files and flags are used when
11987         # linking a shared library.
11988         #
11989         # There doesn't appear to be a way to prevent this compiler from
11990         # explicitly linking system object files so we need to strip them
11991         # from the output so that they don't get included in the library
11992         # dependencies.
11993         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'
11994         ;;
11995       *)
11996         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11997           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11998           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'
11999
12000           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12001           hardcode_libdir_separator_CXX=:
12002
12003           # Commands to make compiler produce verbose output that lists
12004           # what "hidden" libraries, object files and flags are used when
12005           # linking a shared library.
12006           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12007
12008         else
12009           # FIXME: insert proper C++ library support
12010           ld_shlibs_CXX=no
12011         fi
12012         ;;
12013     esac
12014     ;;
12015   osf4* | osf5*)
12016     case $cc_basename in
12017       KCC*)
12018         # Kuck and Associates, Inc. (KAI) C++ Compiler
12019
12020         # KCC will only create a shared library if the output file
12021         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12022         # to its proper name (with version) after linking.
12023         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'
12024
12025         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12026         hardcode_libdir_separator_CXX=:
12027
12028         # Archives containing C++ object files must be created using
12029         # the KAI C++ compiler.
12030         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12031         ;;
12032       RCC*)
12033         # Rational C++ 2.4.1
12034         # FIXME: insert proper C++ library support
12035         ld_shlibs_CXX=no
12036         ;;
12037       cxx*)
12038         allow_undefined_flag_CXX=' -expect_unresolved \*'
12039         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'
12040         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12041           echo "-hidden">> $lib.exp~
12042           $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~
12043           $rm $lib.exp'
12044
12045         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12046         hardcode_libdir_separator_CXX=:
12047
12048         # Commands to make compiler produce verbose output that lists
12049         # what "hidden" libraries, object files and flags are used when
12050         # linking a shared library.
12051         #
12052         # There doesn't appear to be a way to prevent this compiler from
12053         # explicitly linking system object files so we need to strip them
12054         # from the output so that they don't get included in the library
12055         # dependencies.
12056         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'
12057         ;;
12058       *)
12059         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12060           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12061          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'
12062
12063           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12064           hardcode_libdir_separator_CXX=:
12065
12066           # Commands to make compiler produce verbose output that lists
12067           # what "hidden" libraries, object files and flags are used when
12068           # linking a shared library.
12069           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12070
12071         else
12072           # FIXME: insert proper C++ library support
12073           ld_shlibs_CXX=no
12074         fi
12075         ;;
12076     esac
12077     ;;
12078   psos*)
12079     # FIXME: insert proper C++ library support
12080     ld_shlibs_CXX=no
12081     ;;
12082   sunos4*)
12083     case $cc_basename in
12084       CC*)
12085         # Sun C++ 4.x
12086         # FIXME: insert proper C++ library support
12087         ld_shlibs_CXX=no
12088         ;;
12089       lcc*)
12090         # Lucid
12091         # FIXME: insert proper C++ library support
12092         ld_shlibs_CXX=no
12093         ;;
12094       *)
12095         # FIXME: insert proper C++ library support
12096         ld_shlibs_CXX=no
12097         ;;
12098     esac
12099     ;;
12100   solaris*)
12101     case $cc_basename in
12102       CC*)
12103         # Sun C++ 4.2, 5.x and Centerline C++
12104         archive_cmds_need_lc_CXX=yes
12105         no_undefined_flag_CXX=' -zdefs'
12106         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12107         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12108         $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'
12109
12110         hardcode_libdir_flag_spec_CXX='-R$libdir'
12111         hardcode_shlibpath_var_CXX=no
12112         case $host_os in
12113           solaris2.[0-5] | solaris2.[0-5].*) ;;
12114           *)
12115             # The compiler driver will combine and reorder linker options,
12116             # but understands `-z linker_flag'.
12117             # Supported since Solaris 2.6 (maybe 2.5.1?)
12118             whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12119             ;;
12120         esac
12121         link_all_deplibs_CXX=yes
12122
12123         output_verbose_link_cmd='echo'
12124
12125         # Archives containing C++ object files must be created using
12126         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12127         # necessary to make sure instantiated templates are included
12128         # in the archive.
12129         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12130         ;;
12131       gcx*)
12132         # Green Hills C++ Compiler
12133         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12134
12135         # The C++ compiler must be used to create the archive.
12136         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12137         ;;
12138       *)
12139         # GNU C++ compiler with Solaris linker
12140         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12141           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12142           if $CC --version | grep -v '^2\.7' > /dev/null; then
12143             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12144             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12145                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12146
12147             # Commands to make compiler produce verbose output that lists
12148             # what "hidden" libraries, object files and flags are used when
12149             # linking a shared library.
12150             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12151           else
12152             # g++ 2.7 appears to require `-G' NOT `-shared' on this
12153             # platform.
12154             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12155             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12156                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12157
12158             # Commands to make compiler produce verbose output that lists
12159             # what "hidden" libraries, object files and flags are used when
12160             # linking a shared library.
12161             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12162           fi
12163
12164           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12165           case $host_os in
12166           solaris2.[0-5] | solaris2.[0-5].*) ;;
12167           *)
12168             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12169             ;;
12170           esac
12171         fi
12172         ;;
12173     esac
12174     ;;
12175   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12176     no_undefined_flag_CXX='${wl}-z,text'
12177     archive_cmds_need_lc_CXX=no
12178     hardcode_shlibpath_var_CXX=no
12179     runpath_var='LD_RUN_PATH'
12180
12181     case $cc_basename in
12182       CC*)
12183         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12184         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12185         ;;
12186       *)
12187         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12188         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12189         ;;
12190     esac
12191     ;;
12192   sysv5* | sco3.2v5* | sco5v6*)
12193     # Note: We can NOT use -z defs as we might desire, because we do not
12194     # link with -lc, and that would cause any symbols used from libc to
12195     # always be unresolved, which means just about no library would
12196     # ever link correctly.  If we're not using GNU ld we use -z text
12197     # though, which does catch some bad symbols but isn't as heavy-handed
12198     # as -z defs.
12199     # For security reasons, it is highly recommended that you always
12200     # use absolute paths for naming shared libraries, and exclude the
12201     # DT_RUNPATH tag from executables and libraries.  But doing so
12202     # requires that you compile everything twice, which is a pain.
12203     # So that behaviour is only enabled if SCOABSPATH is set to a
12204     # non-empty value in the environment.  Most likely only useful for
12205     # creating official distributions of packages.
12206     # This is a hack until libtool officially supports absolute path
12207     # names for shared libraries.
12208     no_undefined_flag_CXX='${wl}-z,text'
12209     allow_undefined_flag_CXX='${wl}-z,nodefs'
12210     archive_cmds_need_lc_CXX=no
12211     hardcode_shlibpath_var_CXX=no
12212     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12213     hardcode_libdir_separator_CXX=':'
12214     link_all_deplibs_CXX=yes
12215     export_dynamic_flag_spec_CXX='${wl}-Bexport'
12216     runpath_var='LD_RUN_PATH'
12217
12218     case $cc_basename in
12219       CC*)
12220         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12221         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12222         ;;
12223       *)
12224         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12225         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12226         ;;
12227     esac
12228     ;;
12229   tandem*)
12230     case $cc_basename in
12231       NCC*)
12232         # NonStop-UX NCC 3.20
12233         # FIXME: insert proper C++ library support
12234         ld_shlibs_CXX=no
12235         ;;
12236       *)
12237         # FIXME: insert proper C++ library support
12238         ld_shlibs_CXX=no
12239         ;;
12240     esac
12241     ;;
12242   vxworks*)
12243     # FIXME: insert proper C++ library support
12244     ld_shlibs_CXX=no
12245     ;;
12246   *)
12247     # FIXME: insert proper C++ library support
12248     ld_shlibs_CXX=no
12249     ;;
12250 esac
12251 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12252 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12253 test "$ld_shlibs_CXX" = no && can_build_shared=no
12254
12255 GCC_CXX="$GXX"
12256 LD_CXX="$LD"
12257
12258 cat > conftest.$ac_ext <<EOF
12259 class Foo
12260 {
12261 public:
12262   Foo (void) { a = 0; }
12263 private:
12264   int a;
12265 };
12266 EOF
12267
12268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12269   (eval $ac_compile) 2>&5
12270   ac_status=$?
12271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12272   (exit $ac_status); }; then
12273   # Parse the compiler output and extract the necessary
12274   # objects, libraries and library flags.
12275
12276   # Sentinel used to keep track of whether or not we are before
12277   # the conftest object file.
12278   pre_test_object_deps_done=no
12279
12280   # The `*' in the case matches for architectures that use `case' in
12281   # $output_verbose_cmd can trigger glob expansion during the loop
12282   # eval without this substitution.
12283   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12284
12285   for p in `eval $output_verbose_link_cmd`; do
12286     case $p in
12287
12288     -L* | -R* | -l*)
12289        # Some compilers place space between "-{L,R}" and the path.
12290        # Remove the space.
12291        if test $p = "-L" \
12292           || test $p = "-R"; then
12293          prev=$p
12294          continue
12295        else
12296          prev=
12297        fi
12298
12299        if test "$pre_test_object_deps_done" = no; then
12300          case $p in
12301          -L* | -R*)
12302            # Internal compiler library paths should come after those
12303            # provided the user.  The postdeps already come after the
12304            # user supplied libs so there is no need to process them.
12305            if test -z "$compiler_lib_search_path_CXX"; then
12306              compiler_lib_search_path_CXX="${prev}${p}"
12307            else
12308              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12309            fi
12310            ;;
12311          # The "-l" case would never come before the object being
12312          # linked, so don't bother handling this case.
12313          esac
12314        else
12315          if test -z "$postdeps_CXX"; then
12316            postdeps_CXX="${prev}${p}"
12317          else
12318            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12319          fi
12320        fi
12321        ;;
12322
12323     *.$objext)
12324        # This assumes that the test object file only shows up
12325        # once in the compiler output.
12326        if test "$p" = "conftest.$objext"; then
12327          pre_test_object_deps_done=yes
12328          continue
12329        fi
12330
12331        if test "$pre_test_object_deps_done" = no; then
12332          if test -z "$predep_objects_CXX"; then
12333            predep_objects_CXX="$p"
12334          else
12335            predep_objects_CXX="$predep_objects_CXX $p"
12336          fi
12337        else
12338          if test -z "$postdep_objects_CXX"; then
12339            postdep_objects_CXX="$p"
12340          else
12341            postdep_objects_CXX="$postdep_objects_CXX $p"
12342          fi
12343        fi
12344        ;;
12345
12346     *) ;; # Ignore the rest.
12347
12348     esac
12349   done
12350
12351   # Clean up.
12352   rm -f a.out a.exe
12353 else
12354   echo "libtool.m4: error: problem compiling CXX test program"
12355 fi
12356
12357 $rm -f confest.$objext
12358
12359 compiler_lib_search_dirs_CXX=
12360 if test -n "$compiler_lib_search_path_CXX"; then
12361   compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12362 fi
12363
12364 # PORTME: override above test on systems where it is broken
12365 case $host_os in
12366 interix[3-9]*)
12367   # Interix 3.5 installs completely hosed .la files for C++, so rather than
12368   # hack all around it, let's just trust "g++" to DTRT.
12369   predep_objects_CXX=
12370   postdep_objects_CXX=
12371   postdeps_CXX=
12372   ;;
12373
12374 linux*)
12375   case `$CC -V 2>&1 | sed 5q` in
12376   *Sun\ C*)
12377     # Sun C++ 5.9
12378     #
12379     # The more standards-conforming stlport4 library is
12380     # incompatible with the Cstd library. Avoid specifying
12381     # it if it's in CXXFLAGS. Ignore libCrun as
12382     # -library=stlport4 depends on it.
12383     case " $CXX $CXXFLAGS " in
12384     *" -library=stlport4 "*)
12385       solaris_use_stlport4=yes
12386       ;;
12387     esac
12388     if test "$solaris_use_stlport4" != yes; then
12389       postdeps_CXX='-library=Cstd -library=Crun'
12390     fi
12391     ;;
12392   esac
12393   ;;
12394
12395 solaris*)
12396   case $cc_basename in
12397   CC*)
12398     # The more standards-conforming stlport4 library is
12399     # incompatible with the Cstd library. Avoid specifying
12400     # it if it's in CXXFLAGS. Ignore libCrun as
12401     # -library=stlport4 depends on it.
12402     case " $CXX $CXXFLAGS " in
12403     *" -library=stlport4 "*)
12404       solaris_use_stlport4=yes
12405       ;;
12406     esac
12407
12408     # Adding this requires a known-good setup of shared libraries for
12409     # Sun compiler versions before 5.6, else PIC objects from an old
12410     # archive will be linked into the output, leading to subtle bugs.
12411     if test "$solaris_use_stlport4" != yes; then
12412       postdeps_CXX='-library=Cstd -library=Crun'
12413     fi
12414     ;;
12415   esac
12416   ;;
12417 esac
12418
12419 case " $postdeps_CXX " in
12420 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12421 esac
12422
12423 lt_prog_compiler_wl_CXX=
12424 lt_prog_compiler_pic_CXX=
12425 lt_prog_compiler_static_CXX=
12426
12427 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12428 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12429
12430   # C++ specific cases for pic, static, wl, etc.
12431   if test "$GXX" = yes; then
12432     lt_prog_compiler_wl_CXX='-Wl,'
12433     lt_prog_compiler_static_CXX='-static'
12434
12435     case $host_os in
12436     aix*)
12437       # All AIX code is PIC.
12438       if test "$host_cpu" = ia64; then
12439         # AIX 5 now supports IA64 processor
12440         lt_prog_compiler_static_CXX='-Bstatic'
12441       fi
12442       ;;
12443     amigaos*)
12444       # FIXME: we need at least 68020 code to build shared libraries, but
12445       # adding the `-m68020' flag to GCC prevents building anything better,
12446       # like `-m68040'.
12447       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12448       ;;
12449     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12450       # PIC is the default for these OSes.
12451       ;;
12452     mingw* | cygwin* | os2* | pw32*)
12453       # This hack is so that the source file can tell whether it is being
12454       # built for inclusion in a dll (and should export symbols for example).
12455       # Although the cygwin gcc ignores -fPIC, still need this for old-style
12456       # (--disable-auto-import) libraries
12457       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12458       ;;
12459     darwin* | rhapsody*)
12460       # PIC is the default on this platform
12461       # Common symbols not allowed in MH_DYLIB files
12462       lt_prog_compiler_pic_CXX='-fno-common'
12463       ;;
12464     *djgpp*)
12465       # DJGPP does not support shared libraries at all
12466       lt_prog_compiler_pic_CXX=
12467       ;;
12468     interix[3-9]*)
12469       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12470       # Instead, we relocate shared libraries at runtime.
12471       ;;
12472     sysv4*MP*)
12473       if test -d /usr/nec; then
12474         lt_prog_compiler_pic_CXX=-Kconform_pic
12475       fi
12476       ;;
12477     hpux*)
12478       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12479       # not for PA HP-UX.
12480       case $host_cpu in
12481       hppa*64*|ia64*)
12482         ;;
12483       *)
12484         lt_prog_compiler_pic_CXX='-fPIC'
12485         ;;
12486       esac
12487       ;;
12488     *)
12489       lt_prog_compiler_pic_CXX='-fPIC'
12490       ;;
12491     esac
12492   else
12493     case $host_os in
12494       aix[4-9]*)
12495         # All AIX code is PIC.
12496         if test "$host_cpu" = ia64; then
12497           # AIX 5 now supports IA64 processor
12498           lt_prog_compiler_static_CXX='-Bstatic'
12499         else
12500           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12501         fi
12502         ;;
12503       chorus*)
12504         case $cc_basename in
12505         cxch68*)
12506           # Green Hills C++ Compiler
12507           # _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"
12508           ;;
12509         esac
12510         ;;
12511        darwin*)
12512          # PIC is the default on this platform
12513          # Common symbols not allowed in MH_DYLIB files
12514          case $cc_basename in
12515            xlc*)
12516            lt_prog_compiler_pic_CXX='-qnocommon'
12517            lt_prog_compiler_wl_CXX='-Wl,'
12518            ;;
12519          esac
12520        ;;
12521       dgux*)
12522         case $cc_basename in
12523           ec++*)
12524             lt_prog_compiler_pic_CXX='-KPIC'
12525             ;;
12526           ghcx*)
12527             # Green Hills C++ Compiler
12528             lt_prog_compiler_pic_CXX='-pic'
12529             ;;
12530           *)
12531             ;;
12532         esac
12533         ;;
12534       freebsd* | dragonfly*)
12535         # FreeBSD uses GNU C++
12536         ;;
12537       hpux9* | hpux10* | hpux11*)
12538         case $cc_basename in
12539           CC*)
12540             lt_prog_compiler_wl_CXX='-Wl,'
12541             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12542             if test "$host_cpu" != ia64; then
12543               lt_prog_compiler_pic_CXX='+Z'
12544             fi
12545             ;;
12546           aCC*)
12547             lt_prog_compiler_wl_CXX='-Wl,'
12548             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12549             case $host_cpu in
12550             hppa*64*|ia64*)
12551               # +Z the default
12552               ;;
12553             *)
12554               lt_prog_compiler_pic_CXX='+Z'
12555               ;;
12556             esac
12557             ;;
12558           *)
12559             ;;
12560         esac
12561         ;;
12562       interix*)
12563         # This is c89, which is MS Visual C++ (no shared libs)
12564         # Anyone wants to do a port?
12565         ;;
12566       irix5* | irix6* | nonstopux*)
12567         case $cc_basename in
12568           CC*)
12569             lt_prog_compiler_wl_CXX='-Wl,'
12570             lt_prog_compiler_static_CXX='-non_shared'
12571             # CC pic flag -KPIC is the default.
12572             ;;
12573           *)
12574             ;;
12575         esac
12576         ;;
12577       linux* | k*bsd*-gnu)
12578         case $cc_basename in
12579           KCC*)
12580             # KAI C++ Compiler
12581             lt_prog_compiler_wl_CXX='--backend -Wl,'
12582             lt_prog_compiler_pic_CXX='-fPIC'
12583             ;;
12584           icpc* | ecpc*)
12585             # Intel C++
12586             lt_prog_compiler_wl_CXX='-Wl,'
12587             lt_prog_compiler_pic_CXX='-KPIC'
12588             lt_prog_compiler_static_CXX='-static'
12589             ;;
12590           pgCC* | pgcpp*)
12591             # Portland Group C++ compiler.
12592             lt_prog_compiler_wl_CXX='-Wl,'
12593             lt_prog_compiler_pic_CXX='-fpic'
12594             lt_prog_compiler_static_CXX='-Bstatic'
12595             ;;
12596           cxx*)
12597             # Compaq C++
12598             # Make sure the PIC flag is empty.  It appears that all Alpha
12599             # Linux and Compaq Tru64 Unix objects are PIC.
12600             lt_prog_compiler_pic_CXX=
12601             lt_prog_compiler_static_CXX='-non_shared'
12602             ;;
12603           *)
12604             case `$CC -V 2>&1 | sed 5q` in
12605             *Sun\ C*)
12606               # Sun C++ 5.9
12607               lt_prog_compiler_pic_CXX='-KPIC'
12608               lt_prog_compiler_static_CXX='-Bstatic'
12609               lt_prog_compiler_wl_CXX='-Qoption ld '
12610               ;;
12611             esac
12612             ;;
12613         esac
12614         ;;
12615       lynxos*)
12616         ;;
12617       m88k*)
12618         ;;
12619       mvs*)
12620         case $cc_basename in
12621           cxx*)
12622             lt_prog_compiler_pic_CXX='-W c,exportall'
12623             ;;
12624           *)
12625             ;;
12626         esac
12627         ;;
12628       netbsd*)
12629         ;;
12630       osf3* | osf4* | osf5*)
12631         case $cc_basename in
12632           KCC*)
12633             lt_prog_compiler_wl_CXX='--backend -Wl,'
12634             ;;
12635           RCC*)
12636             # Rational C++ 2.4.1
12637             lt_prog_compiler_pic_CXX='-pic'
12638             ;;
12639           cxx*)
12640             # Digital/Compaq C++
12641             lt_prog_compiler_wl_CXX='-Wl,'
12642             # Make sure the PIC flag is empty.  It appears that all Alpha
12643             # Linux and Compaq Tru64 Unix objects are PIC.
12644             lt_prog_compiler_pic_CXX=
12645             lt_prog_compiler_static_CXX='-non_shared'
12646             ;;
12647           *)
12648             ;;
12649         esac
12650         ;;
12651       psos*)
12652         ;;
12653       solaris*)
12654         case $cc_basename in
12655           CC*)
12656             # Sun C++ 4.2, 5.x and Centerline C++
12657             lt_prog_compiler_pic_CXX='-KPIC'
12658             lt_prog_compiler_static_CXX='-Bstatic'
12659             lt_prog_compiler_wl_CXX='-Qoption ld '
12660             ;;
12661           gcx*)
12662             # Green Hills C++ Compiler
12663             lt_prog_compiler_pic_CXX='-PIC'
12664             ;;
12665           *)
12666             ;;
12667         esac
12668         ;;
12669       sunos4*)
12670         case $cc_basename in
12671           CC*)
12672             # Sun C++ 4.x
12673             lt_prog_compiler_pic_CXX='-pic'
12674             lt_prog_compiler_static_CXX='-Bstatic'
12675             ;;
12676           lcc*)
12677             # Lucid
12678             lt_prog_compiler_pic_CXX='-pic'
12679             ;;
12680           *)
12681             ;;
12682         esac
12683         ;;
12684       tandem*)
12685         case $cc_basename in
12686           NCC*)
12687             # NonStop-UX NCC 3.20
12688             lt_prog_compiler_pic_CXX='-KPIC'
12689             ;;
12690           *)
12691             ;;
12692         esac
12693         ;;
12694       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12695         case $cc_basename in
12696           CC*)
12697             lt_prog_compiler_wl_CXX='-Wl,'
12698             lt_prog_compiler_pic_CXX='-KPIC'
12699             lt_prog_compiler_static_CXX='-Bstatic'
12700             ;;
12701         esac
12702         ;;
12703       vxworks*)
12704         ;;
12705       *)
12706         lt_prog_compiler_can_build_shared_CXX=no
12707         ;;
12708     esac
12709   fi
12710
12711 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12712 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12713
12714 #
12715 # Check to make sure the PIC flag actually works.
12716 #
12717 if test -n "$lt_prog_compiler_pic_CXX"; then
12718
12719 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12720 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12721 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12722   echo $ECHO_N "(cached) $ECHO_C" >&6
12723 else
12724   lt_cv_prog_compiler_pic_works_CXX=no
12725   ac_outfile=conftest.$ac_objext
12726    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12727    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12728    # Insert the option either (1) after the last *FLAGS variable, or
12729    # (2) before a word containing "conftest.", or (3) at the end.
12730    # Note that $ac_compile itself does not contain backslashes and begins
12731    # with a dollar sign (not a hyphen), so the echo should work correctly.
12732    # The option is referenced via a variable to avoid confusing sed.
12733    lt_compile=`echo "$ac_compile" | $SED \
12734    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12735    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12736    -e 's:$: $lt_compiler_flag:'`
12737    (eval echo "\"\$as_me:12737: $lt_compile\"" >&5)
12738    (eval "$lt_compile" 2>conftest.err)
12739    ac_status=$?
12740    cat conftest.err >&5
12741    echo "$as_me:12741: \$? = $ac_status" >&5
12742    if (exit $ac_status) && test -s "$ac_outfile"; then
12743      # The compiler can only warn and ignore the option if not recognized
12744      # So say no if there are warnings other than the usual output.
12745      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12746      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12747      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12748        lt_cv_prog_compiler_pic_works_CXX=yes
12749      fi
12750    fi
12751    $rm conftest*
12752
12753 fi
12754 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12755 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12756
12757 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12758     case $lt_prog_compiler_pic_CXX in
12759      "" | " "*) ;;
12760      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12761      esac
12762 else
12763     lt_prog_compiler_pic_CXX=
12764      lt_prog_compiler_can_build_shared_CXX=no
12765 fi
12766
12767 fi
12768 case $host_os in
12769   # For platforms which do not support PIC, -DPIC is meaningless:
12770   *djgpp*)
12771     lt_prog_compiler_pic_CXX=
12772     ;;
12773   *)
12774     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12775     ;;
12776 esac
12777
12778 #
12779 # Check to make sure the static flag actually works.
12780 #
12781 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12782 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12783 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12784 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12785   echo $ECHO_N "(cached) $ECHO_C" >&6
12786 else
12787   lt_cv_prog_compiler_static_works_CXX=no
12788    save_LDFLAGS="$LDFLAGS"
12789    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12790    echo "$lt_simple_link_test_code" > conftest.$ac_ext
12791    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12792      # The linker can only warn and ignore the option if not recognized
12793      # So say no if there are warnings
12794      if test -s conftest.err; then
12795        # Append any errors to the config.log.
12796        cat conftest.err 1>&5
12797        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12798        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12799        if diff conftest.exp conftest.er2 >/dev/null; then
12800          lt_cv_prog_compiler_static_works_CXX=yes
12801        fi
12802      else
12803        lt_cv_prog_compiler_static_works_CXX=yes
12804      fi
12805    fi
12806    $rm -r conftest*
12807    LDFLAGS="$save_LDFLAGS"
12808
12809 fi
12810 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12811 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
12812
12813 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12814     :
12815 else
12816     lt_prog_compiler_static_CXX=
12817 fi
12818
12819
12820 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12821 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12822 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12823   echo $ECHO_N "(cached) $ECHO_C" >&6
12824 else
12825   lt_cv_prog_compiler_c_o_CXX=no
12826    $rm -r conftest 2>/dev/null
12827    mkdir conftest
12828    cd conftest
12829    mkdir out
12830    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12831
12832    lt_compiler_flag="-o out/conftest2.$ac_objext"
12833    # Insert the option either (1) after the last *FLAGS variable, or
12834    # (2) before a word containing "conftest.", or (3) at the end.
12835    # Note that $ac_compile itself does not contain backslashes and begins
12836    # with a dollar sign (not a hyphen), so the echo should work correctly.
12837    lt_compile=`echo "$ac_compile" | $SED \
12838    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12839    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12840    -e 's:$: $lt_compiler_flag:'`
12841    (eval echo "\"\$as_me:12841: $lt_compile\"" >&5)
12842    (eval "$lt_compile" 2>out/conftest.err)
12843    ac_status=$?
12844    cat out/conftest.err >&5
12845    echo "$as_me:12845: \$? = $ac_status" >&5
12846    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12847    then
12848      # The compiler can only warn and ignore the option if not recognized
12849      # So say no if there are warnings
12850      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12851      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12852      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12853        lt_cv_prog_compiler_c_o_CXX=yes
12854      fi
12855    fi
12856    chmod u+w . 2>&5
12857    $rm conftest*
12858    # SGI C++ compiler will create directory out/ii_files/ for
12859    # template instantiation
12860    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12861    $rm out/* && rmdir out
12862    cd ..
12863    rmdir conftest
12864    $rm conftest*
12865
12866 fi
12867 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12868 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12869
12870
12871 hard_links="nottested"
12872 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12873   # do not overwrite the value of need_locks provided by the user
12874   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12875 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12876   hard_links=yes
12877   $rm conftest*
12878   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12879   touch conftest.a
12880   ln conftest.a conftest.b 2>&5 || hard_links=no
12881   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12882   { echo "$as_me:$LINENO: result: $hard_links" >&5
12883 echo "${ECHO_T}$hard_links" >&6; }
12884   if test "$hard_links" = no; then
12885     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12886 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12887     need_locks=warn
12888   fi
12889 else
12890   need_locks=no
12891 fi
12892
12893 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12894 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12895
12896   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12897   case $host_os in
12898   aix[4-9]*)
12899     # If we're using GNU nm, then we don't want the "-C" option.
12900     # -C means demangle to AIX nm, but means don't demangle with GNU nm
12901     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12902       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'
12903     else
12904       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'
12905     fi
12906     ;;
12907   pw32*)
12908     export_symbols_cmds_CXX="$ltdll_cmds"
12909   ;;
12910   cygwin* | mingw*)
12911     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'
12912   ;;
12913   *)
12914     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12915   ;;
12916   esac
12917   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12918
12919 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12920 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12921 test "$ld_shlibs_CXX" = no && can_build_shared=no
12922
12923 #
12924 # Do we need to explicitly link libc?
12925 #
12926 case "x$archive_cmds_need_lc_CXX" in
12927 x|xyes)
12928   # Assume -lc should be added
12929   archive_cmds_need_lc_CXX=yes
12930
12931   if test "$enable_shared" = yes && test "$GCC" = yes; then
12932     case $archive_cmds_CXX in
12933     *'~'*)
12934       # FIXME: we may have to deal with multi-command sequences.
12935       ;;
12936     '$CC '*)
12937       # Test whether the compiler implicitly links with -lc since on some
12938       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12939       # to ld, don't add -lc before -lgcc.
12940       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12941 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12942       $rm conftest*
12943       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12944
12945       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12946   (eval $ac_compile) 2>&5
12947   ac_status=$?
12948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12949   (exit $ac_status); } 2>conftest.err; then
12950         soname=conftest
12951         lib=conftest
12952         libobjs=conftest.$ac_objext
12953         deplibs=
12954         wl=$lt_prog_compiler_wl_CXX
12955         pic_flag=$lt_prog_compiler_pic_CXX
12956         compiler_flags=-v
12957         linker_flags=-v
12958         verstring=
12959         output_objdir=.
12960         libname=conftest
12961         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12962         allow_undefined_flag_CXX=
12963         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12964   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12965   ac_status=$?
12966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12967   (exit $ac_status); }
12968         then
12969           archive_cmds_need_lc_CXX=no
12970         else
12971           archive_cmds_need_lc_CXX=yes
12972         fi
12973         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12974       else
12975         cat conftest.err 1>&5
12976       fi
12977       $rm conftest*
12978       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12979 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12980       ;;
12981     esac
12982   fi
12983   ;;
12984 esac
12985
12986 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12987 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12988 library_names_spec=
12989 libname_spec='lib$name'
12990 soname_spec=
12991 shrext_cmds=".so"
12992 postinstall_cmds=
12993 postuninstall_cmds=
12994 finish_cmds=
12995 finish_eval=
12996 shlibpath_var=
12997 shlibpath_overrides_runpath=unknown
12998 version_type=none
12999 dynamic_linker="$host_os ld.so"
13000 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13001
13002 need_lib_prefix=unknown
13003 hardcode_into_libs=no
13004
13005 # when you set need_version to no, make sure it does not cause -set_version
13006 # flags to be left without arguments
13007 need_version=unknown
13008
13009 case $host_os in
13010 aix3*)
13011   version_type=linux
13012   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13013   shlibpath_var=LIBPATH
13014
13015   # AIX 3 has no versioning support, so we append a major version to the name.
13016   soname_spec='${libname}${release}${shared_ext}$major'
13017   ;;
13018
13019 aix[4-9]*)
13020   version_type=linux
13021   need_lib_prefix=no
13022   need_version=no
13023   hardcode_into_libs=yes
13024   if test "$host_cpu" = ia64; then
13025     # AIX 5 supports IA64
13026     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13027     shlibpath_var=LD_LIBRARY_PATH
13028   else
13029     # With GCC up to 2.95.x, collect2 would create an import file
13030     # for dependence libraries.  The import file would start with
13031     # the line `#! .'.  This would cause the generated library to
13032     # depend on `.', always an invalid library.  This was fixed in
13033     # development snapshots of GCC prior to 3.0.
13034     case $host_os in
13035       aix4 | aix4.[01] | aix4.[01].*)
13036       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13037            echo ' yes '
13038            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13039         :
13040       else
13041         can_build_shared=no
13042       fi
13043       ;;
13044     esac
13045     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13046     # soname into executable. Probably we can add versioning support to
13047     # collect2, so additional links can be useful in future.
13048     if test "$aix_use_runtimelinking" = yes; then
13049       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13050       # instead of lib<name>.a to let people know that these are not
13051       # typical AIX shared libraries.
13052       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13053     else
13054       # We preserve .a as extension for shared libraries through AIX4.2
13055       # and later when we are not doing run time linking.
13056       library_names_spec='${libname}${release}.a $libname.a'
13057       soname_spec='${libname}${release}${shared_ext}$major'
13058     fi
13059     shlibpath_var=LIBPATH
13060   fi
13061   ;;
13062
13063 amigaos*)
13064   library_names_spec='$libname.ixlibrary $libname.a'
13065   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13066   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'
13067   ;;
13068
13069 beos*)
13070   library_names_spec='${libname}${shared_ext}'
13071   dynamic_linker="$host_os ld.so"
13072   shlibpath_var=LIBRARY_PATH
13073   ;;
13074
13075 bsdi[45]*)
13076   version_type=linux
13077   need_version=no
13078   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13079   soname_spec='${libname}${release}${shared_ext}$major'
13080   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13081   shlibpath_var=LD_LIBRARY_PATH
13082   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13083   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13084   # the default ld.so.conf also contains /usr/contrib/lib and
13085   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13086   # libtool to hard-code these into programs
13087   ;;
13088
13089 cygwin* | mingw* | pw32*)
13090   version_type=windows
13091   shrext_cmds=".dll"
13092   need_version=no
13093   need_lib_prefix=no
13094
13095   case $GCC,$host_os in
13096   yes,cygwin* | yes,mingw* | yes,pw32*)
13097     library_names_spec='$libname.dll.a'
13098     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13099     postinstall_cmds='base_file=`basename \${file}`~
13100       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13101       dldir=$destdir/`dirname \$dlpath`~
13102       test -d \$dldir || mkdir -p \$dldir~
13103       $install_prog $dir/$dlname \$dldir/$dlname~
13104       chmod a+x \$dldir/$dlname'
13105     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13106       dlpath=$dir/\$dldll~
13107        $rm \$dlpath'
13108     shlibpath_overrides_runpath=yes
13109
13110     case $host_os in
13111     cygwin*)
13112       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13113       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13114       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13115       ;;
13116     mingw*)
13117       # MinGW DLLs use traditional 'lib' prefix
13118       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13119       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13120       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13121         # It is most probably a Windows format PATH printed by
13122         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13123         # path with ; separators, and with drive letters. We can handle the
13124         # drive letters (cygwin fileutils understands them), so leave them,
13125         # especially as we might pass files found there to a mingw objdump,
13126         # which wouldn't understand a cygwinified path. Ahh.
13127         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13128       else
13129         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13130       fi
13131       ;;
13132     pw32*)
13133       # pw32 DLLs use 'pw' prefix rather than 'lib'
13134       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13135       ;;
13136     esac
13137     ;;
13138
13139   *)
13140     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13141     ;;
13142   esac
13143   dynamic_linker='Win32 ld.exe'
13144   # FIXME: first we should search . and the directory the executable is in
13145   shlibpath_var=PATH
13146   ;;
13147
13148 darwin* | rhapsody*)
13149   dynamic_linker="$host_os dyld"
13150   version_type=darwin
13151   need_lib_prefix=no
13152   need_version=no
13153   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13154   soname_spec='${libname}${release}${major}$shared_ext'
13155   shlibpath_overrides_runpath=yes
13156   shlibpath_var=DYLD_LIBRARY_PATH
13157   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13158
13159   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13160   ;;
13161
13162 dgux*)
13163   version_type=linux
13164   need_lib_prefix=no
13165   need_version=no
13166   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13167   soname_spec='${libname}${release}${shared_ext}$major'
13168   shlibpath_var=LD_LIBRARY_PATH
13169   ;;
13170
13171 freebsd1*)
13172   dynamic_linker=no
13173   ;;
13174
13175 freebsd* | dragonfly*)
13176   # DragonFly does not have aout.  When/if they implement a new
13177   # versioning mechanism, adjust this.
13178   if test -x /usr/bin/objformat; then
13179     objformat=`/usr/bin/objformat`
13180   else
13181     case $host_os in
13182     freebsd[123]*) objformat=aout ;;
13183     *) objformat=elf ;;
13184     esac
13185   fi
13186   version_type=freebsd-$objformat
13187   case $version_type in
13188     freebsd-elf*)
13189       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13190       need_version=no
13191       need_lib_prefix=no
13192       ;;
13193     freebsd-*)
13194       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13195       need_version=yes
13196       ;;
13197   esac
13198   shlibpath_var=LD_LIBRARY_PATH
13199   case $host_os in
13200   freebsd2*)
13201     shlibpath_overrides_runpath=yes
13202     ;;
13203   freebsd3.[01]* | freebsdelf3.[01]*)
13204     shlibpath_overrides_runpath=yes
13205     hardcode_into_libs=yes
13206     ;;
13207   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13208   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13209     shlibpath_overrides_runpath=no
13210     hardcode_into_libs=yes
13211     ;;
13212   *) # from 4.6 on, and DragonFly
13213     shlibpath_overrides_runpath=yes
13214     hardcode_into_libs=yes
13215     ;;
13216   esac
13217   ;;
13218
13219 gnu*)
13220   version_type=linux
13221   need_lib_prefix=no
13222   need_version=no
13223   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13224   soname_spec='${libname}${release}${shared_ext}$major'
13225   shlibpath_var=LD_LIBRARY_PATH
13226   hardcode_into_libs=yes
13227   ;;
13228
13229 hpux9* | hpux10* | hpux11*)
13230   # Give a soname corresponding to the major version so that dld.sl refuses to
13231   # link against other versions.
13232   version_type=sunos
13233   need_lib_prefix=no
13234   need_version=no
13235   case $host_cpu in
13236   ia64*)
13237     shrext_cmds='.so'
13238     hardcode_into_libs=yes
13239     dynamic_linker="$host_os dld.so"
13240     shlibpath_var=LD_LIBRARY_PATH
13241     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13242     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13243     soname_spec='${libname}${release}${shared_ext}$major'
13244     if test "X$HPUX_IA64_MODE" = X32; then
13245       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13246     else
13247       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13248     fi
13249     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13250     ;;
13251    hppa*64*)
13252      shrext_cmds='.sl'
13253      hardcode_into_libs=yes
13254      dynamic_linker="$host_os dld.sl"
13255      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13256      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13257      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13258      soname_spec='${libname}${release}${shared_ext}$major'
13259      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13260      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13261      ;;
13262    *)
13263     shrext_cmds='.sl'
13264     dynamic_linker="$host_os dld.sl"
13265     shlibpath_var=SHLIB_PATH
13266     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13267     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13268     soname_spec='${libname}${release}${shared_ext}$major'
13269     ;;
13270   esac
13271   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13272   postinstall_cmds='chmod 555 $lib'
13273   ;;
13274
13275 interix[3-9]*)
13276   version_type=linux
13277   need_lib_prefix=no
13278   need_version=no
13279   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13280   soname_spec='${libname}${release}${shared_ext}$major'
13281   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13282   shlibpath_var=LD_LIBRARY_PATH
13283   shlibpath_overrides_runpath=no
13284   hardcode_into_libs=yes
13285   ;;
13286
13287 irix5* | irix6* | nonstopux*)
13288   case $host_os in
13289     nonstopux*) version_type=nonstopux ;;
13290     *)
13291         if test "$lt_cv_prog_gnu_ld" = yes; then
13292                 version_type=linux
13293         else
13294                 version_type=irix
13295         fi ;;
13296   esac
13297   need_lib_prefix=no
13298   need_version=no
13299   soname_spec='${libname}${release}${shared_ext}$major'
13300   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13301   case $host_os in
13302   irix5* | nonstopux*)
13303     libsuff= shlibsuff=
13304     ;;
13305   *)
13306     case $LD in # libtool.m4 will add one of these switches to LD
13307     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13308       libsuff= shlibsuff= libmagic=32-bit;;
13309     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13310       libsuff=32 shlibsuff=N32 libmagic=N32;;
13311     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13312       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13313     *) libsuff= shlibsuff= libmagic=never-match;;
13314     esac
13315     ;;
13316   esac
13317   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13318   shlibpath_overrides_runpath=no
13319   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13320   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13321   hardcode_into_libs=yes
13322   ;;
13323
13324 # No shared lib support for Linux oldld, aout, or coff.
13325 linux*oldld* | linux*aout* | linux*coff*)
13326   dynamic_linker=no
13327   ;;
13328
13329 # This must be Linux ELF.
13330 linux* | k*bsd*-gnu)
13331   version_type=linux
13332   need_lib_prefix=no
13333   need_version=no
13334   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13335   soname_spec='${libname}${release}${shared_ext}$major'
13336   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13337   shlibpath_var=LD_LIBRARY_PATH
13338   shlibpath_overrides_runpath=no
13339   # This implies no fast_install, which is unacceptable.
13340   # Some rework will be needed to allow for fast_install
13341   # before this can be enabled.
13342   hardcode_into_libs=yes
13343
13344   # Append ld.so.conf contents to the search path
13345   if test -f /etc/ld.so.conf; then
13346     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' ' '`
13347     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13348   fi
13349
13350   # We used to test for /lib/ld.so.1 and disable shared libraries on
13351   # powerpc, because MkLinux only supported shared libraries with the
13352   # GNU dynamic linker.  Since this was broken with cross compilers,
13353   # most powerpc-linux boxes support dynamic linking these days and
13354   # people can always --disable-shared, the test was removed, and we
13355   # assume the GNU/Linux dynamic linker is in use.
13356   dynamic_linker='GNU/Linux ld.so'
13357   ;;
13358
13359 netbsd*)
13360   version_type=sunos
13361   need_lib_prefix=no
13362   need_version=no
13363   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13364     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13365     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13366     dynamic_linker='NetBSD (a.out) ld.so'
13367   else
13368     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13369     soname_spec='${libname}${release}${shared_ext}$major'
13370     dynamic_linker='NetBSD ld.elf_so'
13371   fi
13372   shlibpath_var=LD_LIBRARY_PATH
13373   shlibpath_overrides_runpath=yes
13374   hardcode_into_libs=yes
13375   ;;
13376
13377 newsos6)
13378   version_type=linux
13379   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13380   shlibpath_var=LD_LIBRARY_PATH
13381   shlibpath_overrides_runpath=yes
13382   ;;
13383
13384 nto-qnx*)
13385   version_type=linux
13386   need_lib_prefix=no
13387   need_version=no
13388   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13389   soname_spec='${libname}${release}${shared_ext}$major'
13390   shlibpath_var=LD_LIBRARY_PATH
13391   shlibpath_overrides_runpath=yes
13392   ;;
13393
13394 openbsd*)
13395   version_type=sunos
13396   sys_lib_dlsearch_path_spec="/usr/lib"
13397   need_lib_prefix=no
13398   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13399   case $host_os in
13400     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13401     *)                         need_version=no  ;;
13402   esac
13403   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13404   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13405   shlibpath_var=LD_LIBRARY_PATH
13406   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13407     case $host_os in
13408       openbsd2.[89] | openbsd2.[89].*)
13409         shlibpath_overrides_runpath=no
13410         ;;
13411       *)
13412         shlibpath_overrides_runpath=yes
13413         ;;
13414       esac
13415   else
13416     shlibpath_overrides_runpath=yes
13417   fi
13418   ;;
13419
13420 os2*)
13421   libname_spec='$name'
13422   shrext_cmds=".dll"
13423   need_lib_prefix=no
13424   library_names_spec='$libname${shared_ext} $libname.a'
13425   dynamic_linker='OS/2 ld.exe'
13426   shlibpath_var=LIBPATH
13427   ;;
13428
13429 osf3* | osf4* | osf5*)
13430   version_type=osf
13431   need_lib_prefix=no
13432   need_version=no
13433   soname_spec='${libname}${release}${shared_ext}$major'
13434   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13435   shlibpath_var=LD_LIBRARY_PATH
13436   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13437   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13438   ;;
13439
13440 rdos*)
13441   dynamic_linker=no
13442   ;;
13443
13444 solaris*)
13445   version_type=linux
13446   need_lib_prefix=no
13447   need_version=no
13448   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13449   soname_spec='${libname}${release}${shared_ext}$major'
13450   shlibpath_var=LD_LIBRARY_PATH
13451   shlibpath_overrides_runpath=yes
13452   hardcode_into_libs=yes
13453   # ldd complains unless libraries are executable
13454   postinstall_cmds='chmod +x $lib'
13455   ;;
13456
13457 sunos4*)
13458   version_type=sunos
13459   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13460   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13461   shlibpath_var=LD_LIBRARY_PATH
13462   shlibpath_overrides_runpath=yes
13463   if test "$with_gnu_ld" = yes; then
13464     need_lib_prefix=no
13465   fi
13466   need_version=yes
13467   ;;
13468
13469 sysv4 | sysv4.3*)
13470   version_type=linux
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   case $host_vendor in
13475     sni)
13476       shlibpath_overrides_runpath=no
13477       need_lib_prefix=no
13478       export_dynamic_flag_spec='${wl}-Blargedynsym'
13479       runpath_var=LD_RUN_PATH
13480       ;;
13481     siemens)
13482       need_lib_prefix=no
13483       ;;
13484     motorola)
13485       need_lib_prefix=no
13486       need_version=no
13487       shlibpath_overrides_runpath=no
13488       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13489       ;;
13490   esac
13491   ;;
13492
13493 sysv4*MP*)
13494   if test -d /usr/nec ;then
13495     version_type=linux
13496     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13497     soname_spec='$libname${shared_ext}.$major'
13498     shlibpath_var=LD_LIBRARY_PATH
13499   fi
13500   ;;
13501
13502 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13503   version_type=freebsd-elf
13504   need_lib_prefix=no
13505   need_version=no
13506   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13507   soname_spec='${libname}${release}${shared_ext}$major'
13508   shlibpath_var=LD_LIBRARY_PATH
13509   hardcode_into_libs=yes
13510   if test "$with_gnu_ld" = yes; then
13511     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13512     shlibpath_overrides_runpath=no
13513   else
13514     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13515     shlibpath_overrides_runpath=yes
13516     case $host_os in
13517       sco3.2v5*)
13518         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13519         ;;
13520     esac
13521   fi
13522   sys_lib_dlsearch_path_spec='/usr/lib'
13523   ;;
13524
13525 uts4*)
13526   version_type=linux
13527   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13528   soname_spec='${libname}${release}${shared_ext}$major'
13529   shlibpath_var=LD_LIBRARY_PATH
13530   ;;
13531
13532 *)
13533   dynamic_linker=no
13534   ;;
13535 esac
13536 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13537 echo "${ECHO_T}$dynamic_linker" >&6; }
13538 test "$dynamic_linker" = no && can_build_shared=no
13539
13540 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13541   echo $ECHO_N "(cached) $ECHO_C" >&6
13542 else
13543   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13544 fi
13545
13546 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13547 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13548   echo $ECHO_N "(cached) $ECHO_C" >&6
13549 else
13550   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13551 fi
13552
13553 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13554
13555 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13556 if test "$GCC" = yes; then
13557   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13558 fi
13559
13560 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13561 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13562 hardcode_action_CXX=
13563 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13564    test -n "$runpath_var_CXX" || \
13565    test "X$hardcode_automatic_CXX" = "Xyes" ; then
13566
13567   # We can hardcode non-existant directories.
13568   if test "$hardcode_direct_CXX" != no &&
13569      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13570      # have to relink, otherwise we might link with an installed library
13571      # when we should be linking with a yet-to-be-installed one
13572      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13573      test "$hardcode_minus_L_CXX" != no; then
13574     # Linking always hardcodes the temporary library directory.
13575     hardcode_action_CXX=relink
13576   else
13577     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13578     hardcode_action_CXX=immediate
13579   fi
13580 else
13581   # We cannot hardcode anything, or else we can only hardcode existing
13582   # directories.
13583   hardcode_action_CXX=unsupported
13584 fi
13585 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13586 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13587
13588 if test "$hardcode_action_CXX" = relink; then
13589   # Fast installation is not supported
13590   enable_fast_install=no
13591 elif test "$shlibpath_overrides_runpath" = yes ||
13592      test "$enable_shared" = no; then
13593   # Fast installation is not necessary
13594   enable_fast_install=needless
13595 fi
13596
13597
13598 # The else clause should only fire when bootstrapping the
13599 # libtool distribution, otherwise you forgot to ship ltmain.sh
13600 # with your package, and you will get complaints that there are
13601 # no rules to generate ltmain.sh.
13602 if test -f "$ltmain"; then
13603   # See if we are running on zsh, and set the options which allow our commands through
13604   # without removal of \ escapes.
13605   if test -n "${ZSH_VERSION+set}" ; then
13606     setopt NO_GLOB_SUBST
13607   fi
13608   # Now quote all the things that may contain metacharacters while being
13609   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13610   # variables and quote the copies for generation of the libtool script.
13611   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13612     SED SHELL STRIP \
13613     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13614     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13615     deplibs_check_method reload_flag reload_cmds need_locks \
13616     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13617     lt_cv_sys_global_symbol_to_c_name_address \
13618     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13619     old_postinstall_cmds old_postuninstall_cmds \
13620     compiler_CXX \
13621     CC_CXX \
13622     LD_CXX \
13623     lt_prog_compiler_wl_CXX \
13624     lt_prog_compiler_pic_CXX \
13625     lt_prog_compiler_static_CXX \
13626     lt_prog_compiler_no_builtin_flag_CXX \
13627     export_dynamic_flag_spec_CXX \
13628     thread_safe_flag_spec_CXX \
13629     whole_archive_flag_spec_CXX \
13630     enable_shared_with_static_runtimes_CXX \
13631     old_archive_cmds_CXX \
13632     old_archive_from_new_cmds_CXX \
13633     predep_objects_CXX \
13634     postdep_objects_CXX \
13635     predeps_CXX \
13636     postdeps_CXX \
13637     compiler_lib_search_path_CXX \
13638     compiler_lib_search_dirs_CXX \
13639     archive_cmds_CXX \
13640     archive_expsym_cmds_CXX \
13641     postinstall_cmds_CXX \
13642     postuninstall_cmds_CXX \
13643     old_archive_from_expsyms_cmds_CXX \
13644     allow_undefined_flag_CXX \
13645     no_undefined_flag_CXX \
13646     export_symbols_cmds_CXX \
13647     hardcode_libdir_flag_spec_CXX \
13648     hardcode_libdir_flag_spec_ld_CXX \
13649     hardcode_libdir_separator_CXX \
13650     hardcode_automatic_CXX \
13651     module_cmds_CXX \
13652     module_expsym_cmds_CXX \
13653     lt_cv_prog_compiler_c_o_CXX \
13654     fix_srcfile_path_CXX \
13655     exclude_expsyms_CXX \
13656     include_expsyms_CXX; do
13657
13658     case $var in
13659     old_archive_cmds_CXX | \
13660     old_archive_from_new_cmds_CXX | \
13661     archive_cmds_CXX | \
13662     archive_expsym_cmds_CXX | \
13663     module_cmds_CXX | \
13664     module_expsym_cmds_CXX | \
13665     old_archive_from_expsyms_cmds_CXX | \
13666     export_symbols_cmds_CXX | \
13667     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13668     postinstall_cmds | postuninstall_cmds | \
13669     old_postinstall_cmds | old_postuninstall_cmds | \
13670     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13671       # Double-quote double-evaled strings.
13672       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13673       ;;
13674     *)
13675       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13676       ;;
13677     esac
13678   done
13679
13680   case $lt_echo in
13681   *'\$0 --fallback-echo"')
13682     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13683     ;;
13684   esac
13685
13686 cfgfile="$ofile"
13687
13688   cat <<__EOF__ >> "$cfgfile"
13689 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13690
13691 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13692
13693 # Shell to use when invoking shell scripts.
13694 SHELL=$lt_SHELL
13695
13696 # Whether or not to build shared libraries.
13697 build_libtool_libs=$enable_shared
13698
13699 # Whether or not to build static libraries.
13700 build_old_libs=$enable_static
13701
13702 # Whether or not to add -lc for building shared libraries.
13703 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13704
13705 # Whether or not to disallow shared libs when runtime libs are static
13706 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13707
13708 # Whether or not to optimize for fast installation.
13709 fast_install=$enable_fast_install
13710
13711 # The host system.
13712 host_alias=$host_alias
13713 host=$host
13714 host_os=$host_os
13715
13716 # The build system.
13717 build_alias=$build_alias
13718 build=$build
13719 build_os=$build_os
13720
13721 # An echo program that does not interpret backslashes.
13722 echo=$lt_echo
13723
13724 # The archiver.
13725 AR=$lt_AR
13726 AR_FLAGS=$lt_AR_FLAGS
13727
13728 # A C compiler.
13729 LTCC=$lt_LTCC
13730
13731 # LTCC compiler flags.
13732 LTCFLAGS=$lt_LTCFLAGS
13733
13734 # A language-specific compiler.
13735 CC=$lt_compiler_CXX
13736
13737 # Is the compiler the GNU C compiler?
13738 with_gcc=$GCC_CXX
13739
13740 # An ERE matcher.
13741 EGREP=$lt_EGREP
13742
13743 # The linker used to build libraries.
13744 LD=$lt_LD_CXX
13745
13746 # Whether we need hard or soft links.
13747 LN_S=$lt_LN_S
13748
13749 # A BSD-compatible nm program.
13750 NM=$lt_NM
13751
13752 # A symbol stripping program
13753 STRIP=$lt_STRIP
13754
13755 # Used to examine libraries when file_magic_cmd begins "file"
13756 MAGIC_CMD=$MAGIC_CMD
13757
13758 # Used on cygwin: DLL creation program.
13759 DLLTOOL="$DLLTOOL"
13760
13761 # Used on cygwin: object dumper.
13762 OBJDUMP="$OBJDUMP"
13763
13764 # Used on cygwin: assembler.
13765 AS="$AS"
13766
13767 # The name of the directory that contains temporary libtool files.
13768 objdir=$objdir
13769
13770 # How to create reloadable object files.
13771 reload_flag=$lt_reload_flag
13772 reload_cmds=$lt_reload_cmds
13773
13774 # How to pass a linker flag through the compiler.
13775 wl=$lt_lt_prog_compiler_wl_CXX
13776
13777 # Object file suffix (normally "o").
13778 objext="$ac_objext"
13779
13780 # Old archive suffix (normally "a").
13781 libext="$libext"
13782
13783 # Shared library suffix (normally ".so").
13784 shrext_cmds='$shrext_cmds'
13785
13786 # Executable file suffix (normally "").
13787 exeext="$exeext"
13788
13789 # Additional compiler flags for building library objects.
13790 pic_flag=$lt_lt_prog_compiler_pic_CXX
13791 pic_mode=$pic_mode
13792
13793 # What is the maximum length of a command?
13794 max_cmd_len=$lt_cv_sys_max_cmd_len
13795
13796 # Does compiler simultaneously support -c and -o options?
13797 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13798
13799 # Must we lock files when doing compilation?
13800 need_locks=$lt_need_locks
13801
13802 # Do we need the lib prefix for modules?
13803 need_lib_prefix=$need_lib_prefix
13804
13805 # Do we need a version for libraries?
13806 need_version=$need_version
13807
13808 # Whether dlopen is supported.
13809 dlopen_support=$enable_dlopen
13810
13811 # Whether dlopen of programs is supported.
13812 dlopen_self=$enable_dlopen_self
13813
13814 # Whether dlopen of statically linked programs is supported.
13815 dlopen_self_static=$enable_dlopen_self_static
13816
13817 # Compiler flag to prevent dynamic linking.
13818 link_static_flag=$lt_lt_prog_compiler_static_CXX
13819
13820 # Compiler flag to turn off builtin functions.
13821 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13822
13823 # Compiler flag to allow reflexive dlopens.
13824 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13825
13826 # Compiler flag to generate shared objects directly from archives.
13827 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13828
13829 # Compiler flag to generate thread-safe objects.
13830 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13831
13832 # Library versioning type.
13833 version_type=$version_type
13834
13835 # Format of library name prefix.
13836 libname_spec=$lt_libname_spec
13837
13838 # List of archive names.  First name is the real one, the rest are links.
13839 # The last name is the one that the linker finds with -lNAME.
13840 library_names_spec=$lt_library_names_spec
13841
13842 # The coded name of the library, if different from the real name.
13843 soname_spec=$lt_soname_spec
13844
13845 # Commands used to build and install an old-style archive.
13846 RANLIB=$lt_RANLIB
13847 old_archive_cmds=$lt_old_archive_cmds_CXX
13848 old_postinstall_cmds=$lt_old_postinstall_cmds
13849 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13850
13851 # Create an old-style archive from a shared archive.
13852 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13853
13854 # Create a temporary old-style archive to link instead of a shared archive.
13855 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13856
13857 # Commands used to build and install a shared archive.
13858 archive_cmds=$lt_archive_cmds_CXX
13859 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13860 postinstall_cmds=$lt_postinstall_cmds
13861 postuninstall_cmds=$lt_postuninstall_cmds
13862
13863 # Commands used to build a loadable module (assumed same as above if empty)
13864 module_cmds=$lt_module_cmds_CXX
13865 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13866
13867 # Commands to strip libraries.
13868 old_striplib=$lt_old_striplib
13869 striplib=$lt_striplib
13870
13871 # Dependencies to place before the objects being linked to create a
13872 # shared library.
13873 predep_objects=$lt_predep_objects_CXX
13874
13875 # Dependencies to place after the objects being linked to create a
13876 # shared library.
13877 postdep_objects=$lt_postdep_objects_CXX
13878
13879 # Dependencies to place before the objects being linked to create a
13880 # shared library.
13881 predeps=$lt_predeps_CXX
13882
13883 # Dependencies to place after the objects being linked to create a
13884 # shared library.
13885 postdeps=$lt_postdeps_CXX
13886
13887 # The directories searched by this compiler when creating a shared
13888 # library
13889 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13890
13891 # The library search path used internally by the compiler when linking
13892 # a shared library.
13893 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13894
13895 # Method to check whether dependent libraries are shared objects.
13896 deplibs_check_method=$lt_deplibs_check_method
13897
13898 # Command to use when deplibs_check_method == file_magic.
13899 file_magic_cmd=$lt_file_magic_cmd
13900
13901 # Flag that allows shared libraries with undefined symbols to be built.
13902 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13903
13904 # Flag that forces no undefined symbols.
13905 no_undefined_flag=$lt_no_undefined_flag_CXX
13906
13907 # Commands used to finish a libtool library installation in a directory.
13908 finish_cmds=$lt_finish_cmds
13909
13910 # Same as above, but a single script fragment to be evaled but not shown.
13911 finish_eval=$lt_finish_eval
13912
13913 # Take the output of nm and produce a listing of raw symbols and C names.
13914 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13915
13916 # Transform the output of nm in a proper C declaration
13917 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13918
13919 # Transform the output of nm in a C name address pair
13920 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13921
13922 # This is the shared library runtime path variable.
13923 runpath_var=$runpath_var
13924
13925 # This is the shared library path variable.
13926 shlibpath_var=$shlibpath_var
13927
13928 # Is shlibpath searched before the hard-coded library search path?
13929 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13930
13931 # How to hardcode a shared library path into an executable.
13932 hardcode_action=$hardcode_action_CXX
13933
13934 # Whether we should hardcode library paths into libraries.
13935 hardcode_into_libs=$hardcode_into_libs
13936
13937 # Flag to hardcode \$libdir into a binary during linking.
13938 # This must work even if \$libdir does not exist.
13939 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13940
13941 # If ld is used when linking, flag to hardcode \$libdir into
13942 # a binary during linking. This must work even if \$libdir does
13943 # not exist.
13944 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13945
13946 # Whether we need a single -rpath flag with a separated argument.
13947 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13948
13949 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13950 # resulting binary.
13951 hardcode_direct=$hardcode_direct_CXX
13952
13953 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13954 # resulting binary.
13955 hardcode_minus_L=$hardcode_minus_L_CXX
13956
13957 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13958 # the resulting binary.
13959 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13960
13961 # Set to yes if building a shared library automatically hardcodes DIR into the library
13962 # and all subsequent libraries and executables linked against it.
13963 hardcode_automatic=$hardcode_automatic_CXX
13964
13965 # Variables whose values should be saved in libtool wrapper scripts and
13966 # restored at relink time.
13967 variables_saved_for_relink="$variables_saved_for_relink"
13968
13969 # Whether libtool must link a program against all its dependency libraries.
13970 link_all_deplibs=$link_all_deplibs_CXX
13971
13972 # Compile-time system search path for libraries
13973 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13974
13975 # Run-time system search path for libraries
13976 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13977
13978 # Fix the shell variable \$srcfile for the compiler.
13979 fix_srcfile_path=$lt_fix_srcfile_path
13980
13981 # Set to yes if exported symbols are required.
13982 always_export_symbols=$always_export_symbols_CXX
13983
13984 # The commands to list exported symbols.
13985 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13986
13987 # The commands to extract the exported symbol list from a shared archive.
13988 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13989
13990 # Symbols that should not be listed in the preloaded symbols.
13991 exclude_expsyms=$lt_exclude_expsyms_CXX
13992
13993 # Symbols that must always be exported.
13994 include_expsyms=$lt_include_expsyms_CXX
13995
13996 # ### END LIBTOOL TAG CONFIG: $tagname
13997
13998 __EOF__
13999
14000
14001 else
14002   # If there is no Makefile yet, we rely on a make rule to execute
14003   # `config.status --recheck' to rerun these tests and create the
14004   # libtool script then.
14005   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14006   if test -f "$ltmain_in"; then
14007     test -f Makefile && make "$ltmain"
14008   fi
14009 fi
14010
14011
14012 ac_ext=c
14013 ac_cpp='$CPP $CPPFLAGS'
14014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14017
14018 CC=$lt_save_CC
14019 LDCXX=$LD
14020 LD=$lt_save_LD
14021 GCC=$lt_save_GCC
14022 with_gnu_ldcxx=$with_gnu_ld
14023 with_gnu_ld=$lt_save_with_gnu_ld
14024 lt_cv_path_LDCXX=$lt_cv_path_LD
14025 lt_cv_path_LD=$lt_save_path_LD
14026 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14027 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14028
14029         else
14030           tagname=""
14031         fi
14032         ;;
14033
14034       F77)
14035         if test -n "$F77" && test "X$F77" != "Xno"; then
14036
14037 ac_ext=f
14038 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14039 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14040 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14041
14042
14043 archive_cmds_need_lc_F77=no
14044 allow_undefined_flag_F77=
14045 always_export_symbols_F77=no
14046 archive_expsym_cmds_F77=
14047 export_dynamic_flag_spec_F77=
14048 hardcode_direct_F77=no
14049 hardcode_libdir_flag_spec_F77=
14050 hardcode_libdir_flag_spec_ld_F77=
14051 hardcode_libdir_separator_F77=
14052 hardcode_minus_L_F77=no
14053 hardcode_automatic_F77=no
14054 module_cmds_F77=
14055 module_expsym_cmds_F77=
14056 link_all_deplibs_F77=unknown
14057 old_archive_cmds_F77=$old_archive_cmds
14058 no_undefined_flag_F77=
14059 whole_archive_flag_spec_F77=
14060 enable_shared_with_static_runtimes_F77=no
14061
14062 # Source file extension for f77 test sources.
14063 ac_ext=f
14064
14065 # Object file extension for compiled f77 test sources.
14066 objext=o
14067 objext_F77=$objext
14068
14069 # Code to be used in simple compile tests
14070 lt_simple_compile_test_code="\
14071       subroutine t
14072       return
14073       end
14074 "
14075
14076 # Code to be used in simple link tests
14077 lt_simple_link_test_code="\
14078       program t
14079       end
14080 "
14081
14082 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14083
14084 # If no C compiler was specified, use CC.
14085 LTCC=${LTCC-"$CC"}
14086
14087 # If no C compiler flags were specified, use CFLAGS.
14088 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14089
14090 # Allow CC to be a program name with arguments.
14091 compiler=$CC
14092
14093
14094 # save warnings/boilerplate of simple test code
14095 ac_outfile=conftest.$ac_objext
14096 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14097 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14098 _lt_compiler_boilerplate=`cat conftest.err`
14099 $rm conftest*
14100
14101 ac_outfile=conftest.$ac_objext
14102 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14103 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14104 _lt_linker_boilerplate=`cat conftest.err`
14105 $rm -r conftest*
14106
14107
14108 # Allow CC to be a program name with arguments.
14109 lt_save_CC="$CC"
14110 CC=${F77-"f77"}
14111 compiler=$CC
14112 compiler_F77=$CC
14113 for cc_temp in $compiler""; do
14114   case $cc_temp in
14115     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14116     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14117     \-*) ;;
14118     *) break;;
14119   esac
14120 done
14121 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14122
14123
14124 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14125 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14126 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14127 echo "${ECHO_T}$can_build_shared" >&6; }
14128
14129 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14130 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14131 test "$can_build_shared" = "no" && enable_shared=no
14132
14133 # On AIX, shared libraries and static libraries use the same namespace, and
14134 # are all built from PIC.
14135 case $host_os in
14136 aix3*)
14137   test "$enable_shared" = yes && enable_static=no
14138   if test -n "$RANLIB"; then
14139     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14140     postinstall_cmds='$RANLIB $lib'
14141   fi
14142   ;;
14143 aix[4-9]*)
14144   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14145     test "$enable_shared" = yes && enable_static=no
14146   fi
14147   ;;
14148 esac
14149 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14150 echo "${ECHO_T}$enable_shared" >&6; }
14151
14152 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14153 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14154 # Make sure either enable_shared or enable_static is yes.
14155 test "$enable_shared" = yes || enable_static=yes
14156 { echo "$as_me:$LINENO: result: $enable_static" >&5
14157 echo "${ECHO_T}$enable_static" >&6; }
14158
14159 GCC_F77="$G77"
14160 LD_F77="$LD"
14161
14162 lt_prog_compiler_wl_F77=
14163 lt_prog_compiler_pic_F77=
14164 lt_prog_compiler_static_F77=
14165
14166 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14167 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14168
14169   if test "$GCC" = yes; then
14170     lt_prog_compiler_wl_F77='-Wl,'
14171     lt_prog_compiler_static_F77='-static'
14172
14173     case $host_os in
14174       aix*)
14175       # All AIX code is PIC.
14176       if test "$host_cpu" = ia64; then
14177         # AIX 5 now supports IA64 processor
14178         lt_prog_compiler_static_F77='-Bstatic'
14179       fi
14180       ;;
14181
14182     amigaos*)
14183       # FIXME: we need at least 68020 code to build shared libraries, but
14184       # adding the `-m68020' flag to GCC prevents building anything better,
14185       # like `-m68040'.
14186       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14187       ;;
14188
14189     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14190       # PIC is the default for these OSes.
14191       ;;
14192
14193     mingw* | cygwin* | pw32* | os2*)
14194       # This hack is so that the source file can tell whether it is being
14195       # built for inclusion in a dll (and should export symbols for example).
14196       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14197       # (--disable-auto-import) libraries
14198       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14199       ;;
14200
14201     darwin* | rhapsody*)
14202       # PIC is the default on this platform
14203       # Common symbols not allowed in MH_DYLIB files
14204       lt_prog_compiler_pic_F77='-fno-common'
14205       ;;
14206
14207     interix[3-9]*)
14208       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14209       # Instead, we relocate shared libraries at runtime.
14210       ;;
14211
14212     msdosdjgpp*)
14213       # Just because we use GCC doesn't mean we suddenly get shared libraries
14214       # on systems that don't support them.
14215       lt_prog_compiler_can_build_shared_F77=no
14216       enable_shared=no
14217       ;;
14218
14219     sysv4*MP*)
14220       if test -d /usr/nec; then
14221         lt_prog_compiler_pic_F77=-Kconform_pic
14222       fi
14223       ;;
14224
14225     hpux*)
14226       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14227       # not for PA HP-UX.
14228       case $host_cpu in
14229       hppa*64*|ia64*)
14230         # +Z the default
14231         ;;
14232       *)
14233         lt_prog_compiler_pic_F77='-fPIC'
14234         ;;
14235       esac
14236       ;;
14237
14238     *)
14239       lt_prog_compiler_pic_F77='-fPIC'
14240       ;;
14241     esac
14242   else
14243     # PORTME Check for flag to pass linker flags through the system compiler.
14244     case $host_os in
14245     aix*)
14246       lt_prog_compiler_wl_F77='-Wl,'
14247       if test "$host_cpu" = ia64; then
14248         # AIX 5 now supports IA64 processor
14249         lt_prog_compiler_static_F77='-Bstatic'
14250       else
14251         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14252       fi
14253       ;;
14254       darwin*)
14255         # PIC is the default on this platform
14256         # Common symbols not allowed in MH_DYLIB files
14257        case $cc_basename in
14258          xlc*)
14259          lt_prog_compiler_pic_F77='-qnocommon'
14260          lt_prog_compiler_wl_F77='-Wl,'
14261          ;;
14262        esac
14263        ;;
14264
14265     mingw* | cygwin* | pw32* | os2*)
14266       # This hack is so that the source file can tell whether it is being
14267       # built for inclusion in a dll (and should export symbols for example).
14268       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14269       ;;
14270
14271     hpux9* | hpux10* | hpux11*)
14272       lt_prog_compiler_wl_F77='-Wl,'
14273       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14274       # not for PA HP-UX.
14275       case $host_cpu in
14276       hppa*64*|ia64*)
14277         # +Z the default
14278         ;;
14279       *)
14280         lt_prog_compiler_pic_F77='+Z'
14281         ;;
14282       esac
14283       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14284       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14285       ;;
14286
14287     irix5* | irix6* | nonstopux*)
14288       lt_prog_compiler_wl_F77='-Wl,'
14289       # PIC (with -KPIC) is the default.
14290       lt_prog_compiler_static_F77='-non_shared'
14291       ;;
14292
14293     newsos6)
14294       lt_prog_compiler_pic_F77='-KPIC'
14295       lt_prog_compiler_static_F77='-Bstatic'
14296       ;;
14297
14298     linux* | k*bsd*-gnu)
14299       case $cc_basename in
14300       icc* | ecc*)
14301         lt_prog_compiler_wl_F77='-Wl,'
14302         lt_prog_compiler_pic_F77='-KPIC'
14303         lt_prog_compiler_static_F77='-static'
14304         ;;
14305       pgcc* | pgf77* | pgf90* | pgf95*)
14306         # Portland Group compilers (*not* the Pentium gcc compiler,
14307         # which looks to be a dead project)
14308         lt_prog_compiler_wl_F77='-Wl,'
14309         lt_prog_compiler_pic_F77='-fpic'
14310         lt_prog_compiler_static_F77='-Bstatic'
14311         ;;
14312       ccc*)
14313         lt_prog_compiler_wl_F77='-Wl,'
14314         # All Alpha code is PIC.
14315         lt_prog_compiler_static_F77='-non_shared'
14316         ;;
14317       *)
14318         case `$CC -V 2>&1 | sed 5q` in
14319         *Sun\ C*)
14320           # Sun C 5.9
14321           lt_prog_compiler_pic_F77='-KPIC'
14322           lt_prog_compiler_static_F77='-Bstatic'
14323           lt_prog_compiler_wl_F77='-Wl,'
14324           ;;
14325         *Sun\ F*)
14326           # Sun Fortran 8.3 passes all unrecognized flags to the linker
14327           lt_prog_compiler_pic_F77='-KPIC'
14328           lt_prog_compiler_static_F77='-Bstatic'
14329           lt_prog_compiler_wl_F77=''
14330           ;;
14331         esac
14332         ;;
14333       esac
14334       ;;
14335
14336     osf3* | osf4* | osf5*)
14337       lt_prog_compiler_wl_F77='-Wl,'
14338       # All OSF/1 code is PIC.
14339       lt_prog_compiler_static_F77='-non_shared'
14340       ;;
14341
14342     rdos*)
14343       lt_prog_compiler_static_F77='-non_shared'
14344       ;;
14345
14346     solaris*)
14347       lt_prog_compiler_pic_F77='-KPIC'
14348       lt_prog_compiler_static_F77='-Bstatic'
14349       case $cc_basename in
14350       f77* | f90* | f95*)
14351         lt_prog_compiler_wl_F77='-Qoption ld ';;
14352       *)
14353         lt_prog_compiler_wl_F77='-Wl,';;
14354       esac
14355       ;;
14356
14357     sunos4*)
14358       lt_prog_compiler_wl_F77='-Qoption ld '
14359       lt_prog_compiler_pic_F77='-PIC'
14360       lt_prog_compiler_static_F77='-Bstatic'
14361       ;;
14362
14363     sysv4 | sysv4.2uw2* | sysv4.3*)
14364       lt_prog_compiler_wl_F77='-Wl,'
14365       lt_prog_compiler_pic_F77='-KPIC'
14366       lt_prog_compiler_static_F77='-Bstatic'
14367       ;;
14368
14369     sysv4*MP*)
14370       if test -d /usr/nec ;then
14371         lt_prog_compiler_pic_F77='-Kconform_pic'
14372         lt_prog_compiler_static_F77='-Bstatic'
14373       fi
14374       ;;
14375
14376     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14377       lt_prog_compiler_wl_F77='-Wl,'
14378       lt_prog_compiler_pic_F77='-KPIC'
14379       lt_prog_compiler_static_F77='-Bstatic'
14380       ;;
14381
14382     unicos*)
14383       lt_prog_compiler_wl_F77='-Wl,'
14384       lt_prog_compiler_can_build_shared_F77=no
14385       ;;
14386
14387     uts4*)
14388       lt_prog_compiler_pic_F77='-pic'
14389       lt_prog_compiler_static_F77='-Bstatic'
14390       ;;
14391
14392     *)
14393       lt_prog_compiler_can_build_shared_F77=no
14394       ;;
14395     esac
14396   fi
14397
14398 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14399 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14400
14401 #
14402 # Check to make sure the PIC flag actually works.
14403 #
14404 if test -n "$lt_prog_compiler_pic_F77"; then
14405
14406 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14407 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14408 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14409   echo $ECHO_N "(cached) $ECHO_C" >&6
14410 else
14411   lt_cv_prog_compiler_pic_works_F77=no
14412   ac_outfile=conftest.$ac_objext
14413    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14414    lt_compiler_flag="$lt_prog_compiler_pic_F77"
14415    # Insert the option either (1) after the last *FLAGS variable, or
14416    # (2) before a word containing "conftest.", or (3) at the end.
14417    # Note that $ac_compile itself does not contain backslashes and begins
14418    # with a dollar sign (not a hyphen), so the echo should work correctly.
14419    # The option is referenced via a variable to avoid confusing sed.
14420    lt_compile=`echo "$ac_compile" | $SED \
14421    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14422    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14423    -e 's:$: $lt_compiler_flag:'`
14424    (eval echo "\"\$as_me:14424: $lt_compile\"" >&5)
14425    (eval "$lt_compile" 2>conftest.err)
14426    ac_status=$?
14427    cat conftest.err >&5
14428    echo "$as_me:14428: \$? = $ac_status" >&5
14429    if (exit $ac_status) && test -s "$ac_outfile"; then
14430      # The compiler can only warn and ignore the option if not recognized
14431      # So say no if there are warnings other than the usual output.
14432      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14433      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14434      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14435        lt_cv_prog_compiler_pic_works_F77=yes
14436      fi
14437    fi
14438    $rm conftest*
14439
14440 fi
14441 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14442 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14443
14444 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14445     case $lt_prog_compiler_pic_F77 in
14446      "" | " "*) ;;
14447      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14448      esac
14449 else
14450     lt_prog_compiler_pic_F77=
14451      lt_prog_compiler_can_build_shared_F77=no
14452 fi
14453
14454 fi
14455 case $host_os in
14456   # For platforms which do not support PIC, -DPIC is meaningless:
14457   *djgpp*)
14458     lt_prog_compiler_pic_F77=
14459     ;;
14460   *)
14461     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14462     ;;
14463 esac
14464
14465 #
14466 # Check to make sure the static flag actually works.
14467 #
14468 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14469 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14470 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14471 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14472   echo $ECHO_N "(cached) $ECHO_C" >&6
14473 else
14474   lt_cv_prog_compiler_static_works_F77=no
14475    save_LDFLAGS="$LDFLAGS"
14476    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14477    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14478    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14479      # The linker can only warn and ignore the option if not recognized
14480      # So say no if there are warnings
14481      if test -s conftest.err; then
14482        # Append any errors to the config.log.
14483        cat conftest.err 1>&5
14484        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14485        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14486        if diff conftest.exp conftest.er2 >/dev/null; then
14487          lt_cv_prog_compiler_static_works_F77=yes
14488        fi
14489      else
14490        lt_cv_prog_compiler_static_works_F77=yes
14491      fi
14492    fi
14493    $rm -r conftest*
14494    LDFLAGS="$save_LDFLAGS"
14495
14496 fi
14497 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14498 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14499
14500 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14501     :
14502 else
14503     lt_prog_compiler_static_F77=
14504 fi
14505
14506
14507 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14508 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14509 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14510   echo $ECHO_N "(cached) $ECHO_C" >&6
14511 else
14512   lt_cv_prog_compiler_c_o_F77=no
14513    $rm -r conftest 2>/dev/null
14514    mkdir conftest
14515    cd conftest
14516    mkdir out
14517    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14518
14519    lt_compiler_flag="-o out/conftest2.$ac_objext"
14520    # Insert the option either (1) after the last *FLAGS variable, or
14521    # (2) before a word containing "conftest.", or (3) at the end.
14522    # Note that $ac_compile itself does not contain backslashes and begins
14523    # with a dollar sign (not a hyphen), so the echo should work correctly.
14524    lt_compile=`echo "$ac_compile" | $SED \
14525    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14526    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14527    -e 's:$: $lt_compiler_flag:'`
14528    (eval echo "\"\$as_me:14528: $lt_compile\"" >&5)
14529    (eval "$lt_compile" 2>out/conftest.err)
14530    ac_status=$?
14531    cat out/conftest.err >&5
14532    echo "$as_me:14532: \$? = $ac_status" >&5
14533    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14534    then
14535      # The compiler can only warn and ignore the option if not recognized
14536      # So say no if there are warnings
14537      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14538      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14539      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14540        lt_cv_prog_compiler_c_o_F77=yes
14541      fi
14542    fi
14543    chmod u+w . 2>&5
14544    $rm conftest*
14545    # SGI C++ compiler will create directory out/ii_files/ for
14546    # template instantiation
14547    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14548    $rm out/* && rmdir out
14549    cd ..
14550    rmdir conftest
14551    $rm conftest*
14552
14553 fi
14554 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14555 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14556
14557
14558 hard_links="nottested"
14559 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14560   # do not overwrite the value of need_locks provided by the user
14561   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14562 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14563   hard_links=yes
14564   $rm conftest*
14565   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14566   touch conftest.a
14567   ln conftest.a conftest.b 2>&5 || hard_links=no
14568   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14569   { echo "$as_me:$LINENO: result: $hard_links" >&5
14570 echo "${ECHO_T}$hard_links" >&6; }
14571   if test "$hard_links" = no; then
14572     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14573 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14574     need_locks=warn
14575   fi
14576 else
14577   need_locks=no
14578 fi
14579
14580 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14581 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14582
14583   runpath_var=
14584   allow_undefined_flag_F77=
14585   enable_shared_with_static_runtimes_F77=no
14586   archive_cmds_F77=
14587   archive_expsym_cmds_F77=
14588   old_archive_From_new_cmds_F77=
14589   old_archive_from_expsyms_cmds_F77=
14590   export_dynamic_flag_spec_F77=
14591   whole_archive_flag_spec_F77=
14592   thread_safe_flag_spec_F77=
14593   hardcode_libdir_flag_spec_F77=
14594   hardcode_libdir_flag_spec_ld_F77=
14595   hardcode_libdir_separator_F77=
14596   hardcode_direct_F77=no
14597   hardcode_minus_L_F77=no
14598   hardcode_shlibpath_var_F77=unsupported
14599   link_all_deplibs_F77=unknown
14600   hardcode_automatic_F77=no
14601   module_cmds_F77=
14602   module_expsym_cmds_F77=
14603   always_export_symbols_F77=no
14604   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14605   # include_expsyms should be a list of space-separated symbols to be *always*
14606   # included in the symbol list
14607   include_expsyms_F77=
14608   # exclude_expsyms can be an extended regexp of symbols to exclude
14609   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14610   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14611   # as well as any symbol that contains `d'.
14612   exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14613   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14614   # platforms (ab)use it in PIC code, but their linkers get confused if
14615   # the symbol is explicitly referenced.  Since portable code cannot
14616   # rely on this symbol name, it's probably fine to never include it in
14617   # preloaded symbol tables.
14618   # Exclude shared library initialization/finalization symbols.
14619   extract_expsyms_cmds=
14620   # Just being paranoid about ensuring that cc_basename is set.
14621   for cc_temp in $compiler""; do
14622   case $cc_temp in
14623     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14624     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14625     \-*) ;;
14626     *) break;;
14627   esac
14628 done
14629 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14630
14631   case $host_os in
14632   cygwin* | mingw* | pw32*)
14633     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14634     # When not using gcc, we currently assume that we are using
14635     # Microsoft Visual C++.
14636     if test "$GCC" != yes; then
14637       with_gnu_ld=no
14638     fi
14639     ;;
14640   interix*)
14641     # we just hope/assume this is gcc and not c89 (= MSVC++)
14642     with_gnu_ld=yes
14643     ;;
14644   openbsd*)
14645     with_gnu_ld=no
14646     ;;
14647   esac
14648
14649   ld_shlibs_F77=yes
14650   if test "$with_gnu_ld" = yes; then
14651     # If archive_cmds runs LD, not CC, wlarc should be empty
14652     wlarc='${wl}'
14653
14654     # Set some defaults for GNU ld with shared library support. These
14655     # are reset later if shared libraries are not supported. Putting them
14656     # here allows them to be overridden if necessary.
14657     runpath_var=LD_RUN_PATH
14658     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14659     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14660     # ancient GNU ld didn't support --whole-archive et. al.
14661     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14662         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14663       else
14664         whole_archive_flag_spec_F77=
14665     fi
14666     supports_anon_versioning=no
14667     case `$LD -v 2>/dev/null` in
14668       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14669       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14670       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14671       *\ 2.11.*) ;; # other 2.11 versions
14672       *) supports_anon_versioning=yes ;;
14673     esac
14674
14675     # See if GNU ld supports shared libraries.
14676     case $host_os in
14677     aix[3-9]*)
14678       # On AIX/PPC, the GNU linker is very broken
14679       if test "$host_cpu" != ia64; then
14680         ld_shlibs_F77=no
14681         cat <<EOF 1>&2
14682
14683 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14684 *** to be unable to reliably create shared libraries on AIX.
14685 *** Therefore, libtool is disabling shared libraries support.  If you
14686 *** really care for shared libraries, you may want to modify your PATH
14687 *** so that a non-GNU linker is found, and then restart.
14688
14689 EOF
14690       fi
14691       ;;
14692
14693     amigaos*)
14694       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)'
14695       hardcode_libdir_flag_spec_F77='-L$libdir'
14696       hardcode_minus_L_F77=yes
14697
14698       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14699       # that the semantics of dynamic libraries on AmigaOS, at least up
14700       # to version 4, is to share data among multiple programs linked
14701       # with the same dynamic library.  Since this doesn't match the
14702       # behavior of shared libraries on other platforms, we can't use
14703       # them.
14704       ld_shlibs_F77=no
14705       ;;
14706
14707     beos*)
14708       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14709         allow_undefined_flag_F77=unsupported
14710         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14711         # support --undefined.  This deserves some investigation.  FIXME
14712         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14713       else
14714         ld_shlibs_F77=no
14715       fi
14716       ;;
14717
14718     cygwin* | mingw* | pw32*)
14719       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14720       # as there is no search path for DLLs.
14721       hardcode_libdir_flag_spec_F77='-L$libdir'
14722       allow_undefined_flag_F77=unsupported
14723       always_export_symbols_F77=no
14724       enable_shared_with_static_runtimes_F77=yes
14725       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14726
14727       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14728         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14729         # If the export-symbols file already is a .def file (1st line
14730         # is EXPORTS), use it as is; otherwise, prepend...
14731         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14732           cp $export_symbols $output_objdir/$soname.def;
14733         else
14734           echo EXPORTS > $output_objdir/$soname.def;
14735           cat $export_symbols >> $output_objdir/$soname.def;
14736         fi~
14737         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14738       else
14739         ld_shlibs_F77=no
14740       fi
14741       ;;
14742
14743     interix[3-9]*)
14744       hardcode_direct_F77=no
14745       hardcode_shlibpath_var_F77=no
14746       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14747       export_dynamic_flag_spec_F77='${wl}-E'
14748       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14749       # Instead, shared libraries are loaded at an image base (0x10000000 by
14750       # default) and relocated if they conflict, which is a slow very memory
14751       # consuming and fragmenting process.  To avoid this, we pick a random,
14752       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14753       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14754       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'
14755       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'
14756       ;;
14757
14758     gnu* | linux* | k*bsd*-gnu)
14759       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14760         tmp_addflag=
14761         case $cc_basename,$host_cpu in
14762         pgcc*)                          # Portland Group C compiler
14763           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'
14764           tmp_addflag=' $pic_flag'
14765           ;;
14766         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14767           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'
14768           tmp_addflag=' $pic_flag -Mnomain' ;;
14769         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14770           tmp_addflag=' -i_dynamic' ;;
14771         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14772           tmp_addflag=' -i_dynamic -nofor_main' ;;
14773         ifc* | ifort*)                  # Intel Fortran compiler
14774           tmp_addflag=' -nofor_main' ;;
14775         esac
14776         case `$CC -V 2>&1 | sed 5q` in
14777         *Sun\ C*)                       # Sun C 5.9
14778           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'
14779           tmp_sharedflag='-G' ;;
14780         *Sun\ F*)                       # Sun Fortran 8.3
14781           tmp_sharedflag='-G' ;;
14782         *)
14783           tmp_sharedflag='-shared' ;;
14784         esac
14785         archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14786
14787         if test $supports_anon_versioning = yes; then
14788           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14789   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14790   $echo "local: *; };" >> $output_objdir/$libname.ver~
14791           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14792         fi
14793       else
14794         ld_shlibs_F77=no
14795       fi
14796       ;;
14797
14798     netbsd*)
14799       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14800         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14801         wlarc=
14802       else
14803         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14804         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14805       fi
14806       ;;
14807
14808     solaris*)
14809       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14810         ld_shlibs_F77=no
14811         cat <<EOF 1>&2
14812
14813 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14814 *** create shared libraries on Solaris systems.  Therefore, libtool
14815 *** is disabling shared libraries support.  We urge you to upgrade GNU
14816 *** binutils to release 2.9.1 or newer.  Another option is to modify
14817 *** your PATH or compiler configuration so that the native linker is
14818 *** used, and then restart.
14819
14820 EOF
14821       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14822         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14823         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14824       else
14825         ld_shlibs_F77=no
14826       fi
14827       ;;
14828
14829     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14830       case `$LD -v 2>&1` in
14831         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14832         ld_shlibs_F77=no
14833         cat <<_LT_EOF 1>&2
14834
14835 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14836 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14837 *** is disabling shared libraries support.  We urge you to upgrade GNU
14838 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14839 *** your PATH or compiler configuration so that the native linker is
14840 *** used, and then restart.
14841
14842 _LT_EOF
14843         ;;
14844         *)
14845           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14846             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14847             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14848             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14849           else
14850             ld_shlibs_F77=no
14851           fi
14852         ;;
14853       esac
14854       ;;
14855
14856     sunos4*)
14857       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14858       wlarc=
14859       hardcode_direct_F77=yes
14860       hardcode_shlibpath_var_F77=no
14861       ;;
14862
14863     *)
14864       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14865         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14866         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14867       else
14868         ld_shlibs_F77=no
14869       fi
14870       ;;
14871     esac
14872
14873     if test "$ld_shlibs_F77" = no; then
14874       runpath_var=
14875       hardcode_libdir_flag_spec_F77=
14876       export_dynamic_flag_spec_F77=
14877       whole_archive_flag_spec_F77=
14878     fi
14879   else
14880     # PORTME fill in a description of your system's linker (not GNU ld)
14881     case $host_os in
14882     aix3*)
14883       allow_undefined_flag_F77=unsupported
14884       always_export_symbols_F77=yes
14885       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'
14886       # Note: this linker hardcodes the directories in LIBPATH if there
14887       # are no directories specified by -L.
14888       hardcode_minus_L_F77=yes
14889       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14890         # Neither direct hardcoding nor static linking is supported with a
14891         # broken collect2.
14892         hardcode_direct_F77=unsupported
14893       fi
14894       ;;
14895
14896     aix[4-9]*)
14897       if test "$host_cpu" = ia64; then
14898         # On IA64, the linker does run time linking by default, so we don't
14899         # have to do anything special.
14900         aix_use_runtimelinking=no
14901         exp_sym_flag='-Bexport'
14902         no_entry_flag=""
14903       else
14904         # If we're using GNU nm, then we don't want the "-C" option.
14905         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14906         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14907           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'
14908         else
14909           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'
14910         fi
14911         aix_use_runtimelinking=no
14912
14913         # Test if we are trying to use run time linking or normal
14914         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14915         # need to do runtime linking.
14916         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14917           for ld_flag in $LDFLAGS; do
14918           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14919             aix_use_runtimelinking=yes
14920             break
14921           fi
14922           done
14923           ;;
14924         esac
14925
14926         exp_sym_flag='-bexport'
14927         no_entry_flag='-bnoentry'
14928       fi
14929
14930       # When large executables or shared objects are built, AIX ld can
14931       # have problems creating the table of contents.  If linking a library
14932       # or program results in "error TOC overflow" add -mminimal-toc to
14933       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14934       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14935
14936       archive_cmds_F77=''
14937       hardcode_direct_F77=yes
14938       hardcode_libdir_separator_F77=':'
14939       link_all_deplibs_F77=yes
14940
14941       if test "$GCC" = yes; then
14942         case $host_os in aix4.[012]|aix4.[012].*)
14943         # We only want to do this on AIX 4.2 and lower, the check
14944         # below for broken collect2 doesn't work under 4.3+
14945           collect2name=`${CC} -print-prog-name=collect2`
14946           if test -f "$collect2name" && \
14947            strings "$collect2name" | grep resolve_lib_name >/dev/null
14948           then
14949           # We have reworked collect2
14950           :
14951           else
14952           # We have old collect2
14953           hardcode_direct_F77=unsupported
14954           # It fails to find uninstalled libraries when the uninstalled
14955           # path is not listed in the libpath.  Setting hardcode_minus_L
14956           # to unsupported forces relinking
14957           hardcode_minus_L_F77=yes
14958           hardcode_libdir_flag_spec_F77='-L$libdir'
14959           hardcode_libdir_separator_F77=
14960           fi
14961           ;;
14962         esac
14963         shared_flag='-shared'
14964         if test "$aix_use_runtimelinking" = yes; then
14965           shared_flag="$shared_flag "'${wl}-G'
14966         fi
14967       else
14968         # not using gcc
14969         if test "$host_cpu" = ia64; then
14970         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14971         # chokes on -Wl,-G. The following line is correct:
14972           shared_flag='-G'
14973         else
14974           if test "$aix_use_runtimelinking" = yes; then
14975             shared_flag='${wl}-G'
14976           else
14977             shared_flag='${wl}-bM:SRE'
14978           fi
14979         fi
14980       fi
14981
14982       # It seems that -bexpall does not export symbols beginning with
14983       # underscore (_), so it is better to generate a list of symbols to export.
14984       always_export_symbols_F77=yes
14985       if test "$aix_use_runtimelinking" = yes; then
14986         # Warning - without using the other runtime loading flags (-brtl),
14987         # -berok will link without error, but may produce a broken library.
14988         allow_undefined_flag_F77='-berok'
14989        # Determine the default libpath from the value encoded in an empty executable.
14990        cat >conftest.$ac_ext <<_ACEOF
14991       program main
14992
14993       end
14994 _ACEOF
14995 rm -f conftest.$ac_objext conftest$ac_exeext
14996 if { (ac_try="$ac_link"
14997 case "(($ac_try" in
14998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14999   *) ac_try_echo=$ac_try;;
15000 esac
15001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15002   (eval "$ac_link") 2>conftest.er1
15003   ac_status=$?
15004   grep -v '^ *+' conftest.er1 >conftest.err
15005   rm -f conftest.er1
15006   cat conftest.err >&5
15007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15008   (exit $ac_status); } && {
15009          test -z "$ac_f77_werror_flag" ||
15010          test ! -s conftest.err
15011        } && test -s conftest$ac_exeext &&
15012        $as_test_x conftest$ac_exeext; then
15013
15014 lt_aix_libpath_sed='
15015     /Import File Strings/,/^$/ {
15016         /^0/ {
15017             s/^0  *\(.*\)$/\1/
15018             p
15019         }
15020     }'
15021 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15022 # Check for a 64-bit object if we didn't find anything.
15023 if test -z "$aix_libpath"; then
15024   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15025 fi
15026 else
15027   echo "$as_me: failed program was:" >&5
15028 sed 's/^/| /' conftest.$ac_ext >&5
15029
15030
15031 fi
15032
15033 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15034       conftest$ac_exeext conftest.$ac_ext
15035 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15036
15037        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15038         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"
15039        else
15040         if test "$host_cpu" = ia64; then
15041           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15042           allow_undefined_flag_F77="-z nodefs"
15043           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"
15044         else
15045          # Determine the default libpath from the value encoded in an empty executable.
15046          cat >conftest.$ac_ext <<_ACEOF
15047       program main
15048
15049       end
15050 _ACEOF
15051 rm -f conftest.$ac_objext conftest$ac_exeext
15052 if { (ac_try="$ac_link"
15053 case "(($ac_try" in
15054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15055   *) ac_try_echo=$ac_try;;
15056 esac
15057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15058   (eval "$ac_link") 2>conftest.er1
15059   ac_status=$?
15060   grep -v '^ *+' conftest.er1 >conftest.err
15061   rm -f conftest.er1
15062   cat conftest.err >&5
15063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15064   (exit $ac_status); } && {
15065          test -z "$ac_f77_werror_flag" ||
15066          test ! -s conftest.err
15067        } && test -s conftest$ac_exeext &&
15068        $as_test_x conftest$ac_exeext; then
15069
15070 lt_aix_libpath_sed='
15071     /Import File Strings/,/^$/ {
15072         /^0/ {
15073             s/^0  *\(.*\)$/\1/
15074             p
15075         }
15076     }'
15077 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15078 # Check for a 64-bit object if we didn't find anything.
15079 if test -z "$aix_libpath"; then
15080   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15081 fi
15082 else
15083   echo "$as_me: failed program was:" >&5
15084 sed 's/^/| /' conftest.$ac_ext >&5
15085
15086
15087 fi
15088
15089 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15090       conftest$ac_exeext conftest.$ac_ext
15091 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15092
15093          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15094           # Warning - without using the other run time loading flags,
15095           # -berok will link without error, but may produce a broken library.
15096           no_undefined_flag_F77=' ${wl}-bernotok'
15097           allow_undefined_flag_F77=' ${wl}-berok'
15098           # Exported symbols can be pulled into shared objects from archives
15099           whole_archive_flag_spec_F77='$convenience'
15100           archive_cmds_need_lc_F77=yes
15101           # This is similar to how AIX traditionally builds its shared libraries.
15102           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'
15103         fi
15104       fi
15105       ;;
15106
15107     amigaos*)
15108       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)'
15109       hardcode_libdir_flag_spec_F77='-L$libdir'
15110       hardcode_minus_L_F77=yes
15111       # see comment about different semantics on the GNU ld section
15112       ld_shlibs_F77=no
15113       ;;
15114
15115     bsdi[45]*)
15116       export_dynamic_flag_spec_F77=-rdynamic
15117       ;;
15118
15119     cygwin* | mingw* | pw32*)
15120       # When not using gcc, we currently assume that we are using
15121       # Microsoft Visual C++.
15122       # hardcode_libdir_flag_spec is actually meaningless, as there is
15123       # no search path for DLLs.
15124       hardcode_libdir_flag_spec_F77=' '
15125       allow_undefined_flag_F77=unsupported
15126       # Tell ltmain to make .lib files, not .a files.
15127       libext=lib
15128       # Tell ltmain to make .dll files, not .so files.
15129       shrext_cmds=".dll"
15130       # FIXME: Setting linknames here is a bad hack.
15131       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15132       # The linker will automatically build a .lib file if we build a DLL.
15133       old_archive_From_new_cmds_F77='true'
15134       # FIXME: Should let the user specify the lib program.
15135       old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15136       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15137       enable_shared_with_static_runtimes_F77=yes
15138       ;;
15139
15140     darwin* | rhapsody*)
15141       case $host_os in
15142         rhapsody* | darwin1.[012])
15143          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15144          ;;
15145        *) # Darwin 1.3 on
15146          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15147            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15148          else
15149            case ${MACOSX_DEPLOYMENT_TARGET} in
15150              10.[012])
15151                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15152                ;;
15153              10.*)
15154                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15155                ;;
15156            esac
15157          fi
15158          ;;
15159       esac
15160       archive_cmds_need_lc_F77=no
15161       hardcode_direct_F77=no
15162       hardcode_automatic_F77=yes
15163       hardcode_shlibpath_var_F77=unsupported
15164       whole_archive_flag_spec_F77=''
15165       link_all_deplibs_F77=yes
15166     if test "$GCC" = yes ; then
15167         output_verbose_link_cmd='echo'
15168         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}"
15169         module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15170         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}"
15171         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}"
15172     else
15173       case $cc_basename in
15174         xlc*)
15175          output_verbose_link_cmd='echo'
15176          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15177          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15178           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15179          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}'
15180           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}'
15181           ;;
15182        *)
15183          ld_shlibs_F77=no
15184           ;;
15185       esac
15186     fi
15187       ;;
15188
15189     dgux*)
15190       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15191       hardcode_libdir_flag_spec_F77='-L$libdir'
15192       hardcode_shlibpath_var_F77=no
15193       ;;
15194
15195     freebsd1*)
15196       ld_shlibs_F77=no
15197       ;;
15198
15199     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15200     # support.  Future versions do this automatically, but an explicit c++rt0.o
15201     # does not break anything, and helps significantly (at the cost of a little
15202     # extra space).
15203     freebsd2.2*)
15204       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15205       hardcode_libdir_flag_spec_F77='-R$libdir'
15206       hardcode_direct_F77=yes
15207       hardcode_shlibpath_var_F77=no
15208       ;;
15209
15210     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15211     freebsd2*)
15212       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15213       hardcode_direct_F77=yes
15214       hardcode_minus_L_F77=yes
15215       hardcode_shlibpath_var_F77=no
15216       ;;
15217
15218     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15219     freebsd* | dragonfly*)
15220       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15221       hardcode_libdir_flag_spec_F77='-R$libdir'
15222       hardcode_direct_F77=yes
15223       hardcode_shlibpath_var_F77=no
15224       ;;
15225
15226     hpux9*)
15227       if test "$GCC" = yes; then
15228         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'
15229       else
15230         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'
15231       fi
15232       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15233       hardcode_libdir_separator_F77=:
15234       hardcode_direct_F77=yes
15235
15236       # hardcode_minus_L: Not really in the search PATH,
15237       # but as the default location of the library.
15238       hardcode_minus_L_F77=yes
15239       export_dynamic_flag_spec_F77='${wl}-E'
15240       ;;
15241
15242     hpux10*)
15243       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15244         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15245       else
15246         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15247       fi
15248       if test "$with_gnu_ld" = no; then
15249         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15250         hardcode_libdir_separator_F77=:
15251
15252         hardcode_direct_F77=yes
15253         export_dynamic_flag_spec_F77='${wl}-E'
15254
15255         # hardcode_minus_L: Not really in the search PATH,
15256         # but as the default location of the library.
15257         hardcode_minus_L_F77=yes
15258       fi
15259       ;;
15260
15261     hpux11*)
15262       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15263         case $host_cpu in
15264         hppa*64*)
15265           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15266           ;;
15267         ia64*)
15268           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15269           ;;
15270         *)
15271           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15272           ;;
15273         esac
15274       else
15275         case $host_cpu in
15276         hppa*64*)
15277           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15278           ;;
15279         ia64*)
15280           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15281           ;;
15282         *)
15283           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15284           ;;
15285         esac
15286       fi
15287       if test "$with_gnu_ld" = no; then
15288         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15289         hardcode_libdir_separator_F77=:
15290
15291         case $host_cpu in
15292         hppa*64*|ia64*)
15293           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15294           hardcode_direct_F77=no
15295           hardcode_shlibpath_var_F77=no
15296           ;;
15297         *)
15298           hardcode_direct_F77=yes
15299           export_dynamic_flag_spec_F77='${wl}-E'
15300
15301           # hardcode_minus_L: Not really in the search PATH,
15302           # but as the default location of the library.
15303           hardcode_minus_L_F77=yes
15304           ;;
15305         esac
15306       fi
15307       ;;
15308
15309     irix5* | irix6* | nonstopux*)
15310       if test "$GCC" = yes; then
15311         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'
15312       else
15313         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'
15314         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15315       fi
15316       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15317       hardcode_libdir_separator_F77=:
15318       link_all_deplibs_F77=yes
15319       ;;
15320
15321     netbsd*)
15322       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15323         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15324       else
15325         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15326       fi
15327       hardcode_libdir_flag_spec_F77='-R$libdir'
15328       hardcode_direct_F77=yes
15329       hardcode_shlibpath_var_F77=no
15330       ;;
15331
15332     newsos6)
15333       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15334       hardcode_direct_F77=yes
15335       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15336       hardcode_libdir_separator_F77=:
15337       hardcode_shlibpath_var_F77=no
15338       ;;
15339
15340     openbsd*)
15341       if test -f /usr/libexec/ld.so; then
15342         hardcode_direct_F77=yes
15343         hardcode_shlibpath_var_F77=no
15344         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15345           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15346           archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15347           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15348           export_dynamic_flag_spec_F77='${wl}-E'
15349         else
15350           case $host_os in
15351            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15352              archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15353              hardcode_libdir_flag_spec_F77='-R$libdir'
15354              ;;
15355            *)
15356              archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15357              hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15358              ;;
15359           esac
15360         fi
15361       else
15362         ld_shlibs_F77=no
15363       fi
15364       ;;
15365
15366     os2*)
15367       hardcode_libdir_flag_spec_F77='-L$libdir'
15368       hardcode_minus_L_F77=yes
15369       allow_undefined_flag_F77=unsupported
15370       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'
15371       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15372       ;;
15373
15374     osf3*)
15375       if test "$GCC" = yes; then
15376         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15377         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'
15378       else
15379         allow_undefined_flag_F77=' -expect_unresolved \*'
15380         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'
15381       fi
15382       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15383       hardcode_libdir_separator_F77=:
15384       ;;
15385
15386     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15387       if test "$GCC" = yes; then
15388         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15389         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'
15390         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15391       else
15392         allow_undefined_flag_F77=' -expect_unresolved \*'
15393         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'
15394         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~
15395         $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'
15396
15397         # Both c and cxx compiler support -rpath directly
15398         hardcode_libdir_flag_spec_F77='-rpath $libdir'
15399       fi
15400       hardcode_libdir_separator_F77=:
15401       ;;
15402
15403     solaris*)
15404       no_undefined_flag_F77=' -z text'
15405       if test "$GCC" = yes; then
15406         wlarc='${wl}'
15407         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15408         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15409           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15410       else
15411         wlarc=''
15412         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15413         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15414         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15415       fi
15416       hardcode_libdir_flag_spec_F77='-R$libdir'
15417       hardcode_shlibpath_var_F77=no
15418       case $host_os in
15419       solaris2.[0-5] | solaris2.[0-5].*) ;;
15420       *)
15421         # The compiler driver will combine and reorder linker options,
15422         # but understands `-z linker_flag'.  GCC discards it without `$wl',
15423         # but is careful enough not to reorder.
15424         # Supported since Solaris 2.6 (maybe 2.5.1?)
15425         if test "$GCC" = yes; then
15426           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15427         else
15428           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15429         fi
15430         ;;
15431       esac
15432       link_all_deplibs_F77=yes
15433       ;;
15434
15435     sunos4*)
15436       if test "x$host_vendor" = xsequent; then
15437         # Use $CC to link under sequent, because it throws in some extra .o
15438         # files that make .init and .fini sections work.
15439         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15440       else
15441         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15442       fi
15443       hardcode_libdir_flag_spec_F77='-L$libdir'
15444       hardcode_direct_F77=yes
15445       hardcode_minus_L_F77=yes
15446       hardcode_shlibpath_var_F77=no
15447       ;;
15448
15449     sysv4)
15450       case $host_vendor in
15451         sni)
15452           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15453           hardcode_direct_F77=yes # is this really true???
15454         ;;
15455         siemens)
15456           ## LD is ld it makes a PLAMLIB
15457           ## CC just makes a GrossModule.
15458           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15459           reload_cmds_F77='$CC -r -o $output$reload_objs'
15460           hardcode_direct_F77=no
15461         ;;
15462         motorola)
15463           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15464           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15465         ;;
15466       esac
15467       runpath_var='LD_RUN_PATH'
15468       hardcode_shlibpath_var_F77=no
15469       ;;
15470
15471     sysv4.3*)
15472       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15473       hardcode_shlibpath_var_F77=no
15474       export_dynamic_flag_spec_F77='-Bexport'
15475       ;;
15476
15477     sysv4*MP*)
15478       if test -d /usr/nec; then
15479         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15480         hardcode_shlibpath_var_F77=no
15481         runpath_var=LD_RUN_PATH
15482         hardcode_runpath_var=yes
15483         ld_shlibs_F77=yes
15484       fi
15485       ;;
15486
15487     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15488       no_undefined_flag_F77='${wl}-z,text'
15489       archive_cmds_need_lc_F77=no
15490       hardcode_shlibpath_var_F77=no
15491       runpath_var='LD_RUN_PATH'
15492
15493       if test "$GCC" = yes; then
15494         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15495         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15496       else
15497         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15498         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15499       fi
15500       ;;
15501
15502     sysv5* | sco3.2v5* | sco5v6*)
15503       # Note: We can NOT use -z defs as we might desire, because we do not
15504       # link with -lc, and that would cause any symbols used from libc to
15505       # always be unresolved, which means just about no library would
15506       # ever link correctly.  If we're not using GNU ld we use -z text
15507       # though, which does catch some bad symbols but isn't as heavy-handed
15508       # as -z defs.
15509       no_undefined_flag_F77='${wl}-z,text'
15510       allow_undefined_flag_F77='${wl}-z,nodefs'
15511       archive_cmds_need_lc_F77=no
15512       hardcode_shlibpath_var_F77=no
15513       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15514       hardcode_libdir_separator_F77=':'
15515       link_all_deplibs_F77=yes
15516       export_dynamic_flag_spec_F77='${wl}-Bexport'
15517       runpath_var='LD_RUN_PATH'
15518
15519       if test "$GCC" = yes; then
15520         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15521         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15522       else
15523         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15524         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15525       fi
15526       ;;
15527
15528     uts4*)
15529       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15530       hardcode_libdir_flag_spec_F77='-L$libdir'
15531       hardcode_shlibpath_var_F77=no
15532       ;;
15533
15534     *)
15535       ld_shlibs_F77=no
15536       ;;
15537     esac
15538   fi
15539
15540 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15541 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15542 test "$ld_shlibs_F77" = no && can_build_shared=no
15543
15544 #
15545 # Do we need to explicitly link libc?
15546 #
15547 case "x$archive_cmds_need_lc_F77" in
15548 x|xyes)
15549   # Assume -lc should be added
15550   archive_cmds_need_lc_F77=yes
15551
15552   if test "$enable_shared" = yes && test "$GCC" = yes; then
15553     case $archive_cmds_F77 in
15554     *'~'*)
15555       # FIXME: we may have to deal with multi-command sequences.
15556       ;;
15557     '$CC '*)
15558       # Test whether the compiler implicitly links with -lc since on some
15559       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15560       # to ld, don't add -lc before -lgcc.
15561       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15562 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15563       $rm conftest*
15564       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15565
15566       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15567   (eval $ac_compile) 2>&5
15568   ac_status=$?
15569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15570   (exit $ac_status); } 2>conftest.err; then
15571         soname=conftest
15572         lib=conftest
15573         libobjs=conftest.$ac_objext
15574         deplibs=
15575         wl=$lt_prog_compiler_wl_F77
15576         pic_flag=$lt_prog_compiler_pic_F77
15577         compiler_flags=-v
15578         linker_flags=-v
15579         verstring=
15580         output_objdir=.
15581         libname=conftest
15582         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15583         allow_undefined_flag_F77=
15584         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15585   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15586   ac_status=$?
15587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15588   (exit $ac_status); }
15589         then
15590           archive_cmds_need_lc_F77=no
15591         else
15592           archive_cmds_need_lc_F77=yes
15593         fi
15594         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15595       else
15596         cat conftest.err 1>&5
15597       fi
15598       $rm conftest*
15599       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15600 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15601       ;;
15602     esac
15603   fi
15604   ;;
15605 esac
15606
15607 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15608 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15609 library_names_spec=
15610 libname_spec='lib$name'
15611 soname_spec=
15612 shrext_cmds=".so"
15613 postinstall_cmds=
15614 postuninstall_cmds=
15615 finish_cmds=
15616 finish_eval=
15617 shlibpath_var=
15618 shlibpath_overrides_runpath=unknown
15619 version_type=none
15620 dynamic_linker="$host_os ld.so"
15621 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15622
15623 need_lib_prefix=unknown
15624 hardcode_into_libs=no
15625
15626 # when you set need_version to no, make sure it does not cause -set_version
15627 # flags to be left without arguments
15628 need_version=unknown
15629
15630 case $host_os in
15631 aix3*)
15632   version_type=linux
15633   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15634   shlibpath_var=LIBPATH
15635
15636   # AIX 3 has no versioning support, so we append a major version to the name.
15637   soname_spec='${libname}${release}${shared_ext}$major'
15638   ;;
15639
15640 aix[4-9]*)
15641   version_type=linux
15642   need_lib_prefix=no
15643   need_version=no
15644   hardcode_into_libs=yes
15645   if test "$host_cpu" = ia64; then
15646     # AIX 5 supports IA64
15647     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15648     shlibpath_var=LD_LIBRARY_PATH
15649   else
15650     # With GCC up to 2.95.x, collect2 would create an import file
15651     # for dependence libraries.  The import file would start with
15652     # the line `#! .'.  This would cause the generated library to
15653     # depend on `.', always an invalid library.  This was fixed in
15654     # development snapshots of GCC prior to 3.0.
15655     case $host_os in
15656       aix4 | aix4.[01] | aix4.[01].*)
15657       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15658            echo ' yes '
15659            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15660         :
15661       else
15662         can_build_shared=no
15663       fi
15664       ;;
15665     esac
15666     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15667     # soname into executable. Probably we can add versioning support to
15668     # collect2, so additional links can be useful in future.
15669     if test "$aix_use_runtimelinking" = yes; then
15670       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15671       # instead of lib<name>.a to let people know that these are not
15672       # typical AIX shared libraries.
15673       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15674     else
15675       # We preserve .a as extension for shared libraries through AIX4.2
15676       # and later when we are not doing run time linking.
15677       library_names_spec='${libname}${release}.a $libname.a'
15678       soname_spec='${libname}${release}${shared_ext}$major'
15679     fi
15680     shlibpath_var=LIBPATH
15681   fi
15682   ;;
15683
15684 amigaos*)
15685   library_names_spec='$libname.ixlibrary $libname.a'
15686   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15687   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'
15688   ;;
15689
15690 beos*)
15691   library_names_spec='${libname}${shared_ext}'
15692   dynamic_linker="$host_os ld.so"
15693   shlibpath_var=LIBRARY_PATH
15694   ;;
15695
15696 bsdi[45]*)
15697   version_type=linux
15698   need_version=no
15699   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15700   soname_spec='${libname}${release}${shared_ext}$major'
15701   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15702   shlibpath_var=LD_LIBRARY_PATH
15703   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15704   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15705   # the default ld.so.conf also contains /usr/contrib/lib and
15706   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15707   # libtool to hard-code these into programs
15708   ;;
15709
15710 cygwin* | mingw* | pw32*)
15711   version_type=windows
15712   shrext_cmds=".dll"
15713   need_version=no
15714   need_lib_prefix=no
15715
15716   case $GCC,$host_os in
15717   yes,cygwin* | yes,mingw* | yes,pw32*)
15718     library_names_spec='$libname.dll.a'
15719     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15720     postinstall_cmds='base_file=`basename \${file}`~
15721       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15722       dldir=$destdir/`dirname \$dlpath`~
15723       test -d \$dldir || mkdir -p \$dldir~
15724       $install_prog $dir/$dlname \$dldir/$dlname~
15725       chmod a+x \$dldir/$dlname'
15726     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15727       dlpath=$dir/\$dldll~
15728        $rm \$dlpath'
15729     shlibpath_overrides_runpath=yes
15730
15731     case $host_os in
15732     cygwin*)
15733       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15734       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15735       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15736       ;;
15737     mingw*)
15738       # MinGW DLLs use traditional 'lib' prefix
15739       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15740       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15741       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15742         # It is most probably a Windows format PATH printed by
15743         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15744         # path with ; separators, and with drive letters. We can handle the
15745         # drive letters (cygwin fileutils understands them), so leave them,
15746         # especially as we might pass files found there to a mingw objdump,
15747         # which wouldn't understand a cygwinified path. Ahh.
15748         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15749       else
15750         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15751       fi
15752       ;;
15753     pw32*)
15754       # pw32 DLLs use 'pw' prefix rather than 'lib'
15755       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15756       ;;
15757     esac
15758     ;;
15759
15760   *)
15761     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15762     ;;
15763   esac
15764   dynamic_linker='Win32 ld.exe'
15765   # FIXME: first we should search . and the directory the executable is in
15766   shlibpath_var=PATH
15767   ;;
15768
15769 darwin* | rhapsody*)
15770   dynamic_linker="$host_os dyld"
15771   version_type=darwin
15772   need_lib_prefix=no
15773   need_version=no
15774   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15775   soname_spec='${libname}${release}${major}$shared_ext'
15776   shlibpath_overrides_runpath=yes
15777   shlibpath_var=DYLD_LIBRARY_PATH
15778   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15779
15780   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15781   ;;
15782
15783 dgux*)
15784   version_type=linux
15785   need_lib_prefix=no
15786   need_version=no
15787   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15788   soname_spec='${libname}${release}${shared_ext}$major'
15789   shlibpath_var=LD_LIBRARY_PATH
15790   ;;
15791
15792 freebsd1*)
15793   dynamic_linker=no
15794   ;;
15795
15796 freebsd* | dragonfly*)
15797   # DragonFly does not have aout.  When/if they implement a new
15798   # versioning mechanism, adjust this.
15799   if test -x /usr/bin/objformat; then
15800     objformat=`/usr/bin/objformat`
15801   else
15802     case $host_os in
15803     freebsd[123]*) objformat=aout ;;
15804     *) objformat=elf ;;
15805     esac
15806   fi
15807   version_type=freebsd-$objformat
15808   case $version_type in
15809     freebsd-elf*)
15810       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15811       need_version=no
15812       need_lib_prefix=no
15813       ;;
15814     freebsd-*)
15815       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15816       need_version=yes
15817       ;;
15818   esac
15819   shlibpath_var=LD_LIBRARY_PATH
15820   case $host_os in
15821   freebsd2*)
15822     shlibpath_overrides_runpath=yes
15823     ;;
15824   freebsd3.[01]* | freebsdelf3.[01]*)
15825     shlibpath_overrides_runpath=yes
15826     hardcode_into_libs=yes
15827     ;;
15828   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15829   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15830     shlibpath_overrides_runpath=no
15831     hardcode_into_libs=yes
15832     ;;
15833   *) # from 4.6 on, and DragonFly
15834     shlibpath_overrides_runpath=yes
15835     hardcode_into_libs=yes
15836     ;;
15837   esac
15838   ;;
15839
15840 gnu*)
15841   version_type=linux
15842   need_lib_prefix=no
15843   need_version=no
15844   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15845   soname_spec='${libname}${release}${shared_ext}$major'
15846   shlibpath_var=LD_LIBRARY_PATH
15847   hardcode_into_libs=yes
15848   ;;
15849
15850 hpux9* | hpux10* | hpux11*)
15851   # Give a soname corresponding to the major version so that dld.sl refuses to
15852   # link against other versions.
15853   version_type=sunos
15854   need_lib_prefix=no
15855   need_version=no
15856   case $host_cpu in
15857   ia64*)
15858     shrext_cmds='.so'
15859     hardcode_into_libs=yes
15860     dynamic_linker="$host_os dld.so"
15861     shlibpath_var=LD_LIBRARY_PATH
15862     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15863     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15864     soname_spec='${libname}${release}${shared_ext}$major'
15865     if test "X$HPUX_IA64_MODE" = X32; then
15866       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15867     else
15868       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15869     fi
15870     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15871     ;;
15872    hppa*64*)
15873      shrext_cmds='.sl'
15874      hardcode_into_libs=yes
15875      dynamic_linker="$host_os dld.sl"
15876      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15877      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15878      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15879      soname_spec='${libname}${release}${shared_ext}$major'
15880      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15881      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15882      ;;
15883    *)
15884     shrext_cmds='.sl'
15885     dynamic_linker="$host_os dld.sl"
15886     shlibpath_var=SHLIB_PATH
15887     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15888     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15889     soname_spec='${libname}${release}${shared_ext}$major'
15890     ;;
15891   esac
15892   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15893   postinstall_cmds='chmod 555 $lib'
15894   ;;
15895
15896 interix[3-9]*)
15897   version_type=linux
15898   need_lib_prefix=no
15899   need_version=no
15900   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15901   soname_spec='${libname}${release}${shared_ext}$major'
15902   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15903   shlibpath_var=LD_LIBRARY_PATH
15904   shlibpath_overrides_runpath=no
15905   hardcode_into_libs=yes
15906   ;;
15907
15908 irix5* | irix6* | nonstopux*)
15909   case $host_os in
15910     nonstopux*) version_type=nonstopux ;;
15911     *)
15912         if test "$lt_cv_prog_gnu_ld" = yes; then
15913                 version_type=linux
15914         else
15915                 version_type=irix
15916         fi ;;
15917   esac
15918   need_lib_prefix=no
15919   need_version=no
15920   soname_spec='${libname}${release}${shared_ext}$major'
15921   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15922   case $host_os in
15923   irix5* | nonstopux*)
15924     libsuff= shlibsuff=
15925     ;;
15926   *)
15927     case $LD in # libtool.m4 will add one of these switches to LD
15928     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15929       libsuff= shlibsuff= libmagic=32-bit;;
15930     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15931       libsuff=32 shlibsuff=N32 libmagic=N32;;
15932     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15933       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15934     *) libsuff= shlibsuff= libmagic=never-match;;
15935     esac
15936     ;;
15937   esac
15938   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15939   shlibpath_overrides_runpath=no
15940   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15941   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15942   hardcode_into_libs=yes
15943   ;;
15944
15945 # No shared lib support for Linux oldld, aout, or coff.
15946 linux*oldld* | linux*aout* | linux*coff*)
15947   dynamic_linker=no
15948   ;;
15949
15950 # This must be Linux ELF.
15951 linux* | k*bsd*-gnu)
15952   version_type=linux
15953   need_lib_prefix=no
15954   need_version=no
15955   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15956   soname_spec='${libname}${release}${shared_ext}$major'
15957   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15958   shlibpath_var=LD_LIBRARY_PATH
15959   shlibpath_overrides_runpath=no
15960   # This implies no fast_install, which is unacceptable.
15961   # Some rework will be needed to allow for fast_install
15962   # before this can be enabled.
15963   hardcode_into_libs=yes
15964
15965   # Append ld.so.conf contents to the search path
15966   if test -f /etc/ld.so.conf; then
15967     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' ' '`
15968     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15969   fi
15970
15971   # We used to test for /lib/ld.so.1 and disable shared libraries on
15972   # powerpc, because MkLinux only supported shared libraries with the
15973   # GNU dynamic linker.  Since this was broken with cross compilers,
15974   # most powerpc-linux boxes support dynamic linking these days and
15975   # people can always --disable-shared, the test was removed, and we
15976   # assume the GNU/Linux dynamic linker is in use.
15977   dynamic_linker='GNU/Linux ld.so'
15978   ;;
15979
15980 netbsd*)
15981   version_type=sunos
15982   need_lib_prefix=no
15983   need_version=no
15984   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15985     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15986     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15987     dynamic_linker='NetBSD (a.out) ld.so'
15988   else
15989     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15990     soname_spec='${libname}${release}${shared_ext}$major'
15991     dynamic_linker='NetBSD ld.elf_so'
15992   fi
15993   shlibpath_var=LD_LIBRARY_PATH
15994   shlibpath_overrides_runpath=yes
15995   hardcode_into_libs=yes
15996   ;;
15997
15998 newsos6)
15999   version_type=linux
16000   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16001   shlibpath_var=LD_LIBRARY_PATH
16002   shlibpath_overrides_runpath=yes
16003   ;;
16004
16005 nto-qnx*)
16006   version_type=linux
16007   need_lib_prefix=no
16008   need_version=no
16009   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16010   soname_spec='${libname}${release}${shared_ext}$major'
16011   shlibpath_var=LD_LIBRARY_PATH
16012   shlibpath_overrides_runpath=yes
16013   ;;
16014
16015 openbsd*)
16016   version_type=sunos
16017   sys_lib_dlsearch_path_spec="/usr/lib"
16018   need_lib_prefix=no
16019   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16020   case $host_os in
16021     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16022     *)                         need_version=no  ;;
16023   esac
16024   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16025   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16026   shlibpath_var=LD_LIBRARY_PATH
16027   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16028     case $host_os in
16029       openbsd2.[89] | openbsd2.[89].*)
16030         shlibpath_overrides_runpath=no
16031         ;;
16032       *)
16033         shlibpath_overrides_runpath=yes
16034         ;;
16035       esac
16036   else
16037     shlibpath_overrides_runpath=yes
16038   fi
16039   ;;
16040
16041 os2*)
16042   libname_spec='$name'
16043   shrext_cmds=".dll"
16044   need_lib_prefix=no
16045   library_names_spec='$libname${shared_ext} $libname.a'
16046   dynamic_linker='OS/2 ld.exe'
16047   shlibpath_var=LIBPATH
16048   ;;
16049
16050 osf3* | osf4* | osf5*)
16051   version_type=osf
16052   need_lib_prefix=no
16053   need_version=no
16054   soname_spec='${libname}${release}${shared_ext}$major'
16055   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16056   shlibpath_var=LD_LIBRARY_PATH
16057   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16058   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16059   ;;
16060
16061 rdos*)
16062   dynamic_linker=no
16063   ;;
16064
16065 solaris*)
16066   version_type=linux
16067   need_lib_prefix=no
16068   need_version=no
16069   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16070   soname_spec='${libname}${release}${shared_ext}$major'
16071   shlibpath_var=LD_LIBRARY_PATH
16072   shlibpath_overrides_runpath=yes
16073   hardcode_into_libs=yes
16074   # ldd complains unless libraries are executable
16075   postinstall_cmds='chmod +x $lib'
16076   ;;
16077
16078 sunos4*)
16079   version_type=sunos
16080   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16081   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16082   shlibpath_var=LD_LIBRARY_PATH
16083   shlibpath_overrides_runpath=yes
16084   if test "$with_gnu_ld" = yes; then
16085     need_lib_prefix=no
16086   fi
16087   need_version=yes
16088   ;;
16089
16090 sysv4 | sysv4.3*)
16091   version_type=linux
16092   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16093   soname_spec='${libname}${release}${shared_ext}$major'
16094   shlibpath_var=LD_LIBRARY_PATH
16095   case $host_vendor in
16096     sni)
16097       shlibpath_overrides_runpath=no
16098       need_lib_prefix=no
16099       export_dynamic_flag_spec='${wl}-Blargedynsym'
16100       runpath_var=LD_RUN_PATH
16101       ;;
16102     siemens)
16103       need_lib_prefix=no
16104       ;;
16105     motorola)
16106       need_lib_prefix=no
16107       need_version=no
16108       shlibpath_overrides_runpath=no
16109       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16110       ;;
16111   esac
16112   ;;
16113
16114 sysv4*MP*)
16115   if test -d /usr/nec ;then
16116     version_type=linux
16117     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16118     soname_spec='$libname${shared_ext}.$major'
16119     shlibpath_var=LD_LIBRARY_PATH
16120   fi
16121   ;;
16122
16123 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16124   version_type=freebsd-elf
16125   need_lib_prefix=no
16126   need_version=no
16127   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16128   soname_spec='${libname}${release}${shared_ext}$major'
16129   shlibpath_var=LD_LIBRARY_PATH
16130   hardcode_into_libs=yes
16131   if test "$with_gnu_ld" = yes; then
16132     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16133     shlibpath_overrides_runpath=no
16134   else
16135     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16136     shlibpath_overrides_runpath=yes
16137     case $host_os in
16138       sco3.2v5*)
16139         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16140         ;;
16141     esac
16142   fi
16143   sys_lib_dlsearch_path_spec='/usr/lib'
16144   ;;
16145
16146 uts4*)
16147   version_type=linux
16148   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16149   soname_spec='${libname}${release}${shared_ext}$major'
16150   shlibpath_var=LD_LIBRARY_PATH
16151   ;;
16152
16153 *)
16154   dynamic_linker=no
16155   ;;
16156 esac
16157 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16158 echo "${ECHO_T}$dynamic_linker" >&6; }
16159 test "$dynamic_linker" = no && can_build_shared=no
16160
16161 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16162   echo $ECHO_N "(cached) $ECHO_C" >&6
16163 else
16164   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16165 fi
16166
16167 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16168 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16169   echo $ECHO_N "(cached) $ECHO_C" >&6
16170 else
16171   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16172 fi
16173
16174 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16175
16176 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16177 if test "$GCC" = yes; then
16178   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16179 fi
16180
16181 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16182 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16183 hardcode_action_F77=
16184 if test -n "$hardcode_libdir_flag_spec_F77" || \
16185    test -n "$runpath_var_F77" || \
16186    test "X$hardcode_automatic_F77" = "Xyes" ; then
16187
16188   # We can hardcode non-existant directories.
16189   if test "$hardcode_direct_F77" != no &&
16190      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16191      # have to relink, otherwise we might link with an installed library
16192      # when we should be linking with a yet-to-be-installed one
16193      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16194      test "$hardcode_minus_L_F77" != no; then
16195     # Linking always hardcodes the temporary library directory.
16196     hardcode_action_F77=relink
16197   else
16198     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16199     hardcode_action_F77=immediate
16200   fi
16201 else
16202   # We cannot hardcode anything, or else we can only hardcode existing
16203   # directories.
16204   hardcode_action_F77=unsupported
16205 fi
16206 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16207 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16208
16209 if test "$hardcode_action_F77" = relink; then
16210   # Fast installation is not supported
16211   enable_fast_install=no
16212 elif test "$shlibpath_overrides_runpath" = yes ||
16213      test "$enable_shared" = no; then
16214   # Fast installation is not necessary
16215   enable_fast_install=needless
16216 fi
16217
16218
16219 # The else clause should only fire when bootstrapping the
16220 # libtool distribution, otherwise you forgot to ship ltmain.sh
16221 # with your package, and you will get complaints that there are
16222 # no rules to generate ltmain.sh.
16223 if test -f "$ltmain"; then
16224   # See if we are running on zsh, and set the options which allow our commands through
16225   # without removal of \ escapes.
16226   if test -n "${ZSH_VERSION+set}" ; then
16227     setopt NO_GLOB_SUBST
16228   fi
16229   # Now quote all the things that may contain metacharacters while being
16230   # careful not to overquote the AC_SUBSTed values.  We take copies of the
16231   # variables and quote the copies for generation of the libtool script.
16232   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16233     SED SHELL STRIP \
16234     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16235     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16236     deplibs_check_method reload_flag reload_cmds need_locks \
16237     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16238     lt_cv_sys_global_symbol_to_c_name_address \
16239     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16240     old_postinstall_cmds old_postuninstall_cmds \
16241     compiler_F77 \
16242     CC_F77 \
16243     LD_F77 \
16244     lt_prog_compiler_wl_F77 \
16245     lt_prog_compiler_pic_F77 \
16246     lt_prog_compiler_static_F77 \
16247     lt_prog_compiler_no_builtin_flag_F77 \
16248     export_dynamic_flag_spec_F77 \
16249     thread_safe_flag_spec_F77 \
16250     whole_archive_flag_spec_F77 \
16251     enable_shared_with_static_runtimes_F77 \
16252     old_archive_cmds_F77 \
16253     old_archive_from_new_cmds_F77 \
16254     predep_objects_F77 \
16255     postdep_objects_F77 \
16256     predeps_F77 \
16257     postdeps_F77 \
16258     compiler_lib_search_path_F77 \
16259     compiler_lib_search_dirs_F77 \
16260     archive_cmds_F77 \
16261     archive_expsym_cmds_F77 \
16262     postinstall_cmds_F77 \
16263     postuninstall_cmds_F77 \
16264     old_archive_from_expsyms_cmds_F77 \
16265     allow_undefined_flag_F77 \
16266     no_undefined_flag_F77 \
16267     export_symbols_cmds_F77 \
16268     hardcode_libdir_flag_spec_F77 \
16269     hardcode_libdir_flag_spec_ld_F77 \
16270     hardcode_libdir_separator_F77 \
16271     hardcode_automatic_F77 \
16272     module_cmds_F77 \
16273     module_expsym_cmds_F77 \
16274     lt_cv_prog_compiler_c_o_F77 \
16275     fix_srcfile_path_F77 \
16276     exclude_expsyms_F77 \
16277     include_expsyms_F77; do
16278
16279     case $var in
16280     old_archive_cmds_F77 | \
16281     old_archive_from_new_cmds_F77 | \
16282     archive_cmds_F77 | \
16283     archive_expsym_cmds_F77 | \
16284     module_cmds_F77 | \
16285     module_expsym_cmds_F77 | \
16286     old_archive_from_expsyms_cmds_F77 | \
16287     export_symbols_cmds_F77 | \
16288     extract_expsyms_cmds | reload_cmds | finish_cmds | \
16289     postinstall_cmds | postuninstall_cmds | \
16290     old_postinstall_cmds | old_postuninstall_cmds | \
16291     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16292       # Double-quote double-evaled strings.
16293       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16294       ;;
16295     *)
16296       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16297       ;;
16298     esac
16299   done
16300
16301   case $lt_echo in
16302   *'\$0 --fallback-echo"')
16303     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16304     ;;
16305   esac
16306
16307 cfgfile="$ofile"
16308
16309   cat <<__EOF__ >> "$cfgfile"
16310 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16311
16312 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16313
16314 # Shell to use when invoking shell scripts.
16315 SHELL=$lt_SHELL
16316
16317 # Whether or not to build shared libraries.
16318 build_libtool_libs=$enable_shared
16319
16320 # Whether or not to build static libraries.
16321 build_old_libs=$enable_static
16322
16323 # Whether or not to add -lc for building shared libraries.
16324 build_libtool_need_lc=$archive_cmds_need_lc_F77
16325
16326 # Whether or not to disallow shared libs when runtime libs are static
16327 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16328
16329 # Whether or not to optimize for fast installation.
16330 fast_install=$enable_fast_install
16331
16332 # The host system.
16333 host_alias=$host_alias
16334 host=$host
16335 host_os=$host_os
16336
16337 # The build system.
16338 build_alias=$build_alias
16339 build=$build
16340 build_os=$build_os
16341
16342 # An echo program that does not interpret backslashes.
16343 echo=$lt_echo
16344
16345 # The archiver.
16346 AR=$lt_AR
16347 AR_FLAGS=$lt_AR_FLAGS
16348
16349 # A C compiler.
16350 LTCC=$lt_LTCC
16351
16352 # LTCC compiler flags.
16353 LTCFLAGS=$lt_LTCFLAGS
16354
16355 # A language-specific compiler.
16356 CC=$lt_compiler_F77
16357
16358 # Is the compiler the GNU C compiler?
16359 with_gcc=$GCC_F77
16360
16361 # An ERE matcher.
16362 EGREP=$lt_EGREP
16363
16364 # The linker used to build libraries.
16365 LD=$lt_LD_F77
16366
16367 # Whether we need hard or soft links.
16368 LN_S=$lt_LN_S
16369
16370 # A BSD-compatible nm program.
16371 NM=$lt_NM
16372
16373 # A symbol stripping program
16374 STRIP=$lt_STRIP
16375
16376 # Used to examine libraries when file_magic_cmd begins "file"
16377 MAGIC_CMD=$MAGIC_CMD
16378
16379 # Used on cygwin: DLL creation program.
16380 DLLTOOL="$DLLTOOL"
16381
16382 # Used on cygwin: object dumper.
16383 OBJDUMP="$OBJDUMP"
16384
16385 # Used on cygwin: assembler.
16386 AS="$AS"
16387
16388 # The name of the directory that contains temporary libtool files.
16389 objdir=$objdir
16390
16391 # How to create reloadable object files.
16392 reload_flag=$lt_reload_flag
16393 reload_cmds=$lt_reload_cmds
16394
16395 # How to pass a linker flag through the compiler.
16396 wl=$lt_lt_prog_compiler_wl_F77
16397
16398 # Object file suffix (normally "o").
16399 objext="$ac_objext"
16400
16401 # Old archive suffix (normally "a").
16402 libext="$libext"
16403
16404 # Shared library suffix (normally ".so").
16405 shrext_cmds='$shrext_cmds'
16406
16407 # Executable file suffix (normally "").
16408 exeext="$exeext"
16409
16410 # Additional compiler flags for building library objects.
16411 pic_flag=$lt_lt_prog_compiler_pic_F77
16412 pic_mode=$pic_mode
16413
16414 # What is the maximum length of a command?
16415 max_cmd_len=$lt_cv_sys_max_cmd_len
16416
16417 # Does compiler simultaneously support -c and -o options?
16418 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16419
16420 # Must we lock files when doing compilation?
16421 need_locks=$lt_need_locks
16422
16423 # Do we need the lib prefix for modules?
16424 need_lib_prefix=$need_lib_prefix
16425
16426 # Do we need a version for libraries?
16427 need_version=$need_version
16428
16429 # Whether dlopen is supported.
16430 dlopen_support=$enable_dlopen
16431
16432 # Whether dlopen of programs is supported.
16433 dlopen_self=$enable_dlopen_self
16434
16435 # Whether dlopen of statically linked programs is supported.
16436 dlopen_self_static=$enable_dlopen_self_static
16437
16438 # Compiler flag to prevent dynamic linking.
16439 link_static_flag=$lt_lt_prog_compiler_static_F77
16440
16441 # Compiler flag to turn off builtin functions.
16442 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16443
16444 # Compiler flag to allow reflexive dlopens.
16445 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16446
16447 # Compiler flag to generate shared objects directly from archives.
16448 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16449
16450 # Compiler flag to generate thread-safe objects.
16451 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16452
16453 # Library versioning type.
16454 version_type=$version_type
16455
16456 # Format of library name prefix.
16457 libname_spec=$lt_libname_spec
16458
16459 # List of archive names.  First name is the real one, the rest are links.
16460 # The last name is the one that the linker finds with -lNAME.
16461 library_names_spec=$lt_library_names_spec
16462
16463 # The coded name of the library, if different from the real name.
16464 soname_spec=$lt_soname_spec
16465
16466 # Commands used to build and install an old-style archive.
16467 RANLIB=$lt_RANLIB
16468 old_archive_cmds=$lt_old_archive_cmds_F77
16469 old_postinstall_cmds=$lt_old_postinstall_cmds
16470 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16471
16472 # Create an old-style archive from a shared archive.
16473 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16474
16475 # Create a temporary old-style archive to link instead of a shared archive.
16476 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16477
16478 # Commands used to build and install a shared archive.
16479 archive_cmds=$lt_archive_cmds_F77
16480 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16481 postinstall_cmds=$lt_postinstall_cmds
16482 postuninstall_cmds=$lt_postuninstall_cmds
16483
16484 # Commands used to build a loadable module (assumed same as above if empty)
16485 module_cmds=$lt_module_cmds_F77
16486 module_expsym_cmds=$lt_module_expsym_cmds_F77
16487
16488 # Commands to strip libraries.
16489 old_striplib=$lt_old_striplib
16490 striplib=$lt_striplib
16491
16492 # Dependencies to place before the objects being linked to create a
16493 # shared library.
16494 predep_objects=$lt_predep_objects_F77
16495
16496 # Dependencies to place after the objects being linked to create a
16497 # shared library.
16498 postdep_objects=$lt_postdep_objects_F77
16499
16500 # Dependencies to place before the objects being linked to create a
16501 # shared library.
16502 predeps=$lt_predeps_F77
16503
16504 # Dependencies to place after the objects being linked to create a
16505 # shared library.
16506 postdeps=$lt_postdeps_F77
16507
16508 # The directories searched by this compiler when creating a shared
16509 # library
16510 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16511
16512 # The library search path used internally by the compiler when linking
16513 # a shared library.
16514 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16515
16516 # Method to check whether dependent libraries are shared objects.
16517 deplibs_check_method=$lt_deplibs_check_method
16518
16519 # Command to use when deplibs_check_method == file_magic.
16520 file_magic_cmd=$lt_file_magic_cmd
16521
16522 # Flag that allows shared libraries with undefined symbols to be built.
16523 allow_undefined_flag=$lt_allow_undefined_flag_F77
16524
16525 # Flag that forces no undefined symbols.
16526 no_undefined_flag=$lt_no_undefined_flag_F77
16527
16528 # Commands used to finish a libtool library installation in a directory.
16529 finish_cmds=$lt_finish_cmds
16530
16531 # Same as above, but a single script fragment to be evaled but not shown.
16532 finish_eval=$lt_finish_eval
16533
16534 # Take the output of nm and produce a listing of raw symbols and C names.
16535 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16536
16537 # Transform the output of nm in a proper C declaration
16538 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16539
16540 # Transform the output of nm in a C name address pair
16541 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16542
16543 # This is the shared library runtime path variable.
16544 runpath_var=$runpath_var
16545
16546 # This is the shared library path variable.
16547 shlibpath_var=$shlibpath_var
16548
16549 # Is shlibpath searched before the hard-coded library search path?
16550 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16551
16552 # How to hardcode a shared library path into an executable.
16553 hardcode_action=$hardcode_action_F77
16554
16555 # Whether we should hardcode library paths into libraries.
16556 hardcode_into_libs=$hardcode_into_libs
16557
16558 # Flag to hardcode \$libdir into a binary during linking.
16559 # This must work even if \$libdir does not exist.
16560 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16561
16562 # If ld is used when linking, flag to hardcode \$libdir into
16563 # a binary during linking. This must work even if \$libdir does
16564 # not exist.
16565 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16566
16567 # Whether we need a single -rpath flag with a separated argument.
16568 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16569
16570 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16571 # resulting binary.
16572 hardcode_direct=$hardcode_direct_F77
16573
16574 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16575 # resulting binary.
16576 hardcode_minus_L=$hardcode_minus_L_F77
16577
16578 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16579 # the resulting binary.
16580 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16581
16582 # Set to yes if building a shared library automatically hardcodes DIR into the library
16583 # and all subsequent libraries and executables linked against it.
16584 hardcode_automatic=$hardcode_automatic_F77
16585
16586 # Variables whose values should be saved in libtool wrapper scripts and
16587 # restored at relink time.
16588 variables_saved_for_relink="$variables_saved_for_relink"
16589
16590 # Whether libtool must link a program against all its dependency libraries.
16591 link_all_deplibs=$link_all_deplibs_F77
16592
16593 # Compile-time system search path for libraries
16594 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16595
16596 # Run-time system search path for libraries
16597 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16598
16599 # Fix the shell variable \$srcfile for the compiler.
16600 fix_srcfile_path=$lt_fix_srcfile_path
16601
16602 # Set to yes if exported symbols are required.
16603 always_export_symbols=$always_export_symbols_F77
16604
16605 # The commands to list exported symbols.
16606 export_symbols_cmds=$lt_export_symbols_cmds_F77
16607
16608 # The commands to extract the exported symbol list from a shared archive.
16609 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16610
16611 # Symbols that should not be listed in the preloaded symbols.
16612 exclude_expsyms=$lt_exclude_expsyms_F77
16613
16614 # Symbols that must always be exported.
16615 include_expsyms=$lt_include_expsyms_F77
16616
16617 # ### END LIBTOOL TAG CONFIG: $tagname
16618
16619 __EOF__
16620
16621
16622 else
16623   # If there is no Makefile yet, we rely on a make rule to execute
16624   # `config.status --recheck' to rerun these tests and create the
16625   # libtool script then.
16626   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16627   if test -f "$ltmain_in"; then
16628     test -f Makefile && make "$ltmain"
16629   fi
16630 fi
16631
16632
16633 ac_ext=c
16634 ac_cpp='$CPP $CPPFLAGS'
16635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16638
16639 CC="$lt_save_CC"
16640
16641         else
16642           tagname=""
16643         fi
16644         ;;
16645
16646       GCJ)
16647         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16648
16649
16650 # Source file extension for Java test sources.
16651 ac_ext=java
16652
16653 # Object file extension for compiled Java test sources.
16654 objext=o
16655 objext_GCJ=$objext
16656
16657 # Code to be used in simple compile tests
16658 lt_simple_compile_test_code="class foo {}"
16659
16660 # Code to be used in simple link tests
16661 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16662
16663 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16664
16665 # If no C compiler was specified, use CC.
16666 LTCC=${LTCC-"$CC"}
16667
16668 # If no C compiler flags were specified, use CFLAGS.
16669 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16670
16671 # Allow CC to be a program name with arguments.
16672 compiler=$CC
16673
16674
16675 # save warnings/boilerplate of simple test code
16676 ac_outfile=conftest.$ac_objext
16677 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16678 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16679 _lt_compiler_boilerplate=`cat conftest.err`
16680 $rm conftest*
16681
16682 ac_outfile=conftest.$ac_objext
16683 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16684 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16685 _lt_linker_boilerplate=`cat conftest.err`
16686 $rm -r conftest*
16687
16688
16689 # Allow CC to be a program name with arguments.
16690 lt_save_CC="$CC"
16691 CC=${GCJ-"gcj"}
16692 compiler=$CC
16693 compiler_GCJ=$CC
16694 for cc_temp in $compiler""; do
16695   case $cc_temp in
16696     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16697     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16698     \-*) ;;
16699     *) break;;
16700   esac
16701 done
16702 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16703
16704
16705 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16706 archive_cmds_need_lc_GCJ=no
16707
16708 old_archive_cmds_GCJ=$old_archive_cmds
16709
16710
16711 lt_prog_compiler_no_builtin_flag_GCJ=
16712
16713 if test "$GCC" = yes; then
16714   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16715
16716
16717 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16718 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16719 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16720   echo $ECHO_N "(cached) $ECHO_C" >&6
16721 else
16722   lt_cv_prog_compiler_rtti_exceptions=no
16723   ac_outfile=conftest.$ac_objext
16724    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16725    lt_compiler_flag="-fno-rtti -fno-exceptions"
16726    # Insert the option either (1) after the last *FLAGS variable, or
16727    # (2) before a word containing "conftest.", or (3) at the end.
16728    # Note that $ac_compile itself does not contain backslashes and begins
16729    # with a dollar sign (not a hyphen), so the echo should work correctly.
16730    # The option is referenced via a variable to avoid confusing sed.
16731    lt_compile=`echo "$ac_compile" | $SED \
16732    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16733    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16734    -e 's:$: $lt_compiler_flag:'`
16735    (eval echo "\"\$as_me:16735: $lt_compile\"" >&5)
16736    (eval "$lt_compile" 2>conftest.err)
16737    ac_status=$?
16738    cat conftest.err >&5
16739    echo "$as_me:16739: \$? = $ac_status" >&5
16740    if (exit $ac_status) && test -s "$ac_outfile"; then
16741      # The compiler can only warn and ignore the option if not recognized
16742      # So say no if there are warnings other than the usual output.
16743      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16744      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16745      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16746        lt_cv_prog_compiler_rtti_exceptions=yes
16747      fi
16748    fi
16749    $rm conftest*
16750
16751 fi
16752 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16753 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16754
16755 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16756     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16757 else
16758     :
16759 fi
16760
16761 fi
16762
16763 lt_prog_compiler_wl_GCJ=
16764 lt_prog_compiler_pic_GCJ=
16765 lt_prog_compiler_static_GCJ=
16766
16767 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16768 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16769
16770   if test "$GCC" = yes; then
16771     lt_prog_compiler_wl_GCJ='-Wl,'
16772     lt_prog_compiler_static_GCJ='-static'
16773
16774     case $host_os in
16775       aix*)
16776       # All AIX code is PIC.
16777       if test "$host_cpu" = ia64; then
16778         # AIX 5 now supports IA64 processor
16779         lt_prog_compiler_static_GCJ='-Bstatic'
16780       fi
16781       ;;
16782
16783     amigaos*)
16784       # FIXME: we need at least 68020 code to build shared libraries, but
16785       # adding the `-m68020' flag to GCC prevents building anything better,
16786       # like `-m68040'.
16787       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16788       ;;
16789
16790     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16791       # PIC is the default for these OSes.
16792       ;;
16793
16794     mingw* | cygwin* | pw32* | os2*)
16795       # This hack is so that the source file can tell whether it is being
16796       # built for inclusion in a dll (and should export symbols for example).
16797       # Although the cygwin gcc ignores -fPIC, still need this for old-style
16798       # (--disable-auto-import) libraries
16799
16800       ;;
16801
16802     darwin* | rhapsody*)
16803       # PIC is the default on this platform
16804       # Common symbols not allowed in MH_DYLIB files
16805       lt_prog_compiler_pic_GCJ='-fno-common'
16806       ;;
16807
16808     interix[3-9]*)
16809       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16810       # Instead, we relocate shared libraries at runtime.
16811       ;;
16812
16813     msdosdjgpp*)
16814       # Just because we use GCC doesn't mean we suddenly get shared libraries
16815       # on systems that don't support them.
16816       lt_prog_compiler_can_build_shared_GCJ=no
16817       enable_shared=no
16818       ;;
16819
16820     sysv4*MP*)
16821       if test -d /usr/nec; then
16822         lt_prog_compiler_pic_GCJ=-Kconform_pic
16823       fi
16824       ;;
16825
16826     hpux*)
16827       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16828       # not for PA HP-UX.
16829       case $host_cpu in
16830       hppa*64*|ia64*)
16831         # +Z the default
16832         ;;
16833       *)
16834         lt_prog_compiler_pic_GCJ='-fPIC'
16835         ;;
16836       esac
16837       ;;
16838
16839     *)
16840       lt_prog_compiler_pic_GCJ='-fPIC'
16841       ;;
16842     esac
16843   else
16844     # PORTME Check for flag to pass linker flags through the system compiler.
16845     case $host_os in
16846     aix*)
16847       lt_prog_compiler_wl_GCJ='-Wl,'
16848       if test "$host_cpu" = ia64; then
16849         # AIX 5 now supports IA64 processor
16850         lt_prog_compiler_static_GCJ='-Bstatic'
16851       else
16852         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16853       fi
16854       ;;
16855       darwin*)
16856         # PIC is the default on this platform
16857         # Common symbols not allowed in MH_DYLIB files
16858        case $cc_basename in
16859          xlc*)
16860          lt_prog_compiler_pic_GCJ='-qnocommon'
16861          lt_prog_compiler_wl_GCJ='-Wl,'
16862          ;;
16863        esac
16864        ;;
16865
16866     mingw* | cygwin* | pw32* | os2*)
16867       # This hack is so that the source file can tell whether it is being
16868       # built for inclusion in a dll (and should export symbols for example).
16869
16870       ;;
16871
16872     hpux9* | hpux10* | hpux11*)
16873       lt_prog_compiler_wl_GCJ='-Wl,'
16874       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16875       # not for PA HP-UX.
16876       case $host_cpu in
16877       hppa*64*|ia64*)
16878         # +Z the default
16879         ;;
16880       *)
16881         lt_prog_compiler_pic_GCJ='+Z'
16882         ;;
16883       esac
16884       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16885       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16886       ;;
16887
16888     irix5* | irix6* | nonstopux*)
16889       lt_prog_compiler_wl_GCJ='-Wl,'
16890       # PIC (with -KPIC) is the default.
16891       lt_prog_compiler_static_GCJ='-non_shared'
16892       ;;
16893
16894     newsos6)
16895       lt_prog_compiler_pic_GCJ='-KPIC'
16896       lt_prog_compiler_static_GCJ='-Bstatic'
16897       ;;
16898
16899     linux* | k*bsd*-gnu)
16900       case $cc_basename in
16901       icc* | ecc*)
16902         lt_prog_compiler_wl_GCJ='-Wl,'
16903         lt_prog_compiler_pic_GCJ='-KPIC'
16904         lt_prog_compiler_static_GCJ='-static'
16905         ;;
16906       pgcc* | pgf77* | pgf90* | pgf95*)
16907         # Portland Group compilers (*not* the Pentium gcc compiler,
16908         # which looks to be a dead project)
16909         lt_prog_compiler_wl_GCJ='-Wl,'
16910         lt_prog_compiler_pic_GCJ='-fpic'
16911         lt_prog_compiler_static_GCJ='-Bstatic'
16912         ;;
16913       ccc*)
16914         lt_prog_compiler_wl_GCJ='-Wl,'
16915         # All Alpha code is PIC.
16916         lt_prog_compiler_static_GCJ='-non_shared'
16917         ;;
16918       *)
16919         case `$CC -V 2>&1 | sed 5q` in
16920         *Sun\ C*)
16921           # Sun C 5.9
16922           lt_prog_compiler_pic_GCJ='-KPIC'
16923           lt_prog_compiler_static_GCJ='-Bstatic'
16924           lt_prog_compiler_wl_GCJ='-Wl,'
16925           ;;
16926         *Sun\ F*)
16927           # Sun Fortran 8.3 passes all unrecognized flags to the linker
16928           lt_prog_compiler_pic_GCJ='-KPIC'
16929           lt_prog_compiler_static_GCJ='-Bstatic'
16930           lt_prog_compiler_wl_GCJ=''
16931           ;;
16932         esac
16933         ;;
16934       esac
16935       ;;
16936
16937     osf3* | osf4* | osf5*)
16938       lt_prog_compiler_wl_GCJ='-Wl,'
16939       # All OSF/1 code is PIC.
16940       lt_prog_compiler_static_GCJ='-non_shared'
16941       ;;
16942
16943     rdos*)
16944       lt_prog_compiler_static_GCJ='-non_shared'
16945       ;;
16946
16947     solaris*)
16948       lt_prog_compiler_pic_GCJ='-KPIC'
16949       lt_prog_compiler_static_GCJ='-Bstatic'
16950       case $cc_basename in
16951       f77* | f90* | f95*)
16952         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16953       *)
16954         lt_prog_compiler_wl_GCJ='-Wl,';;
16955       esac
16956       ;;
16957
16958     sunos4*)
16959       lt_prog_compiler_wl_GCJ='-Qoption ld '
16960       lt_prog_compiler_pic_GCJ='-PIC'
16961       lt_prog_compiler_static_GCJ='-Bstatic'
16962       ;;
16963
16964     sysv4 | sysv4.2uw2* | sysv4.3*)
16965       lt_prog_compiler_wl_GCJ='-Wl,'
16966       lt_prog_compiler_pic_GCJ='-KPIC'
16967       lt_prog_compiler_static_GCJ='-Bstatic'
16968       ;;
16969
16970     sysv4*MP*)
16971       if test -d /usr/nec ;then
16972         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16973         lt_prog_compiler_static_GCJ='-Bstatic'
16974       fi
16975       ;;
16976
16977     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16978       lt_prog_compiler_wl_GCJ='-Wl,'
16979       lt_prog_compiler_pic_GCJ='-KPIC'
16980       lt_prog_compiler_static_GCJ='-Bstatic'
16981       ;;
16982
16983     unicos*)
16984       lt_prog_compiler_wl_GCJ='-Wl,'
16985       lt_prog_compiler_can_build_shared_GCJ=no
16986       ;;
16987
16988     uts4*)
16989       lt_prog_compiler_pic_GCJ='-pic'
16990       lt_prog_compiler_static_GCJ='-Bstatic'
16991       ;;
16992
16993     *)
16994       lt_prog_compiler_can_build_shared_GCJ=no
16995       ;;
16996     esac
16997   fi
16998
16999 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17000 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17001
17002 #
17003 # Check to make sure the PIC flag actually works.
17004 #
17005 if test -n "$lt_prog_compiler_pic_GCJ"; then
17006
17007 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17008 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17009 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17010   echo $ECHO_N "(cached) $ECHO_C" >&6
17011 else
17012   lt_cv_prog_compiler_pic_works_GCJ=no
17013   ac_outfile=conftest.$ac_objext
17014    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17015    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17016    # Insert the option either (1) after the last *FLAGS variable, or
17017    # (2) before a word containing "conftest.", or (3) at the end.
17018    # Note that $ac_compile itself does not contain backslashes and begins
17019    # with a dollar sign (not a hyphen), so the echo should work correctly.
17020    # The option is referenced via a variable to avoid confusing sed.
17021    lt_compile=`echo "$ac_compile" | $SED \
17022    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17023    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17024    -e 's:$: $lt_compiler_flag:'`
17025    (eval echo "\"\$as_me:17025: $lt_compile\"" >&5)
17026    (eval "$lt_compile" 2>conftest.err)
17027    ac_status=$?
17028    cat conftest.err >&5
17029    echo "$as_me:17029: \$? = $ac_status" >&5
17030    if (exit $ac_status) && test -s "$ac_outfile"; then
17031      # The compiler can only warn and ignore the option if not recognized
17032      # So say no if there are warnings other than the usual output.
17033      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17034      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17035      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17036        lt_cv_prog_compiler_pic_works_GCJ=yes
17037      fi
17038    fi
17039    $rm conftest*
17040
17041 fi
17042 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17043 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17044
17045 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17046     case $lt_prog_compiler_pic_GCJ in
17047      "" | " "*) ;;
17048      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17049      esac
17050 else
17051     lt_prog_compiler_pic_GCJ=
17052      lt_prog_compiler_can_build_shared_GCJ=no
17053 fi
17054
17055 fi
17056 case $host_os in
17057   # For platforms which do not support PIC, -DPIC is meaningless:
17058   *djgpp*)
17059     lt_prog_compiler_pic_GCJ=
17060     ;;
17061   *)
17062     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17063     ;;
17064 esac
17065
17066 #
17067 # Check to make sure the static flag actually works.
17068 #
17069 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17070 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17071 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17072 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17073   echo $ECHO_N "(cached) $ECHO_C" >&6
17074 else
17075   lt_cv_prog_compiler_static_works_GCJ=no
17076    save_LDFLAGS="$LDFLAGS"
17077    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17078    echo "$lt_simple_link_test_code" > conftest.$ac_ext
17079    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17080      # The linker can only warn and ignore the option if not recognized
17081      # So say no if there are warnings
17082      if test -s conftest.err; then
17083        # Append any errors to the config.log.
17084        cat conftest.err 1>&5
17085        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17086        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17087        if diff conftest.exp conftest.er2 >/dev/null; then
17088          lt_cv_prog_compiler_static_works_GCJ=yes
17089        fi
17090      else
17091        lt_cv_prog_compiler_static_works_GCJ=yes
17092      fi
17093    fi
17094    $rm -r conftest*
17095    LDFLAGS="$save_LDFLAGS"
17096
17097 fi
17098 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17099 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17100
17101 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17102     :
17103 else
17104     lt_prog_compiler_static_GCJ=
17105 fi
17106
17107
17108 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17109 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17110 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17111   echo $ECHO_N "(cached) $ECHO_C" >&6
17112 else
17113   lt_cv_prog_compiler_c_o_GCJ=no
17114    $rm -r conftest 2>/dev/null
17115    mkdir conftest
17116    cd conftest
17117    mkdir out
17118    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17119
17120    lt_compiler_flag="-o out/conftest2.$ac_objext"
17121    # Insert the option either (1) after the last *FLAGS variable, or
17122    # (2) before a word containing "conftest.", or (3) at the end.
17123    # Note that $ac_compile itself does not contain backslashes and begins
17124    # with a dollar sign (not a hyphen), so the echo should work correctly.
17125    lt_compile=`echo "$ac_compile" | $SED \
17126    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17127    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17128    -e 's:$: $lt_compiler_flag:'`
17129    (eval echo "\"\$as_me:17129: $lt_compile\"" >&5)
17130    (eval "$lt_compile" 2>out/conftest.err)
17131    ac_status=$?
17132    cat out/conftest.err >&5
17133    echo "$as_me:17133: \$? = $ac_status" >&5
17134    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17135    then
17136      # The compiler can only warn and ignore the option if not recognized
17137      # So say no if there are warnings
17138      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17139      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17140      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17141        lt_cv_prog_compiler_c_o_GCJ=yes
17142      fi
17143    fi
17144    chmod u+w . 2>&5
17145    $rm conftest*
17146    # SGI C++ compiler will create directory out/ii_files/ for
17147    # template instantiation
17148    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17149    $rm out/* && rmdir out
17150    cd ..
17151    rmdir conftest
17152    $rm conftest*
17153
17154 fi
17155 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17156 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17157
17158
17159 hard_links="nottested"
17160 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17161   # do not overwrite the value of need_locks provided by the user
17162   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17163 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17164   hard_links=yes
17165   $rm conftest*
17166   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17167   touch conftest.a
17168   ln conftest.a conftest.b 2>&5 || hard_links=no
17169   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17170   { echo "$as_me:$LINENO: result: $hard_links" >&5
17171 echo "${ECHO_T}$hard_links" >&6; }
17172   if test "$hard_links" = no; then
17173     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17174 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17175     need_locks=warn
17176   fi
17177 else
17178   need_locks=no
17179 fi
17180
17181 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17182 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17183
17184   runpath_var=
17185   allow_undefined_flag_GCJ=
17186   enable_shared_with_static_runtimes_GCJ=no
17187   archive_cmds_GCJ=
17188   archive_expsym_cmds_GCJ=
17189   old_archive_From_new_cmds_GCJ=
17190   old_archive_from_expsyms_cmds_GCJ=
17191   export_dynamic_flag_spec_GCJ=
17192   whole_archive_flag_spec_GCJ=
17193   thread_safe_flag_spec_GCJ=
17194   hardcode_libdir_flag_spec_GCJ=
17195   hardcode_libdir_flag_spec_ld_GCJ=
17196   hardcode_libdir_separator_GCJ=
17197   hardcode_direct_GCJ=no
17198   hardcode_minus_L_GCJ=no
17199   hardcode_shlibpath_var_GCJ=unsupported
17200   link_all_deplibs_GCJ=unknown
17201   hardcode_automatic_GCJ=no
17202   module_cmds_GCJ=
17203   module_expsym_cmds_GCJ=
17204   always_export_symbols_GCJ=no
17205   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17206   # include_expsyms should be a list of space-separated symbols to be *always*
17207   # included in the symbol list
17208   include_expsyms_GCJ=
17209   # exclude_expsyms can be an extended regexp of symbols to exclude
17210   # it will be wrapped by ` (' and `)$', so one must not match beginning or
17211   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17212   # as well as any symbol that contains `d'.
17213   exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17214   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17215   # platforms (ab)use it in PIC code, but their linkers get confused if
17216   # the symbol is explicitly referenced.  Since portable code cannot
17217   # rely on this symbol name, it's probably fine to never include it in
17218   # preloaded symbol tables.
17219   # Exclude shared library initialization/finalization symbols.
17220   extract_expsyms_cmds=
17221   # Just being paranoid about ensuring that cc_basename is set.
17222   for cc_temp in $compiler""; do
17223   case $cc_temp in
17224     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17225     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17226     \-*) ;;
17227     *) break;;
17228   esac
17229 done
17230 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17231
17232   case $host_os in
17233   cygwin* | mingw* | pw32*)
17234     # FIXME: the MSVC++ port hasn't been tested in a loooong time
17235     # When not using gcc, we currently assume that we are using
17236     # Microsoft Visual C++.
17237     if test "$GCC" != yes; then
17238       with_gnu_ld=no
17239     fi
17240     ;;
17241   interix*)
17242     # we just hope/assume this is gcc and not c89 (= MSVC++)
17243     with_gnu_ld=yes
17244     ;;
17245   openbsd*)
17246     with_gnu_ld=no
17247     ;;
17248   esac
17249
17250   ld_shlibs_GCJ=yes
17251   if test "$with_gnu_ld" = yes; then
17252     # If archive_cmds runs LD, not CC, wlarc should be empty
17253     wlarc='${wl}'
17254
17255     # Set some defaults for GNU ld with shared library support. These
17256     # are reset later if shared libraries are not supported. Putting them
17257     # here allows them to be overridden if necessary.
17258     runpath_var=LD_RUN_PATH
17259     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17260     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17261     # ancient GNU ld didn't support --whole-archive et. al.
17262     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17263         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17264       else
17265         whole_archive_flag_spec_GCJ=
17266     fi
17267     supports_anon_versioning=no
17268     case `$LD -v 2>/dev/null` in
17269       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17270       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17271       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17272       *\ 2.11.*) ;; # other 2.11 versions
17273       *) supports_anon_versioning=yes ;;
17274     esac
17275
17276     # See if GNU ld supports shared libraries.
17277     case $host_os in
17278     aix[3-9]*)
17279       # On AIX/PPC, the GNU linker is very broken
17280       if test "$host_cpu" != ia64; then
17281         ld_shlibs_GCJ=no
17282         cat <<EOF 1>&2
17283
17284 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17285 *** to be unable to reliably create shared libraries on AIX.
17286 *** Therefore, libtool is disabling shared libraries support.  If you
17287 *** really care for shared libraries, you may want to modify your PATH
17288 *** so that a non-GNU linker is found, and then restart.
17289
17290 EOF
17291       fi
17292       ;;
17293
17294     amigaos*)
17295       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)'
17296       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17297       hardcode_minus_L_GCJ=yes
17298
17299       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17300       # that the semantics of dynamic libraries on AmigaOS, at least up
17301       # to version 4, is to share data among multiple programs linked
17302       # with the same dynamic library.  Since this doesn't match the
17303       # behavior of shared libraries on other platforms, we can't use
17304       # them.
17305       ld_shlibs_GCJ=no
17306       ;;
17307
17308     beos*)
17309       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17310         allow_undefined_flag_GCJ=unsupported
17311         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17312         # support --undefined.  This deserves some investigation.  FIXME
17313         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17314       else
17315         ld_shlibs_GCJ=no
17316       fi
17317       ;;
17318
17319     cygwin* | mingw* | pw32*)
17320       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17321       # as there is no search path for DLLs.
17322       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17323       allow_undefined_flag_GCJ=unsupported
17324       always_export_symbols_GCJ=no
17325       enable_shared_with_static_runtimes_GCJ=yes
17326       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17327
17328       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17329         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17330         # If the export-symbols file already is a .def file (1st line
17331         # is EXPORTS), use it as is; otherwise, prepend...
17332         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17333           cp $export_symbols $output_objdir/$soname.def;
17334         else
17335           echo EXPORTS > $output_objdir/$soname.def;
17336           cat $export_symbols >> $output_objdir/$soname.def;
17337         fi~
17338         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17339       else
17340         ld_shlibs_GCJ=no
17341       fi
17342       ;;
17343
17344     interix[3-9]*)
17345       hardcode_direct_GCJ=no
17346       hardcode_shlibpath_var_GCJ=no
17347       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17348       export_dynamic_flag_spec_GCJ='${wl}-E'
17349       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17350       # Instead, shared libraries are loaded at an image base (0x10000000 by
17351       # default) and relocated if they conflict, which is a slow very memory
17352       # consuming and fragmenting process.  To avoid this, we pick a random,
17353       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17354       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17355       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'
17356       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'
17357       ;;
17358
17359     gnu* | linux* | k*bsd*-gnu)
17360       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17361         tmp_addflag=
17362         case $cc_basename,$host_cpu in
17363         pgcc*)                          # Portland Group C compiler
17364           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'
17365           tmp_addflag=' $pic_flag'
17366           ;;
17367         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17368           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'
17369           tmp_addflag=' $pic_flag -Mnomain' ;;
17370         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17371           tmp_addflag=' -i_dynamic' ;;
17372         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17373           tmp_addflag=' -i_dynamic -nofor_main' ;;
17374         ifc* | ifort*)                  # Intel Fortran compiler
17375           tmp_addflag=' -nofor_main' ;;
17376         esac
17377         case `$CC -V 2>&1 | sed 5q` in
17378         *Sun\ C*)                       # Sun C 5.9
17379           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'
17380           tmp_sharedflag='-G' ;;
17381         *Sun\ F*)                       # Sun Fortran 8.3
17382           tmp_sharedflag='-G' ;;
17383         *)
17384           tmp_sharedflag='-shared' ;;
17385         esac
17386         archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17387
17388         if test $supports_anon_versioning = yes; then
17389           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17390   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17391   $echo "local: *; };" >> $output_objdir/$libname.ver~
17392           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17393         fi
17394       else
17395         ld_shlibs_GCJ=no
17396       fi
17397       ;;
17398
17399     netbsd*)
17400       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17401         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17402         wlarc=
17403       else
17404         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17405         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17406       fi
17407       ;;
17408
17409     solaris*)
17410       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17411         ld_shlibs_GCJ=no
17412         cat <<EOF 1>&2
17413
17414 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17415 *** create shared libraries on Solaris systems.  Therefore, libtool
17416 *** is disabling shared libraries support.  We urge you to upgrade GNU
17417 *** binutils to release 2.9.1 or newer.  Another option is to modify
17418 *** your PATH or compiler configuration so that the native linker is
17419 *** used, and then restart.
17420
17421 EOF
17422       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17423         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17424         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17425       else
17426         ld_shlibs_GCJ=no
17427       fi
17428       ;;
17429
17430     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17431       case `$LD -v 2>&1` in
17432         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17433         ld_shlibs_GCJ=no
17434         cat <<_LT_EOF 1>&2
17435
17436 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17437 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17438 *** is disabling shared libraries support.  We urge you to upgrade GNU
17439 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17440 *** your PATH or compiler configuration so that the native linker is
17441 *** used, and then restart.
17442
17443 _LT_EOF
17444         ;;
17445         *)
17446           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17447             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17448             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17449             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17450           else
17451             ld_shlibs_GCJ=no
17452           fi
17453         ;;
17454       esac
17455       ;;
17456
17457     sunos4*)
17458       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17459       wlarc=
17460       hardcode_direct_GCJ=yes
17461       hardcode_shlibpath_var_GCJ=no
17462       ;;
17463
17464     *)
17465       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17466         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17467         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17468       else
17469         ld_shlibs_GCJ=no
17470       fi
17471       ;;
17472     esac
17473
17474     if test "$ld_shlibs_GCJ" = no; then
17475       runpath_var=
17476       hardcode_libdir_flag_spec_GCJ=
17477       export_dynamic_flag_spec_GCJ=
17478       whole_archive_flag_spec_GCJ=
17479     fi
17480   else
17481     # PORTME fill in a description of your system's linker (not GNU ld)
17482     case $host_os in
17483     aix3*)
17484       allow_undefined_flag_GCJ=unsupported
17485       always_export_symbols_GCJ=yes
17486       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'
17487       # Note: this linker hardcodes the directories in LIBPATH if there
17488       # are no directories specified by -L.
17489       hardcode_minus_L_GCJ=yes
17490       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17491         # Neither direct hardcoding nor static linking is supported with a
17492         # broken collect2.
17493         hardcode_direct_GCJ=unsupported
17494       fi
17495       ;;
17496
17497     aix[4-9]*)
17498       if test "$host_cpu" = ia64; then
17499         # On IA64, the linker does run time linking by default, so we don't
17500         # have to do anything special.
17501         aix_use_runtimelinking=no
17502         exp_sym_flag='-Bexport'
17503         no_entry_flag=""
17504       else
17505         # If we're using GNU nm, then we don't want the "-C" option.
17506         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17507         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17508           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'
17509         else
17510           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'
17511         fi
17512         aix_use_runtimelinking=no
17513
17514         # Test if we are trying to use run time linking or normal
17515         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17516         # need to do runtime linking.
17517         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17518           for ld_flag in $LDFLAGS; do
17519           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17520             aix_use_runtimelinking=yes
17521             break
17522           fi
17523           done
17524           ;;
17525         esac
17526
17527         exp_sym_flag='-bexport'
17528         no_entry_flag='-bnoentry'
17529       fi
17530
17531       # When large executables or shared objects are built, AIX ld can
17532       # have problems creating the table of contents.  If linking a library
17533       # or program results in "error TOC overflow" add -mminimal-toc to
17534       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17535       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17536
17537       archive_cmds_GCJ=''
17538       hardcode_direct_GCJ=yes
17539       hardcode_libdir_separator_GCJ=':'
17540       link_all_deplibs_GCJ=yes
17541
17542       if test "$GCC" = yes; then
17543         case $host_os in aix4.[012]|aix4.[012].*)
17544         # We only want to do this on AIX 4.2 and lower, the check
17545         # below for broken collect2 doesn't work under 4.3+
17546           collect2name=`${CC} -print-prog-name=collect2`
17547           if test -f "$collect2name" && \
17548            strings "$collect2name" | grep resolve_lib_name >/dev/null
17549           then
17550           # We have reworked collect2
17551           :
17552           else
17553           # We have old collect2
17554           hardcode_direct_GCJ=unsupported
17555           # It fails to find uninstalled libraries when the uninstalled
17556           # path is not listed in the libpath.  Setting hardcode_minus_L
17557           # to unsupported forces relinking
17558           hardcode_minus_L_GCJ=yes
17559           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17560           hardcode_libdir_separator_GCJ=
17561           fi
17562           ;;
17563         esac
17564         shared_flag='-shared'
17565         if test "$aix_use_runtimelinking" = yes; then
17566           shared_flag="$shared_flag "'${wl}-G'
17567         fi
17568       else
17569         # not using gcc
17570         if test "$host_cpu" = ia64; then
17571         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17572         # chokes on -Wl,-G. The following line is correct:
17573           shared_flag='-G'
17574         else
17575           if test "$aix_use_runtimelinking" = yes; then
17576             shared_flag='${wl}-G'
17577           else
17578             shared_flag='${wl}-bM:SRE'
17579           fi
17580         fi
17581       fi
17582
17583       # It seems that -bexpall does not export symbols beginning with
17584       # underscore (_), so it is better to generate a list of symbols to export.
17585       always_export_symbols_GCJ=yes
17586       if test "$aix_use_runtimelinking" = yes; then
17587         # Warning - without using the other runtime loading flags (-brtl),
17588         # -berok will link without error, but may produce a broken library.
17589         allow_undefined_flag_GCJ='-berok'
17590        # Determine the default libpath from the value encoded in an empty executable.
17591        cat >conftest.$ac_ext <<_ACEOF
17592 /* confdefs.h.  */
17593 _ACEOF
17594 cat confdefs.h >>conftest.$ac_ext
17595 cat >>conftest.$ac_ext <<_ACEOF
17596 /* end confdefs.h.  */
17597
17598 int
17599 main ()
17600 {
17601
17602   ;
17603   return 0;
17604 }
17605 _ACEOF
17606 rm -f conftest.$ac_objext conftest$ac_exeext
17607 if { (ac_try="$ac_link"
17608 case "(($ac_try" in
17609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17610   *) ac_try_echo=$ac_try;;
17611 esac
17612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17613   (eval "$ac_link") 2>conftest.er1
17614   ac_status=$?
17615   grep -v '^ *+' conftest.er1 >conftest.err
17616   rm -f conftest.er1
17617   cat conftest.err >&5
17618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17619   (exit $ac_status); } && {
17620          test -z "$ac_c_werror_flag" ||
17621          test ! -s conftest.err
17622        } && test -s conftest$ac_exeext &&
17623        $as_test_x conftest$ac_exeext; then
17624
17625 lt_aix_libpath_sed='
17626     /Import File Strings/,/^$/ {
17627         /^0/ {
17628             s/^0  *\(.*\)$/\1/
17629             p
17630         }
17631     }'
17632 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17633 # Check for a 64-bit object if we didn't find anything.
17634 if test -z "$aix_libpath"; then
17635   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17636 fi
17637 else
17638   echo "$as_me: failed program was:" >&5
17639 sed 's/^/| /' conftest.$ac_ext >&5
17640
17641
17642 fi
17643
17644 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17645       conftest$ac_exeext conftest.$ac_ext
17646 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17647
17648        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17649         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"
17650        else
17651         if test "$host_cpu" = ia64; then
17652           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17653           allow_undefined_flag_GCJ="-z nodefs"
17654           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"
17655         else
17656          # Determine the default libpath from the value encoded in an empty executable.
17657          cat >conftest.$ac_ext <<_ACEOF
17658 /* confdefs.h.  */
17659 _ACEOF
17660 cat confdefs.h >>conftest.$ac_ext
17661 cat >>conftest.$ac_ext <<_ACEOF
17662 /* end confdefs.h.  */
17663
17664 int
17665 main ()
17666 {
17667
17668   ;
17669   return 0;
17670 }
17671 _ACEOF
17672 rm -f conftest.$ac_objext conftest$ac_exeext
17673 if { (ac_try="$ac_link"
17674 case "(($ac_try" in
17675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17676   *) ac_try_echo=$ac_try;;
17677 esac
17678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17679   (eval "$ac_link") 2>conftest.er1
17680   ac_status=$?
17681   grep -v '^ *+' conftest.er1 >conftest.err
17682   rm -f conftest.er1
17683   cat conftest.err >&5
17684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17685   (exit $ac_status); } && {
17686          test -z "$ac_c_werror_flag" ||
17687          test ! -s conftest.err
17688        } && test -s conftest$ac_exeext &&
17689        $as_test_x conftest$ac_exeext; then
17690
17691 lt_aix_libpath_sed='
17692     /Import File Strings/,/^$/ {
17693         /^0/ {
17694             s/^0  *\(.*\)$/\1/
17695             p
17696         }
17697     }'
17698 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17699 # Check for a 64-bit object if we didn't find anything.
17700 if test -z "$aix_libpath"; then
17701   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17702 fi
17703 else
17704   echo "$as_me: failed program was:" >&5
17705 sed 's/^/| /' conftest.$ac_ext >&5
17706
17707
17708 fi
17709
17710 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17711       conftest$ac_exeext conftest.$ac_ext
17712 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17713
17714          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17715           # Warning - without using the other run time loading flags,
17716           # -berok will link without error, but may produce a broken library.
17717           no_undefined_flag_GCJ=' ${wl}-bernotok'
17718           allow_undefined_flag_GCJ=' ${wl}-berok'
17719           # Exported symbols can be pulled into shared objects from archives
17720           whole_archive_flag_spec_GCJ='$convenience'
17721           archive_cmds_need_lc_GCJ=yes
17722           # This is similar to how AIX traditionally builds its shared libraries.
17723           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'
17724         fi
17725       fi
17726       ;;
17727
17728     amigaos*)
17729       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)'
17730       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17731       hardcode_minus_L_GCJ=yes
17732       # see comment about different semantics on the GNU ld section
17733       ld_shlibs_GCJ=no
17734       ;;
17735
17736     bsdi[45]*)
17737       export_dynamic_flag_spec_GCJ=-rdynamic
17738       ;;
17739
17740     cygwin* | mingw* | pw32*)
17741       # When not using gcc, we currently assume that we are using
17742       # Microsoft Visual C++.
17743       # hardcode_libdir_flag_spec is actually meaningless, as there is
17744       # no search path for DLLs.
17745       hardcode_libdir_flag_spec_GCJ=' '
17746       allow_undefined_flag_GCJ=unsupported
17747       # Tell ltmain to make .lib files, not .a files.
17748       libext=lib
17749       # Tell ltmain to make .dll files, not .so files.
17750       shrext_cmds=".dll"
17751       # FIXME: Setting linknames here is a bad hack.
17752       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17753       # The linker will automatically build a .lib file if we build a DLL.
17754       old_archive_From_new_cmds_GCJ='true'
17755       # FIXME: Should let the user specify the lib program.
17756       old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17757       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17758       enable_shared_with_static_runtimes_GCJ=yes
17759       ;;
17760
17761     darwin* | rhapsody*)
17762       case $host_os in
17763         rhapsody* | darwin1.[012])
17764          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17765          ;;
17766        *) # Darwin 1.3 on
17767          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17768            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17769          else
17770            case ${MACOSX_DEPLOYMENT_TARGET} in
17771              10.[012])
17772                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17773                ;;
17774              10.*)
17775                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17776                ;;
17777            esac
17778          fi
17779          ;;
17780       esac
17781       archive_cmds_need_lc_GCJ=no
17782       hardcode_direct_GCJ=no
17783       hardcode_automatic_GCJ=yes
17784       hardcode_shlibpath_var_GCJ=unsupported
17785       whole_archive_flag_spec_GCJ=''
17786       link_all_deplibs_GCJ=yes
17787     if test "$GCC" = yes ; then
17788         output_verbose_link_cmd='echo'
17789         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}"
17790         module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17791         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}"
17792         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}"
17793     else
17794       case $cc_basename in
17795         xlc*)
17796          output_verbose_link_cmd='echo'
17797          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17798          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17799           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17800          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}'
17801           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}'
17802           ;;
17803        *)
17804          ld_shlibs_GCJ=no
17805           ;;
17806       esac
17807     fi
17808       ;;
17809
17810     dgux*)
17811       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17812       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17813       hardcode_shlibpath_var_GCJ=no
17814       ;;
17815
17816     freebsd1*)
17817       ld_shlibs_GCJ=no
17818       ;;
17819
17820     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17821     # support.  Future versions do this automatically, but an explicit c++rt0.o
17822     # does not break anything, and helps significantly (at the cost of a little
17823     # extra space).
17824     freebsd2.2*)
17825       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17826       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17827       hardcode_direct_GCJ=yes
17828       hardcode_shlibpath_var_GCJ=no
17829       ;;
17830
17831     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17832     freebsd2*)
17833       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17834       hardcode_direct_GCJ=yes
17835       hardcode_minus_L_GCJ=yes
17836       hardcode_shlibpath_var_GCJ=no
17837       ;;
17838
17839     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17840     freebsd* | dragonfly*)
17841       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17842       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17843       hardcode_direct_GCJ=yes
17844       hardcode_shlibpath_var_GCJ=no
17845       ;;
17846
17847     hpux9*)
17848       if test "$GCC" = yes; then
17849         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'
17850       else
17851         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'
17852       fi
17853       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17854       hardcode_libdir_separator_GCJ=:
17855       hardcode_direct_GCJ=yes
17856
17857       # hardcode_minus_L: Not really in the search PATH,
17858       # but as the default location of the library.
17859       hardcode_minus_L_GCJ=yes
17860       export_dynamic_flag_spec_GCJ='${wl}-E'
17861       ;;
17862
17863     hpux10*)
17864       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17865         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17866       else
17867         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17868       fi
17869       if test "$with_gnu_ld" = no; then
17870         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17871         hardcode_libdir_separator_GCJ=:
17872
17873         hardcode_direct_GCJ=yes
17874         export_dynamic_flag_spec_GCJ='${wl}-E'
17875
17876         # hardcode_minus_L: Not really in the search PATH,
17877         # but as the default location of the library.
17878         hardcode_minus_L_GCJ=yes
17879       fi
17880       ;;
17881
17882     hpux11*)
17883       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17884         case $host_cpu in
17885         hppa*64*)
17886           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17887           ;;
17888         ia64*)
17889           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17890           ;;
17891         *)
17892           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17893           ;;
17894         esac
17895       else
17896         case $host_cpu in
17897         hppa*64*)
17898           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17899           ;;
17900         ia64*)
17901           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17902           ;;
17903         *)
17904           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17905           ;;
17906         esac
17907       fi
17908       if test "$with_gnu_ld" = no; then
17909         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17910         hardcode_libdir_separator_GCJ=:
17911
17912         case $host_cpu in
17913         hppa*64*|ia64*)
17914           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17915           hardcode_direct_GCJ=no
17916           hardcode_shlibpath_var_GCJ=no
17917           ;;
17918         *)
17919           hardcode_direct_GCJ=yes
17920           export_dynamic_flag_spec_GCJ='${wl}-E'
17921
17922           # hardcode_minus_L: Not really in the search PATH,
17923           # but as the default location of the library.
17924           hardcode_minus_L_GCJ=yes
17925           ;;
17926         esac
17927       fi
17928       ;;
17929
17930     irix5* | irix6* | nonstopux*)
17931       if test "$GCC" = yes; then
17932         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'
17933       else
17934         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'
17935         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17936       fi
17937       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17938       hardcode_libdir_separator_GCJ=:
17939       link_all_deplibs_GCJ=yes
17940       ;;
17941
17942     netbsd*)
17943       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17944         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17945       else
17946         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17947       fi
17948       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17949       hardcode_direct_GCJ=yes
17950       hardcode_shlibpath_var_GCJ=no
17951       ;;
17952
17953     newsos6)
17954       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17955       hardcode_direct_GCJ=yes
17956       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17957       hardcode_libdir_separator_GCJ=:
17958       hardcode_shlibpath_var_GCJ=no
17959       ;;
17960
17961     openbsd*)
17962       if test -f /usr/libexec/ld.so; then
17963         hardcode_direct_GCJ=yes
17964         hardcode_shlibpath_var_GCJ=no
17965         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17966           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17967           archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17968           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17969           export_dynamic_flag_spec_GCJ='${wl}-E'
17970         else
17971           case $host_os in
17972            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17973              archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17974              hardcode_libdir_flag_spec_GCJ='-R$libdir'
17975              ;;
17976            *)
17977              archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17978              hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17979              ;;
17980           esac
17981         fi
17982       else
17983         ld_shlibs_GCJ=no
17984       fi
17985       ;;
17986
17987     os2*)
17988       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17989       hardcode_minus_L_GCJ=yes
17990       allow_undefined_flag_GCJ=unsupported
17991       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'
17992       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17993       ;;
17994
17995     osf3*)
17996       if test "$GCC" = yes; then
17997         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17998         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'
17999       else
18000         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18001         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'
18002       fi
18003       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18004       hardcode_libdir_separator_GCJ=:
18005       ;;
18006
18007     osf4* | osf5*)      # as osf3* with the addition of -msym flag
18008       if test "$GCC" = yes; then
18009         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18010         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'
18011         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18012       else
18013         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18014         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'
18015         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~
18016         $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'
18017
18018         # Both c and cxx compiler support -rpath directly
18019         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18020       fi
18021       hardcode_libdir_separator_GCJ=:
18022       ;;
18023
18024     solaris*)
18025       no_undefined_flag_GCJ=' -z text'
18026       if test "$GCC" = yes; then
18027         wlarc='${wl}'
18028         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18029         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18030           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18031       else
18032         wlarc=''
18033         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18034         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18035         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18036       fi
18037       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18038       hardcode_shlibpath_var_GCJ=no
18039       case $host_os in
18040       solaris2.[0-5] | solaris2.[0-5].*) ;;
18041       *)
18042         # The compiler driver will combine and reorder linker options,
18043         # but understands `-z linker_flag'.  GCC discards it without `$wl',
18044         # but is careful enough not to reorder.
18045         # Supported since Solaris 2.6 (maybe 2.5.1?)
18046         if test "$GCC" = yes; then
18047           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18048         else
18049           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18050         fi
18051         ;;
18052       esac
18053       link_all_deplibs_GCJ=yes
18054       ;;
18055
18056     sunos4*)
18057       if test "x$host_vendor" = xsequent; then
18058         # Use $CC to link under sequent, because it throws in some extra .o
18059         # files that make .init and .fini sections work.
18060         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18061       else
18062         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18063       fi
18064       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18065       hardcode_direct_GCJ=yes
18066       hardcode_minus_L_GCJ=yes
18067       hardcode_shlibpath_var_GCJ=no
18068       ;;
18069
18070     sysv4)
18071       case $host_vendor in
18072         sni)
18073           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18074           hardcode_direct_GCJ=yes # is this really true???
18075         ;;
18076         siemens)
18077           ## LD is ld it makes a PLAMLIB
18078           ## CC just makes a GrossModule.
18079           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18080           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18081           hardcode_direct_GCJ=no
18082         ;;
18083         motorola)
18084           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18085           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18086         ;;
18087       esac
18088       runpath_var='LD_RUN_PATH'
18089       hardcode_shlibpath_var_GCJ=no
18090       ;;
18091
18092     sysv4.3*)
18093       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18094       hardcode_shlibpath_var_GCJ=no
18095       export_dynamic_flag_spec_GCJ='-Bexport'
18096       ;;
18097
18098     sysv4*MP*)
18099       if test -d /usr/nec; then
18100         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18101         hardcode_shlibpath_var_GCJ=no
18102         runpath_var=LD_RUN_PATH
18103         hardcode_runpath_var=yes
18104         ld_shlibs_GCJ=yes
18105       fi
18106       ;;
18107
18108     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18109       no_undefined_flag_GCJ='${wl}-z,text'
18110       archive_cmds_need_lc_GCJ=no
18111       hardcode_shlibpath_var_GCJ=no
18112       runpath_var='LD_RUN_PATH'
18113
18114       if test "$GCC" = yes; then
18115         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18116         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18117       else
18118         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18119         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18120       fi
18121       ;;
18122
18123     sysv5* | sco3.2v5* | sco5v6*)
18124       # Note: We can NOT use -z defs as we might desire, because we do not
18125       # link with -lc, and that would cause any symbols used from libc to
18126       # always be unresolved, which means just about no library would
18127       # ever link correctly.  If we're not using GNU ld we use -z text
18128       # though, which does catch some bad symbols but isn't as heavy-handed
18129       # as -z defs.
18130       no_undefined_flag_GCJ='${wl}-z,text'
18131       allow_undefined_flag_GCJ='${wl}-z,nodefs'
18132       archive_cmds_need_lc_GCJ=no
18133       hardcode_shlibpath_var_GCJ=no
18134       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18135       hardcode_libdir_separator_GCJ=':'
18136       link_all_deplibs_GCJ=yes
18137       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18138       runpath_var='LD_RUN_PATH'
18139
18140       if test "$GCC" = yes; then
18141         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18142         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18143       else
18144         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18145         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18146       fi
18147       ;;
18148
18149     uts4*)
18150       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18151       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18152       hardcode_shlibpath_var_GCJ=no
18153       ;;
18154
18155     *)
18156       ld_shlibs_GCJ=no
18157       ;;
18158     esac
18159   fi
18160
18161 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18162 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18163 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18164
18165 #
18166 # Do we need to explicitly link libc?
18167 #
18168 case "x$archive_cmds_need_lc_GCJ" in
18169 x|xyes)
18170   # Assume -lc should be added
18171   archive_cmds_need_lc_GCJ=yes
18172
18173   if test "$enable_shared" = yes && test "$GCC" = yes; then
18174     case $archive_cmds_GCJ in
18175     *'~'*)
18176       # FIXME: we may have to deal with multi-command sequences.
18177       ;;
18178     '$CC '*)
18179       # Test whether the compiler implicitly links with -lc since on some
18180       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18181       # to ld, don't add -lc before -lgcc.
18182       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18183 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18184       $rm conftest*
18185       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18186
18187       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18188   (eval $ac_compile) 2>&5
18189   ac_status=$?
18190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18191   (exit $ac_status); } 2>conftest.err; then
18192         soname=conftest
18193         lib=conftest
18194         libobjs=conftest.$ac_objext
18195         deplibs=
18196         wl=$lt_prog_compiler_wl_GCJ
18197         pic_flag=$lt_prog_compiler_pic_GCJ
18198         compiler_flags=-v
18199         linker_flags=-v
18200         verstring=
18201         output_objdir=.
18202         libname=conftest
18203         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18204         allow_undefined_flag_GCJ=
18205         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18206   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18207   ac_status=$?
18208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18209   (exit $ac_status); }
18210         then
18211           archive_cmds_need_lc_GCJ=no
18212         else
18213           archive_cmds_need_lc_GCJ=yes
18214         fi
18215         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18216       else
18217         cat conftest.err 1>&5
18218       fi
18219       $rm conftest*
18220       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18221 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18222       ;;
18223     esac
18224   fi
18225   ;;
18226 esac
18227
18228 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18229 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18230 library_names_spec=
18231 libname_spec='lib$name'
18232 soname_spec=
18233 shrext_cmds=".so"
18234 postinstall_cmds=
18235 postuninstall_cmds=
18236 finish_cmds=
18237 finish_eval=
18238 shlibpath_var=
18239 shlibpath_overrides_runpath=unknown
18240 version_type=none
18241 dynamic_linker="$host_os ld.so"
18242 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18243
18244 need_lib_prefix=unknown
18245 hardcode_into_libs=no
18246
18247 # when you set need_version to no, make sure it does not cause -set_version
18248 # flags to be left without arguments
18249 need_version=unknown
18250
18251 case $host_os in
18252 aix3*)
18253   version_type=linux
18254   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18255   shlibpath_var=LIBPATH
18256
18257   # AIX 3 has no versioning support, so we append a major version to the name.
18258   soname_spec='${libname}${release}${shared_ext}$major'
18259   ;;
18260
18261 aix[4-9]*)
18262   version_type=linux
18263   need_lib_prefix=no
18264   need_version=no
18265   hardcode_into_libs=yes
18266   if test "$host_cpu" = ia64; then
18267     # AIX 5 supports IA64
18268     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18269     shlibpath_var=LD_LIBRARY_PATH
18270   else
18271     # With GCC up to 2.95.x, collect2 would create an import file
18272     # for dependence libraries.  The import file would start with
18273     # the line `#! .'.  This would cause the generated library to
18274     # depend on `.', always an invalid library.  This was fixed in
18275     # development snapshots of GCC prior to 3.0.
18276     case $host_os in
18277       aix4 | aix4.[01] | aix4.[01].*)
18278       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18279            echo ' yes '
18280            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18281         :
18282       else
18283         can_build_shared=no
18284       fi
18285       ;;
18286     esac
18287     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18288     # soname into executable. Probably we can add versioning support to
18289     # collect2, so additional links can be useful in future.
18290     if test "$aix_use_runtimelinking" = yes; then
18291       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18292       # instead of lib<name>.a to let people know that these are not
18293       # typical AIX shared libraries.
18294       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18295     else
18296       # We preserve .a as extension for shared libraries through AIX4.2
18297       # and later when we are not doing run time linking.
18298       library_names_spec='${libname}${release}.a $libname.a'
18299       soname_spec='${libname}${release}${shared_ext}$major'
18300     fi
18301     shlibpath_var=LIBPATH
18302   fi
18303   ;;
18304
18305 amigaos*)
18306   library_names_spec='$libname.ixlibrary $libname.a'
18307   # Create ${libname}_ixlibrary.a entries in /sys/libs.
18308   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'
18309   ;;
18310
18311 beos*)
18312   library_names_spec='${libname}${shared_ext}'
18313   dynamic_linker="$host_os ld.so"
18314   shlibpath_var=LIBRARY_PATH
18315   ;;
18316
18317 bsdi[45]*)
18318   version_type=linux
18319   need_version=no
18320   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18321   soname_spec='${libname}${release}${shared_ext}$major'
18322   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18323   shlibpath_var=LD_LIBRARY_PATH
18324   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18325   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18326   # the default ld.so.conf also contains /usr/contrib/lib and
18327   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18328   # libtool to hard-code these into programs
18329   ;;
18330
18331 cygwin* | mingw* | pw32*)
18332   version_type=windows
18333   shrext_cmds=".dll"
18334   need_version=no
18335   need_lib_prefix=no
18336
18337   case $GCC,$host_os in
18338   yes,cygwin* | yes,mingw* | yes,pw32*)
18339     library_names_spec='$libname.dll.a'
18340     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18341     postinstall_cmds='base_file=`basename \${file}`~
18342       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18343       dldir=$destdir/`dirname \$dlpath`~
18344       test -d \$dldir || mkdir -p \$dldir~
18345       $install_prog $dir/$dlname \$dldir/$dlname~
18346       chmod a+x \$dldir/$dlname'
18347     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18348       dlpath=$dir/\$dldll~
18349        $rm \$dlpath'
18350     shlibpath_overrides_runpath=yes
18351
18352     case $host_os in
18353     cygwin*)
18354       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18355       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18356       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18357       ;;
18358     mingw*)
18359       # MinGW DLLs use traditional 'lib' prefix
18360       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18361       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18362       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18363         # It is most probably a Windows format PATH printed by
18364         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18365         # path with ; separators, and with drive letters. We can handle the
18366         # drive letters (cygwin fileutils understands them), so leave them,
18367         # especially as we might pass files found there to a mingw objdump,
18368         # which wouldn't understand a cygwinified path. Ahh.
18369         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18370       else
18371         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18372       fi
18373       ;;
18374     pw32*)
18375       # pw32 DLLs use 'pw' prefix rather than 'lib'
18376       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18377       ;;
18378     esac
18379     ;;
18380
18381   *)
18382     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18383     ;;
18384   esac
18385   dynamic_linker='Win32 ld.exe'
18386   # FIXME: first we should search . and the directory the executable is in
18387   shlibpath_var=PATH
18388   ;;
18389
18390 darwin* | rhapsody*)
18391   dynamic_linker="$host_os dyld"
18392   version_type=darwin
18393   need_lib_prefix=no
18394   need_version=no
18395   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18396   soname_spec='${libname}${release}${major}$shared_ext'
18397   shlibpath_overrides_runpath=yes
18398   shlibpath_var=DYLD_LIBRARY_PATH
18399   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18400
18401   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18402   ;;
18403
18404 dgux*)
18405   version_type=linux
18406   need_lib_prefix=no
18407   need_version=no
18408   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18409   soname_spec='${libname}${release}${shared_ext}$major'
18410   shlibpath_var=LD_LIBRARY_PATH
18411   ;;
18412
18413 freebsd1*)
18414   dynamic_linker=no
18415   ;;
18416
18417 freebsd* | dragonfly*)
18418   # DragonFly does not have aout.  When/if they implement a new
18419   # versioning mechanism, adjust this.
18420   if test -x /usr/bin/objformat; then
18421     objformat=`/usr/bin/objformat`
18422   else
18423     case $host_os in
18424     freebsd[123]*) objformat=aout ;;
18425     *) objformat=elf ;;
18426     esac
18427   fi
18428   version_type=freebsd-$objformat
18429   case $version_type in
18430     freebsd-elf*)
18431       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18432       need_version=no
18433       need_lib_prefix=no
18434       ;;
18435     freebsd-*)
18436       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18437       need_version=yes
18438       ;;
18439   esac
18440   shlibpath_var=LD_LIBRARY_PATH
18441   case $host_os in
18442   freebsd2*)
18443     shlibpath_overrides_runpath=yes
18444     ;;
18445   freebsd3.[01]* | freebsdelf3.[01]*)
18446     shlibpath_overrides_runpath=yes
18447     hardcode_into_libs=yes
18448     ;;
18449   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18450   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18451     shlibpath_overrides_runpath=no
18452     hardcode_into_libs=yes
18453     ;;
18454   *) # from 4.6 on, and DragonFly
18455     shlibpath_overrides_runpath=yes
18456     hardcode_into_libs=yes
18457     ;;
18458   esac
18459   ;;
18460
18461 gnu*)
18462   version_type=linux
18463   need_lib_prefix=no
18464   need_version=no
18465   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18466   soname_spec='${libname}${release}${shared_ext}$major'
18467   shlibpath_var=LD_LIBRARY_PATH
18468   hardcode_into_libs=yes
18469   ;;
18470
18471 hpux9* | hpux10* | hpux11*)
18472   # Give a soname corresponding to the major version so that dld.sl refuses to
18473   # link against other versions.
18474   version_type=sunos
18475   need_lib_prefix=no
18476   need_version=no
18477   case $host_cpu in
18478   ia64*)
18479     shrext_cmds='.so'
18480     hardcode_into_libs=yes
18481     dynamic_linker="$host_os dld.so"
18482     shlibpath_var=LD_LIBRARY_PATH
18483     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18484     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18485     soname_spec='${libname}${release}${shared_ext}$major'
18486     if test "X$HPUX_IA64_MODE" = X32; then
18487       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18488     else
18489       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18490     fi
18491     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18492     ;;
18493    hppa*64*)
18494      shrext_cmds='.sl'
18495      hardcode_into_libs=yes
18496      dynamic_linker="$host_os dld.sl"
18497      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18498      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18499      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18500      soname_spec='${libname}${release}${shared_ext}$major'
18501      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18502      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18503      ;;
18504    *)
18505     shrext_cmds='.sl'
18506     dynamic_linker="$host_os dld.sl"
18507     shlibpath_var=SHLIB_PATH
18508     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18509     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18510     soname_spec='${libname}${release}${shared_ext}$major'
18511     ;;
18512   esac
18513   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18514   postinstall_cmds='chmod 555 $lib'
18515   ;;
18516
18517 interix[3-9]*)
18518   version_type=linux
18519   need_lib_prefix=no
18520   need_version=no
18521   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18522   soname_spec='${libname}${release}${shared_ext}$major'
18523   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18524   shlibpath_var=LD_LIBRARY_PATH
18525   shlibpath_overrides_runpath=no
18526   hardcode_into_libs=yes
18527   ;;
18528
18529 irix5* | irix6* | nonstopux*)
18530   case $host_os in
18531     nonstopux*) version_type=nonstopux ;;
18532     *)
18533         if test "$lt_cv_prog_gnu_ld" = yes; then
18534                 version_type=linux
18535         else
18536                 version_type=irix
18537         fi ;;
18538   esac
18539   need_lib_prefix=no
18540   need_version=no
18541   soname_spec='${libname}${release}${shared_ext}$major'
18542   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18543   case $host_os in
18544   irix5* | nonstopux*)
18545     libsuff= shlibsuff=
18546     ;;
18547   *)
18548     case $LD in # libtool.m4 will add one of these switches to LD
18549     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18550       libsuff= shlibsuff= libmagic=32-bit;;
18551     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18552       libsuff=32 shlibsuff=N32 libmagic=N32;;
18553     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18554       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18555     *) libsuff= shlibsuff= libmagic=never-match;;
18556     esac
18557     ;;
18558   esac
18559   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18560   shlibpath_overrides_runpath=no
18561   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18562   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18563   hardcode_into_libs=yes
18564   ;;
18565
18566 # No shared lib support for Linux oldld, aout, or coff.
18567 linux*oldld* | linux*aout* | linux*coff*)
18568   dynamic_linker=no
18569   ;;
18570
18571 # This must be Linux ELF.
18572 linux* | k*bsd*-gnu)
18573   version_type=linux
18574   need_lib_prefix=no
18575   need_version=no
18576   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18577   soname_spec='${libname}${release}${shared_ext}$major'
18578   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18579   shlibpath_var=LD_LIBRARY_PATH
18580   shlibpath_overrides_runpath=no
18581   # This implies no fast_install, which is unacceptable.
18582   # Some rework will be needed to allow for fast_install
18583   # before this can be enabled.
18584   hardcode_into_libs=yes
18585
18586   # Append ld.so.conf contents to the search path
18587   if test -f /etc/ld.so.conf; then
18588     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' ' '`
18589     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18590   fi
18591
18592   # We used to test for /lib/ld.so.1 and disable shared libraries on
18593   # powerpc, because MkLinux only supported shared libraries with the
18594   # GNU dynamic linker.  Since this was broken with cross compilers,
18595   # most powerpc-linux boxes support dynamic linking these days and
18596   # people can always --disable-shared, the test was removed, and we
18597   # assume the GNU/Linux dynamic linker is in use.
18598   dynamic_linker='GNU/Linux ld.so'
18599   ;;
18600
18601 netbsd*)
18602   version_type=sunos
18603   need_lib_prefix=no
18604   need_version=no
18605   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18606     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18607     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18608     dynamic_linker='NetBSD (a.out) ld.so'
18609   else
18610     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18611     soname_spec='${libname}${release}${shared_ext}$major'
18612     dynamic_linker='NetBSD ld.elf_so'
18613   fi
18614   shlibpath_var=LD_LIBRARY_PATH
18615   shlibpath_overrides_runpath=yes
18616   hardcode_into_libs=yes
18617   ;;
18618
18619 newsos6)
18620   version_type=linux
18621   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18622   shlibpath_var=LD_LIBRARY_PATH
18623   shlibpath_overrides_runpath=yes
18624   ;;
18625
18626 nto-qnx*)
18627   version_type=linux
18628   need_lib_prefix=no
18629   need_version=no
18630   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18631   soname_spec='${libname}${release}${shared_ext}$major'
18632   shlibpath_var=LD_LIBRARY_PATH
18633   shlibpath_overrides_runpath=yes
18634   ;;
18635
18636 openbsd*)
18637   version_type=sunos
18638   sys_lib_dlsearch_path_spec="/usr/lib"
18639   need_lib_prefix=no
18640   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18641   case $host_os in
18642     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18643     *)                         need_version=no  ;;
18644   esac
18645   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18646   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18647   shlibpath_var=LD_LIBRARY_PATH
18648   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18649     case $host_os in
18650       openbsd2.[89] | openbsd2.[89].*)
18651         shlibpath_overrides_runpath=no
18652         ;;
18653       *)
18654         shlibpath_overrides_runpath=yes
18655         ;;
18656       esac
18657   else
18658     shlibpath_overrides_runpath=yes
18659   fi
18660   ;;
18661
18662 os2*)
18663   libname_spec='$name'
18664   shrext_cmds=".dll"
18665   need_lib_prefix=no
18666   library_names_spec='$libname${shared_ext} $libname.a'
18667   dynamic_linker='OS/2 ld.exe'
18668   shlibpath_var=LIBPATH
18669   ;;
18670
18671 osf3* | osf4* | osf5*)
18672   version_type=osf
18673   need_lib_prefix=no
18674   need_version=no
18675   soname_spec='${libname}${release}${shared_ext}$major'
18676   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18677   shlibpath_var=LD_LIBRARY_PATH
18678   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18679   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18680   ;;
18681
18682 rdos*)
18683   dynamic_linker=no
18684   ;;
18685
18686 solaris*)
18687   version_type=linux
18688   need_lib_prefix=no
18689   need_version=no
18690   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18691   soname_spec='${libname}${release}${shared_ext}$major'
18692   shlibpath_var=LD_LIBRARY_PATH
18693   shlibpath_overrides_runpath=yes
18694   hardcode_into_libs=yes
18695   # ldd complains unless libraries are executable
18696   postinstall_cmds='chmod +x $lib'
18697   ;;
18698
18699 sunos4*)
18700   version_type=sunos
18701   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18702   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18703   shlibpath_var=LD_LIBRARY_PATH
18704   shlibpath_overrides_runpath=yes
18705   if test "$with_gnu_ld" = yes; then
18706     need_lib_prefix=no
18707   fi
18708   need_version=yes
18709   ;;
18710
18711 sysv4 | sysv4.3*)
18712   version_type=linux
18713   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18714   soname_spec='${libname}${release}${shared_ext}$major'
18715   shlibpath_var=LD_LIBRARY_PATH
18716   case $host_vendor in
18717     sni)
18718       shlibpath_overrides_runpath=no
18719       need_lib_prefix=no
18720       export_dynamic_flag_spec='${wl}-Blargedynsym'
18721       runpath_var=LD_RUN_PATH
18722       ;;
18723     siemens)
18724       need_lib_prefix=no
18725       ;;
18726     motorola)
18727       need_lib_prefix=no
18728       need_version=no
18729       shlibpath_overrides_runpath=no
18730       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18731       ;;
18732   esac
18733   ;;
18734
18735 sysv4*MP*)
18736   if test -d /usr/nec ;then
18737     version_type=linux
18738     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18739     soname_spec='$libname${shared_ext}.$major'
18740     shlibpath_var=LD_LIBRARY_PATH
18741   fi
18742   ;;
18743
18744 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18745   version_type=freebsd-elf
18746   need_lib_prefix=no
18747   need_version=no
18748   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18749   soname_spec='${libname}${release}${shared_ext}$major'
18750   shlibpath_var=LD_LIBRARY_PATH
18751   hardcode_into_libs=yes
18752   if test "$with_gnu_ld" = yes; then
18753     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18754     shlibpath_overrides_runpath=no
18755   else
18756     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18757     shlibpath_overrides_runpath=yes
18758     case $host_os in
18759       sco3.2v5*)
18760         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18761         ;;
18762     esac
18763   fi
18764   sys_lib_dlsearch_path_spec='/usr/lib'
18765   ;;
18766
18767 uts4*)
18768   version_type=linux
18769   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18770   soname_spec='${libname}${release}${shared_ext}$major'
18771   shlibpath_var=LD_LIBRARY_PATH
18772   ;;
18773
18774 *)
18775   dynamic_linker=no
18776   ;;
18777 esac
18778 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18779 echo "${ECHO_T}$dynamic_linker" >&6; }
18780 test "$dynamic_linker" = no && can_build_shared=no
18781
18782 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18783   echo $ECHO_N "(cached) $ECHO_C" >&6
18784 else
18785   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18786 fi
18787
18788 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18789 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18790   echo $ECHO_N "(cached) $ECHO_C" >&6
18791 else
18792   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18793 fi
18794
18795 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18796
18797 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18798 if test "$GCC" = yes; then
18799   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18800 fi
18801
18802 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18803 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18804 hardcode_action_GCJ=
18805 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18806    test -n "$runpath_var_GCJ" || \
18807    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18808
18809   # We can hardcode non-existant directories.
18810   if test "$hardcode_direct_GCJ" != no &&
18811      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18812      # have to relink, otherwise we might link with an installed library
18813      # when we should be linking with a yet-to-be-installed one
18814      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18815      test "$hardcode_minus_L_GCJ" != no; then
18816     # Linking always hardcodes the temporary library directory.
18817     hardcode_action_GCJ=relink
18818   else
18819     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18820     hardcode_action_GCJ=immediate
18821   fi
18822 else
18823   # We cannot hardcode anything, or else we can only hardcode existing
18824   # directories.
18825   hardcode_action_GCJ=unsupported
18826 fi
18827 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18828 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18829
18830 if test "$hardcode_action_GCJ" = relink; then
18831   # Fast installation is not supported
18832   enable_fast_install=no
18833 elif test "$shlibpath_overrides_runpath" = yes ||
18834      test "$enable_shared" = no; then
18835   # Fast installation is not necessary
18836   enable_fast_install=needless
18837 fi
18838
18839
18840 # The else clause should only fire when bootstrapping the
18841 # libtool distribution, otherwise you forgot to ship ltmain.sh
18842 # with your package, and you will get complaints that there are
18843 # no rules to generate ltmain.sh.
18844 if test -f "$ltmain"; then
18845   # See if we are running on zsh, and set the options which allow our commands through
18846   # without removal of \ escapes.
18847   if test -n "${ZSH_VERSION+set}" ; then
18848     setopt NO_GLOB_SUBST
18849   fi
18850   # Now quote all the things that may contain metacharacters while being
18851   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18852   # variables and quote the copies for generation of the libtool script.
18853   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18854     SED SHELL STRIP \
18855     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18856     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18857     deplibs_check_method reload_flag reload_cmds need_locks \
18858     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18859     lt_cv_sys_global_symbol_to_c_name_address \
18860     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18861     old_postinstall_cmds old_postuninstall_cmds \
18862     compiler_GCJ \
18863     CC_GCJ \
18864     LD_GCJ \
18865     lt_prog_compiler_wl_GCJ \
18866     lt_prog_compiler_pic_GCJ \
18867     lt_prog_compiler_static_GCJ \
18868     lt_prog_compiler_no_builtin_flag_GCJ \
18869     export_dynamic_flag_spec_GCJ \
18870     thread_safe_flag_spec_GCJ \
18871     whole_archive_flag_spec_GCJ \
18872     enable_shared_with_static_runtimes_GCJ \
18873     old_archive_cmds_GCJ \
18874     old_archive_from_new_cmds_GCJ \
18875     predep_objects_GCJ \
18876     postdep_objects_GCJ \
18877     predeps_GCJ \
18878     postdeps_GCJ \
18879     compiler_lib_search_path_GCJ \
18880     compiler_lib_search_dirs_GCJ \
18881     archive_cmds_GCJ \
18882     archive_expsym_cmds_GCJ \
18883     postinstall_cmds_GCJ \
18884     postuninstall_cmds_GCJ \
18885     old_archive_from_expsyms_cmds_GCJ \
18886     allow_undefined_flag_GCJ \
18887     no_undefined_flag_GCJ \
18888     export_symbols_cmds_GCJ \
18889     hardcode_libdir_flag_spec_GCJ \
18890     hardcode_libdir_flag_spec_ld_GCJ \
18891     hardcode_libdir_separator_GCJ \
18892     hardcode_automatic_GCJ \
18893     module_cmds_GCJ \
18894     module_expsym_cmds_GCJ \
18895     lt_cv_prog_compiler_c_o_GCJ \
18896     fix_srcfile_path_GCJ \
18897     exclude_expsyms_GCJ \
18898     include_expsyms_GCJ; do
18899
18900     case $var in
18901     old_archive_cmds_GCJ | \
18902     old_archive_from_new_cmds_GCJ | \
18903     archive_cmds_GCJ | \
18904     archive_expsym_cmds_GCJ | \
18905     module_cmds_GCJ | \
18906     module_expsym_cmds_GCJ | \
18907     old_archive_from_expsyms_cmds_GCJ | \
18908     export_symbols_cmds_GCJ | \
18909     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18910     postinstall_cmds | postuninstall_cmds | \
18911     old_postinstall_cmds | old_postuninstall_cmds | \
18912     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18913       # Double-quote double-evaled strings.
18914       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18915       ;;
18916     *)
18917       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18918       ;;
18919     esac
18920   done
18921
18922   case $lt_echo in
18923   *'\$0 --fallback-echo"')
18924     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18925     ;;
18926   esac
18927
18928 cfgfile="$ofile"
18929
18930   cat <<__EOF__ >> "$cfgfile"
18931 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18932
18933 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18934
18935 # Shell to use when invoking shell scripts.
18936 SHELL=$lt_SHELL
18937
18938 # Whether or not to build shared libraries.
18939 build_libtool_libs=$enable_shared
18940
18941 # Whether or not to build static libraries.
18942 build_old_libs=$enable_static
18943
18944 # Whether or not to add -lc for building shared libraries.
18945 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18946
18947 # Whether or not to disallow shared libs when runtime libs are static
18948 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18949
18950 # Whether or not to optimize for fast installation.
18951 fast_install=$enable_fast_install
18952
18953 # The host system.
18954 host_alias=$host_alias
18955 host=$host
18956 host_os=$host_os
18957
18958 # The build system.
18959 build_alias=$build_alias
18960 build=$build
18961 build_os=$build_os
18962
18963 # An echo program that does not interpret backslashes.
18964 echo=$lt_echo
18965
18966 # The archiver.
18967 AR=$lt_AR
18968 AR_FLAGS=$lt_AR_FLAGS
18969
18970 # A C compiler.
18971 LTCC=$lt_LTCC
18972
18973 # LTCC compiler flags.
18974 LTCFLAGS=$lt_LTCFLAGS
18975
18976 # A language-specific compiler.
18977 CC=$lt_compiler_GCJ
18978
18979 # Is the compiler the GNU C compiler?
18980 with_gcc=$GCC_GCJ
18981
18982 # An ERE matcher.
18983 EGREP=$lt_EGREP
18984
18985 # The linker used to build libraries.
18986 LD=$lt_LD_GCJ
18987
18988 # Whether we need hard or soft links.
18989 LN_S=$lt_LN_S
18990
18991 # A BSD-compatible nm program.
18992 NM=$lt_NM
18993
18994 # A symbol stripping program
18995 STRIP=$lt_STRIP
18996
18997 # Used to examine libraries when file_magic_cmd begins "file"
18998 MAGIC_CMD=$MAGIC_CMD
18999
19000 # Used on cygwin: DLL creation program.
19001 DLLTOOL="$DLLTOOL"
19002
19003 # Used on cygwin: object dumper.
19004 OBJDUMP="$OBJDUMP"
19005
19006 # Used on cygwin: assembler.
19007 AS="$AS"
19008
19009 # The name of the directory that contains temporary libtool files.
19010 objdir=$objdir
19011
19012 # How to create reloadable object files.
19013 reload_flag=$lt_reload_flag
19014 reload_cmds=$lt_reload_cmds
19015
19016 # How to pass a linker flag through the compiler.
19017 wl=$lt_lt_prog_compiler_wl_GCJ
19018
19019 # Object file suffix (normally "o").
19020 objext="$ac_objext"
19021
19022 # Old archive suffix (normally "a").
19023 libext="$libext"
19024
19025 # Shared library suffix (normally ".so").
19026 shrext_cmds='$shrext_cmds'
19027
19028 # Executable file suffix (normally "").
19029 exeext="$exeext"
19030
19031 # Additional compiler flags for building library objects.
19032 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19033 pic_mode=$pic_mode
19034
19035 # What is the maximum length of a command?
19036 max_cmd_len=$lt_cv_sys_max_cmd_len
19037
19038 # Does compiler simultaneously support -c and -o options?
19039 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19040
19041 # Must we lock files when doing compilation?
19042 need_locks=$lt_need_locks
19043
19044 # Do we need the lib prefix for modules?
19045 need_lib_prefix=$need_lib_prefix
19046
19047 # Do we need a version for libraries?
19048 need_version=$need_version
19049
19050 # Whether dlopen is supported.
19051 dlopen_support=$enable_dlopen
19052
19053 # Whether dlopen of programs is supported.
19054 dlopen_self=$enable_dlopen_self
19055
19056 # Whether dlopen of statically linked programs is supported.
19057 dlopen_self_static=$enable_dlopen_self_static
19058
19059 # Compiler flag to prevent dynamic linking.
19060 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19061
19062 # Compiler flag to turn off builtin functions.
19063 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19064
19065 # Compiler flag to allow reflexive dlopens.
19066 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19067
19068 # Compiler flag to generate shared objects directly from archives.
19069 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19070
19071 # Compiler flag to generate thread-safe objects.
19072 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19073
19074 # Library versioning type.
19075 version_type=$version_type
19076
19077 # Format of library name prefix.
19078 libname_spec=$lt_libname_spec
19079
19080 # List of archive names.  First name is the real one, the rest are links.
19081 # The last name is the one that the linker finds with -lNAME.
19082 library_names_spec=$lt_library_names_spec
19083
19084 # The coded name of the library, if different from the real name.
19085 soname_spec=$lt_soname_spec
19086
19087 # Commands used to build and install an old-style archive.
19088 RANLIB=$lt_RANLIB
19089 old_archive_cmds=$lt_old_archive_cmds_GCJ
19090 old_postinstall_cmds=$lt_old_postinstall_cmds
19091 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19092
19093 # Create an old-style archive from a shared archive.
19094 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19095
19096 # Create a temporary old-style archive to link instead of a shared archive.
19097 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19098
19099 # Commands used to build and install a shared archive.
19100 archive_cmds=$lt_archive_cmds_GCJ
19101 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19102 postinstall_cmds=$lt_postinstall_cmds
19103 postuninstall_cmds=$lt_postuninstall_cmds
19104
19105 # Commands used to build a loadable module (assumed same as above if empty)
19106 module_cmds=$lt_module_cmds_GCJ
19107 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19108
19109 # Commands to strip libraries.
19110 old_striplib=$lt_old_striplib
19111 striplib=$lt_striplib
19112
19113 # Dependencies to place before the objects being linked to create a
19114 # shared library.
19115 predep_objects=$lt_predep_objects_GCJ
19116
19117 # Dependencies to place after the objects being linked to create a
19118 # shared library.
19119 postdep_objects=$lt_postdep_objects_GCJ
19120
19121 # Dependencies to place before the objects being linked to create a
19122 # shared library.
19123 predeps=$lt_predeps_GCJ
19124
19125 # Dependencies to place after the objects being linked to create a
19126 # shared library.
19127 postdeps=$lt_postdeps_GCJ
19128
19129 # The directories searched by this compiler when creating a shared
19130 # library
19131 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19132
19133 # The library search path used internally by the compiler when linking
19134 # a shared library.
19135 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19136
19137 # Method to check whether dependent libraries are shared objects.
19138 deplibs_check_method=$lt_deplibs_check_method
19139
19140 # Command to use when deplibs_check_method == file_magic.
19141 file_magic_cmd=$lt_file_magic_cmd
19142
19143 # Flag that allows shared libraries with undefined symbols to be built.
19144 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19145
19146 # Flag that forces no undefined symbols.
19147 no_undefined_flag=$lt_no_undefined_flag_GCJ
19148
19149 # Commands used to finish a libtool library installation in a directory.
19150 finish_cmds=$lt_finish_cmds
19151
19152 # Same as above, but a single script fragment to be evaled but not shown.
19153 finish_eval=$lt_finish_eval
19154
19155 # Take the output of nm and produce a listing of raw symbols and C names.
19156 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19157
19158 # Transform the output of nm in a proper C declaration
19159 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19160
19161 # Transform the output of nm in a C name address pair
19162 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19163
19164 # This is the shared library runtime path variable.
19165 runpath_var=$runpath_var
19166
19167 # This is the shared library path variable.
19168 shlibpath_var=$shlibpath_var
19169
19170 # Is shlibpath searched before the hard-coded library search path?
19171 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19172
19173 # How to hardcode a shared library path into an executable.
19174 hardcode_action=$hardcode_action_GCJ
19175
19176 # Whether we should hardcode library paths into libraries.
19177 hardcode_into_libs=$hardcode_into_libs
19178
19179 # Flag to hardcode \$libdir into a binary during linking.
19180 # This must work even if \$libdir does not exist.
19181 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19182
19183 # If ld is used when linking, flag to hardcode \$libdir into
19184 # a binary during linking. This must work even if \$libdir does
19185 # not exist.
19186 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19187
19188 # Whether we need a single -rpath flag with a separated argument.
19189 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19190
19191 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19192 # resulting binary.
19193 hardcode_direct=$hardcode_direct_GCJ
19194
19195 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19196 # resulting binary.
19197 hardcode_minus_L=$hardcode_minus_L_GCJ
19198
19199 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19200 # the resulting binary.
19201 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19202
19203 # Set to yes if building a shared library automatically hardcodes DIR into the library
19204 # and all subsequent libraries and executables linked against it.
19205 hardcode_automatic=$hardcode_automatic_GCJ
19206
19207 # Variables whose values should be saved in libtool wrapper scripts and
19208 # restored at relink time.
19209 variables_saved_for_relink="$variables_saved_for_relink"
19210
19211 # Whether libtool must link a program against all its dependency libraries.
19212 link_all_deplibs=$link_all_deplibs_GCJ
19213
19214 # Compile-time system search path for libraries
19215 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19216
19217 # Run-time system search path for libraries
19218 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19219
19220 # Fix the shell variable \$srcfile for the compiler.
19221 fix_srcfile_path=$lt_fix_srcfile_path
19222
19223 # Set to yes if exported symbols are required.
19224 always_export_symbols=$always_export_symbols_GCJ
19225
19226 # The commands to list exported symbols.
19227 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19228
19229 # The commands to extract the exported symbol list from a shared archive.
19230 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19231
19232 # Symbols that should not be listed in the preloaded symbols.
19233 exclude_expsyms=$lt_exclude_expsyms_GCJ
19234
19235 # Symbols that must always be exported.
19236 include_expsyms=$lt_include_expsyms_GCJ
19237
19238 # ### END LIBTOOL TAG CONFIG: $tagname
19239
19240 __EOF__
19241
19242
19243 else
19244   # If there is no Makefile yet, we rely on a make rule to execute
19245   # `config.status --recheck' to rerun these tests and create the
19246   # libtool script then.
19247   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19248   if test -f "$ltmain_in"; then
19249     test -f Makefile && make "$ltmain"
19250   fi
19251 fi
19252
19253
19254 ac_ext=c
19255 ac_cpp='$CPP $CPPFLAGS'
19256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19259
19260 CC="$lt_save_CC"
19261
19262         else
19263           tagname=""
19264         fi
19265         ;;
19266
19267       RC)
19268
19269
19270 # Source file extension for RC test sources.
19271 ac_ext=rc
19272
19273 # Object file extension for compiled RC test sources.
19274 objext=o
19275 objext_RC=$objext
19276
19277 # Code to be used in simple compile tests
19278 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19279
19280 # Code to be used in simple link tests
19281 lt_simple_link_test_code="$lt_simple_compile_test_code"
19282
19283 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19284
19285 # If no C compiler was specified, use CC.
19286 LTCC=${LTCC-"$CC"}
19287
19288 # If no C compiler flags were specified, use CFLAGS.
19289 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19290
19291 # Allow CC to be a program name with arguments.
19292 compiler=$CC
19293
19294
19295 # save warnings/boilerplate of simple test code
19296 ac_outfile=conftest.$ac_objext
19297 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19298 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19299 _lt_compiler_boilerplate=`cat conftest.err`
19300 $rm conftest*
19301
19302 ac_outfile=conftest.$ac_objext
19303 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19304 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19305 _lt_linker_boilerplate=`cat conftest.err`
19306 $rm -r conftest*
19307
19308
19309 # Allow CC to be a program name with arguments.
19310 lt_save_CC="$CC"
19311 CC=${RC-"windres"}
19312 compiler=$CC
19313 compiler_RC=$CC
19314 for cc_temp in $compiler""; do
19315   case $cc_temp in
19316     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19317     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19318     \-*) ;;
19319     *) break;;
19320   esac
19321 done
19322 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19323
19324 lt_cv_prog_compiler_c_o_RC=yes
19325
19326 # The else clause should only fire when bootstrapping the
19327 # libtool distribution, otherwise you forgot to ship ltmain.sh
19328 # with your package, and you will get complaints that there are
19329 # no rules to generate ltmain.sh.
19330 if test -f "$ltmain"; then
19331   # See if we are running on zsh, and set the options which allow our commands through
19332   # without removal of \ escapes.
19333   if test -n "${ZSH_VERSION+set}" ; then
19334     setopt NO_GLOB_SUBST
19335   fi
19336   # Now quote all the things that may contain metacharacters while being
19337   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19338   # variables and quote the copies for generation of the libtool script.
19339   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19340     SED SHELL STRIP \
19341     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19342     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19343     deplibs_check_method reload_flag reload_cmds need_locks \
19344     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19345     lt_cv_sys_global_symbol_to_c_name_address \
19346     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19347     old_postinstall_cmds old_postuninstall_cmds \
19348     compiler_RC \
19349     CC_RC \
19350     LD_RC \
19351     lt_prog_compiler_wl_RC \
19352     lt_prog_compiler_pic_RC \
19353     lt_prog_compiler_static_RC \
19354     lt_prog_compiler_no_builtin_flag_RC \
19355     export_dynamic_flag_spec_RC \
19356     thread_safe_flag_spec_RC \
19357     whole_archive_flag_spec_RC \
19358     enable_shared_with_static_runtimes_RC \
19359     old_archive_cmds_RC \
19360     old_archive_from_new_cmds_RC \
19361     predep_objects_RC \
19362     postdep_objects_RC \
19363     predeps_RC \
19364     postdeps_RC \
19365     compiler_lib_search_path_RC \
19366     compiler_lib_search_dirs_RC \
19367     archive_cmds_RC \
19368     archive_expsym_cmds_RC \
19369     postinstall_cmds_RC \
19370     postuninstall_cmds_RC \
19371     old_archive_from_expsyms_cmds_RC \
19372     allow_undefined_flag_RC \
19373     no_undefined_flag_RC \
19374     export_symbols_cmds_RC \
19375     hardcode_libdir_flag_spec_RC \
19376     hardcode_libdir_flag_spec_ld_RC \
19377     hardcode_libdir_separator_RC \
19378     hardcode_automatic_RC \
19379     module_cmds_RC \
19380     module_expsym_cmds_RC \
19381     lt_cv_prog_compiler_c_o_RC \
19382     fix_srcfile_path_RC \
19383     exclude_expsyms_RC \
19384     include_expsyms_RC; do
19385
19386     case $var in
19387     old_archive_cmds_RC | \
19388     old_archive_from_new_cmds_RC | \
19389     archive_cmds_RC | \
19390     archive_expsym_cmds_RC | \
19391     module_cmds_RC | \
19392     module_expsym_cmds_RC | \
19393     old_archive_from_expsyms_cmds_RC | \
19394     export_symbols_cmds_RC | \
19395     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19396     postinstall_cmds | postuninstall_cmds | \
19397     old_postinstall_cmds | old_postuninstall_cmds | \
19398     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19399       # Double-quote double-evaled strings.
19400       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19401       ;;
19402     *)
19403       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19404       ;;
19405     esac
19406   done
19407
19408   case $lt_echo in
19409   *'\$0 --fallback-echo"')
19410     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19411     ;;
19412   esac
19413
19414 cfgfile="$ofile"
19415
19416   cat <<__EOF__ >> "$cfgfile"
19417 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19418
19419 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19420
19421 # Shell to use when invoking shell scripts.
19422 SHELL=$lt_SHELL
19423
19424 # Whether or not to build shared libraries.
19425 build_libtool_libs=$enable_shared
19426
19427 # Whether or not to build static libraries.
19428 build_old_libs=$enable_static
19429
19430 # Whether or not to add -lc for building shared libraries.
19431 build_libtool_need_lc=$archive_cmds_need_lc_RC
19432
19433 # Whether or not to disallow shared libs when runtime libs are static
19434 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19435
19436 # Whether or not to optimize for fast installation.
19437 fast_install=$enable_fast_install
19438
19439 # The host system.
19440 host_alias=$host_alias
19441 host=$host
19442 host_os=$host_os
19443
19444 # The build system.
19445 build_alias=$build_alias
19446 build=$build
19447 build_os=$build_os
19448
19449 # An echo program that does not interpret backslashes.
19450 echo=$lt_echo
19451
19452 # The archiver.
19453 AR=$lt_AR
19454 AR_FLAGS=$lt_AR_FLAGS
19455
19456 # A C compiler.
19457 LTCC=$lt_LTCC
19458
19459 # LTCC compiler flags.
19460 LTCFLAGS=$lt_LTCFLAGS
19461
19462 # A language-specific compiler.
19463 CC=$lt_compiler_RC
19464
19465 # Is the compiler the GNU C compiler?
19466 with_gcc=$GCC_RC
19467
19468 # An ERE matcher.
19469 EGREP=$lt_EGREP
19470
19471 # The linker used to build libraries.
19472 LD=$lt_LD_RC
19473
19474 # Whether we need hard or soft links.
19475 LN_S=$lt_LN_S
19476
19477 # A BSD-compatible nm program.
19478 NM=$lt_NM
19479
19480 # A symbol stripping program
19481 STRIP=$lt_STRIP
19482
19483 # Used to examine libraries when file_magic_cmd begins "file"
19484 MAGIC_CMD=$MAGIC_CMD
19485
19486 # Used on cygwin: DLL creation program.
19487 DLLTOOL="$DLLTOOL"
19488
19489 # Used on cygwin: object dumper.
19490 OBJDUMP="$OBJDUMP"
19491
19492 # Used on cygwin: assembler.
19493 AS="$AS"
19494
19495 # The name of the directory that contains temporary libtool files.
19496 objdir=$objdir
19497
19498 # How to create reloadable object files.
19499 reload_flag=$lt_reload_flag
19500 reload_cmds=$lt_reload_cmds
19501
19502 # How to pass a linker flag through the compiler.
19503 wl=$lt_lt_prog_compiler_wl_RC
19504
19505 # Object file suffix (normally "o").
19506 objext="$ac_objext"
19507
19508 # Old archive suffix (normally "a").
19509 libext="$libext"
19510
19511 # Shared library suffix (normally ".so").
19512 shrext_cmds='$shrext_cmds'
19513
19514 # Executable file suffix (normally "").
19515 exeext="$exeext"
19516
19517 # Additional compiler flags for building library objects.
19518 pic_flag=$lt_lt_prog_compiler_pic_RC
19519 pic_mode=$pic_mode
19520
19521 # What is the maximum length of a command?
19522 max_cmd_len=$lt_cv_sys_max_cmd_len
19523
19524 # Does compiler simultaneously support -c and -o options?
19525 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19526
19527 # Must we lock files when doing compilation?
19528 need_locks=$lt_need_locks
19529
19530 # Do we need the lib prefix for modules?
19531 need_lib_prefix=$need_lib_prefix
19532
19533 # Do we need a version for libraries?
19534 need_version=$need_version
19535
19536 # Whether dlopen is supported.
19537 dlopen_support=$enable_dlopen
19538
19539 # Whether dlopen of programs is supported.
19540 dlopen_self=$enable_dlopen_self
19541
19542 # Whether dlopen of statically linked programs is supported.
19543 dlopen_self_static=$enable_dlopen_self_static
19544
19545 # Compiler flag to prevent dynamic linking.
19546 link_static_flag=$lt_lt_prog_compiler_static_RC
19547
19548 # Compiler flag to turn off builtin functions.
19549 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19550
19551 # Compiler flag to allow reflexive dlopens.
19552 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19553
19554 # Compiler flag to generate shared objects directly from archives.
19555 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19556
19557 # Compiler flag to generate thread-safe objects.
19558 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19559
19560 # Library versioning type.
19561 version_type=$version_type
19562
19563 # Format of library name prefix.
19564 libname_spec=$lt_libname_spec
19565
19566 # List of archive names.  First name is the real one, the rest are links.
19567 # The last name is the one that the linker finds with -lNAME.
19568 library_names_spec=$lt_library_names_spec
19569
19570 # The coded name of the library, if different from the real name.
19571 soname_spec=$lt_soname_spec
19572
19573 # Commands used to build and install an old-style archive.
19574 RANLIB=$lt_RANLIB
19575 old_archive_cmds=$lt_old_archive_cmds_RC
19576 old_postinstall_cmds=$lt_old_postinstall_cmds
19577 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19578
19579 # Create an old-style archive from a shared archive.
19580 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19581
19582 # Create a temporary old-style archive to link instead of a shared archive.
19583 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19584
19585 # Commands used to build and install a shared archive.
19586 archive_cmds=$lt_archive_cmds_RC
19587 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19588 postinstall_cmds=$lt_postinstall_cmds
19589 postuninstall_cmds=$lt_postuninstall_cmds
19590
19591 # Commands used to build a loadable module (assumed same as above if empty)
19592 module_cmds=$lt_module_cmds_RC
19593 module_expsym_cmds=$lt_module_expsym_cmds_RC
19594
19595 # Commands to strip libraries.
19596 old_striplib=$lt_old_striplib
19597 striplib=$lt_striplib
19598
19599 # Dependencies to place before the objects being linked to create a
19600 # shared library.
19601 predep_objects=$lt_predep_objects_RC
19602
19603 # Dependencies to place after the objects being linked to create a
19604 # shared library.
19605 postdep_objects=$lt_postdep_objects_RC
19606
19607 # Dependencies to place before the objects being linked to create a
19608 # shared library.
19609 predeps=$lt_predeps_RC
19610
19611 # Dependencies to place after the objects being linked to create a
19612 # shared library.
19613 postdeps=$lt_postdeps_RC
19614
19615 # The directories searched by this compiler when creating a shared
19616 # library
19617 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19618
19619 # The library search path used internally by the compiler when linking
19620 # a shared library.
19621 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19622
19623 # Method to check whether dependent libraries are shared objects.
19624 deplibs_check_method=$lt_deplibs_check_method
19625
19626 # Command to use when deplibs_check_method == file_magic.
19627 file_magic_cmd=$lt_file_magic_cmd
19628
19629 # Flag that allows shared libraries with undefined symbols to be built.
19630 allow_undefined_flag=$lt_allow_undefined_flag_RC
19631
19632 # Flag that forces no undefined symbols.
19633 no_undefined_flag=$lt_no_undefined_flag_RC
19634
19635 # Commands used to finish a libtool library installation in a directory.
19636 finish_cmds=$lt_finish_cmds
19637
19638 # Same as above, but a single script fragment to be evaled but not shown.
19639 finish_eval=$lt_finish_eval
19640
19641 # Take the output of nm and produce a listing of raw symbols and C names.
19642 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19643
19644 # Transform the output of nm in a proper C declaration
19645 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19646
19647 # Transform the output of nm in a C name address pair
19648 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19649
19650 # This is the shared library runtime path variable.
19651 runpath_var=$runpath_var
19652
19653 # This is the shared library path variable.
19654 shlibpath_var=$shlibpath_var
19655
19656 # Is shlibpath searched before the hard-coded library search path?
19657 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19658
19659 # How to hardcode a shared library path into an executable.
19660 hardcode_action=$hardcode_action_RC
19661
19662 # Whether we should hardcode library paths into libraries.
19663 hardcode_into_libs=$hardcode_into_libs
19664
19665 # Flag to hardcode \$libdir into a binary during linking.
19666 # This must work even if \$libdir does not exist.
19667 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19668
19669 # If ld is used when linking, flag to hardcode \$libdir into
19670 # a binary during linking. This must work even if \$libdir does
19671 # not exist.
19672 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19673
19674 # Whether we need a single -rpath flag with a separated argument.
19675 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19676
19677 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19678 # resulting binary.
19679 hardcode_direct=$hardcode_direct_RC
19680
19681 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19682 # resulting binary.
19683 hardcode_minus_L=$hardcode_minus_L_RC
19684
19685 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19686 # the resulting binary.
19687 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19688
19689 # Set to yes if building a shared library automatically hardcodes DIR into the library
19690 # and all subsequent libraries and executables linked against it.
19691 hardcode_automatic=$hardcode_automatic_RC
19692
19693 # Variables whose values should be saved in libtool wrapper scripts and
19694 # restored at relink time.
19695 variables_saved_for_relink="$variables_saved_for_relink"
19696
19697 # Whether libtool must link a program against all its dependency libraries.
19698 link_all_deplibs=$link_all_deplibs_RC
19699
19700 # Compile-time system search path for libraries
19701 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19702
19703 # Run-time system search path for libraries
19704 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19705
19706 # Fix the shell variable \$srcfile for the compiler.
19707 fix_srcfile_path=$lt_fix_srcfile_path
19708
19709 # Set to yes if exported symbols are required.
19710 always_export_symbols=$always_export_symbols_RC
19711
19712 # The commands to list exported symbols.
19713 export_symbols_cmds=$lt_export_symbols_cmds_RC
19714
19715 # The commands to extract the exported symbol list from a shared archive.
19716 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19717
19718 # Symbols that should not be listed in the preloaded symbols.
19719 exclude_expsyms=$lt_exclude_expsyms_RC
19720
19721 # Symbols that must always be exported.
19722 include_expsyms=$lt_include_expsyms_RC
19723
19724 # ### END LIBTOOL TAG CONFIG: $tagname
19725
19726 __EOF__
19727
19728
19729 else
19730   # If there is no Makefile yet, we rely on a make rule to execute
19731   # `config.status --recheck' to rerun these tests and create the
19732   # libtool script then.
19733   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19734   if test -f "$ltmain_in"; then
19735     test -f Makefile && make "$ltmain"
19736   fi
19737 fi
19738
19739
19740 ac_ext=c
19741 ac_cpp='$CPP $CPPFLAGS'
19742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19744 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19745
19746 CC="$lt_save_CC"
19747
19748         ;;
19749
19750       *)
19751         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19752 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19753    { (exit 1); exit 1; }; }
19754         ;;
19755       esac
19756
19757       # Append the new tag name to the list of available tags.
19758       if test -n "$tagname" ; then
19759       available_tags="$available_tags $tagname"
19760     fi
19761     fi
19762   done
19763   IFS="$lt_save_ifs"
19764
19765   # Now substitute the updated list of available tags.
19766   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19767     mv "${ofile}T" "$ofile"
19768     chmod +x "$ofile"
19769   else
19770     rm -f "${ofile}T"
19771     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19772 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19773    { (exit 1); exit 1; }; }
19774   fi
19775 fi
19776
19777
19778
19779 # This can be used to rebuild libtool when needed
19780 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19781
19782 # Always use our own libtool.
19783 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19784
19785 # Prevent multiple expansion
19786
19787
19788
19789
19790
19791
19792
19793
19794
19795
19796
19797
19798
19799
19800
19801
19802
19803
19804
19805
19806 # Check whether --enable-debug was given.
19807 if test "${enable_debug+set}" = set; then
19808   enableval=$enable_debug;
19809         CXXFLAGS="-g -O0 -Wall"
19810
19811 cat >>confdefs.h <<\_ACEOF
19812 #define WITH_DEBUG
19813 _ACEOF
19814
19815
19816 fi
19817
19818
19819
19820 # Check whether --with-libldap was given.
19821 if test "${with_libldap+set}" = set; then
19822   withval=$with_libldap;
19823         LIBS="-L$with_libldap $LIBS "
19824
19825 else
19826
19827         LIBS="-L/usr/local/lib $LIBS "
19828
19829
19830 fi
19831
19832
19833
19834 # Check whether --with-ldap-includes was given.
19835 if test "${with_ldap_includes+set}" = set; then
19836   withval=$with_ldap_includes;
19837         CPPFLAGS="-I$with_ldap_includes $CPPFLAGS "
19838
19839 else
19840
19841         CPPFLAGS="-I/usr/local/include $CPPFLAGS "
19842
19843
19844 fi
19845
19846
19847 { echo "$as_me:$LINENO: checking for main in -lresolv" >&5
19848 echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6; }
19849 if test "${ac_cv_lib_resolv_main+set}" = set; then
19850   echo $ECHO_N "(cached) $ECHO_C" >&6
19851 else
19852   ac_check_lib_save_LIBS=$LIBS
19853 LIBS="-lresolv  $LIBS"
19854 cat >conftest.$ac_ext <<_ACEOF
19855 /* confdefs.h.  */
19856 _ACEOF
19857 cat confdefs.h >>conftest.$ac_ext
19858 cat >>conftest.$ac_ext <<_ACEOF
19859 /* end confdefs.h.  */
19860
19861
19862 int
19863 main ()
19864 {
19865 return main ();
19866   ;
19867   return 0;
19868 }
19869 _ACEOF
19870 rm -f conftest.$ac_objext conftest$ac_exeext
19871 if { (ac_try="$ac_link"
19872 case "(($ac_try" in
19873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19874   *) ac_try_echo=$ac_try;;
19875 esac
19876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19877   (eval "$ac_link") 2>conftest.er1
19878   ac_status=$?
19879   grep -v '^ *+' conftest.er1 >conftest.err
19880   rm -f conftest.er1
19881   cat conftest.err >&5
19882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19883   (exit $ac_status); } && {
19884          test -z "$ac_c_werror_flag" ||
19885          test ! -s conftest.err
19886        } && test -s conftest$ac_exeext &&
19887        $as_test_x conftest$ac_exeext; then
19888   ac_cv_lib_resolv_main=yes
19889 else
19890   echo "$as_me: failed program was:" >&5
19891 sed 's/^/| /' conftest.$ac_ext >&5
19892
19893         ac_cv_lib_resolv_main=no
19894 fi
19895
19896 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19897       conftest$ac_exeext conftest.$ac_ext
19898 LIBS=$ac_check_lib_save_LIBS
19899 fi
19900 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
19901 echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6; }
19902 if test $ac_cv_lib_resolv_main = yes; then
19903   cat >>confdefs.h <<_ACEOF
19904 #define HAVE_LIBRESOLV 1
19905 _ACEOF
19906
19907   LIBS="-lresolv $LIBS"
19908
19909 fi
19910
19911 { echo "$as_me:$LINENO: checking for ber_strdup in -llber" >&5
19912 echo $ECHO_N "checking for ber_strdup in -llber... $ECHO_C" >&6; }
19913 if test "${ac_cv_lib_lber_ber_strdup+set}" = set; then
19914   echo $ECHO_N "(cached) $ECHO_C" >&6
19915 else
19916   ac_check_lib_save_LIBS=$LIBS
19917 LIBS="-llber  $LIBS"
19918 cat >conftest.$ac_ext <<_ACEOF
19919 /* confdefs.h.  */
19920 _ACEOF
19921 cat confdefs.h >>conftest.$ac_ext
19922 cat >>conftest.$ac_ext <<_ACEOF
19923 /* end confdefs.h.  */
19924
19925 /* Override any GCC internal prototype to avoid an error.
19926    Use char because int might match the return type of a GCC
19927    builtin and then its argument prototype would still apply.  */
19928 #ifdef __cplusplus
19929 extern "C"
19930 #endif
19931 char ber_strdup ();
19932 int
19933 main ()
19934 {
19935 return ber_strdup ();
19936   ;
19937   return 0;
19938 }
19939 _ACEOF
19940 rm -f conftest.$ac_objext conftest$ac_exeext
19941 if { (ac_try="$ac_link"
19942 case "(($ac_try" in
19943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19944   *) ac_try_echo=$ac_try;;
19945 esac
19946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19947   (eval "$ac_link") 2>conftest.er1
19948   ac_status=$?
19949   grep -v '^ *+' conftest.er1 >conftest.err
19950   rm -f conftest.er1
19951   cat conftest.err >&5
19952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19953   (exit $ac_status); } && {
19954          test -z "$ac_c_werror_flag" ||
19955          test ! -s conftest.err
19956        } && test -s conftest$ac_exeext &&
19957        $as_test_x conftest$ac_exeext; then
19958   ac_cv_lib_lber_ber_strdup=yes
19959 else
19960   echo "$as_me: failed program was:" >&5
19961 sed 's/^/| /' conftest.$ac_ext >&5
19962
19963         ac_cv_lib_lber_ber_strdup=no
19964 fi
19965
19966 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19967       conftest$ac_exeext conftest.$ac_ext
19968 LIBS=$ac_check_lib_save_LIBS
19969 fi
19970 { echo "$as_me:$LINENO: result: $ac_cv_lib_lber_ber_strdup" >&5
19971 echo "${ECHO_T}$ac_cv_lib_lber_ber_strdup" >&6; }
19972 if test $ac_cv_lib_lber_ber_strdup = yes; then
19973
19974         :
19975
19976 else
19977
19978         echo "        didn't find ber_strdup in liblber !";
19979         echo "        Check for the right version (>= 2.0) of the OpenLDAP libraries";
19980         echo "        or try the --with-libldap option.";
19981         exit
19982
19983 fi
19984
19985 { echo "$as_me:$LINENO: checking for ldap_add_ext in -lldap" >&5
19986 echo $ECHO_N "checking for ldap_add_ext in -lldap... $ECHO_C" >&6; }
19987 if test "${ac_cv_lib_ldap_ldap_add_ext+set}" = set; then
19988   echo $ECHO_N "(cached) $ECHO_C" >&6
19989 else
19990   ac_check_lib_save_LIBS=$LIBS
19991 LIBS="-lldap
19992     -llber
19993      $LIBS"
19994 cat >conftest.$ac_ext <<_ACEOF
19995 /* confdefs.h.  */
19996 _ACEOF
19997 cat confdefs.h >>conftest.$ac_ext
19998 cat >>conftest.$ac_ext <<_ACEOF
19999 /* end confdefs.h.  */
20000
20001 /* Override any GCC internal prototype to avoid an error.
20002    Use char because int might match the return type of a GCC
20003    builtin and then its argument prototype would still apply.  */
20004 #ifdef __cplusplus
20005 extern "C"
20006 #endif
20007 char ldap_add_ext ();
20008 int
20009 main ()
20010 {
20011 return ldap_add_ext ();
20012   ;
20013   return 0;
20014 }
20015 _ACEOF
20016 rm -f conftest.$ac_objext conftest$ac_exeext
20017 if { (ac_try="$ac_link"
20018 case "(($ac_try" in
20019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20020   *) ac_try_echo=$ac_try;;
20021 esac
20022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20023   (eval "$ac_link") 2>conftest.er1
20024   ac_status=$?
20025   grep -v '^ *+' conftest.er1 >conftest.err
20026   rm -f conftest.er1
20027   cat conftest.err >&5
20028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20029   (exit $ac_status); } && {
20030          test -z "$ac_c_werror_flag" ||
20031          test ! -s conftest.err
20032        } && test -s conftest$ac_exeext &&
20033        $as_test_x conftest$ac_exeext; then
20034   ac_cv_lib_ldap_ldap_add_ext=yes
20035 else
20036   echo "$as_me: failed program was:" >&5
20037 sed 's/^/| /' conftest.$ac_ext >&5
20038
20039         ac_cv_lib_ldap_ldap_add_ext=no
20040 fi
20041
20042 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20043       conftest$ac_exeext conftest.$ac_ext
20044 LIBS=$ac_check_lib_save_LIBS
20045 fi
20046 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_add_ext" >&5
20047 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_add_ext" >&6; }
20048 if test $ac_cv_lib_ldap_ldap_add_ext = yes; then
20049
20050         :
20051
20052 else
20053
20054         echo "        didn't find ldap_add_ext in libldap !";
20055         echo "        Check for the right version (>= 2.0) of the OpenLDAP libraries";
20056         echo "        or try the --with-libldap option.";
20057         exit
20058
20059 fi
20060
20061 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20062 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
20063 if test "${ac_cv_header_time+set}" = set; then
20064   echo $ECHO_N "(cached) $ECHO_C" >&6
20065 else
20066   cat >conftest.$ac_ext <<_ACEOF
20067 /* confdefs.h.  */
20068 _ACEOF
20069 cat confdefs.h >>conftest.$ac_ext
20070 cat >>conftest.$ac_ext <<_ACEOF
20071 /* end confdefs.h.  */
20072 #include <sys/types.h>
20073 #include <sys/time.h>
20074 #include <time.h>
20075
20076 int
20077 main ()
20078 {
20079 if ((struct tm *) 0)
20080 return 0;
20081   ;
20082   return 0;
20083 }
20084 _ACEOF
20085 rm -f conftest.$ac_objext
20086 if { (ac_try="$ac_compile"
20087 case "(($ac_try" in
20088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20089   *) ac_try_echo=$ac_try;;
20090 esac
20091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20092   (eval "$ac_compile") 2>conftest.er1
20093   ac_status=$?
20094   grep -v '^ *+' conftest.er1 >conftest.err
20095   rm -f conftest.er1
20096   cat conftest.err >&5
20097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20098   (exit $ac_status); } && {
20099          test -z "$ac_c_werror_flag" ||
20100          test ! -s conftest.err
20101        } && test -s conftest.$ac_objext; then
20102   ac_cv_header_time=yes
20103 else
20104   echo "$as_me: failed program was:" >&5
20105 sed 's/^/| /' conftest.$ac_ext >&5
20106
20107         ac_cv_header_time=no
20108 fi
20109
20110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20111 fi
20112 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20113 echo "${ECHO_T}$ac_cv_header_time" >&6; }
20114 if test $ac_cv_header_time = yes; then
20115
20116 cat >>confdefs.h <<\_ACEOF
20117 #define TIME_WITH_SYS_TIME 1
20118 _ACEOF
20119
20120 fi
20121
20122
20123
20124 for ac_header in termios.h ldap.h
20125 do
20126 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20127 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20128   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20129 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20130 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20131   echo $ECHO_N "(cached) $ECHO_C" >&6
20132 fi
20133 ac_res=`eval echo '${'$as_ac_Header'}'`
20134                { echo "$as_me:$LINENO: result: $ac_res" >&5
20135 echo "${ECHO_T}$ac_res" >&6; }
20136 else
20137   # Is the header compilable?
20138 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20139 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20140 cat >conftest.$ac_ext <<_ACEOF
20141 /* confdefs.h.  */
20142 _ACEOF
20143 cat confdefs.h >>conftest.$ac_ext
20144 cat >>conftest.$ac_ext <<_ACEOF
20145 /* end confdefs.h.  */
20146 $ac_includes_default
20147 #include <$ac_header>
20148 _ACEOF
20149 rm -f conftest.$ac_objext
20150 if { (ac_try="$ac_compile"
20151 case "(($ac_try" in
20152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20153   *) ac_try_echo=$ac_try;;
20154 esac
20155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20156   (eval "$ac_compile") 2>conftest.er1
20157   ac_status=$?
20158   grep -v '^ *+' conftest.er1 >conftest.err
20159   rm -f conftest.er1
20160   cat conftest.err >&5
20161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20162   (exit $ac_status); } && {
20163          test -z "$ac_c_werror_flag" ||
20164          test ! -s conftest.err
20165        } && test -s conftest.$ac_objext; then
20166   ac_header_compiler=yes
20167 else
20168   echo "$as_me: failed program was:" >&5
20169 sed 's/^/| /' conftest.$ac_ext >&5
20170
20171         ac_header_compiler=no
20172 fi
20173
20174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20175 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20176 echo "${ECHO_T}$ac_header_compiler" >&6; }
20177
20178 # Is the header present?
20179 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20180 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20181 cat >conftest.$ac_ext <<_ACEOF
20182 /* confdefs.h.  */
20183 _ACEOF
20184 cat confdefs.h >>conftest.$ac_ext
20185 cat >>conftest.$ac_ext <<_ACEOF
20186 /* end confdefs.h.  */
20187 #include <$ac_header>
20188 _ACEOF
20189 if { (ac_try="$ac_cpp conftest.$ac_ext"
20190 case "(($ac_try" in
20191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20192   *) ac_try_echo=$ac_try;;
20193 esac
20194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20195   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20196   ac_status=$?
20197   grep -v '^ *+' conftest.er1 >conftest.err
20198   rm -f conftest.er1
20199   cat conftest.err >&5
20200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20201   (exit $ac_status); } >/dev/null && {
20202          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20203          test ! -s conftest.err
20204        }; then
20205   ac_header_preproc=yes
20206 else
20207   echo "$as_me: failed program was:" >&5
20208 sed 's/^/| /' conftest.$ac_ext >&5
20209
20210   ac_header_preproc=no
20211 fi
20212
20213 rm -f conftest.err conftest.$ac_ext
20214 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20215 echo "${ECHO_T}$ac_header_preproc" >&6; }
20216
20217 # So?  What about this header?
20218 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20219   yes:no: )
20220     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20221 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20222     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20223 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20224     ac_header_preproc=yes
20225     ;;
20226   no:yes:* )
20227     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20228 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20229     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20230 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20231     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20232 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20233     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20234 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20235     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20236 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20237     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20238 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20239     ( cat <<\_ASBOX
20240 ## -------------------------------------------- ##
20241 ## Report this to http://www.openldap.org/its/  ##
20242 ## -------------------------------------------- ##
20243 _ASBOX
20244      ) | sed "s/^/$as_me: WARNING:     /" >&2
20245     ;;
20246 esac
20247 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20248 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20249 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20250   echo $ECHO_N "(cached) $ECHO_C" >&6
20251 else
20252   eval "$as_ac_Header=\$ac_header_preproc"
20253 fi
20254 ac_res=`eval echo '${'$as_ac_Header'}'`
20255                { echo "$as_me:$LINENO: result: $ac_res" >&5
20256 echo "${ECHO_T}$ac_res" >&6; }
20257
20258 fi
20259 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20260   cat >>confdefs.h <<_ACEOF
20261 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20262 _ACEOF
20263
20264 fi
20265
20266 done
20267
20268 cat >conftest.$ac_ext <<_ACEOF
20269 /* confdefs.h.  */
20270 _ACEOF
20271 cat confdefs.h >>conftest.$ac_ext
20272 cat >>conftest.$ac_ext <<_ACEOF
20273 /* end confdefs.h.  */
20274 #include <ldap.h>
20275
20276 _ACEOF
20277 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20278   $EGREP "ldap_add_ext" >/dev/null 2>&1; then
20279
20280         :
20281
20282 else
20283
20284         echo "        didn't find ldap_add_ext in ldap.h!";
20285         echo "        Check for the right version (>= 2.0) of the OpenLDAP includes";
20286         echo "        or try --with-ldap-includes option.";
20287         exit
20288
20289 fi
20290 rm -f conftest*
20291
20292 if test "${ac_cv_header_lber_h+set}" = set; then
20293   { echo "$as_me:$LINENO: checking for lber.h" >&5
20294 echo $ECHO_N "checking for lber.h... $ECHO_C" >&6; }
20295 if test "${ac_cv_header_lber_h+set}" = set; then
20296   echo $ECHO_N "(cached) $ECHO_C" >&6
20297 fi
20298 { echo "$as_me:$LINENO: result: $ac_cv_header_lber_h" >&5
20299 echo "${ECHO_T}$ac_cv_header_lber_h" >&6; }
20300 else
20301   # Is the header compilable?
20302 { echo "$as_me:$LINENO: checking lber.h usability" >&5
20303 echo $ECHO_N "checking lber.h usability... $ECHO_C" >&6; }
20304 cat >conftest.$ac_ext <<_ACEOF
20305 /* confdefs.h.  */
20306 _ACEOF
20307 cat confdefs.h >>conftest.$ac_ext
20308 cat >>conftest.$ac_ext <<_ACEOF
20309 /* end confdefs.h.  */
20310 $ac_includes_default
20311 #include <lber.h>
20312 _ACEOF
20313 rm -f conftest.$ac_objext
20314 if { (ac_try="$ac_compile"
20315 case "(($ac_try" in
20316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20317   *) ac_try_echo=$ac_try;;
20318 esac
20319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20320   (eval "$ac_compile") 2>conftest.er1
20321   ac_status=$?
20322   grep -v '^ *+' conftest.er1 >conftest.err
20323   rm -f conftest.er1
20324   cat conftest.err >&5
20325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20326   (exit $ac_status); } && {
20327          test -z "$ac_c_werror_flag" ||
20328          test ! -s conftest.err
20329        } && test -s conftest.$ac_objext; then
20330   ac_header_compiler=yes
20331 else
20332   echo "$as_me: failed program was:" >&5
20333 sed 's/^/| /' conftest.$ac_ext >&5
20334
20335         ac_header_compiler=no
20336 fi
20337
20338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20339 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20340 echo "${ECHO_T}$ac_header_compiler" >&6; }
20341
20342 # Is the header present?
20343 { echo "$as_me:$LINENO: checking lber.h presence" >&5
20344 echo $ECHO_N "checking lber.h presence... $ECHO_C" >&6; }
20345 cat >conftest.$ac_ext <<_ACEOF
20346 /* confdefs.h.  */
20347 _ACEOF
20348 cat confdefs.h >>conftest.$ac_ext
20349 cat >>conftest.$ac_ext <<_ACEOF
20350 /* end confdefs.h.  */
20351 #include <lber.h>
20352 _ACEOF
20353 if { (ac_try="$ac_cpp conftest.$ac_ext"
20354 case "(($ac_try" in
20355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20356   *) ac_try_echo=$ac_try;;
20357 esac
20358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20359   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20360   ac_status=$?
20361   grep -v '^ *+' conftest.er1 >conftest.err
20362   rm -f conftest.er1
20363   cat conftest.err >&5
20364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20365   (exit $ac_status); } >/dev/null && {
20366          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20367          test ! -s conftest.err
20368        }; then
20369   ac_header_preproc=yes
20370 else
20371   echo "$as_me: failed program was:" >&5
20372 sed 's/^/| /' conftest.$ac_ext >&5
20373
20374   ac_header_preproc=no
20375 fi
20376
20377 rm -f conftest.err conftest.$ac_ext
20378 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20379 echo "${ECHO_T}$ac_header_preproc" >&6; }
20380
20381 # So?  What about this header?
20382 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20383   yes:no: )
20384     { echo "$as_me:$LINENO: WARNING: lber.h: accepted by the compiler, rejected by the preprocessor!" >&5
20385 echo "$as_me: WARNING: lber.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20386     { echo "$as_me:$LINENO: WARNING: lber.h: proceeding with the compiler's result" >&5
20387 echo "$as_me: WARNING: lber.h: proceeding with the compiler's result" >&2;}
20388     ac_header_preproc=yes
20389     ;;
20390   no:yes:* )
20391     { echo "$as_me:$LINENO: WARNING: lber.h: present but cannot be compiled" >&5
20392 echo "$as_me: WARNING: lber.h: present but cannot be compiled" >&2;}
20393     { echo "$as_me:$LINENO: WARNING: lber.h:     check for missing prerequisite headers?" >&5
20394 echo "$as_me: WARNING: lber.h:     check for missing prerequisite headers?" >&2;}
20395     { echo "$as_me:$LINENO: WARNING: lber.h: see the Autoconf documentation" >&5
20396 echo "$as_me: WARNING: lber.h: see the Autoconf documentation" >&2;}
20397     { echo "$as_me:$LINENO: WARNING: lber.h:     section \"Present But Cannot Be Compiled\"" >&5
20398 echo "$as_me: WARNING: lber.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20399     { echo "$as_me:$LINENO: WARNING: lber.h: proceeding with the preprocessor's result" >&5
20400 echo "$as_me: WARNING: lber.h: proceeding with the preprocessor's result" >&2;}
20401     { echo "$as_me:$LINENO: WARNING: lber.h: in the future, the compiler will take precedence" >&5
20402 echo "$as_me: WARNING: lber.h: in the future, the compiler will take precedence" >&2;}
20403     ( cat <<\_ASBOX
20404 ## -------------------------------------------- ##
20405 ## Report this to http://www.openldap.org/its/  ##
20406 ## -------------------------------------------- ##
20407 _ASBOX
20408      ) | sed "s/^/$as_me: WARNING:     /" >&2
20409     ;;
20410 esac
20411 { echo "$as_me:$LINENO: checking for lber.h" >&5
20412 echo $ECHO_N "checking for lber.h... $ECHO_C" >&6; }
20413 if test "${ac_cv_header_lber_h+set}" = set; then
20414   echo $ECHO_N "(cached) $ECHO_C" >&6
20415 else
20416   ac_cv_header_lber_h=$ac_header_preproc
20417 fi
20418 { echo "$as_me:$LINENO: result: $ac_cv_header_lber_h" >&5
20419 echo "${ECHO_T}$ac_cv_header_lber_h" >&6; }
20420
20421 fi
20422
20423
20424 cat >conftest.$ac_ext <<_ACEOF
20425 /* confdefs.h.  */
20426 _ACEOF
20427 cat confdefs.h >>conftest.$ac_ext
20428 cat >>conftest.$ac_ext <<_ACEOF
20429 /* end confdefs.h.  */
20430 #include <lber.h>
20431
20432 _ACEOF
20433 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20434   $EGREP "ber_strdup" >/dev/null 2>&1; then
20435
20436         :
20437
20438 else
20439
20440         echo "        didn't find ber_strdup in lber.h!";
20441         echo "        Check for the right version (>= 2.0) of the OpenLDAP includes";
20442         echo "        or try --with-ldap-includes option.";
20443         exit
20444
20445 fi
20446 rm -f conftest*
20447
20448
20449
20450
20451 ac_config_files="$ac_config_files Makefile src/Makefile examples/Makefile"
20452
20453 cat >confcache <<\_ACEOF
20454 # This file is a shell script that caches the results of configure
20455 # tests run on this system so they can be shared between configure
20456 # scripts and configure runs, see configure's option --config-cache.
20457 # It is not useful on other systems.  If it contains results you don't
20458 # want to keep, you may remove or edit it.
20459 #
20460 # config.status only pays attention to the cache file if you give it
20461 # the --recheck option to rerun configure.
20462 #
20463 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20464 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20465 # following values.
20466
20467 _ACEOF
20468
20469 # The following way of writing the cache mishandles newlines in values,
20470 # but we know of no workaround that is simple, portable, and efficient.
20471 # So, we kill variables containing newlines.
20472 # Ultrix sh set writes to stderr and can't be redirected directly,
20473 # and sets the high bit in the cache file unless we assign to the vars.
20474 (
20475   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20476     eval ac_val=\$$ac_var
20477     case $ac_val in #(
20478     *${as_nl}*)
20479       case $ac_var in #(
20480       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20481 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20482       esac
20483       case $ac_var in #(
20484       _ | IFS | as_nl) ;; #(
20485       *) $as_unset $ac_var ;;
20486       esac ;;
20487     esac
20488   done
20489
20490   (set) 2>&1 |
20491     case $as_nl`(ac_space=' '; set) 2>&1` in #(
20492     *${as_nl}ac_space=\ *)
20493       # `set' does not quote correctly, so add quotes (double-quote
20494       # substitution turns \\\\ into \\, and sed turns \\ into \).
20495       sed -n \
20496         "s/'/'\\\\''/g;
20497           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20498       ;; #(
20499     *)
20500       # `set' quotes correctly as required by POSIX, so do not add quotes.
20501       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20502       ;;
20503     esac |
20504     sort
20505 ) |
20506   sed '
20507      /^ac_cv_env_/b end
20508      t clear
20509      :clear
20510      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20511      t end
20512      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20513      :end' >>confcache
20514 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20515   if test -w "$cache_file"; then
20516     test "x$cache_file" != "x/dev/null" &&
20517       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20518 echo "$as_me: updating cache $cache_file" >&6;}
20519     cat confcache >$cache_file
20520   else
20521     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20522 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20523   fi
20524 fi
20525 rm -f confcache
20526
20527 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20528 # Let make expand exec_prefix.
20529 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20530
20531 DEFS=-DHAVE_CONFIG_H
20532
20533 ac_libobjs=
20534 ac_ltlibobjs=
20535 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20536   # 1. Remove the extension, and $U if already installed.
20537   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20538   ac_i=`echo "$ac_i" | sed "$ac_script"`
20539   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20540   #    will be set to the directory where LIBOBJS objects are built.
20541   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20542   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20543 done
20544 LIBOBJS=$ac_libobjs
20545
20546 LTLIBOBJS=$ac_ltlibobjs
20547
20548
20549 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20550   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20551 Usually this means the macro was only invoked conditionally." >&5
20552 echo "$as_me: error: conditional \"AMDEP\" was never defined.
20553 Usually this means the macro was only invoked conditionally." >&2;}
20554    { (exit 1); exit 1; }; }
20555 fi
20556 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20557   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20558 Usually this means the macro was only invoked conditionally." >&5
20559 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20560 Usually this means the macro was only invoked conditionally." >&2;}
20561    { (exit 1); exit 1; }; }
20562 fi
20563 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20564   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20565 Usually this means the macro was only invoked conditionally." >&5
20566 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20567 Usually this means the macro was only invoked conditionally." >&2;}
20568    { (exit 1); exit 1; }; }
20569 fi
20570
20571 : ${CONFIG_STATUS=./config.status}
20572 ac_clean_files_save=$ac_clean_files
20573 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20574 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20575 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20576 cat >$CONFIG_STATUS <<_ACEOF
20577 #! $SHELL
20578 # Generated by $as_me.
20579 # Run this file to recreate the current configuration.
20580 # Compiler output produced by configure, useful for debugging
20581 # configure, is in config.log if it exists.
20582
20583 debug=false
20584 ac_cs_recheck=false
20585 ac_cs_silent=false
20586 SHELL=\${CONFIG_SHELL-$SHELL}
20587 _ACEOF
20588
20589 cat >>$CONFIG_STATUS <<\_ACEOF
20590 ## --------------------- ##
20591 ## M4sh Initialization.  ##
20592 ## --------------------- ##
20593
20594 # Be more Bourne compatible
20595 DUALCASE=1; export DUALCASE # for MKS sh
20596 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20597   emulate sh
20598   NULLCMD=:
20599   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20600   # is contrary to our usage.  Disable this feature.
20601   alias -g '${1+"$@"}'='"$@"'
20602   setopt NO_GLOB_SUBST
20603 else
20604   case `(set -o) 2>/dev/null` in
20605   *posix*) set -o posix ;;
20606 esac
20607
20608 fi
20609
20610
20611
20612
20613 # PATH needs CR
20614 # Avoid depending upon Character Ranges.
20615 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20616 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20617 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20618 as_cr_digits='0123456789'
20619 as_cr_alnum=$as_cr_Letters$as_cr_digits
20620
20621 # The user is always right.
20622 if test "${PATH_SEPARATOR+set}" != set; then
20623   echo "#! /bin/sh" >conf$$.sh
20624   echo  "exit 0"   >>conf$$.sh
20625   chmod +x conf$$.sh
20626   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20627     PATH_SEPARATOR=';'
20628   else
20629     PATH_SEPARATOR=:
20630   fi
20631   rm -f conf$$.sh
20632 fi
20633
20634 # Support unset when possible.
20635 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20636   as_unset=unset
20637 else
20638   as_unset=false
20639 fi
20640
20641
20642 # IFS
20643 # We need space, tab and new line, in precisely that order.  Quoting is
20644 # there to prevent editors from complaining about space-tab.
20645 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20646 # splitting by setting IFS to empty value.)
20647 as_nl='
20648 '
20649 IFS=" ""        $as_nl"
20650
20651 # Find who we are.  Look in the path if we contain no directory separator.
20652 case $0 in
20653   *[\\/]* ) as_myself=$0 ;;
20654   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20655 for as_dir in $PATH
20656 do
20657   IFS=$as_save_IFS
20658   test -z "$as_dir" && as_dir=.
20659   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20660 done
20661 IFS=$as_save_IFS
20662
20663      ;;
20664 esac
20665 # We did not find ourselves, most probably we were run as `sh COMMAND'
20666 # in which case we are not to be found in the path.
20667 if test "x$as_myself" = x; then
20668   as_myself=$0
20669 fi
20670 if test ! -f "$as_myself"; then
20671   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20672   { (exit 1); exit 1; }
20673 fi
20674
20675 # Work around bugs in pre-3.0 UWIN ksh.
20676 for as_var in ENV MAIL MAILPATH
20677 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20678 done
20679 PS1='$ '
20680 PS2='> '
20681 PS4='+ '
20682
20683 # NLS nuisances.
20684 for as_var in \
20685   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20686   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20687   LC_TELEPHONE LC_TIME
20688 do
20689   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20690     eval $as_var=C; export $as_var
20691   else
20692     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20693   fi
20694 done
20695
20696 # Required to use basename.
20697 if expr a : '\(a\)' >/dev/null 2>&1 &&
20698    test "X`expr 00001 : '.*\(...\)'`" = X001; then
20699   as_expr=expr
20700 else
20701   as_expr=false
20702 fi
20703
20704 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20705   as_basename=basename
20706 else
20707   as_basename=false
20708 fi
20709
20710
20711 # Name of the executable.
20712 as_me=`$as_basename -- "$0" ||
20713 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20714          X"$0" : 'X\(//\)$' \| \
20715          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20716 echo X/"$0" |
20717     sed '/^.*\/\([^/][^/]*\)\/*$/{
20718             s//\1/
20719             q
20720           }
20721           /^X\/\(\/\/\)$/{
20722             s//\1/
20723             q
20724           }
20725           /^X\/\(\/\).*/{
20726             s//\1/
20727             q
20728           }
20729           s/.*/./; q'`
20730
20731 # CDPATH.
20732 $as_unset CDPATH
20733
20734
20735
20736   as_lineno_1=$LINENO
20737   as_lineno_2=$LINENO
20738   test "x$as_lineno_1" != "x$as_lineno_2" &&
20739   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20740
20741   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20742   # uniformly replaced by the line number.  The first 'sed' inserts a
20743   # line-number line after each line using $LINENO; the second 'sed'
20744   # does the real work.  The second script uses 'N' to pair each
20745   # line-number line with the line containing $LINENO, and appends
20746   # trailing '-' during substitution so that $LINENO is not a special
20747   # case at line end.
20748   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20749   # scripts with optimization help from Paolo Bonzini.  Blame Lee
20750   # E. McMahon (1931-1989) for sed's syntax.  :-)
20751   sed -n '
20752     p
20753     /[$]LINENO/=
20754   ' <$as_myself |
20755     sed '
20756       s/[$]LINENO.*/&-/
20757       t lineno
20758       b
20759       :lineno
20760       N
20761       :loop
20762       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20763       t loop
20764       s/-\n.*//
20765     ' >$as_me.lineno &&
20766   chmod +x "$as_me.lineno" ||
20767     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20768    { (exit 1); exit 1; }; }
20769
20770   # Don't try to exec as it changes $[0], causing all sort of problems
20771   # (the dirname of $[0] is not the place where we might find the
20772   # original and so on.  Autoconf is especially sensitive to this).
20773   . "./$as_me.lineno"
20774   # Exit status is that of the last command.
20775   exit
20776 }
20777
20778
20779 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20780   as_dirname=dirname
20781 else
20782   as_dirname=false
20783 fi
20784
20785 ECHO_C= ECHO_N= ECHO_T=
20786 case `echo -n x` in
20787 -n*)
20788   case `echo 'x\c'` in
20789   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
20790   *)   ECHO_C='\c';;
20791   esac;;
20792 *)
20793   ECHO_N='-n';;
20794 esac
20795
20796 if expr a : '\(a\)' >/dev/null 2>&1 &&
20797    test "X`expr 00001 : '.*\(...\)'`" = X001; then
20798   as_expr=expr
20799 else
20800   as_expr=false
20801 fi
20802
20803 rm -f conf$$ conf$$.exe conf$$.file
20804 if test -d conf$$.dir; then
20805   rm -f conf$$.dir/conf$$.file
20806 else
20807   rm -f conf$$.dir
20808   mkdir conf$$.dir
20809 fi
20810 echo >conf$$.file
20811 if ln -s conf$$.file conf$$ 2>/dev/null; then
20812   as_ln_s='ln -s'
20813   # ... but there are two gotchas:
20814   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20815   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20816   # In both cases, we have to default to `cp -p'.
20817   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20818     as_ln_s='cp -p'
20819 elif ln conf$$.file conf$$ 2>/dev/null; then
20820   as_ln_s=ln
20821 else
20822   as_ln_s='cp -p'
20823 fi
20824 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20825 rmdir conf$$.dir 2>/dev/null
20826
20827 if mkdir -p . 2>/dev/null; then
20828   as_mkdir_p=:
20829 else
20830   test -d ./-p && rmdir ./-p
20831   as_mkdir_p=false
20832 fi
20833
20834 if test -x / >/dev/null 2>&1; then
20835   as_test_x='test -x'
20836 else
20837   if ls -dL / >/dev/null 2>&1; then
20838     as_ls_L_option=L
20839   else
20840     as_ls_L_option=
20841   fi
20842   as_test_x='
20843     eval sh -c '\''
20844       if test -d "$1"; then
20845         test -d "$1/.";
20846       else
20847         case $1 in
20848         -*)set "./$1";;
20849         esac;
20850         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
20851         ???[sx]*):;;*)false;;esac;fi
20852     '\'' sh
20853   '
20854 fi
20855 as_executable_p=$as_test_x
20856
20857 # Sed expression to map a string onto a valid CPP name.
20858 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20859
20860 # Sed expression to map a string onto a valid variable name.
20861 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20862
20863
20864 exec 6>&1
20865
20866 # Save the log message, to keep $[0] and so on meaningful, and to
20867 # report actual input values of CONFIG_FILES etc. instead of their
20868 # values after options handling.
20869 ac_log="
20870 This file was extended by ldapcpplib $as_me  , which was
20871 generated by GNU Autoconf 2.61.  Invocation command line was
20872
20873   CONFIG_FILES    = $CONFIG_FILES
20874   CONFIG_HEADERS  = $CONFIG_HEADERS
20875   CONFIG_LINKS    = $CONFIG_LINKS
20876   CONFIG_COMMANDS = $CONFIG_COMMANDS
20877   $ $0 $@
20878
20879 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20880 "
20881
20882 _ACEOF
20883
20884 cat >>$CONFIG_STATUS <<_ACEOF
20885 # Files that config.status was made for.
20886 config_files="$ac_config_files"
20887 config_headers="$ac_config_headers"
20888 config_commands="$ac_config_commands"
20889
20890 _ACEOF
20891
20892 cat >>$CONFIG_STATUS <<\_ACEOF
20893 ac_cs_usage="\
20894 \`$as_me' instantiates files from templates according to the
20895 current configuration.
20896
20897 Usage: $0 [OPTIONS] [FILE]...
20898
20899   -h, --help       print this help, then exit
20900   -V, --version    print version number and configuration settings, then exit
20901   -q, --quiet      do not print progress messages
20902   -d, --debug      don't remove temporary files
20903       --recheck    update $as_me by reconfiguring in the same conditions
20904   --file=FILE[:TEMPLATE]
20905                    instantiate the configuration file FILE
20906   --header=FILE[:TEMPLATE]
20907                    instantiate the configuration header FILE
20908
20909 Configuration files:
20910 $config_files
20911
20912 Configuration headers:
20913 $config_headers
20914
20915 Configuration commands:
20916 $config_commands
20917
20918 Report bugs to <bug-autoconf@gnu.org>."
20919
20920 _ACEOF
20921 cat >>$CONFIG_STATUS <<_ACEOF
20922 ac_cs_version="\\
20923 ldapcpplib config.status
20924 configured by $0, generated by GNU Autoconf 2.61,
20925   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20926
20927 Copyright (C) 2006 Free Software Foundation, Inc.
20928 This config.status script is free software; the Free Software Foundation
20929 gives unlimited permission to copy, distribute and modify it."
20930
20931 ac_pwd='$ac_pwd'
20932 srcdir='$srcdir'
20933 INSTALL='$INSTALL'
20934 MKDIR_P='$MKDIR_P'
20935 _ACEOF
20936
20937 cat >>$CONFIG_STATUS <<\_ACEOF
20938 # If no file are specified by the user, then we need to provide default
20939 # value.  By we need to know if files were specified by the user.
20940 ac_need_defaults=:
20941 while test $# != 0
20942 do
20943   case $1 in
20944   --*=*)
20945     ac_option=`expr "X$1" : 'X\([^=]*\)='`
20946     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20947     ac_shift=:
20948     ;;
20949   *)
20950     ac_option=$1
20951     ac_optarg=$2
20952     ac_shift=shift
20953     ;;
20954   esac
20955
20956   case $ac_option in
20957   # Handling of the options.
20958   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20959     ac_cs_recheck=: ;;
20960   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20961     echo "$ac_cs_version"; exit ;;
20962   --debug | --debu | --deb | --de | --d | -d )
20963     debug=: ;;
20964   --file | --fil | --fi | --f )
20965     $ac_shift
20966     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20967     ac_need_defaults=false;;
20968   --header | --heade | --head | --hea )
20969     $ac_shift
20970     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20971     ac_need_defaults=false;;
20972   --he | --h)
20973     # Conflict between --help and --header
20974     { echo "$as_me: error: ambiguous option: $1
20975 Try \`$0 --help' for more information." >&2
20976    { (exit 1); exit 1; }; };;
20977   --help | --hel | -h )
20978     echo "$ac_cs_usage"; exit ;;
20979   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20980   | -silent | --silent | --silen | --sile | --sil | --si | --s)
20981     ac_cs_silent=: ;;
20982
20983   # This is an error.
20984   -*) { echo "$as_me: error: unrecognized option: $1
20985 Try \`$0 --help' for more information." >&2
20986    { (exit 1); exit 1; }; } ;;
20987
20988   *) ac_config_targets="$ac_config_targets $1"
20989      ac_need_defaults=false ;;
20990
20991   esac
20992   shift
20993 done
20994
20995 ac_configure_extra_args=
20996
20997 if $ac_cs_silent; then
20998   exec 6>/dev/null
20999   ac_configure_extra_args="$ac_configure_extra_args --silent"
21000 fi
21001
21002 _ACEOF
21003 cat >>$CONFIG_STATUS <<_ACEOF
21004 if \$ac_cs_recheck; then
21005   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21006   CONFIG_SHELL=$SHELL
21007   export CONFIG_SHELL
21008   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21009 fi
21010
21011 _ACEOF
21012 cat >>$CONFIG_STATUS <<\_ACEOF
21013 exec 5>>config.log
21014 {
21015   echo
21016   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21017 ## Running $as_me. ##
21018 _ASBOX
21019   echo "$ac_log"
21020 } >&5
21021
21022 _ACEOF
21023 cat >>$CONFIG_STATUS <<_ACEOF
21024 #
21025 # INIT-COMMANDS
21026 #
21027 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21028
21029 _ACEOF
21030
21031 cat >>$CONFIG_STATUS <<\_ACEOF
21032
21033 # Handling of arguments.
21034 for ac_config_target in $ac_config_targets
21035 do
21036   case $ac_config_target in
21037     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
21038     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21039     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21040     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21041     "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
21042
21043   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21044 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21045    { (exit 1); exit 1; }; };;
21046   esac
21047 done
21048
21049
21050 # If the user did not use the arguments to specify the items to instantiate,
21051 # then the envvar interface is used.  Set only those that are not.
21052 # We use the long form for the default assignment because of an extremely
21053 # bizarre bug on SunOS 4.1.3.
21054 if $ac_need_defaults; then
21055   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21056   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21057   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21058 fi
21059
21060 # Have a temporary directory for convenience.  Make it in the build tree
21061 # simply because there is no reason against having it here, and in addition,
21062 # creating and moving files from /tmp can sometimes cause problems.
21063 # Hook for its removal unless debugging.
21064 # Note that there is a small window in which the directory will not be cleaned:
21065 # after its creation but before its name has been assigned to `$tmp'.
21066 $debug ||
21067 {
21068   tmp=
21069   trap 'exit_status=$?
21070   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21071 ' 0
21072   trap '{ (exit 1); exit 1; }' 1 2 13 15
21073 }
21074 # Create a (secure) tmp directory for tmp files.
21075
21076 {
21077   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21078   test -n "$tmp" && test -d "$tmp"
21079 }  ||
21080 {
21081   tmp=./conf$$-$RANDOM
21082   (umask 077 && mkdir "$tmp")
21083 } ||
21084 {
21085    echo "$me: cannot create a temporary directory in ." >&2
21086    { (exit 1); exit 1; }
21087 }
21088
21089 #
21090 # Set up the sed scripts for CONFIG_FILES section.
21091 #
21092
21093 # No need to generate the scripts if there are no CONFIG_FILES.
21094 # This happens for instance when ./config.status config.h
21095 if test -n "$CONFIG_FILES"; then
21096
21097 _ACEOF
21098
21099
21100
21101 ac_delim='%!_!# '
21102 for ac_last_try in false false false false false :; do
21103   cat >conf$$subs.sed <<_ACEOF
21104 SHELL!$SHELL$ac_delim
21105 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21106 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21107 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21108 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21109 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21110 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21111 exec_prefix!$exec_prefix$ac_delim
21112 prefix!$prefix$ac_delim
21113 program_transform_name!$program_transform_name$ac_delim
21114 bindir!$bindir$ac_delim
21115 sbindir!$sbindir$ac_delim
21116 libexecdir!$libexecdir$ac_delim
21117 datarootdir!$datarootdir$ac_delim
21118 datadir!$datadir$ac_delim
21119 sysconfdir!$sysconfdir$ac_delim
21120 sharedstatedir!$sharedstatedir$ac_delim
21121 localstatedir!$localstatedir$ac_delim
21122 includedir!$includedir$ac_delim
21123 oldincludedir!$oldincludedir$ac_delim
21124 docdir!$docdir$ac_delim
21125 infodir!$infodir$ac_delim
21126 htmldir!$htmldir$ac_delim
21127 dvidir!$dvidir$ac_delim
21128 pdfdir!$pdfdir$ac_delim
21129 psdir!$psdir$ac_delim
21130 libdir!$libdir$ac_delim
21131 localedir!$localedir$ac_delim
21132 mandir!$mandir$ac_delim
21133 DEFS!$DEFS$ac_delim
21134 ECHO_C!$ECHO_C$ac_delim
21135 ECHO_N!$ECHO_N$ac_delim
21136 ECHO_T!$ECHO_T$ac_delim
21137 LIBS!$LIBS$ac_delim
21138 build_alias!$build_alias$ac_delim
21139 host_alias!$host_alias$ac_delim
21140 target_alias!$target_alias$ac_delim
21141 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21142 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21143 INSTALL_DATA!$INSTALL_DATA$ac_delim
21144 am__isrc!$am__isrc$ac_delim
21145 CYGPATH_W!$CYGPATH_W$ac_delim
21146 PACKAGE!$PACKAGE$ac_delim
21147 VERSION!$VERSION$ac_delim
21148 ACLOCAL!$ACLOCAL$ac_delim
21149 AUTOCONF!$AUTOCONF$ac_delim
21150 AUTOMAKE!$AUTOMAKE$ac_delim
21151 AUTOHEADER!$AUTOHEADER$ac_delim
21152 MAKEINFO!$MAKEINFO$ac_delim
21153 install_sh!$install_sh$ac_delim
21154 STRIP!$STRIP$ac_delim
21155 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
21156 mkdir_p!$mkdir_p$ac_delim
21157 AWK!$AWK$ac_delim
21158 SET_MAKE!$SET_MAKE$ac_delim
21159 am__leading_dot!$am__leading_dot$ac_delim
21160 AMTAR!$AMTAR$ac_delim
21161 am__tar!$am__tar$ac_delim
21162 am__untar!$am__untar$ac_delim
21163 OPENLDAP_CPP_API_VERSION!$OPENLDAP_CPP_API_VERSION$ac_delim
21164 CXX!$CXX$ac_delim
21165 CXXFLAGS!$CXXFLAGS$ac_delim
21166 LDFLAGS!$LDFLAGS$ac_delim
21167 CPPFLAGS!$CPPFLAGS$ac_delim
21168 ac_ct_CXX!$ac_ct_CXX$ac_delim
21169 EXEEXT!$EXEEXT$ac_delim
21170 OBJEXT!$OBJEXT$ac_delim
21171 DEPDIR!$DEPDIR$ac_delim
21172 am__include!$am__include$ac_delim
21173 am__quote!$am__quote$ac_delim
21174 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
21175 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
21176 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
21177 CXXDEPMODE!$CXXDEPMODE$ac_delim
21178 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
21179 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
21180 build!$build$ac_delim
21181 build_cpu!$build_cpu$ac_delim
21182 build_vendor!$build_vendor$ac_delim
21183 build_os!$build_os$ac_delim
21184 host!$host$ac_delim
21185 host_cpu!$host_cpu$ac_delim
21186 host_vendor!$host_vendor$ac_delim
21187 host_os!$host_os$ac_delim
21188 CC!$CC$ac_delim
21189 CFLAGS!$CFLAGS$ac_delim
21190 ac_ct_CC!$ac_ct_CC$ac_delim
21191 CCDEPMODE!$CCDEPMODE$ac_delim
21192 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
21193 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
21194 SED!$SED$ac_delim
21195 GREP!$GREP$ac_delim
21196 EGREP!$EGREP$ac_delim
21197 LN_S!$LN_S$ac_delim
21198 ECHO!$ECHO$ac_delim
21199 AR!$AR$ac_delim
21200 RANLIB!$RANLIB$ac_delim
21201 _ACEOF
21202
21203   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21204     break
21205   elif $ac_last_try; then
21206     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21207 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21208    { (exit 1); exit 1; }; }
21209   else
21210     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21211   fi
21212 done
21213
21214 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21215 if test -n "$ac_eof"; then
21216   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21217   ac_eof=`expr $ac_eof + 1`
21218 fi
21219
21220 cat >>$CONFIG_STATUS <<_ACEOF
21221 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21222 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21223 _ACEOF
21224 sed '
21225 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21226 s/^/s,@/; s/!/@,|#_!!_#|/
21227 :n
21228 t n
21229 s/'"$ac_delim"'$/,g/; t
21230 s/$/\\/; p
21231 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21232 ' >>$CONFIG_STATUS <conf$$subs.sed
21233 rm -f conf$$subs.sed
21234 cat >>$CONFIG_STATUS <<_ACEOF
21235 CEOF$ac_eof
21236 _ACEOF
21237
21238
21239 ac_delim='%!_!# '
21240 for ac_last_try in false false false false false :; do
21241   cat >conf$$subs.sed <<_ACEOF
21242 DSYMUTIL!$DSYMUTIL$ac_delim
21243 NMEDIT!$NMEDIT$ac_delim
21244 CPP!$CPP$ac_delim
21245 CXXCPP!$CXXCPP$ac_delim
21246 F77!$F77$ac_delim
21247 FFLAGS!$FFLAGS$ac_delim
21248 ac_ct_F77!$ac_ct_F77$ac_delim
21249 LIBTOOL!$LIBTOOL$ac_delim
21250 LIBOBJS!$LIBOBJS$ac_delim
21251 LTLIBOBJS!$LTLIBOBJS$ac_delim
21252 _ACEOF
21253
21254   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 10; then
21255     break
21256   elif $ac_last_try; then
21257     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21258 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21259    { (exit 1); exit 1; }; }
21260   else
21261     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21262   fi
21263 done
21264
21265 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21266 if test -n "$ac_eof"; then
21267   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21268   ac_eof=`expr $ac_eof + 1`
21269 fi
21270
21271 cat >>$CONFIG_STATUS <<_ACEOF
21272 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21273 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21274 _ACEOF
21275 sed '
21276 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21277 s/^/s,@/; s/!/@,|#_!!_#|/
21278 :n
21279 t n
21280 s/'"$ac_delim"'$/,g/; t
21281 s/$/\\/; p
21282 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21283 ' >>$CONFIG_STATUS <conf$$subs.sed
21284 rm -f conf$$subs.sed
21285 cat >>$CONFIG_STATUS <<_ACEOF
21286 :end
21287 s/|#_!!_#|//g
21288 CEOF$ac_eof
21289 _ACEOF
21290
21291
21292 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21293 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21294 # trailing colons and then remove the whole line if VPATH becomes empty
21295 # (actually we leave an empty line to preserve line numbers).
21296 if test "x$srcdir" = x.; then
21297   ac_vpsub='/^[  ]*VPATH[        ]*=/{
21298 s/:*\$(srcdir):*/:/
21299 s/:*\${srcdir}:*/:/
21300 s/:*@srcdir@:*/:/
21301 s/^\([^=]*=[     ]*\):*/\1/
21302 s/:*$//
21303 s/^[^=]*=[       ]*$//
21304 }'
21305 fi
21306
21307 cat >>$CONFIG_STATUS <<\_ACEOF
21308 fi # test -n "$CONFIG_FILES"
21309
21310
21311 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
21312 do
21313   case $ac_tag in
21314   :[FHLC]) ac_mode=$ac_tag; continue;;
21315   esac
21316   case $ac_mode$ac_tag in
21317   :[FHL]*:*);;
21318   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21319 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21320    { (exit 1); exit 1; }; };;
21321   :[FH]-) ac_tag=-:-;;
21322   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21323   esac
21324   ac_save_IFS=$IFS
21325   IFS=:
21326   set x $ac_tag
21327   IFS=$ac_save_IFS
21328   shift
21329   ac_file=$1
21330   shift
21331
21332   case $ac_mode in
21333   :L) ac_source=$1;;
21334   :[FH])
21335     ac_file_inputs=
21336     for ac_f
21337     do
21338       case $ac_f in
21339       -) ac_f="$tmp/stdin";;
21340       *) # Look for the file first in the build tree, then in the source tree
21341          # (if the path is not absolute).  The absolute path cannot be DOS-style,
21342          # because $ac_f cannot contain `:'.
21343          test -f "$ac_f" ||
21344            case $ac_f in
21345            [\\/$]*) false;;
21346            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21347            esac ||
21348            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21349 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21350    { (exit 1); exit 1; }; };;
21351       esac
21352       ac_file_inputs="$ac_file_inputs $ac_f"
21353     done
21354
21355     # Let's still pretend it is `configure' which instantiates (i.e., don't
21356     # use $as_me), people would be surprised to read:
21357     #    /* config.h.  Generated by config.status.  */
21358     configure_input="Generated from "`IFS=:
21359           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21360     if test x"$ac_file" != x-; then
21361       configure_input="$ac_file.  $configure_input"
21362       { echo "$as_me:$LINENO: creating $ac_file" >&5
21363 echo "$as_me: creating $ac_file" >&6;}
21364     fi
21365
21366     case $ac_tag in
21367     *:-:* | *:-) cat >"$tmp/stdin";;
21368     esac
21369     ;;
21370   esac
21371
21372   ac_dir=`$as_dirname -- "$ac_file" ||
21373 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21374          X"$ac_file" : 'X\(//\)[^/]' \| \
21375          X"$ac_file" : 'X\(//\)$' \| \
21376          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21377 echo X"$ac_file" |
21378     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21379             s//\1/
21380             q
21381           }
21382           /^X\(\/\/\)[^/].*/{
21383             s//\1/
21384             q
21385           }
21386           /^X\(\/\/\)$/{
21387             s//\1/
21388             q
21389           }
21390           /^X\(\/\).*/{
21391             s//\1/
21392             q
21393           }
21394           s/.*/./; q'`
21395   { as_dir="$ac_dir"
21396   case $as_dir in #(
21397   -*) as_dir=./$as_dir;;
21398   esac
21399   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21400     as_dirs=
21401     while :; do
21402       case $as_dir in #(
21403       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21404       *) as_qdir=$as_dir;;
21405       esac
21406       as_dirs="'$as_qdir' $as_dirs"
21407       as_dir=`$as_dirname -- "$as_dir" ||
21408 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21409          X"$as_dir" : 'X\(//\)[^/]' \| \
21410          X"$as_dir" : 'X\(//\)$' \| \
21411          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21412 echo X"$as_dir" |
21413     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21414             s//\1/
21415             q
21416           }
21417           /^X\(\/\/\)[^/].*/{
21418             s//\1/
21419             q
21420           }
21421           /^X\(\/\/\)$/{
21422             s//\1/
21423             q
21424           }
21425           /^X\(\/\).*/{
21426             s//\1/
21427             q
21428           }
21429           s/.*/./; q'`
21430       test -d "$as_dir" && break
21431     done
21432     test -z "$as_dirs" || eval "mkdir $as_dirs"
21433   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21434 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21435    { (exit 1); exit 1; }; }; }
21436   ac_builddir=.
21437
21438 case "$ac_dir" in
21439 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21440 *)
21441   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21442   # A ".." for each directory in $ac_dir_suffix.
21443   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21444   case $ac_top_builddir_sub in
21445   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21446   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21447   esac ;;
21448 esac
21449 ac_abs_top_builddir=$ac_pwd
21450 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21451 # for backward compatibility:
21452 ac_top_builddir=$ac_top_build_prefix
21453
21454 case $srcdir in
21455   .)  # We are building in place.
21456     ac_srcdir=.
21457     ac_top_srcdir=$ac_top_builddir_sub
21458     ac_abs_top_srcdir=$ac_pwd ;;
21459   [\\/]* | ?:[\\/]* )  # Absolute name.
21460     ac_srcdir=$srcdir$ac_dir_suffix;
21461     ac_top_srcdir=$srcdir
21462     ac_abs_top_srcdir=$srcdir ;;
21463   *) # Relative name.
21464     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21465     ac_top_srcdir=$ac_top_build_prefix$srcdir
21466     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21467 esac
21468 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21469
21470
21471   case $ac_mode in
21472   :F)
21473   #
21474   # CONFIG_FILE
21475   #
21476
21477   case $INSTALL in
21478   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21479   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21480   esac
21481   ac_MKDIR_P=$MKDIR_P
21482   case $MKDIR_P in
21483   [\\/$]* | ?:[\\/]* ) ;;
21484   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21485   esac
21486 _ACEOF
21487
21488 cat >>$CONFIG_STATUS <<\_ACEOF
21489 # If the template does not know about datarootdir, expand it.
21490 # FIXME: This hack should be removed a few years after 2.60.
21491 ac_datarootdir_hack=; ac_datarootdir_seen=
21492
21493 case `sed -n '/datarootdir/ {
21494   p
21495   q
21496 }
21497 /@datadir@/p
21498 /@docdir@/p
21499 /@infodir@/p
21500 /@localedir@/p
21501 /@mandir@/p
21502 ' $ac_file_inputs` in
21503 *datarootdir*) ac_datarootdir_seen=yes;;
21504 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21505   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21506 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21507 _ACEOF
21508 cat >>$CONFIG_STATUS <<_ACEOF
21509   ac_datarootdir_hack='
21510   s&@datadir@&$datadir&g
21511   s&@docdir@&$docdir&g
21512   s&@infodir@&$infodir&g
21513   s&@localedir@&$localedir&g
21514   s&@mandir@&$mandir&g
21515     s&\\\${datarootdir}&$datarootdir&g' ;;
21516 esac
21517 _ACEOF
21518
21519 # Neutralize VPATH when `$srcdir' = `.'.
21520 # Shell code in configure.ac might set extrasub.
21521 # FIXME: do we really want to maintain this feature?
21522 cat >>$CONFIG_STATUS <<_ACEOF
21523   sed "$ac_vpsub
21524 $extrasub
21525 _ACEOF
21526 cat >>$CONFIG_STATUS <<\_ACEOF
21527 :t
21528 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21529 s&@configure_input@&$configure_input&;t t
21530 s&@top_builddir@&$ac_top_builddir_sub&;t t
21531 s&@srcdir@&$ac_srcdir&;t t
21532 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21533 s&@top_srcdir@&$ac_top_srcdir&;t t
21534 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21535 s&@builddir@&$ac_builddir&;t t
21536 s&@abs_builddir@&$ac_abs_builddir&;t t
21537 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21538 s&@INSTALL@&$ac_INSTALL&;t t
21539 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21540 $ac_datarootdir_hack
21541 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21542
21543 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21544   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21545   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21546   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21547 which seems to be undefined.  Please make sure it is defined." >&5
21548 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21549 which seems to be undefined.  Please make sure it is defined." >&2;}
21550
21551   rm -f "$tmp/stdin"
21552   case $ac_file in
21553   -) cat "$tmp/out"; rm -f "$tmp/out";;
21554   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21555   esac
21556  ;;
21557   :H)
21558   #
21559   # CONFIG_HEADER
21560   #
21561 _ACEOF
21562
21563 # Transform confdefs.h into a sed script `conftest.defines', that
21564 # substitutes the proper values into config.h.in to produce config.h.
21565 rm -f conftest.defines conftest.tail
21566 # First, append a space to every undef/define line, to ease matching.
21567 echo 's/$/ /' >conftest.defines
21568 # Then, protect against being on the right side of a sed subst, or in
21569 # an unquoted here document, in config.status.  If some macros were
21570 # called several times there might be several #defines for the same
21571 # symbol, which is useless.  But do not sort them, since the last
21572 # AC_DEFINE must be honored.
21573 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21574 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21575 # NAME is the cpp macro being defined, VALUE is the value it is being given.
21576 # PARAMS is the parameter list in the macro definition--in most cases, it's
21577 # just an empty string.
21578 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
21579 ac_dB='\\)[      (].*,\\1define\\2'
21580 ac_dC=' '
21581 ac_dD=' ,'
21582
21583 uniq confdefs.h |
21584   sed -n '
21585         t rset
21586         :rset
21587         s/^[     ]*#[    ]*define[       ][      ]*//
21588         t ok
21589         d
21590         :ok
21591         s/[\\&,]/\\&/g
21592         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21593         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21594   ' >>conftest.defines
21595
21596 # Remove the space that was appended to ease matching.
21597 # Then replace #undef with comments.  This is necessary, for
21598 # example, in the case of _POSIX_SOURCE, which is predefined and required
21599 # on some systems where configure will not decide to define it.
21600 # (The regexp can be short, since the line contains either #define or #undef.)
21601 echo 's/ $//
21602 s,^[     #]*u.*,/* & */,' >>conftest.defines
21603
21604 # Break up conftest.defines:
21605 ac_max_sed_lines=50
21606
21607 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21608 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21609 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21610 # et cetera.
21611 ac_in='$ac_file_inputs'
21612 ac_out='"$tmp/out1"'
21613 ac_nxt='"$tmp/out2"'
21614
21615 while :
21616 do
21617   # Write a here document:
21618     cat >>$CONFIG_STATUS <<_ACEOF
21619     # First, check the format of the line:
21620     cat >"\$tmp/defines.sed" <<\\CEOF
21621 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
21622 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
21623 b
21624 :def
21625 _ACEOF
21626   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21627   echo 'CEOF
21628     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21629   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21630   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21631   grep . conftest.tail >/dev/null || break
21632   rm -f conftest.defines
21633   mv conftest.tail conftest.defines
21634 done
21635 rm -f conftest.defines conftest.tail
21636
21637 echo "ac_result=$ac_in" >>$CONFIG_STATUS
21638 cat >>$CONFIG_STATUS <<\_ACEOF
21639   if test x"$ac_file" != x-; then
21640     echo "/* $configure_input  */" >"$tmp/config.h"
21641     cat "$ac_result" >>"$tmp/config.h"
21642     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21643       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21644 echo "$as_me: $ac_file is unchanged" >&6;}
21645     else
21646       rm -f $ac_file
21647       mv "$tmp/config.h" $ac_file
21648     fi
21649   else
21650     echo "/* $configure_input  */"
21651     cat "$ac_result"
21652   fi
21653   rm -f "$tmp/out12"
21654 # Compute $ac_file's index in $config_headers.
21655 _am_arg=$ac_file
21656 _am_stamp_count=1
21657 for _am_header in $config_headers :; do
21658   case $_am_header in
21659     $_am_arg | $_am_arg:* )
21660       break ;;
21661     * )
21662       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21663   esac
21664 done
21665 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21666 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21667          X"$_am_arg" : 'X\(//\)[^/]' \| \
21668          X"$_am_arg" : 'X\(//\)$' \| \
21669          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21670 echo X"$_am_arg" |
21671     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21672             s//\1/
21673             q
21674           }
21675           /^X\(\/\/\)[^/].*/{
21676             s//\1/
21677             q
21678           }
21679           /^X\(\/\/\)$/{
21680             s//\1/
21681             q
21682           }
21683           /^X\(\/\).*/{
21684             s//\1/
21685             q
21686           }
21687           s/.*/./; q'`/stamp-h$_am_stamp_count
21688  ;;
21689
21690   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21691 echo "$as_me: executing $ac_file commands" >&6;}
21692  ;;
21693   esac
21694
21695
21696   case $ac_file$ac_mode in
21697     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21698   # Strip MF so we end up with the name of the file.
21699   mf=`echo "$mf" | sed -e 's/:.*$//'`
21700   # Check whether this is an Automake generated Makefile or not.
21701   # We used to match only the files named `Makefile.in', but
21702   # some people rename them; so instead we look at the file content.
21703   # Grep'ing the first line is not enough: some people post-process
21704   # each Makefile.in and add a new line on top of each file to say so.
21705   # Grep'ing the whole file is not good either: AIX grep has a line
21706   # limit of 2048, but all sed's we know have understand at least 4000.
21707   if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21708     dirpart=`$as_dirname -- "$mf" ||
21709 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21710          X"$mf" : 'X\(//\)[^/]' \| \
21711          X"$mf" : 'X\(//\)$' \| \
21712          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21713 echo X"$mf" |
21714     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21715             s//\1/
21716             q
21717           }
21718           /^X\(\/\/\)[^/].*/{
21719             s//\1/
21720             q
21721           }
21722           /^X\(\/\/\)$/{
21723             s//\1/
21724             q
21725           }
21726           /^X\(\/\).*/{
21727             s//\1/
21728             q
21729           }
21730           s/.*/./; q'`
21731   else
21732     continue
21733   fi
21734   # Extract the definition of DEPDIR, am__include, and am__quote
21735   # from the Makefile without running `make'.
21736   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21737   test -z "$DEPDIR" && continue
21738   am__include=`sed -n 's/^am__include = //p' < "$mf"`
21739   test -z "am__include" && continue
21740   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21741   # When using ansi2knr, U may be empty or an underscore; expand it
21742   U=`sed -n 's/^U = //p' < "$mf"`
21743   # Find all dependency output files, they are included files with
21744   # $(DEPDIR) in their names.  We invoke sed twice because it is the
21745   # simplest approach to changing $(DEPDIR) to its actual value in the
21746   # expansion.
21747   for file in `sed -n "
21748     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21749        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21750     # Make sure the directory exists.
21751     test -f "$dirpart/$file" && continue
21752     fdir=`$as_dirname -- "$file" ||
21753 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21754          X"$file" : 'X\(//\)[^/]' \| \
21755          X"$file" : 'X\(//\)$' \| \
21756          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21757 echo X"$file" |
21758     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21759             s//\1/
21760             q
21761           }
21762           /^X\(\/\/\)[^/].*/{
21763             s//\1/
21764             q
21765           }
21766           /^X\(\/\/\)$/{
21767             s//\1/
21768             q
21769           }
21770           /^X\(\/\).*/{
21771             s//\1/
21772             q
21773           }
21774           s/.*/./; q'`
21775     { as_dir=$dirpart/$fdir
21776   case $as_dir in #(
21777   -*) as_dir=./$as_dir;;
21778   esac
21779   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21780     as_dirs=
21781     while :; do
21782       case $as_dir in #(
21783       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21784       *) as_qdir=$as_dir;;
21785       esac
21786       as_dirs="'$as_qdir' $as_dirs"
21787       as_dir=`$as_dirname -- "$as_dir" ||
21788 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21789          X"$as_dir" : 'X\(//\)[^/]' \| \
21790          X"$as_dir" : 'X\(//\)$' \| \
21791          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21792 echo X"$as_dir" |
21793     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21794             s//\1/
21795             q
21796           }
21797           /^X\(\/\/\)[^/].*/{
21798             s//\1/
21799             q
21800           }
21801           /^X\(\/\/\)$/{
21802             s//\1/
21803             q
21804           }
21805           /^X\(\/\).*/{
21806             s//\1/
21807             q
21808           }
21809           s/.*/./; q'`
21810       test -d "$as_dir" && break
21811     done
21812     test -z "$as_dirs" || eval "mkdir $as_dirs"
21813   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21814 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21815    { (exit 1); exit 1; }; }; }
21816     # echo "creating $dirpart/$file"
21817     echo '# dummy' > "$dirpart/$file"
21818   done
21819 done
21820  ;;
21821
21822   esac
21823 done # for ac_tag
21824
21825
21826 { (exit 0); exit 0; }
21827 _ACEOF
21828 chmod +x $CONFIG_STATUS
21829 ac_clean_files=$ac_clean_files_save
21830
21831
21832 # configure is writing to config.log, and then calls config.status.
21833 # config.status does its own redirection, appending to config.log.
21834 # Unfortunately, on DOS this fails, as config.log is still kept open
21835 # by configure, so config.status won't be able to write to it; its
21836 # output is simply discarded.  So we exec the FD to /dev/null,
21837 # effectively closing config.log, so it can be properly (re)opened and
21838 # appended to by config.status.  When coming back to configure, we
21839 # need to make the FD available again.
21840 if test "$no_create" != yes; then
21841   ac_cs_success=:
21842   ac_config_status_args=
21843   test "$silent" = yes &&
21844     ac_config_status_args="$ac_config_status_args --quiet"
21845   exec 5>/dev/null
21846   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21847   exec 5>>config.log
21848   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21849   # would make configure fail if this is the last instruction.
21850   $ac_cs_success || { (exit 1); exit 1; }
21851 fi
21852