]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/sqlite/lib/contrib/configure
update
[l4.git] / l4 / pkg / sqlite / lib / contrib / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.62 for sqlite 3.7.6.2.
4 #
5 # Report bugs to <http://www.sqlite.org>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in
26   *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 as_nl='
43 '
44 export as_nl
45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83 # Support unset when possible.
84 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85   as_unset=unset
86 else
87   as_unset=false
88 fi
89
90
91 # IFS
92 # We need space, tab and new line, in precisely that order.  Quoting is
93 # there to prevent editors from complaining about space-tab.
94 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
95 # splitting by setting IFS to empty value.)
96 IFS=" ""        $as_nl"
97
98 # Find who we are.  Look in the path if we contain no directory separator.
99 case $0 in
100   *[\\/]* ) as_myself=$0 ;;
101   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102 for as_dir in $PATH
103 do
104   IFS=$as_save_IFS
105   test -z "$as_dir" && as_dir=.
106   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 done
108 IFS=$as_save_IFS
109
110      ;;
111 esac
112 # We did not find ourselves, most probably we were run as `sh COMMAND'
113 # in which case we are not to be found in the path.
114 if test "x$as_myself" = x; then
115   as_myself=$0
116 fi
117 if test ! -f "$as_myself"; then
118   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119   { (exit 1); exit 1; }
120 fi
121
122 # Work around bugs in pre-3.0 UWIN ksh.
123 for as_var in ENV MAIL MAILPATH
124 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # Required to use basename.
137 if expr a : '\(a\)' >/dev/null 2>&1 &&
138    test "X`expr 00001 : '.*\(...\)'`" = X001; then
139   as_expr=expr
140 else
141   as_expr=false
142 fi
143
144 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145   as_basename=basename
146 else
147   as_basename=false
148 fi
149
150
151 # Name of the executable.
152 as_me=`$as_basename -- "$0" ||
153 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154          X"$0" : 'X\(//\)$' \| \
155          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
156 $as_echo X/"$0" |
157     sed '/^.*\/\([^/][^/]*\)\/*$/{
158             s//\1/
159             q
160           }
161           /^X\/\(\/\/\)$/{
162             s//\1/
163             q
164           }
165           /^X\/\(\/\).*/{
166             s//\1/
167             q
168           }
169           s/.*/./; q'`
170
171 # CDPATH.
172 $as_unset CDPATH
173
174
175 if test "x$CONFIG_SHELL" = x; then
176   if (eval ":") 2>/dev/null; then
177   as_have_required=yes
178 else
179   as_have_required=no
180 fi
181
182   if test $as_have_required = yes &&     (eval ":
183 (as_func_return () {
184   (exit \$1)
185 }
186 as_func_success () {
187   as_func_return 0
188 }
189 as_func_failure () {
190   as_func_return 1
191 }
192 as_func_ret_success () {
193   return 0
194 }
195 as_func_ret_failure () {
196   return 1
197 }
198
199 exitcode=0
200 if as_func_success; then
201   :
202 else
203   exitcode=1
204   echo as_func_success failed.
205 fi
206
207 if as_func_failure; then
208   exitcode=1
209   echo as_func_failure succeeded.
210 fi
211
212 if as_func_ret_success; then
213   :
214 else
215   exitcode=1
216   echo as_func_ret_success failed.
217 fi
218
219 if as_func_ret_failure; then
220   exitcode=1
221   echo as_func_ret_failure succeeded.
222 fi
223
224 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225   :
226 else
227   exitcode=1
228   echo positional parameters were not saved.
229 fi
230
231 test \$exitcode = 0) || { (exit 1); exit 1; }
232
233 (
234   as_lineno_1=\$LINENO
235   as_lineno_2=\$LINENO
236   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238 ") 2> /dev/null; then
239   :
240 else
241   as_candidate_shells=
242     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244 do
245   IFS=$as_save_IFS
246   test -z "$as_dir" && as_dir=.
247   case $as_dir in
248          /*)
249            for as_base in sh bash ksh sh5; do
250              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251            done;;
252        esac
253 done
254 IFS=$as_save_IFS
255
256
257       for as_shell in $as_candidate_shells $SHELL; do
258          # Try only shells that exist, to save several forks.
259          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260                 { ("$as_shell") 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 _ASEOF
278 }; then
279   CONFIG_SHELL=$as_shell
280                as_have_required=yes
281                if { "$as_shell" 2> /dev/null <<\_ASEOF
282 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283   emulate sh
284   NULLCMD=:
285   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286   # is contrary to our usage.  Disable this feature.
287   alias -g '${1+"$@"}'='"$@"'
288   setopt NO_GLOB_SUBST
289 else
290   case `(set -o) 2>/dev/null` in
291   *posix*) set -o posix ;;
292 esac
293
294 fi
295
296
297 :
298 (as_func_return () {
299   (exit $1)
300 }
301 as_func_success () {
302   as_func_return 0
303 }
304 as_func_failure () {
305   as_func_return 1
306 }
307 as_func_ret_success () {
308   return 0
309 }
310 as_func_ret_failure () {
311   return 1
312 }
313
314 exitcode=0
315 if as_func_success; then
316   :
317 else
318   exitcode=1
319   echo as_func_success failed.
320 fi
321
322 if as_func_failure; then
323   exitcode=1
324   echo as_func_failure succeeded.
325 fi
326
327 if as_func_ret_success; then
328   :
329 else
330   exitcode=1
331   echo as_func_ret_success failed.
332 fi
333
334 if as_func_ret_failure; then
335   exitcode=1
336   echo as_func_ret_failure succeeded.
337 fi
338
339 if ( set x; as_func_ret_success y && test x = "$1" ); then
340   :
341 else
342   exitcode=1
343   echo positional parameters were not saved.
344 fi
345
346 test $exitcode = 0) || { (exit 1); exit 1; }
347
348 (
349   as_lineno_1=$LINENO
350   as_lineno_2=$LINENO
351   test "x$as_lineno_1" != "x$as_lineno_2" &&
352   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
353
354 _ASEOF
355 }; then
356   break
357 fi
358
359 fi
360
361       done
362
363       if test "x$CONFIG_SHELL" != x; then
364   for as_var in BASH_ENV ENV
365         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366         done
367         export CONFIG_SHELL
368         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
369 fi
370
371
372     if test $as_have_required = no; then
373   echo This script requires a shell more modern than all the
374       echo shells that I found on your system.  Please install a
375       echo modern shell, or manually run the script under such a
376       echo shell if you do have one.
377       { (exit 1); exit 1; }
378 fi
379
380
381 fi
382
383 fi
384
385
386
387 (eval "as_func_return () {
388   (exit \$1)
389 }
390 as_func_success () {
391   as_func_return 0
392 }
393 as_func_failure () {
394   as_func_return 1
395 }
396 as_func_ret_success () {
397   return 0
398 }
399 as_func_ret_failure () {
400   return 1
401 }
402
403 exitcode=0
404 if as_func_success; then
405   :
406 else
407   exitcode=1
408   echo as_func_success failed.
409 fi
410
411 if as_func_failure; then
412   exitcode=1
413   echo as_func_failure succeeded.
414 fi
415
416 if as_func_ret_success; then
417   :
418 else
419   exitcode=1
420   echo as_func_ret_success failed.
421 fi
422
423 if as_func_ret_failure; then
424   exitcode=1
425   echo as_func_ret_failure succeeded.
426 fi
427
428 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429   :
430 else
431   exitcode=1
432   echo positional parameters were not saved.
433 fi
434
435 test \$exitcode = 0") || {
436   echo No shell found that supports shell functions.
437   echo Please tell bug-autoconf@gnu.org about your system,
438   echo including any error possibly output before this message.
439   echo This can help us improve future autoconf versions.
440   echo Configuration will now proceed without shell functions.
441 }
442
443
444
445   as_lineno_1=$LINENO
446   as_lineno_2=$LINENO
447   test "x$as_lineno_1" != "x$as_lineno_2" &&
448   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
449
450   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451   # uniformly replaced by the line number.  The first 'sed' inserts a
452   # line-number line after each line using $LINENO; the second 'sed'
453   # does the real work.  The second script uses 'N' to pair each
454   # line-number line with the line containing $LINENO, and appends
455   # trailing '-' during substitution so that $LINENO is not a special
456   # case at line end.
457   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458   # scripts with optimization help from Paolo Bonzini.  Blame Lee
459   # E. McMahon (1931-1989) for sed's syntax.  :-)
460   sed -n '
461     p
462     /[$]LINENO/=
463   ' <$as_myself |
464     sed '
465       s/[$]LINENO.*/&-/
466       t lineno
467       b
468       :lineno
469       N
470       :loop
471       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
472       t loop
473       s/-\n.*//
474     ' >$as_me.lineno &&
475   chmod +x "$as_me.lineno" ||
476     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477    { (exit 1); exit 1; }; }
478
479   # Don't try to exec as it changes $[0], causing all sort of problems
480   # (the dirname of $[0] is not the place where we might find the
481   # original and so on.  Autoconf is especially sensitive to this).
482   . "./$as_me.lineno"
483   # Exit status is that of the last command.
484   exit
485 }
486
487
488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489   as_dirname=dirname
490 else
491   as_dirname=false
492 fi
493
494 ECHO_C= ECHO_N= ECHO_T=
495 case `echo -n x` in
496 -n*)
497   case `echo 'x\c'` in
498   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
499   *)   ECHO_C='\c';;
500   esac;;
501 *)
502   ECHO_N='-n';;
503 esac
504 if expr a : '\(a\)' >/dev/null 2>&1 &&
505    test "X`expr 00001 : '.*\(...\)'`" = X001; then
506   as_expr=expr
507 else
508   as_expr=false
509 fi
510
511 rm -f conf$$ conf$$.exe conf$$.file
512 if test -d conf$$.dir; then
513   rm -f conf$$.dir/conf$$.file
514 else
515   rm -f conf$$.dir
516   mkdir conf$$.dir 2>/dev/null
517 fi
518 if (echo >conf$$.file) 2>/dev/null; then
519   if ln -s conf$$.file conf$$ 2>/dev/null; then
520     as_ln_s='ln -s'
521     # ... but there are two gotchas:
522     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524     # In both cases, we have to default to `cp -p'.
525     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526       as_ln_s='cp -p'
527   elif ln conf$$.file conf$$ 2>/dev/null; then
528     as_ln_s=ln
529   else
530     as_ln_s='cp -p'
531   fi
532 else
533   as_ln_s='cp -p'
534 fi
535 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536 rmdir conf$$.dir 2>/dev/null
537
538 if mkdir -p . 2>/dev/null; then
539   as_mkdir_p=:
540 else
541   test -d ./-p && rmdir ./-p
542   as_mkdir_p=false
543 fi
544
545 if test -x / >/dev/null 2>&1; then
546   as_test_x='test -x'
547 else
548   if ls -dL / >/dev/null 2>&1; then
549     as_ls_L_option=L
550   else
551     as_ls_L_option=
552   fi
553   as_test_x='
554     eval sh -c '\''
555       if test -d "$1"; then
556         test -d "$1/.";
557       else
558         case $1 in
559         -*)set "./$1";;
560         esac;
561         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562         ???[sx]*):;;*)false;;esac;fi
563     '\'' sh
564   '
565 fi
566 as_executable_p=$as_test_x
567
568 # Sed expression to map a string onto a valid CPP name.
569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
570
571 # Sed expression to map a string onto a valid variable name.
572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
573
574
575
576
577 # Check that we are running under the correct shell.
578 SHELL=${CONFIG_SHELL-/bin/sh}
579
580 case X$ECHO in
581 X*--fallback-echo)
582   # Remove one level of quotation (which was required for Make).
583   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
584   ;;
585 esac
586
587 echo=${ECHO-echo}
588 if test "X$1" = X--no-reexec; then
589   # Discard the --no-reexec flag, and continue.
590   shift
591 elif test "X$1" = X--fallback-echo; then
592   # Avoid inline document here, it may be left over
593   :
594 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
595   # Yippee, $echo works!
596   :
597 else
598   # Restart under the correct shell.
599   exec $SHELL "$0" --no-reexec ${1+"$@"}
600 fi
601
602 if test "X$1" = X--fallback-echo; then
603   # used as fallback echo
604   shift
605   cat <<EOF
606 $*
607 EOF
608   exit 0
609 fi
610
611 # The HP-UX ksh and POSIX shell print the target directory to stdout
612 # if CDPATH is set.
613 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
614
615 if test -z "$ECHO"; then
616 if test "X${echo_test_string+set}" != Xset; then
617 # find a string as large as possible, as long as the shell can cope with it
618   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
619     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
620     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
621        echo_test_string=`eval $cmd` &&
622        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
623     then
624       break
625     fi
626   done
627 fi
628
629 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
630    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
631    test "X$echo_testing_string" = "X$echo_test_string"; then
632   :
633 else
634   # The Solaris, AIX, and Digital Unix default echo programs unquote
635   # backslashes.  This makes it impossible to quote backslashes using
636   #   echo "$something" | sed 's/\\/\\\\/g'
637   #
638   # So, first we look for a working echo in the user's PATH.
639
640   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
641   for dir in $PATH /usr/ucb; do
642     IFS="$lt_save_ifs"
643     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
644        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
645        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
646        test "X$echo_testing_string" = "X$echo_test_string"; then
647       echo="$dir/echo"
648       break
649     fi
650   done
651   IFS="$lt_save_ifs"
652
653   if test "X$echo" = Xecho; then
654     # We didn't find a better echo, so look for alternatives.
655     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
656        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
657        test "X$echo_testing_string" = "X$echo_test_string"; then
658       # This shell has a builtin print -r that does the trick.
659       echo='print -r'
660     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
661          test "X$CONFIG_SHELL" != X/bin/ksh; then
662       # If we have ksh, try running configure again with it.
663       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
664       export ORIGINAL_CONFIG_SHELL
665       CONFIG_SHELL=/bin/ksh
666       export CONFIG_SHELL
667       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
668     else
669       # Try using printf.
670       echo='printf %s\n'
671       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
672          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
673          test "X$echo_testing_string" = "X$echo_test_string"; then
674         # Cool, printf works
675         :
676       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
677            test "X$echo_testing_string" = 'X\t' &&
678            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
679            test "X$echo_testing_string" = "X$echo_test_string"; then
680         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
681         export CONFIG_SHELL
682         SHELL="$CONFIG_SHELL"
683         export SHELL
684         echo="$CONFIG_SHELL $0 --fallback-echo"
685       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
686            test "X$echo_testing_string" = 'X\t' &&
687            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
688            test "X$echo_testing_string" = "X$echo_test_string"; then
689         echo="$CONFIG_SHELL $0 --fallback-echo"
690       else
691         # maybe with a smaller string...
692         prev=:
693
694         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
695           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
696           then
697             break
698           fi
699           prev="$cmd"
700         done
701
702         if test "$prev" != 'sed 50q "$0"'; then
703           echo_test_string=`eval $prev`
704           export echo_test_string
705           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
706         else
707           # Oops.  We lost completely, so just stick with echo.
708           echo=echo
709         fi
710       fi
711     fi
712   fi
713 fi
714 fi
715
716 # Copy echo and quote the copy suitably for passing to libtool from
717 # the Makefile, instead of quoting the original, which is used later.
718 ECHO=$echo
719 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
720    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
721 fi
722
723
724
725
726 tagnames=${tagnames+${tagnames},}CXX
727
728 tagnames=${tagnames+${tagnames},}F77
729
730 exec 7<&0 </dev/null 6>&1
731
732 # Name of the host.
733 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
734 # so uname gets run too.
735 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
736
737 #
738 # Initializations.
739 #
740 ac_default_prefix=/usr/local
741 ac_clean_files=
742 ac_config_libobj_dir=.
743 LIBOBJS=
744 cross_compiling=no
745 subdirs=
746 MFLAGS=
747 MAKEFLAGS=
748 SHELL=${CONFIG_SHELL-/bin/sh}
749
750 # Identity of this package.
751 PACKAGE_NAME='sqlite'
752 PACKAGE_TARNAME='sqlite'
753 PACKAGE_VERSION='3.7.6.2'
754 PACKAGE_STRING='sqlite 3.7.6.2'
755 PACKAGE_BUGREPORT='http://www.sqlite.org'
756
757 ac_unique_file="sqlite3.c"
758 # Factoring default headers for most tests.
759 ac_includes_default="\
760 #include <stdio.h>
761 #ifdef HAVE_SYS_TYPES_H
762 # include <sys/types.h>
763 #endif
764 #ifdef HAVE_SYS_STAT_H
765 # include <sys/stat.h>
766 #endif
767 #ifdef STDC_HEADERS
768 # include <stdlib.h>
769 # include <stddef.h>
770 #else
771 # ifdef HAVE_STDLIB_H
772 #  include <stdlib.h>
773 # endif
774 #endif
775 #ifdef HAVE_STRING_H
776 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
777 #  include <memory.h>
778 # endif
779 # include <string.h>
780 #endif
781 #ifdef HAVE_STRINGS_H
782 # include <strings.h>
783 #endif
784 #ifdef HAVE_INTTYPES_H
785 # include <inttypes.h>
786 #endif
787 #ifdef HAVE_STDINT_H
788 # include <stdint.h>
789 #endif
790 #ifdef HAVE_UNISTD_H
791 # include <unistd.h>
792 #endif"
793
794 ac_subst_vars='SHELL
795 PATH_SEPARATOR
796 PACKAGE_NAME
797 PACKAGE_TARNAME
798 PACKAGE_VERSION
799 PACKAGE_STRING
800 PACKAGE_BUGREPORT
801 exec_prefix
802 prefix
803 program_transform_name
804 bindir
805 sbindir
806 libexecdir
807 datarootdir
808 datadir
809 sysconfdir
810 sharedstatedir
811 localstatedir
812 includedir
813 oldincludedir
814 docdir
815 infodir
816 htmldir
817 dvidir
818 pdfdir
819 psdir
820 libdir
821 localedir
822 mandir
823 DEFS
824 ECHO_C
825 ECHO_N
826 ECHO_T
827 LIBS
828 build_alias
829 host_alias
830 target_alias
831 INSTALL_PROGRAM
832 INSTALL_SCRIPT
833 INSTALL_DATA
834 CYGPATH_W
835 PACKAGE
836 VERSION
837 ACLOCAL
838 AUTOCONF
839 AUTOMAKE
840 AUTOHEADER
841 MAKEINFO
842 install_sh
843 STRIP
844 INSTALL_STRIP_PROGRAM
845 mkdir_p
846 AWK
847 SET_MAKE
848 am__leading_dot
849 AMTAR
850 am__tar
851 am__untar
852 CC
853 CFLAGS
854 LDFLAGS
855 CPPFLAGS
856 ac_ct_CC
857 EXEEXT
858 OBJEXT
859 DEPDIR
860 am__include
861 am__quote
862 AMDEP_TRUE
863 AMDEP_FALSE
864 AMDEPBACKSLASH
865 CCDEPMODE
866 am__fastdepCC_TRUE
867 am__fastdepCC_FALSE
868 RANLIB
869 build
870 build_cpu
871 build_vendor
872 build_os
873 host
874 host_cpu
875 host_vendor
876 host_os
877 GREP
878 EGREP
879 LN_S
880 ECHO
881 AR
882 CPP
883 CXX
884 CXXFLAGS
885 ac_ct_CXX
886 CXXDEPMODE
887 am__fastdepCXX_TRUE
888 am__fastdepCXX_FALSE
889 CXXCPP
890 F77
891 FFLAGS
892 ac_ct_F77
893 LIBTOOL
894 MKDIR_P
895 BUILD_CFLAGS
896 READLINE_LIBS
897 THREADSAFE_FLAGS
898 DYNAMIC_EXTENSION_FLAGS
899 LIBOBJS
900 LTLIBOBJS'
901 ac_subst_files=''
902 ac_user_opts='
903 enable_option_checking
904 enable_largefile
905 enable_dependency_tracking
906 enable_shared
907 enable_static
908 enable_fast_install
909 with_gnu_ld
910 enable_libtool_lock
911 with_pic
912 with_tags
913 enable_readline
914 enable_threadsafe
915 enable_dynamic_extensions
916 '
917       ac_precious_vars='build_alias
918 host_alias
919 target_alias
920 CC
921 CFLAGS
922 LDFLAGS
923 LIBS
924 CPPFLAGS
925 CPP
926 CXX
927 CXXFLAGS
928 CCC
929 CXXCPP
930 F77
931 FFLAGS'
932
933
934 # Initialize some variables set by options.
935 ac_init_help=
936 ac_init_version=false
937 ac_unrecognized_opts=
938 ac_unrecognized_sep=
939 # The variables have the same names as the options, with
940 # dashes changed to underlines.
941 cache_file=/dev/null
942 exec_prefix=NONE
943 no_create=
944 no_recursion=
945 prefix=NONE
946 program_prefix=NONE
947 program_suffix=NONE
948 program_transform_name=s,x,x,
949 silent=
950 site=
951 srcdir=
952 verbose=
953 x_includes=NONE
954 x_libraries=NONE
955
956 # Installation directory options.
957 # These are left unexpanded so users can "make install exec_prefix=/foo"
958 # and all the variables that are supposed to be based on exec_prefix
959 # by default will actually change.
960 # Use braces instead of parens because sh, perl, etc. also accept them.
961 # (The list follows the same order as the GNU Coding Standards.)
962 bindir='${exec_prefix}/bin'
963 sbindir='${exec_prefix}/sbin'
964 libexecdir='${exec_prefix}/libexec'
965 datarootdir='${prefix}/share'
966 datadir='${datarootdir}'
967 sysconfdir='${prefix}/etc'
968 sharedstatedir='${prefix}/com'
969 localstatedir='${prefix}/var'
970 includedir='${prefix}/include'
971 oldincludedir='/usr/include'
972 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
973 infodir='${datarootdir}/info'
974 htmldir='${docdir}'
975 dvidir='${docdir}'
976 pdfdir='${docdir}'
977 psdir='${docdir}'
978 libdir='${exec_prefix}/lib'
979 localedir='${datarootdir}/locale'
980 mandir='${datarootdir}/man'
981
982 ac_prev=
983 ac_dashdash=
984 for ac_option
985 do
986   # If the previous option needs an argument, assign it.
987   if test -n "$ac_prev"; then
988     eval $ac_prev=\$ac_option
989     ac_prev=
990     continue
991   fi
992
993   case $ac_option in
994   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
995   *)    ac_optarg=yes ;;
996   esac
997
998   # Accept the important Cygnus configure options, so we can diagnose typos.
999
1000   case $ac_dashdash$ac_option in
1001   --)
1002     ac_dashdash=yes ;;
1003
1004   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1005     ac_prev=bindir ;;
1006   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1007     bindir=$ac_optarg ;;
1008
1009   -build | --build | --buil | --bui | --bu)
1010     ac_prev=build_alias ;;
1011   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1012     build_alias=$ac_optarg ;;
1013
1014   -cache-file | --cache-file | --cache-fil | --cache-fi \
1015   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1016     ac_prev=cache_file ;;
1017   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1018   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1019     cache_file=$ac_optarg ;;
1020
1021   --config-cache | -C)
1022     cache_file=config.cache ;;
1023
1024   -datadir | --datadir | --datadi | --datad)
1025     ac_prev=datadir ;;
1026   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1027     datadir=$ac_optarg ;;
1028
1029   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1030   | --dataroo | --dataro | --datar)
1031     ac_prev=datarootdir ;;
1032   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1033   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1034     datarootdir=$ac_optarg ;;
1035
1036   -disable-* | --disable-*)
1037     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1038     # Reject names that are not valid shell variable names.
1039     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1040       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1041    { (exit 1); exit 1; }; }
1042     ac_useropt_orig=$ac_useropt
1043     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1044     case $ac_user_opts in
1045       *"
1046 "enable_$ac_useropt"
1047 "*) ;;
1048       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1049          ac_unrecognized_sep=', ';;
1050     esac
1051     eval enable_$ac_useropt=no ;;
1052
1053   -docdir | --docdir | --docdi | --doc | --do)
1054     ac_prev=docdir ;;
1055   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1056     docdir=$ac_optarg ;;
1057
1058   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1059     ac_prev=dvidir ;;
1060   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1061     dvidir=$ac_optarg ;;
1062
1063   -enable-* | --enable-*)
1064     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1065     # Reject names that are not valid shell variable names.
1066     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1067       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1068    { (exit 1); exit 1; }; }
1069     ac_useropt_orig=$ac_useropt
1070     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1071     case $ac_user_opts in
1072       *"
1073 "enable_$ac_useropt"
1074 "*) ;;
1075       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1076          ac_unrecognized_sep=', ';;
1077     esac
1078     eval enable_$ac_useropt=\$ac_optarg ;;
1079
1080   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1081   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1082   | --exec | --exe | --ex)
1083     ac_prev=exec_prefix ;;
1084   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1085   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1086   | --exec=* | --exe=* | --ex=*)
1087     exec_prefix=$ac_optarg ;;
1088
1089   -gas | --gas | --ga | --g)
1090     # Obsolete; use --with-gas.
1091     with_gas=yes ;;
1092
1093   -help | --help | --hel | --he | -h)
1094     ac_init_help=long ;;
1095   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1096     ac_init_help=recursive ;;
1097   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1098     ac_init_help=short ;;
1099
1100   -host | --host | --hos | --ho)
1101     ac_prev=host_alias ;;
1102   -host=* | --host=* | --hos=* | --ho=*)
1103     host_alias=$ac_optarg ;;
1104
1105   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1106     ac_prev=htmldir ;;
1107   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1108   | --ht=*)
1109     htmldir=$ac_optarg ;;
1110
1111   -includedir | --includedir | --includedi | --included | --include \
1112   | --includ | --inclu | --incl | --inc)
1113     ac_prev=includedir ;;
1114   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1115   | --includ=* | --inclu=* | --incl=* | --inc=*)
1116     includedir=$ac_optarg ;;
1117
1118   -infodir | --infodir | --infodi | --infod | --info | --inf)
1119     ac_prev=infodir ;;
1120   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1121     infodir=$ac_optarg ;;
1122
1123   -libdir | --libdir | --libdi | --libd)
1124     ac_prev=libdir ;;
1125   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1126     libdir=$ac_optarg ;;
1127
1128   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1129   | --libexe | --libex | --libe)
1130     ac_prev=libexecdir ;;
1131   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1132   | --libexe=* | --libex=* | --libe=*)
1133     libexecdir=$ac_optarg ;;
1134
1135   -localedir | --localedir | --localedi | --localed | --locale)
1136     ac_prev=localedir ;;
1137   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1138     localedir=$ac_optarg ;;
1139
1140   -localstatedir | --localstatedir | --localstatedi | --localstated \
1141   | --localstate | --localstat | --localsta | --localst | --locals)
1142     ac_prev=localstatedir ;;
1143   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1144   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1145     localstatedir=$ac_optarg ;;
1146
1147   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1148     ac_prev=mandir ;;
1149   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1150     mandir=$ac_optarg ;;
1151
1152   -nfp | --nfp | --nf)
1153     # Obsolete; use --without-fp.
1154     with_fp=no ;;
1155
1156   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1157   | --no-cr | --no-c | -n)
1158     no_create=yes ;;
1159
1160   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1161   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1162     no_recursion=yes ;;
1163
1164   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1165   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1166   | --oldin | --oldi | --old | --ol | --o)
1167     ac_prev=oldincludedir ;;
1168   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1169   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1170   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1171     oldincludedir=$ac_optarg ;;
1172
1173   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1174     ac_prev=prefix ;;
1175   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1176     prefix=$ac_optarg ;;
1177
1178   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1179   | --program-pre | --program-pr | --program-p)
1180     ac_prev=program_prefix ;;
1181   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1182   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1183     program_prefix=$ac_optarg ;;
1184
1185   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1186   | --program-suf | --program-su | --program-s)
1187     ac_prev=program_suffix ;;
1188   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1189   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1190     program_suffix=$ac_optarg ;;
1191
1192   -program-transform-name | --program-transform-name \
1193   | --program-transform-nam | --program-transform-na \
1194   | --program-transform-n | --program-transform- \
1195   | --program-transform | --program-transfor \
1196   | --program-transfo | --program-transf \
1197   | --program-trans | --program-tran \
1198   | --progr-tra | --program-tr | --program-t)
1199     ac_prev=program_transform_name ;;
1200   -program-transform-name=* | --program-transform-name=* \
1201   | --program-transform-nam=* | --program-transform-na=* \
1202   | --program-transform-n=* | --program-transform-=* \
1203   | --program-transform=* | --program-transfor=* \
1204   | --program-transfo=* | --program-transf=* \
1205   | --program-trans=* | --program-tran=* \
1206   | --progr-tra=* | --program-tr=* | --program-t=*)
1207     program_transform_name=$ac_optarg ;;
1208
1209   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1210     ac_prev=pdfdir ;;
1211   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1212     pdfdir=$ac_optarg ;;
1213
1214   -psdir | --psdir | --psdi | --psd | --ps)
1215     ac_prev=psdir ;;
1216   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1217     psdir=$ac_optarg ;;
1218
1219   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1220   | -silent | --silent | --silen | --sile | --sil)
1221     silent=yes ;;
1222
1223   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1224     ac_prev=sbindir ;;
1225   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1226   | --sbi=* | --sb=*)
1227     sbindir=$ac_optarg ;;
1228
1229   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1230   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1231   | --sharedst | --shareds | --shared | --share | --shar \
1232   | --sha | --sh)
1233     ac_prev=sharedstatedir ;;
1234   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1235   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1236   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1237   | --sha=* | --sh=*)
1238     sharedstatedir=$ac_optarg ;;
1239
1240   -site | --site | --sit)
1241     ac_prev=site ;;
1242   -site=* | --site=* | --sit=*)
1243     site=$ac_optarg ;;
1244
1245   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1246     ac_prev=srcdir ;;
1247   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1248     srcdir=$ac_optarg ;;
1249
1250   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1251   | --syscon | --sysco | --sysc | --sys | --sy)
1252     ac_prev=sysconfdir ;;
1253   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1254   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1255     sysconfdir=$ac_optarg ;;
1256
1257   -target | --target | --targe | --targ | --tar | --ta | --t)
1258     ac_prev=target_alias ;;
1259   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1260     target_alias=$ac_optarg ;;
1261
1262   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1263     verbose=yes ;;
1264
1265   -version | --version | --versio | --versi | --vers | -V)
1266     ac_init_version=: ;;
1267
1268   -with-* | --with-*)
1269     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1270     # Reject names that are not valid shell variable names.
1271     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1272       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1273    { (exit 1); exit 1; }; }
1274     ac_useropt_orig=$ac_useropt
1275     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1276     case $ac_user_opts in
1277       *"
1278 "with_$ac_useropt"
1279 "*) ;;
1280       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1281          ac_unrecognized_sep=', ';;
1282     esac
1283     eval with_$ac_useropt=\$ac_optarg ;;
1284
1285   -without-* | --without-*)
1286     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1287     # Reject names that are not valid shell variable names.
1288     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1289       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1290    { (exit 1); exit 1; }; }
1291     ac_useropt_orig=$ac_useropt
1292     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1293     case $ac_user_opts in
1294       *"
1295 "with_$ac_useropt"
1296 "*) ;;
1297       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1298          ac_unrecognized_sep=', ';;
1299     esac
1300     eval with_$ac_useropt=no ;;
1301
1302   --x)
1303     # Obsolete; use --with-x.
1304     with_x=yes ;;
1305
1306   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1307   | --x-incl | --x-inc | --x-in | --x-i)
1308     ac_prev=x_includes ;;
1309   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1310   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1311     x_includes=$ac_optarg ;;
1312
1313   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1314   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1315     ac_prev=x_libraries ;;
1316   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1317   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1318     x_libraries=$ac_optarg ;;
1319
1320   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1321 Try \`$0 --help' for more information." >&2
1322    { (exit 1); exit 1; }; }
1323     ;;
1324
1325   *=*)
1326     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1327     # Reject names that are not valid shell variable names.
1328     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1329       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1330    { (exit 1); exit 1; }; }
1331     eval $ac_envvar=\$ac_optarg
1332     export $ac_envvar ;;
1333
1334   *)
1335     # FIXME: should be removed in autoconf 3.0.
1336     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1337     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1338       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1339     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1340     ;;
1341
1342   esac
1343 done
1344
1345 if test -n "$ac_prev"; then
1346   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1347   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1348    { (exit 1); exit 1; }; }
1349 fi
1350
1351 if test -n "$ac_unrecognized_opts"; then
1352   case $enable_option_checking in
1353     no) ;;
1354     fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1355    { (exit 1); exit 1; }; } ;;
1356     *)     $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1357   esac
1358 fi
1359
1360 # Check all directory arguments for consistency.
1361 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1362                 datadir sysconfdir sharedstatedir localstatedir includedir \
1363                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1364                 libdir localedir mandir
1365 do
1366   eval ac_val=\$$ac_var
1367   # Remove trailing slashes.
1368   case $ac_val in
1369     */ )
1370       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1371       eval $ac_var=\$ac_val;;
1372   esac
1373   # Be sure to have absolute directory names.
1374   case $ac_val in
1375     [\\/$]* | ?:[\\/]* )  continue;;
1376     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1377   esac
1378   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1379    { (exit 1); exit 1; }; }
1380 done
1381
1382 # There might be people who depend on the old broken behavior: `$host'
1383 # used to hold the argument of --host etc.
1384 # FIXME: To remove some day.
1385 build=$build_alias
1386 host=$host_alias
1387 target=$target_alias
1388
1389 # FIXME: To remove some day.
1390 if test "x$host_alias" != x; then
1391   if test "x$build_alias" = x; then
1392     cross_compiling=maybe
1393     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1394     If a cross compiler is detected then cross compile mode will be used." >&2
1395   elif test "x$build_alias" != "x$host_alias"; then
1396     cross_compiling=yes
1397   fi
1398 fi
1399
1400 ac_tool_prefix=
1401 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1402
1403 test "$silent" = yes && exec 6>/dev/null
1404
1405
1406 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1407 ac_ls_di=`ls -di .` &&
1408 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1409   { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1410    { (exit 1); exit 1; }; }
1411 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1412   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1413    { (exit 1); exit 1; }; }
1414
1415
1416 # Find the source files, if location was not specified.
1417 if test -z "$srcdir"; then
1418   ac_srcdir_defaulted=yes
1419   # Try the directory containing this script, then the parent directory.
1420   ac_confdir=`$as_dirname -- "$as_myself" ||
1421 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1422          X"$as_myself" : 'X\(//\)[^/]' \| \
1423          X"$as_myself" : 'X\(//\)$' \| \
1424          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1425 $as_echo X"$as_myself" |
1426     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1427             s//\1/
1428             q
1429           }
1430           /^X\(\/\/\)[^/].*/{
1431             s//\1/
1432             q
1433           }
1434           /^X\(\/\/\)$/{
1435             s//\1/
1436             q
1437           }
1438           /^X\(\/\).*/{
1439             s//\1/
1440             q
1441           }
1442           s/.*/./; q'`
1443   srcdir=$ac_confdir
1444   if test ! -r "$srcdir/$ac_unique_file"; then
1445     srcdir=..
1446   fi
1447 else
1448   ac_srcdir_defaulted=no
1449 fi
1450 if test ! -r "$srcdir/$ac_unique_file"; then
1451   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1452   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1453    { (exit 1); exit 1; }; }
1454 fi
1455 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1456 ac_abs_confdir=`(
1457         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1458    { (exit 1); exit 1; }; }
1459         pwd)`
1460 # When building in place, set srcdir=.
1461 if test "$ac_abs_confdir" = "$ac_pwd"; then
1462   srcdir=.
1463 fi
1464 # Remove unnecessary trailing slashes from srcdir.
1465 # Double slashes in file names in object file debugging info
1466 # mess up M-x gdb in Emacs.
1467 case $srcdir in
1468 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1469 esac
1470 for ac_var in $ac_precious_vars; do
1471   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1472   eval ac_env_${ac_var}_value=\$${ac_var}
1473   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1474   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1475 done
1476
1477 #
1478 # Report the --help message.
1479 #
1480 if test "$ac_init_help" = "long"; then
1481   # Omit some internal or obsolete options to make the list less imposing.
1482   # This message is too long to be a string in the A/UX 3.1 sh.
1483   cat <<_ACEOF
1484 \`configure' configures sqlite 3.7.6.2 to adapt to many kinds of systems.
1485
1486 Usage: $0 [OPTION]... [VAR=VALUE]...
1487
1488 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1489 VAR=VALUE.  See below for descriptions of some of the useful variables.
1490
1491 Defaults for the options are specified in brackets.
1492
1493 Configuration:
1494   -h, --help              display this help and exit
1495       --help=short        display options specific to this package
1496       --help=recursive    display the short help of all the included packages
1497   -V, --version           display version information and exit
1498   -q, --quiet, --silent   do not print \`checking...' messages
1499       --cache-file=FILE   cache test results in FILE [disabled]
1500   -C, --config-cache      alias for \`--cache-file=config.cache'
1501   -n, --no-create         do not create output files
1502       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1503
1504 Installation directories:
1505   --prefix=PREFIX         install architecture-independent files in PREFIX
1506                           [$ac_default_prefix]
1507   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1508                           [PREFIX]
1509
1510 By default, \`make install' will install all the files in
1511 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1512 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1513 for instance \`--prefix=\$HOME'.
1514
1515 For better control, use the options below.
1516
1517 Fine tuning of the installation directories:
1518   --bindir=DIR            user executables [EPREFIX/bin]
1519   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1520   --libexecdir=DIR        program executables [EPREFIX/libexec]
1521   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1522   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1523   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1524   --libdir=DIR            object code libraries [EPREFIX/lib]
1525   --includedir=DIR        C header files [PREFIX/include]
1526   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1527   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1528   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1529   --infodir=DIR           info documentation [DATAROOTDIR/info]
1530   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1531   --mandir=DIR            man documentation [DATAROOTDIR/man]
1532   --docdir=DIR            documentation root [DATAROOTDIR/doc/sqlite]
1533   --htmldir=DIR           html documentation [DOCDIR]
1534   --dvidir=DIR            dvi documentation [DOCDIR]
1535   --pdfdir=DIR            pdf documentation [DOCDIR]
1536   --psdir=DIR             ps documentation [DOCDIR]
1537 _ACEOF
1538
1539   cat <<\_ACEOF
1540
1541 Program names:
1542   --program-prefix=PREFIX            prepend PREFIX to installed program names
1543   --program-suffix=SUFFIX            append SUFFIX to installed program names
1544   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1545
1546 System types:
1547   --build=BUILD     configure for building on BUILD [guessed]
1548   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1549 _ACEOF
1550 fi
1551
1552 if test -n "$ac_init_help"; then
1553   case $ac_init_help in
1554      short | recursive ) echo "Configuration of sqlite 3.7.6.2:";;
1555    esac
1556   cat <<\_ACEOF
1557
1558 Optional Features:
1559   --disable-option-checking  ignore unrecognized --enable/--with options
1560   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1561   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1562   --disable-largefile     omit support for large files
1563   --disable-dependency-tracking  speeds up one-time build
1564   --enable-dependency-tracking   do not reject slow dependency extractors
1565   --enable-shared[=PKGS]  build shared libraries [default=yes]
1566   --enable-static[=PKGS]  build static libraries [default=yes]
1567   --enable-fast-install[=PKGS]
1568                           optimize for fast installation [default=yes]
1569   --disable-libtool-lock  avoid locking (might break parallel builds)
1570   --enable-readline       use readline in shell tool (yes, no) [default=yes]
1571   --enable-threadsafe     build a thread-safe library [default=yes]
1572   --enable-dynamic-extensions
1573                           support loadable extensions [default=yes]
1574
1575 Optional Packages:
1576   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1577   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1578   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1579   --with-pic              try to use only PIC/non-PIC objects [default=use
1580                           both]
1581   --with-tags[=TAGS]      include additional configurations [automatic]
1582
1583 Some influential environment variables:
1584   CC          C compiler command
1585   CFLAGS      C compiler flags
1586   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1587               nonstandard directory <lib dir>
1588   LIBS        libraries to pass to the linker, e.g. -l<library>
1589   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1590               you have headers in a nonstandard directory <include dir>
1591   CPP         C preprocessor
1592   CXX         C++ compiler command
1593   CXXFLAGS    C++ compiler flags
1594   CXXCPP      C++ preprocessor
1595   F77         Fortran 77 compiler command
1596   FFLAGS      Fortran 77 compiler flags
1597
1598 Use these variables to override the choices made by `configure' or to help
1599 it to find libraries and programs with nonstandard names/locations.
1600
1601 Report bugs to <http://www.sqlite.org>.
1602 _ACEOF
1603 ac_status=$?
1604 fi
1605
1606 if test "$ac_init_help" = "recursive"; then
1607   # If there are subdirs, report their specific --help.
1608   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1609     test -d "$ac_dir" ||
1610       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1611       continue
1612     ac_builddir=.
1613
1614 case "$ac_dir" in
1615 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1616 *)
1617   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1618   # A ".." for each directory in $ac_dir_suffix.
1619   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1620   case $ac_top_builddir_sub in
1621   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1622   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1623   esac ;;
1624 esac
1625 ac_abs_top_builddir=$ac_pwd
1626 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1627 # for backward compatibility:
1628 ac_top_builddir=$ac_top_build_prefix
1629
1630 case $srcdir in
1631   .)  # We are building in place.
1632     ac_srcdir=.
1633     ac_top_srcdir=$ac_top_builddir_sub
1634     ac_abs_top_srcdir=$ac_pwd ;;
1635   [\\/]* | ?:[\\/]* )  # Absolute name.
1636     ac_srcdir=$srcdir$ac_dir_suffix;
1637     ac_top_srcdir=$srcdir
1638     ac_abs_top_srcdir=$srcdir ;;
1639   *) # Relative name.
1640     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1641     ac_top_srcdir=$ac_top_build_prefix$srcdir
1642     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1643 esac
1644 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1645
1646     cd "$ac_dir" || { ac_status=$?; continue; }
1647     # Check for guested configure.
1648     if test -f "$ac_srcdir/configure.gnu"; then
1649       echo &&
1650       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1651     elif test -f "$ac_srcdir/configure"; then
1652       echo &&
1653       $SHELL "$ac_srcdir/configure" --help=recursive
1654     else
1655       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1656     fi || ac_status=$?
1657     cd "$ac_pwd" || { ac_status=$?; break; }
1658   done
1659 fi
1660
1661 test -n "$ac_init_help" && exit $ac_status
1662 if $ac_init_version; then
1663   cat <<\_ACEOF
1664 sqlite configure 3.7.6.2
1665 generated by GNU Autoconf 2.62
1666
1667 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1668 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1669 This configure script is free software; the Free Software Foundation
1670 gives unlimited permission to copy, distribute and modify it.
1671 _ACEOF
1672   exit
1673 fi
1674 cat >config.log <<_ACEOF
1675 This file contains any messages produced by compilers while
1676 running configure, to aid debugging if configure makes a mistake.
1677
1678 It was created by sqlite $as_me 3.7.6.2, which was
1679 generated by GNU Autoconf 2.62.  Invocation command line was
1680
1681   $ $0 $@
1682
1683 _ACEOF
1684 exec 5>>config.log
1685 {
1686 cat <<_ASUNAME
1687 ## --------- ##
1688 ## Platform. ##
1689 ## --------- ##
1690
1691 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1692 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1693 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1694 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1695 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1696
1697 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1698 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1699
1700 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1701 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1702 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1703 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1704 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1705 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1706 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1707
1708 _ASUNAME
1709
1710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1711 for as_dir in $PATH
1712 do
1713   IFS=$as_save_IFS
1714   test -z "$as_dir" && as_dir=.
1715   $as_echo "PATH: $as_dir"
1716 done
1717 IFS=$as_save_IFS
1718
1719 } >&5
1720
1721 cat >&5 <<_ACEOF
1722
1723
1724 ## ----------- ##
1725 ## Core tests. ##
1726 ## ----------- ##
1727
1728 _ACEOF
1729
1730
1731 # Keep a trace of the command line.
1732 # Strip out --no-create and --no-recursion so they do not pile up.
1733 # Strip out --silent because we don't want to record it for future runs.
1734 # Also quote any args containing shell meta-characters.
1735 # Make two passes to allow for proper duplicate-argument suppression.
1736 ac_configure_args=
1737 ac_configure_args0=
1738 ac_configure_args1=
1739 ac_must_keep_next=false
1740 for ac_pass in 1 2
1741 do
1742   for ac_arg
1743   do
1744     case $ac_arg in
1745     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1746     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1747     | -silent | --silent | --silen | --sile | --sil)
1748       continue ;;
1749     *\'*)
1750       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1751     esac
1752     case $ac_pass in
1753     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1754     2)
1755       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1756       if test $ac_must_keep_next = true; then
1757         ac_must_keep_next=false # Got value, back to normal.
1758       else
1759         case $ac_arg in
1760           *=* | --config-cache | -C | -disable-* | --disable-* \
1761           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1762           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1763           | -with-* | --with-* | -without-* | --without-* | --x)
1764             case "$ac_configure_args0 " in
1765               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1766             esac
1767             ;;
1768           -* ) ac_must_keep_next=true ;;
1769         esac
1770       fi
1771       ac_configure_args="$ac_configure_args '$ac_arg'"
1772       ;;
1773     esac
1774   done
1775 done
1776 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1777 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1778
1779 # When interrupted or exit'd, cleanup temporary files, and complete
1780 # config.log.  We remove comments because anyway the quotes in there
1781 # would cause problems or look ugly.
1782 # WARNING: Use '\'' to represent an apostrophe within the trap.
1783 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1784 trap 'exit_status=$?
1785   # Save into config.log some information that might help in debugging.
1786   {
1787     echo
1788
1789     cat <<\_ASBOX
1790 ## ---------------- ##
1791 ## Cache variables. ##
1792 ## ---------------- ##
1793 _ASBOX
1794     echo
1795     # The following way of writing the cache mishandles newlines in values,
1796 (
1797   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1798     eval ac_val=\$$ac_var
1799     case $ac_val in #(
1800     *${as_nl}*)
1801       case $ac_var in #(
1802       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1803 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1804       esac
1805       case $ac_var in #(
1806       _ | IFS | as_nl) ;; #(
1807       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1808       *) $as_unset $ac_var ;;
1809       esac ;;
1810     esac
1811   done
1812   (set) 2>&1 |
1813     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1814     *${as_nl}ac_space=\ *)
1815       sed -n \
1816         "s/'\''/'\''\\\\'\'''\''/g;
1817           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1818       ;; #(
1819     *)
1820       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1821       ;;
1822     esac |
1823     sort
1824 )
1825     echo
1826
1827     cat <<\_ASBOX
1828 ## ----------------- ##
1829 ## Output variables. ##
1830 ## ----------------- ##
1831 _ASBOX
1832     echo
1833     for ac_var in $ac_subst_vars
1834     do
1835       eval ac_val=\$$ac_var
1836       case $ac_val in
1837       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1838       esac
1839       $as_echo "$ac_var='\''$ac_val'\''"
1840     done | sort
1841     echo
1842
1843     if test -n "$ac_subst_files"; then
1844       cat <<\_ASBOX
1845 ## ------------------- ##
1846 ## File substitutions. ##
1847 ## ------------------- ##
1848 _ASBOX
1849       echo
1850       for ac_var in $ac_subst_files
1851       do
1852         eval ac_val=\$$ac_var
1853         case $ac_val in
1854         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1855         esac
1856         $as_echo "$ac_var='\''$ac_val'\''"
1857       done | sort
1858       echo
1859     fi
1860
1861     if test -s confdefs.h; then
1862       cat <<\_ASBOX
1863 ## ----------- ##
1864 ## confdefs.h. ##
1865 ## ----------- ##
1866 _ASBOX
1867       echo
1868       cat confdefs.h
1869       echo
1870     fi
1871     test "$ac_signal" != 0 &&
1872       $as_echo "$as_me: caught signal $ac_signal"
1873     $as_echo "$as_me: exit $exit_status"
1874   } >&5
1875   rm -f core *.core core.conftest.* &&
1876     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1877     exit $exit_status
1878 ' 0
1879 for ac_signal in 1 2 13 15; do
1880   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1881 done
1882 ac_signal=0
1883
1884 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1885 rm -f -r conftest* confdefs.h
1886
1887 # Predefined preprocessor variables.
1888
1889 cat >>confdefs.h <<_ACEOF
1890 #define PACKAGE_NAME "$PACKAGE_NAME"
1891 _ACEOF
1892
1893
1894 cat >>confdefs.h <<_ACEOF
1895 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1896 _ACEOF
1897
1898
1899 cat >>confdefs.h <<_ACEOF
1900 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1901 _ACEOF
1902
1903
1904 cat >>confdefs.h <<_ACEOF
1905 #define PACKAGE_STRING "$PACKAGE_STRING"
1906 _ACEOF
1907
1908
1909 cat >>confdefs.h <<_ACEOF
1910 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1911 _ACEOF
1912
1913
1914 # Let the site file select an alternate cache file if it wants to.
1915 # Prefer an explicitly selected file to automatically selected ones.
1916 ac_site_file1=NONE
1917 ac_site_file2=NONE
1918 if test -n "$CONFIG_SITE"; then
1919   ac_site_file1=$CONFIG_SITE
1920 elif test "x$prefix" != xNONE; then
1921   ac_site_file1=$prefix/share/config.site
1922   ac_site_file2=$prefix/etc/config.site
1923 else
1924   ac_site_file1=$ac_default_prefix/share/config.site
1925   ac_site_file2=$ac_default_prefix/etc/config.site
1926 fi
1927 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1928 do
1929   test "x$ac_site_file" = xNONE && continue
1930   if test -r "$ac_site_file"; then
1931     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1932 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1933     sed 's/^/| /' "$ac_site_file" >&5
1934     . "$ac_site_file"
1935   fi
1936 done
1937
1938 if test -r "$cache_file"; then
1939   # Some versions of bash will fail to source /dev/null (special
1940   # files actually), so we avoid doing that.
1941   if test -f "$cache_file"; then
1942     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1943 $as_echo "$as_me: loading cache $cache_file" >&6;}
1944     case $cache_file in
1945       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1946       *)                      . "./$cache_file";;
1947     esac
1948   fi
1949 else
1950   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1951 $as_echo "$as_me: creating cache $cache_file" >&6;}
1952   >$cache_file
1953 fi
1954
1955 # Check that the precious variables saved in the cache have kept the same
1956 # value.
1957 ac_cache_corrupted=false
1958 for ac_var in $ac_precious_vars; do
1959   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1960   eval ac_new_set=\$ac_env_${ac_var}_set
1961   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1962   eval ac_new_val=\$ac_env_${ac_var}_value
1963   case $ac_old_set,$ac_new_set in
1964     set,)
1965       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1966 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1967       ac_cache_corrupted=: ;;
1968     ,set)
1969       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1970 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1971       ac_cache_corrupted=: ;;
1972     ,);;
1973     *)
1974       if test "x$ac_old_val" != "x$ac_new_val"; then
1975         # differences in whitespace do not lead to failure.
1976         ac_old_val_w=`echo x $ac_old_val`
1977         ac_new_val_w=`echo x $ac_new_val`
1978         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1979           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1980 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1981           ac_cache_corrupted=:
1982         else
1983           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1984 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1985           eval $ac_var=\$ac_old_val
1986         fi
1987         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1988 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1989         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1990 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1991       fi;;
1992   esac
1993   # Pass precious variables to config.status.
1994   if test "$ac_new_set" = set; then
1995     case $ac_new_val in
1996     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1997     *) ac_arg=$ac_var=$ac_new_val ;;
1998     esac
1999     case " $ac_configure_args " in
2000       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2001       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2002     esac
2003   fi
2004 done
2005 if $ac_cache_corrupted; then
2006   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2007 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2008   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2009 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2010    { (exit 1); exit 1; }; }
2011 fi
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037 ac_ext=c
2038 ac_cpp='$CPP $CPPFLAGS'
2039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2042
2043
2044
2045
2046 # Use automake.
2047 am__api_version="1.9"
2048 ac_aux_dir=
2049 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2050   if test -f "$ac_dir/install-sh"; then
2051     ac_aux_dir=$ac_dir
2052     ac_install_sh="$ac_aux_dir/install-sh -c"
2053     break
2054   elif test -f "$ac_dir/install.sh"; then
2055     ac_aux_dir=$ac_dir
2056     ac_install_sh="$ac_aux_dir/install.sh -c"
2057     break
2058   elif test -f "$ac_dir/shtool"; then
2059     ac_aux_dir=$ac_dir
2060     ac_install_sh="$ac_aux_dir/shtool install -c"
2061     break
2062   fi
2063 done
2064 if test -z "$ac_aux_dir"; then
2065   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2066 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2067    { (exit 1); exit 1; }; }
2068 fi
2069
2070 # These three variables are undocumented and unsupported,
2071 # and are intended to be withdrawn in a future Autoconf release.
2072 # They can cause serious problems if a builder's source tree is in a directory
2073 # whose full name contains unusual characters.
2074 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2075 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2076 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2077
2078
2079 # Find a good install program.  We prefer a C program (faster),
2080 # so one script is as good as another.  But avoid the broken or
2081 # incompatible versions:
2082 # SysV /etc/install, /usr/sbin/install
2083 # SunOS /usr/etc/install
2084 # IRIX /sbin/install
2085 # AIX /bin/install
2086 # AmigaOS /C/install, which installs bootblocks on floppy discs
2087 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2088 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2089 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2090 # OS/2's system install, which has a completely different semantic
2091 # ./install, which can be erroneously created by make from ./install.sh.
2092 # Reject install programs that cannot install multiple files.
2093 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2094 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2095 if test -z "$INSTALL"; then
2096 if test "${ac_cv_path_install+set}" = set; then
2097   $as_echo_n "(cached) " >&6
2098 else
2099   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2100 for as_dir in $PATH
2101 do
2102   IFS=$as_save_IFS
2103   test -z "$as_dir" && as_dir=.
2104   # Account for people who put trailing slashes in PATH elements.
2105 case $as_dir/ in
2106   ./ | .// | /cC/* | \
2107   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2108   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2109   /usr/ucb/* ) ;;
2110   *)
2111     # OSF1 and SCO ODT 3.0 have their own names for install.
2112     # Don't use installbsd from OSF since it installs stuff as root
2113     # by default.
2114     for ac_prog in ginstall scoinst install; do
2115       for ac_exec_ext in '' $ac_executable_extensions; do
2116         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2117           if test $ac_prog = install &&
2118             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2119             # AIX install.  It has an incompatible calling convention.
2120             :
2121           elif test $ac_prog = install &&
2122             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2123             # program-specific install script used by HP pwplus--don't use.
2124             :
2125           else
2126             rm -rf conftest.one conftest.two conftest.dir
2127             echo one > conftest.one
2128             echo two > conftest.two
2129             mkdir conftest.dir
2130             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2131               test -s conftest.one && test -s conftest.two &&
2132               test -s conftest.dir/conftest.one &&
2133               test -s conftest.dir/conftest.two
2134             then
2135               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2136               break 3
2137             fi
2138           fi
2139         fi
2140       done
2141     done
2142     ;;
2143 esac
2144
2145 done
2146 IFS=$as_save_IFS
2147
2148 rm -rf conftest.one conftest.two conftest.dir
2149
2150 fi
2151   if test "${ac_cv_path_install+set}" = set; then
2152     INSTALL=$ac_cv_path_install
2153   else
2154     # As a last resort, use the slow shell script.  Don't cache a
2155     # value for INSTALL within a source directory, because that will
2156     # break other packages using the cache if that directory is
2157     # removed, or if the value is a relative name.
2158     INSTALL=$ac_install_sh
2159   fi
2160 fi
2161 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2162 $as_echo "$INSTALL" >&6; }
2163
2164 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2165 # It thinks the first close brace ends the variable substitution.
2166 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2167
2168 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2169
2170 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2171
2172 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2173 $as_echo_n "checking whether build environment is sane... " >&6; }
2174 # Just in case
2175 sleep 1
2176 echo timestamp > conftest.file
2177 # Do `set' in a subshell so we don't clobber the current shell's
2178 # arguments.  Must try -L first in case configure is actually a
2179 # symlink; some systems play weird games with the mod time of symlinks
2180 # (eg FreeBSD returns the mod time of the symlink's containing
2181 # directory).
2182 if (
2183    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2184    if test "$*" = "X"; then
2185       # -L didn't work.
2186       set X `ls -t $srcdir/configure conftest.file`
2187    fi
2188    rm -f conftest.file
2189    if test "$*" != "X $srcdir/configure conftest.file" \
2190       && test "$*" != "X conftest.file $srcdir/configure"; then
2191
2192       # If neither matched, then we have a broken ls.  This can happen
2193       # if, for instance, CONFIG_SHELL is bash and it inherits a
2194       # broken ls alias from the environment.  This has actually
2195       # happened.  Such a system could not be considered "sane".
2196       { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2197 alias in your environment" >&5
2198 $as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2199 alias in your environment" >&2;}
2200    { (exit 1); exit 1; }; }
2201    fi
2202
2203    test "$2" = conftest.file
2204    )
2205 then
2206    # Ok.
2207    :
2208 else
2209    { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2210 Check your system clock" >&5
2211 $as_echo "$as_me: error: newly created file is older than distributed files!
2212 Check your system clock" >&2;}
2213    { (exit 1); exit 1; }; }
2214 fi
2215 { $as_echo "$as_me:$LINENO: result: yes" >&5
2216 $as_echo "yes" >&6; }
2217 test "$program_prefix" != NONE &&
2218   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2219 # Use a double $ so make ignores it.
2220 test "$program_suffix" != NONE &&
2221   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2222 # Double any \ or $.
2223 # By default was `s,x,x', remove it if useless.
2224 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2225 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2226
2227 # expand $ac_aux_dir to an absolute path
2228 am_aux_dir=`cd $ac_aux_dir && pwd`
2229
2230 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2231 # Use eval to expand $SHELL
2232 if eval "$MISSING --run true"; then
2233   am_missing_run="$MISSING --run "
2234 else
2235   am_missing_run=
2236   { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2237 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2238 fi
2239
2240 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2241   # We used to keeping the `.' as first argument, in order to
2242   # allow $(mkdir_p) to be used without argument.  As in
2243   #   $(mkdir_p) $(somedir)
2244   # where $(somedir) is conditionally defined.  However this is wrong
2245   # for two reasons:
2246   #  1. if the package is installed by a user who cannot write `.'
2247   #     make install will fail,
2248   #  2. the above comment should most certainly read
2249   #     $(mkdir_p) $(DESTDIR)$(somedir)
2250   #     so it does not work when $(somedir) is undefined and
2251   #     $(DESTDIR) is not.
2252   #  To support the latter case, we have to write
2253   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2254   #  so the `.' trick is pointless.
2255   mkdir_p='mkdir -p --'
2256 else
2257   # On NextStep and OpenStep, the `mkdir' command does not
2258   # recognize any option.  It will interpret all options as
2259   # directories to create, and then abort because `.' already
2260   # exists.
2261   for d in ./-p ./--version;
2262   do
2263     test -d $d && rmdir $d
2264   done
2265   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2266   if test -f "$ac_aux_dir/mkinstalldirs"; then
2267     mkdir_p='$(mkinstalldirs)'
2268   else
2269     mkdir_p='$(install_sh) -d'
2270   fi
2271 fi
2272
2273 for ac_prog in gawk mawk nawk awk
2274 do
2275   # Extract the first word of "$ac_prog", so it can be a program name with args.
2276 set dummy $ac_prog; ac_word=$2
2277 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2278 $as_echo_n "checking for $ac_word... " >&6; }
2279 if test "${ac_cv_prog_AWK+set}" = set; then
2280   $as_echo_n "(cached) " >&6
2281 else
2282   if test -n "$AWK"; then
2283   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2284 else
2285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2286 for as_dir in $PATH
2287 do
2288   IFS=$as_save_IFS
2289   test -z "$as_dir" && as_dir=.
2290   for ac_exec_ext in '' $ac_executable_extensions; do
2291   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2292     ac_cv_prog_AWK="$ac_prog"
2293     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2294     break 2
2295   fi
2296 done
2297 done
2298 IFS=$as_save_IFS
2299
2300 fi
2301 fi
2302 AWK=$ac_cv_prog_AWK
2303 if test -n "$AWK"; then
2304   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2305 $as_echo "$AWK" >&6; }
2306 else
2307   { $as_echo "$as_me:$LINENO: result: no" >&5
2308 $as_echo "no" >&6; }
2309 fi
2310
2311
2312   test -n "$AWK" && break
2313 done
2314
2315 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2316 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2317 set x ${MAKE-make}
2318 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2319 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2320   $as_echo_n "(cached) " >&6
2321 else
2322   cat >conftest.make <<\_ACEOF
2323 SHELL = /bin/sh
2324 all:
2325         @echo '@@@%%%=$(MAKE)=@@@%%%'
2326 _ACEOF
2327 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2328 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2329   *@@@%%%=?*=@@@%%%*)
2330     eval ac_cv_prog_make_${ac_make}_set=yes;;
2331   *)
2332     eval ac_cv_prog_make_${ac_make}_set=no;;
2333 esac
2334 rm -f conftest.make
2335 fi
2336 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2337   { $as_echo "$as_me:$LINENO: result: yes" >&5
2338 $as_echo "yes" >&6; }
2339   SET_MAKE=
2340 else
2341   { $as_echo "$as_me:$LINENO: result: no" >&5
2342 $as_echo "no" >&6; }
2343   SET_MAKE="MAKE=${MAKE-make}"
2344 fi
2345
2346 rm -rf .tst 2>/dev/null
2347 mkdir .tst 2>/dev/null
2348 if test -d .tst; then
2349   am__leading_dot=.
2350 else
2351   am__leading_dot=_
2352 fi
2353 rmdir .tst 2>/dev/null
2354
2355 # test to see if srcdir already configured
2356 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2357    test -f $srcdir/config.status; then
2358   { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2359 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2360    { (exit 1); exit 1; }; }
2361 fi
2362
2363 # test whether we have cygpath
2364 if test -z "$CYGPATH_W"; then
2365   if (cygpath --version) >/dev/null 2>/dev/null; then
2366     CYGPATH_W='cygpath -w'
2367   else
2368     CYGPATH_W=echo
2369   fi
2370 fi
2371
2372
2373 # Define the identity of the package.
2374  PACKAGE='sqlite'
2375  VERSION='3.7.6.2'
2376
2377
2378 cat >>confdefs.h <<_ACEOF
2379 #define PACKAGE "$PACKAGE"
2380 _ACEOF
2381
2382
2383 cat >>confdefs.h <<_ACEOF
2384 #define VERSION "$VERSION"
2385 _ACEOF
2386
2387 # Some tools Automake needs.
2388
2389 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2390
2391
2392 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2393
2394
2395 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2396
2397
2398 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2399
2400
2401 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2402
2403 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2404
2405 # Installed binaries are usually stripped using `strip' when the user
2406 # run `make install-strip'.  However `strip' might not be the right
2407 # tool to use in cross-compilation environments, therefore Automake
2408 # will honor the `STRIP' environment variable to overrule this program.
2409 if test "$cross_compiling" != no; then
2410   if test -n "$ac_tool_prefix"; then
2411   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2412 set dummy ${ac_tool_prefix}strip; ac_word=$2
2413 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2414 $as_echo_n "checking for $ac_word... " >&6; }
2415 if test "${ac_cv_prog_STRIP+set}" = set; then
2416   $as_echo_n "(cached) " >&6
2417 else
2418   if test -n "$STRIP"; then
2419   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2420 else
2421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2422 for as_dir in $PATH
2423 do
2424   IFS=$as_save_IFS
2425   test -z "$as_dir" && as_dir=.
2426   for ac_exec_ext in '' $ac_executable_extensions; do
2427   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2428     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2429     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2430     break 2
2431   fi
2432 done
2433 done
2434 IFS=$as_save_IFS
2435
2436 fi
2437 fi
2438 STRIP=$ac_cv_prog_STRIP
2439 if test -n "$STRIP"; then
2440   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2441 $as_echo "$STRIP" >&6; }
2442 else
2443   { $as_echo "$as_me:$LINENO: result: no" >&5
2444 $as_echo "no" >&6; }
2445 fi
2446
2447
2448 fi
2449 if test -z "$ac_cv_prog_STRIP"; then
2450   ac_ct_STRIP=$STRIP
2451   # Extract the first word of "strip", so it can be a program name with args.
2452 set dummy strip; ac_word=$2
2453 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2454 $as_echo_n "checking for $ac_word... " >&6; }
2455 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2456   $as_echo_n "(cached) " >&6
2457 else
2458   if test -n "$ac_ct_STRIP"; then
2459   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2460 else
2461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2462 for as_dir in $PATH
2463 do
2464   IFS=$as_save_IFS
2465   test -z "$as_dir" && as_dir=.
2466   for ac_exec_ext in '' $ac_executable_extensions; do
2467   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2468     ac_cv_prog_ac_ct_STRIP="strip"
2469     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2470     break 2
2471   fi
2472 done
2473 done
2474 IFS=$as_save_IFS
2475
2476 fi
2477 fi
2478 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2479 if test -n "$ac_ct_STRIP"; then
2480   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2481 $as_echo "$ac_ct_STRIP" >&6; }
2482 else
2483   { $as_echo "$as_me:$LINENO: result: no" >&5
2484 $as_echo "no" >&6; }
2485 fi
2486
2487   if test "x$ac_ct_STRIP" = x; then
2488     STRIP=":"
2489   else
2490     case $cross_compiling:$ac_tool_warned in
2491 yes:)
2492 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2493 whose name does not start with the host triplet.  If you think this
2494 configuration is useful to you, please write to autoconf@gnu.org." >&5
2495 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2496 whose name does not start with the host triplet.  If you think this
2497 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2498 ac_tool_warned=yes ;;
2499 esac
2500     STRIP=$ac_ct_STRIP
2501   fi
2502 else
2503   STRIP="$ac_cv_prog_STRIP"
2504 fi
2505
2506 fi
2507 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2508
2509 # We need awk for the "check" target.  The system "awk" is bad on
2510 # some platforms.
2511 # Always define AMTAR for backward compatibility.
2512
2513 AMTAR=${AMTAR-"${am_missing_run}tar"}
2514
2515 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2516
2517
2518
2519
2520
2521
2522 DEPDIR="${am__leading_dot}deps"
2523
2524 ac_config_commands="$ac_config_commands depfiles"
2525
2526
2527 am_make=${MAKE-make}
2528 cat > confinc << 'END'
2529 am__doit:
2530         @echo done
2531 .PHONY: am__doit
2532 END
2533 # If we don't find an include directive, just comment out the code.
2534 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2535 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2536 am__include="#"
2537 am__quote=
2538 _am_result=none
2539 # First try GNU make style include.
2540 echo "include confinc" > confmf
2541 # We grep out `Entering directory' and `Leaving directory'
2542 # messages which can occur if `w' ends up in MAKEFLAGS.
2543 # In particular we don't look at `^make:' because GNU make might
2544 # be invoked under some other name (usually "gmake"), in which
2545 # case it prints its new name instead of `make'.
2546 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2547    am__include=include
2548    am__quote=
2549    _am_result=GNU
2550 fi
2551 # Now try BSD make style include.
2552 if test "$am__include" = "#"; then
2553    echo '.include "confinc"' > confmf
2554    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2555       am__include=.include
2556       am__quote="\""
2557       _am_result=BSD
2558    fi
2559 fi
2560
2561
2562 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2563 $as_echo "$_am_result" >&6; }
2564 rm -f confinc confmf
2565
2566 # Check whether --enable-dependency-tracking was given.
2567 if test "${enable_dependency_tracking+set}" = set; then
2568   enableval=$enable_dependency_tracking;
2569 fi
2570
2571 if test "x$enable_dependency_tracking" != xno; then
2572   am_depcomp="$ac_aux_dir/depcomp"
2573   AMDEPBACKSLASH='\'
2574 fi
2575
2576
2577 if test "x$enable_dependency_tracking" != xno; then
2578   AMDEP_TRUE=
2579   AMDEP_FALSE='#'
2580 else
2581   AMDEP_TRUE='#'
2582   AMDEP_FALSE=
2583 fi
2584
2585
2586
2587 ac_ext=c
2588 ac_cpp='$CPP $CPPFLAGS'
2589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2592 if test -n "$ac_tool_prefix"; then
2593   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2594 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2595 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2596 $as_echo_n "checking for $ac_word... " >&6; }
2597 if test "${ac_cv_prog_CC+set}" = set; then
2598   $as_echo_n "(cached) " >&6
2599 else
2600   if test -n "$CC"; then
2601   ac_cv_prog_CC="$CC" # Let the user override the test.
2602 else
2603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2604 for as_dir in $PATH
2605 do
2606   IFS=$as_save_IFS
2607   test -z "$as_dir" && as_dir=.
2608   for ac_exec_ext in '' $ac_executable_extensions; do
2609   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2610     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2611     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2612     break 2
2613   fi
2614 done
2615 done
2616 IFS=$as_save_IFS
2617
2618 fi
2619 fi
2620 CC=$ac_cv_prog_CC
2621 if test -n "$CC"; then
2622   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2623 $as_echo "$CC" >&6; }
2624 else
2625   { $as_echo "$as_me:$LINENO: result: no" >&5
2626 $as_echo "no" >&6; }
2627 fi
2628
2629
2630 fi
2631 if test -z "$ac_cv_prog_CC"; then
2632   ac_ct_CC=$CC
2633   # Extract the first word of "gcc", so it can be a program name with args.
2634 set dummy gcc; ac_word=$2
2635 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2636 $as_echo_n "checking for $ac_word... " >&6; }
2637 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2638   $as_echo_n "(cached) " >&6
2639 else
2640   if test -n "$ac_ct_CC"; then
2641   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2642 else
2643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2644 for as_dir in $PATH
2645 do
2646   IFS=$as_save_IFS
2647   test -z "$as_dir" && as_dir=.
2648   for ac_exec_ext in '' $ac_executable_extensions; do
2649   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2650     ac_cv_prog_ac_ct_CC="gcc"
2651     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2652     break 2
2653   fi
2654 done
2655 done
2656 IFS=$as_save_IFS
2657
2658 fi
2659 fi
2660 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2661 if test -n "$ac_ct_CC"; then
2662   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2663 $as_echo "$ac_ct_CC" >&6; }
2664 else
2665   { $as_echo "$as_me:$LINENO: result: no" >&5
2666 $as_echo "no" >&6; }
2667 fi
2668
2669   if test "x$ac_ct_CC" = x; then
2670     CC=""
2671   else
2672     case $cross_compiling:$ac_tool_warned in
2673 yes:)
2674 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2675 whose name does not start with the host triplet.  If you think this
2676 configuration is useful to you, please write to autoconf@gnu.org." >&5
2677 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2678 whose name does not start with the host triplet.  If you think this
2679 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2680 ac_tool_warned=yes ;;
2681 esac
2682     CC=$ac_ct_CC
2683   fi
2684 else
2685   CC="$ac_cv_prog_CC"
2686 fi
2687
2688 if test -z "$CC"; then
2689           if test -n "$ac_tool_prefix"; then
2690     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2691 set dummy ${ac_tool_prefix}cc; ac_word=$2
2692 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2693 $as_echo_n "checking for $ac_word... " >&6; }
2694 if test "${ac_cv_prog_CC+set}" = set; then
2695   $as_echo_n "(cached) " >&6
2696 else
2697   if test -n "$CC"; then
2698   ac_cv_prog_CC="$CC" # Let the user override the test.
2699 else
2700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2701 for as_dir in $PATH
2702 do
2703   IFS=$as_save_IFS
2704   test -z "$as_dir" && as_dir=.
2705   for ac_exec_ext in '' $ac_executable_extensions; do
2706   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2707     ac_cv_prog_CC="${ac_tool_prefix}cc"
2708     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2709     break 2
2710   fi
2711 done
2712 done
2713 IFS=$as_save_IFS
2714
2715 fi
2716 fi
2717 CC=$ac_cv_prog_CC
2718 if test -n "$CC"; then
2719   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2720 $as_echo "$CC" >&6; }
2721 else
2722   { $as_echo "$as_me:$LINENO: result: no" >&5
2723 $as_echo "no" >&6; }
2724 fi
2725
2726
2727   fi
2728 fi
2729 if test -z "$CC"; then
2730   # Extract the first word of "cc", so it can be a program name with args.
2731 set dummy cc; ac_word=$2
2732 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2733 $as_echo_n "checking for $ac_word... " >&6; }
2734 if test "${ac_cv_prog_CC+set}" = set; then
2735   $as_echo_n "(cached) " >&6
2736 else
2737   if test -n "$CC"; then
2738   ac_cv_prog_CC="$CC" # Let the user override the test.
2739 else
2740   ac_prog_rejected=no
2741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2742 for as_dir in $PATH
2743 do
2744   IFS=$as_save_IFS
2745   test -z "$as_dir" && as_dir=.
2746   for ac_exec_ext in '' $ac_executable_extensions; do
2747   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2748     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2749        ac_prog_rejected=yes
2750        continue
2751      fi
2752     ac_cv_prog_CC="cc"
2753     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2754     break 2
2755   fi
2756 done
2757 done
2758 IFS=$as_save_IFS
2759
2760 if test $ac_prog_rejected = yes; then
2761   # We found a bogon in the path, so make sure we never use it.
2762   set dummy $ac_cv_prog_CC
2763   shift
2764   if test $# != 0; then
2765     # We chose a different compiler from the bogus one.
2766     # However, it has the same basename, so the bogon will be chosen
2767     # first if we set CC to just the basename; use the full file name.
2768     shift
2769     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2770   fi
2771 fi
2772 fi
2773 fi
2774 CC=$ac_cv_prog_CC
2775 if test -n "$CC"; then
2776   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2777 $as_echo "$CC" >&6; }
2778 else
2779   { $as_echo "$as_me:$LINENO: result: no" >&5
2780 $as_echo "no" >&6; }
2781 fi
2782
2783
2784 fi
2785 if test -z "$CC"; then
2786   if test -n "$ac_tool_prefix"; then
2787   for ac_prog in cl.exe
2788   do
2789     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2790 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2791 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2792 $as_echo_n "checking for $ac_word... " >&6; }
2793 if test "${ac_cv_prog_CC+set}" = set; then
2794   $as_echo_n "(cached) " >&6
2795 else
2796   if test -n "$CC"; then
2797   ac_cv_prog_CC="$CC" # Let the user override the test.
2798 else
2799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2800 for as_dir in $PATH
2801 do
2802   IFS=$as_save_IFS
2803   test -z "$as_dir" && as_dir=.
2804   for ac_exec_ext in '' $ac_executable_extensions; do
2805   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2806     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2807     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2808     break 2
2809   fi
2810 done
2811 done
2812 IFS=$as_save_IFS
2813
2814 fi
2815 fi
2816 CC=$ac_cv_prog_CC
2817 if test -n "$CC"; then
2818   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2819 $as_echo "$CC" >&6; }
2820 else
2821   { $as_echo "$as_me:$LINENO: result: no" >&5
2822 $as_echo "no" >&6; }
2823 fi
2824
2825
2826     test -n "$CC" && break
2827   done
2828 fi
2829 if test -z "$CC"; then
2830   ac_ct_CC=$CC
2831   for ac_prog in cl.exe
2832 do
2833   # Extract the first word of "$ac_prog", so it can be a program name with args.
2834 set dummy $ac_prog; ac_word=$2
2835 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2836 $as_echo_n "checking for $ac_word... " >&6; }
2837 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2838   $as_echo_n "(cached) " >&6
2839 else
2840   if test -n "$ac_ct_CC"; then
2841   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2842 else
2843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2844 for as_dir in $PATH
2845 do
2846   IFS=$as_save_IFS
2847   test -z "$as_dir" && as_dir=.
2848   for ac_exec_ext in '' $ac_executable_extensions; do
2849   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2850     ac_cv_prog_ac_ct_CC="$ac_prog"
2851     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2852     break 2
2853   fi
2854 done
2855 done
2856 IFS=$as_save_IFS
2857
2858 fi
2859 fi
2860 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2861 if test -n "$ac_ct_CC"; then
2862   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2863 $as_echo "$ac_ct_CC" >&6; }
2864 else
2865   { $as_echo "$as_me:$LINENO: result: no" >&5
2866 $as_echo "no" >&6; }
2867 fi
2868
2869
2870   test -n "$ac_ct_CC" && break
2871 done
2872
2873   if test "x$ac_ct_CC" = x; then
2874     CC=""
2875   else
2876     case $cross_compiling:$ac_tool_warned in
2877 yes:)
2878 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2879 whose name does not start with the host triplet.  If you think this
2880 configuration is useful to you, please write to autoconf@gnu.org." >&5
2881 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2882 whose name does not start with the host triplet.  If you think this
2883 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2884 ac_tool_warned=yes ;;
2885 esac
2886     CC=$ac_ct_CC
2887   fi
2888 fi
2889
2890 fi
2891
2892
2893 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2894 See \`config.log' for more details." >&5
2895 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2896 See \`config.log' for more details." >&2;}
2897    { (exit 1); exit 1; }; }
2898
2899 # Provide some information about the compiler.
2900 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2901 set X $ac_compile
2902 ac_compiler=$2
2903 { (ac_try="$ac_compiler --version >&5"
2904 case "(($ac_try" in
2905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2906   *) ac_try_echo=$ac_try;;
2907 esac
2908 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2909 $as_echo "$ac_try_echo") >&5
2910   (eval "$ac_compiler --version >&5") 2>&5
2911   ac_status=$?
2912   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913   (exit $ac_status); }
2914 { (ac_try="$ac_compiler -v >&5"
2915 case "(($ac_try" in
2916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2917   *) ac_try_echo=$ac_try;;
2918 esac
2919 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2920 $as_echo "$ac_try_echo") >&5
2921   (eval "$ac_compiler -v >&5") 2>&5
2922   ac_status=$?
2923   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924   (exit $ac_status); }
2925 { (ac_try="$ac_compiler -V >&5"
2926 case "(($ac_try" in
2927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2928   *) ac_try_echo=$ac_try;;
2929 esac
2930 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2931 $as_echo "$ac_try_echo") >&5
2932   (eval "$ac_compiler -V >&5") 2>&5
2933   ac_status=$?
2934   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935   (exit $ac_status); }
2936
2937 cat >conftest.$ac_ext <<_ACEOF
2938 /* confdefs.h.  */
2939 _ACEOF
2940 cat confdefs.h >>conftest.$ac_ext
2941 cat >>conftest.$ac_ext <<_ACEOF
2942 /* end confdefs.h.  */
2943
2944 int
2945 main ()
2946 {
2947
2948   ;
2949   return 0;
2950 }
2951 _ACEOF
2952 ac_clean_files_save=$ac_clean_files
2953 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2954 # Try to create an executable without -o first, disregard a.out.
2955 # It will help us diagnose broken compilers, and finding out an intuition
2956 # of exeext.
2957 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2958 $as_echo_n "checking for C compiler default output file name... " >&6; }
2959 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2960
2961 # The possible output files:
2962 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2963
2964 ac_rmfiles=
2965 for ac_file in $ac_files
2966 do
2967   case $ac_file in
2968     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2969     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2970   esac
2971 done
2972 rm -f $ac_rmfiles
2973
2974 if { (ac_try="$ac_link_default"
2975 case "(($ac_try" in
2976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2977   *) ac_try_echo=$ac_try;;
2978 esac
2979 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2980 $as_echo "$ac_try_echo") >&5
2981   (eval "$ac_link_default") 2>&5
2982   ac_status=$?
2983   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984   (exit $ac_status); }; then
2985   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2986 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2987 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2988 # so that the user can short-circuit this test for compilers unknown to
2989 # Autoconf.
2990 for ac_file in $ac_files ''
2991 do
2992   test -f "$ac_file" || continue
2993   case $ac_file in
2994     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2995         ;;
2996     [ab].out )
2997         # We found the default executable, but exeext='' is most
2998         # certainly right.
2999         break;;
3000     *.* )
3001         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3002         then :; else
3003            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3004         fi
3005         # We set ac_cv_exeext here because the later test for it is not
3006         # safe: cross compilers may not add the suffix if given an `-o'
3007         # argument, so we may need to know it at that point already.
3008         # Even if this section looks crufty: it has the advantage of
3009         # actually working.
3010         break;;
3011     * )
3012         break;;
3013   esac
3014 done
3015 test "$ac_cv_exeext" = no && ac_cv_exeext=
3016
3017 else
3018   ac_file=''
3019 fi
3020
3021 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3022 $as_echo "$ac_file" >&6; }
3023 if test -z "$ac_file"; then
3024   $as_echo "$as_me: failed program was:" >&5
3025 sed 's/^/| /' conftest.$ac_ext >&5
3026
3027 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3028 See \`config.log' for more details." >&5
3029 $as_echo "$as_me: error: C compiler cannot create executables
3030 See \`config.log' for more details." >&2;}
3031    { (exit 77); exit 77; }; }
3032 fi
3033
3034 ac_exeext=$ac_cv_exeext
3035
3036 # Check that the compiler produces executables we can run.  If not, either
3037 # the compiler is broken, or we cross compile.
3038 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3039 $as_echo_n "checking whether the C compiler works... " >&6; }
3040 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3041 # If not cross compiling, check that we can run a simple program.
3042 if test "$cross_compiling" != yes; then
3043   if { ac_try='./$ac_file'
3044   { (case "(($ac_try" in
3045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3046   *) ac_try_echo=$ac_try;;
3047 esac
3048 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3049 $as_echo "$ac_try_echo") >&5
3050   (eval "$ac_try") 2>&5
3051   ac_status=$?
3052   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053   (exit $ac_status); }; }; then
3054     cross_compiling=no
3055   else
3056     if test "$cross_compiling" = maybe; then
3057         cross_compiling=yes
3058     else
3059         { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3060 If you meant to cross compile, use \`--host'.
3061 See \`config.log' for more details." >&5
3062 $as_echo "$as_me: error: cannot run C compiled programs.
3063 If you meant to cross compile, use \`--host'.
3064 See \`config.log' for more details." >&2;}
3065    { (exit 1); exit 1; }; }
3066     fi
3067   fi
3068 fi
3069 { $as_echo "$as_me:$LINENO: result: yes" >&5
3070 $as_echo "yes" >&6; }
3071
3072 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3073 ac_clean_files=$ac_clean_files_save
3074 # Check that the compiler produces executables we can run.  If not, either
3075 # the compiler is broken, or we cross compile.
3076 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3077 $as_echo_n "checking whether we are cross compiling... " >&6; }
3078 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3079 $as_echo "$cross_compiling" >&6; }
3080
3081 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3082 $as_echo_n "checking for suffix of executables... " >&6; }
3083 if { (ac_try="$ac_link"
3084 case "(($ac_try" in
3085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3086   *) ac_try_echo=$ac_try;;
3087 esac
3088 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3089 $as_echo "$ac_try_echo") >&5
3090   (eval "$ac_link") 2>&5
3091   ac_status=$?
3092   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093   (exit $ac_status); }; then
3094   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3095 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3096 # work properly (i.e., refer to `conftest.exe'), while it won't with
3097 # `rm'.
3098 for ac_file in conftest.exe conftest conftest.*; do
3099   test -f "$ac_file" || continue
3100   case $ac_file in
3101     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3102     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3103           break;;
3104     * ) break;;
3105   esac
3106 done
3107 else
3108   { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3109 See \`config.log' for more details." >&5
3110 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3111 See \`config.log' for more details." >&2;}
3112    { (exit 1); exit 1; }; }
3113 fi
3114
3115 rm -f conftest$ac_cv_exeext
3116 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3117 $as_echo "$ac_cv_exeext" >&6; }
3118
3119 rm -f conftest.$ac_ext
3120 EXEEXT=$ac_cv_exeext
3121 ac_exeext=$EXEEXT
3122 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3123 $as_echo_n "checking for suffix of object files... " >&6; }
3124 if test "${ac_cv_objext+set}" = set; then
3125   $as_echo_n "(cached) " >&6
3126 else
3127   cat >conftest.$ac_ext <<_ACEOF
3128 /* confdefs.h.  */
3129 _ACEOF
3130 cat confdefs.h >>conftest.$ac_ext
3131 cat >>conftest.$ac_ext <<_ACEOF
3132 /* end confdefs.h.  */
3133
3134 int
3135 main ()
3136 {
3137
3138   ;
3139   return 0;
3140 }
3141 _ACEOF
3142 rm -f conftest.o conftest.obj
3143 if { (ac_try="$ac_compile"
3144 case "(($ac_try" in
3145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3146   *) ac_try_echo=$ac_try;;
3147 esac
3148 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3149 $as_echo "$ac_try_echo") >&5
3150   (eval "$ac_compile") 2>&5
3151   ac_status=$?
3152   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153   (exit $ac_status); }; then
3154   for ac_file in conftest.o conftest.obj conftest.*; do
3155   test -f "$ac_file" || continue;
3156   case $ac_file in
3157     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3158     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3159        break;;
3160   esac
3161 done
3162 else
3163   $as_echo "$as_me: failed program was:" >&5
3164 sed 's/^/| /' conftest.$ac_ext >&5
3165
3166 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3167 See \`config.log' for more details." >&5
3168 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3169 See \`config.log' for more details." >&2;}
3170    { (exit 1); exit 1; }; }
3171 fi
3172
3173 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3174 fi
3175 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3176 $as_echo "$ac_cv_objext" >&6; }
3177 OBJEXT=$ac_cv_objext
3178 ac_objext=$OBJEXT
3179 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3180 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3181 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3182   $as_echo_n "(cached) " >&6
3183 else
3184   cat >conftest.$ac_ext <<_ACEOF
3185 /* confdefs.h.  */
3186 _ACEOF
3187 cat confdefs.h >>conftest.$ac_ext
3188 cat >>conftest.$ac_ext <<_ACEOF
3189 /* end confdefs.h.  */
3190
3191 int
3192 main ()
3193 {
3194 #ifndef __GNUC__
3195        choke me
3196 #endif
3197
3198   ;
3199   return 0;
3200 }
3201 _ACEOF
3202 rm -f conftest.$ac_objext
3203 if { (ac_try="$ac_compile"
3204 case "(($ac_try" in
3205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3206   *) ac_try_echo=$ac_try;;
3207 esac
3208 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3209 $as_echo "$ac_try_echo") >&5
3210   (eval "$ac_compile") 2>conftest.er1
3211   ac_status=$?
3212   grep -v '^ *+' conftest.er1 >conftest.err
3213   rm -f conftest.er1
3214   cat conftest.err >&5
3215   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3216   (exit $ac_status); } && {
3217          test -z "$ac_c_werror_flag" ||
3218          test ! -s conftest.err
3219        } && test -s conftest.$ac_objext; then
3220   ac_compiler_gnu=yes
3221 else
3222   $as_echo "$as_me: failed program was:" >&5
3223 sed 's/^/| /' conftest.$ac_ext >&5
3224
3225         ac_compiler_gnu=no
3226 fi
3227
3228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3229 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3230
3231 fi
3232 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3233 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3234 if test $ac_compiler_gnu = yes; then
3235   GCC=yes
3236 else
3237   GCC=
3238 fi
3239 ac_test_CFLAGS=${CFLAGS+set}
3240 ac_save_CFLAGS=$CFLAGS
3241 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3242 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3243 if test "${ac_cv_prog_cc_g+set}" = set; then
3244   $as_echo_n "(cached) " >&6
3245 else
3246   ac_save_c_werror_flag=$ac_c_werror_flag
3247    ac_c_werror_flag=yes
3248    ac_cv_prog_cc_g=no
3249    CFLAGS="-g"
3250    cat >conftest.$ac_ext <<_ACEOF
3251 /* confdefs.h.  */
3252 _ACEOF
3253 cat confdefs.h >>conftest.$ac_ext
3254 cat >>conftest.$ac_ext <<_ACEOF
3255 /* end confdefs.h.  */
3256
3257 int
3258 main ()
3259 {
3260
3261   ;
3262   return 0;
3263 }
3264 _ACEOF
3265 rm -f conftest.$ac_objext
3266 if { (ac_try="$ac_compile"
3267 case "(($ac_try" in
3268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3269   *) ac_try_echo=$ac_try;;
3270 esac
3271 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3272 $as_echo "$ac_try_echo") >&5
3273   (eval "$ac_compile") 2>conftest.er1
3274   ac_status=$?
3275   grep -v '^ *+' conftest.er1 >conftest.err
3276   rm -f conftest.er1
3277   cat conftest.err >&5
3278   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3279   (exit $ac_status); } && {
3280          test -z "$ac_c_werror_flag" ||
3281          test ! -s conftest.err
3282        } && test -s conftest.$ac_objext; then
3283   ac_cv_prog_cc_g=yes
3284 else
3285   $as_echo "$as_me: failed program was:" >&5
3286 sed 's/^/| /' conftest.$ac_ext >&5
3287
3288         CFLAGS=""
3289       cat >conftest.$ac_ext <<_ACEOF
3290 /* confdefs.h.  */
3291 _ACEOF
3292 cat confdefs.h >>conftest.$ac_ext
3293 cat >>conftest.$ac_ext <<_ACEOF
3294 /* end confdefs.h.  */
3295
3296 int
3297 main ()
3298 {
3299
3300   ;
3301   return 0;
3302 }
3303 _ACEOF
3304 rm -f conftest.$ac_objext
3305 if { (ac_try="$ac_compile"
3306 case "(($ac_try" in
3307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3308   *) ac_try_echo=$ac_try;;
3309 esac
3310 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3311 $as_echo "$ac_try_echo") >&5
3312   (eval "$ac_compile") 2>conftest.er1
3313   ac_status=$?
3314   grep -v '^ *+' conftest.er1 >conftest.err
3315   rm -f conftest.er1
3316   cat conftest.err >&5
3317   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318   (exit $ac_status); } && {
3319          test -z "$ac_c_werror_flag" ||
3320          test ! -s conftest.err
3321        } && test -s conftest.$ac_objext; then
3322   :
3323 else
3324   $as_echo "$as_me: failed program was:" >&5
3325 sed 's/^/| /' conftest.$ac_ext >&5
3326
3327         ac_c_werror_flag=$ac_save_c_werror_flag
3328          CFLAGS="-g"
3329          cat >conftest.$ac_ext <<_ACEOF
3330 /* confdefs.h.  */
3331 _ACEOF
3332 cat confdefs.h >>conftest.$ac_ext
3333 cat >>conftest.$ac_ext <<_ACEOF
3334 /* end confdefs.h.  */
3335
3336 int
3337 main ()
3338 {
3339
3340   ;
3341   return 0;
3342 }
3343 _ACEOF
3344 rm -f conftest.$ac_objext
3345 if { (ac_try="$ac_compile"
3346 case "(($ac_try" in
3347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3348   *) ac_try_echo=$ac_try;;
3349 esac
3350 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3351 $as_echo "$ac_try_echo") >&5
3352   (eval "$ac_compile") 2>conftest.er1
3353   ac_status=$?
3354   grep -v '^ *+' conftest.er1 >conftest.err
3355   rm -f conftest.er1
3356   cat conftest.err >&5
3357   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358   (exit $ac_status); } && {
3359          test -z "$ac_c_werror_flag" ||
3360          test ! -s conftest.err
3361        } && test -s conftest.$ac_objext; then
3362   ac_cv_prog_cc_g=yes
3363 else
3364   $as_echo "$as_me: failed program was:" >&5
3365 sed 's/^/| /' conftest.$ac_ext >&5
3366
3367
3368 fi
3369
3370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3371 fi
3372
3373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3374 fi
3375
3376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3377    ac_c_werror_flag=$ac_save_c_werror_flag
3378 fi
3379 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3380 $as_echo "$ac_cv_prog_cc_g" >&6; }
3381 if test "$ac_test_CFLAGS" = set; then
3382   CFLAGS=$ac_save_CFLAGS
3383 elif test $ac_cv_prog_cc_g = yes; then
3384   if test "$GCC" = yes; then
3385     CFLAGS="-g -O2"
3386   else
3387     CFLAGS="-g"
3388   fi
3389 else
3390   if test "$GCC" = yes; then
3391     CFLAGS="-O2"
3392   else
3393     CFLAGS=
3394   fi
3395 fi
3396 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3397 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3398 if test "${ac_cv_prog_cc_c89+set}" = set; then
3399   $as_echo_n "(cached) " >&6
3400 else
3401   ac_cv_prog_cc_c89=no
3402 ac_save_CC=$CC
3403 cat >conftest.$ac_ext <<_ACEOF
3404 /* confdefs.h.  */
3405 _ACEOF
3406 cat confdefs.h >>conftest.$ac_ext
3407 cat >>conftest.$ac_ext <<_ACEOF
3408 /* end confdefs.h.  */
3409 #include <stdarg.h>
3410 #include <stdio.h>
3411 #include <sys/types.h>
3412 #include <sys/stat.h>
3413 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3414 struct buf { int x; };
3415 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3416 static char *e (p, i)
3417      char **p;
3418      int i;
3419 {
3420   return p[i];
3421 }
3422 static char *f (char * (*g) (char **, int), char **p, ...)
3423 {
3424   char *s;
3425   va_list v;
3426   va_start (v,p);
3427   s = g (p, va_arg (v,int));
3428   va_end (v);
3429   return s;
3430 }
3431
3432 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3433    function prototypes and stuff, but not '\xHH' hex character constants.
3434    These don't provoke an error unfortunately, instead are silently treated
3435    as 'x'.  The following induces an error, until -std is added to get
3436    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3437    array size at least.  It's necessary to write '\x00'==0 to get something
3438    that's true only with -std.  */
3439 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3440
3441 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3442    inside strings and character constants.  */
3443 #define FOO(x) 'x'
3444 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3445
3446 int test (int i, double x);
3447 struct s1 {int (*f) (int a);};
3448 struct s2 {int (*f) (double a);};
3449 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3450 int argc;
3451 char **argv;
3452 int
3453 main ()
3454 {
3455 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3456   ;
3457   return 0;
3458 }
3459 _ACEOF
3460 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3461         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3462 do
3463   CC="$ac_save_CC $ac_arg"
3464   rm -f conftest.$ac_objext
3465 if { (ac_try="$ac_compile"
3466 case "(($ac_try" in
3467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3468   *) ac_try_echo=$ac_try;;
3469 esac
3470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3471 $as_echo "$ac_try_echo") >&5
3472   (eval "$ac_compile") 2>conftest.er1
3473   ac_status=$?
3474   grep -v '^ *+' conftest.er1 >conftest.err
3475   rm -f conftest.er1
3476   cat conftest.err >&5
3477   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478   (exit $ac_status); } && {
3479          test -z "$ac_c_werror_flag" ||
3480          test ! -s conftest.err
3481        } && test -s conftest.$ac_objext; then
3482   ac_cv_prog_cc_c89=$ac_arg
3483 else
3484   $as_echo "$as_me: failed program was:" >&5
3485 sed 's/^/| /' conftest.$ac_ext >&5
3486
3487
3488 fi
3489
3490 rm -f core conftest.err conftest.$ac_objext
3491   test "x$ac_cv_prog_cc_c89" != "xno" && break
3492 done
3493 rm -f conftest.$ac_ext
3494 CC=$ac_save_CC
3495
3496 fi
3497 # AC_CACHE_VAL
3498 case "x$ac_cv_prog_cc_c89" in
3499   x)
3500     { $as_echo "$as_me:$LINENO: result: none needed" >&5
3501 $as_echo "none needed" >&6; } ;;
3502   xno)
3503     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3504 $as_echo "unsupported" >&6; } ;;
3505   *)
3506     CC="$CC $ac_cv_prog_cc_c89"
3507     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3508 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3509 esac
3510
3511
3512 ac_ext=c
3513 ac_cpp='$CPP $CPPFLAGS'
3514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3517
3518 depcc="$CC"   am_compiler_list=
3519
3520 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3521 $as_echo_n "checking dependency style of $depcc... " >&6; }
3522 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3523   $as_echo_n "(cached) " >&6
3524 else
3525   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3526   # We make a subdir and do the tests there.  Otherwise we can end up
3527   # making bogus files that we don't know about and never remove.  For
3528   # instance it was reported that on HP-UX the gcc test will end up
3529   # making a dummy file named `D' -- because `-MD' means `put the output
3530   # in D'.
3531   mkdir conftest.dir
3532   # Copy depcomp to subdir because otherwise we won't find it if we're
3533   # using a relative directory.
3534   cp "$am_depcomp" conftest.dir
3535   cd conftest.dir
3536   # We will build objects and dependencies in a subdirectory because
3537   # it helps to detect inapplicable dependency modes.  For instance
3538   # both Tru64's cc and ICC support -MD to output dependencies as a
3539   # side effect of compilation, but ICC will put the dependencies in
3540   # the current directory while Tru64 will put them in the object
3541   # directory.
3542   mkdir sub
3543
3544   am_cv_CC_dependencies_compiler_type=none
3545   if test "$am_compiler_list" = ""; then
3546      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3547   fi
3548   for depmode in $am_compiler_list; do
3549     # Setup a source with many dependencies, because some compilers
3550     # like to wrap large dependency lists on column 80 (with \), and
3551     # we should not choose a depcomp mode which is confused by this.
3552     #
3553     # We need to recreate these files for each test, as the compiler may
3554     # overwrite some of them when testing with obscure command lines.
3555     # This happens at least with the AIX C compiler.
3556     : > sub/conftest.c
3557     for i in 1 2 3 4 5 6; do
3558       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3559       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3560       # Solaris 8's {/usr,}/bin/sh.
3561       touch sub/conftst$i.h
3562     done
3563     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3564
3565     case $depmode in
3566     nosideeffect)
3567       # after this tag, mechanisms are not by side-effect, so they'll
3568       # only be used when explicitly requested
3569       if test "x$enable_dependency_tracking" = xyes; then
3570         continue
3571       else
3572         break
3573       fi
3574       ;;
3575     none) break ;;
3576     esac
3577     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3578     # mode.  It turns out that the SunPro C++ compiler does not properly
3579     # handle `-M -o', and we need to detect this.
3580     if depmode=$depmode \
3581        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3582        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3583        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3584          >/dev/null 2>conftest.err &&
3585        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3586        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3587        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3588       # icc doesn't choke on unknown options, it will just issue warnings
3589       # or remarks (even with -Werror).  So we grep stderr for any message
3590       # that says an option was ignored or not supported.
3591       # When given -MP, icc 7.0 and 7.1 complain thusly:
3592       #   icc: Command line warning: ignoring option '-M'; no argument required
3593       # The diagnosis changed in icc 8.0:
3594       #   icc: Command line remark: option '-MP' not supported
3595       if (grep 'ignoring option' conftest.err ||
3596           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3597         am_cv_CC_dependencies_compiler_type=$depmode
3598         break
3599       fi
3600     fi
3601   done
3602
3603   cd ..
3604   rm -rf conftest.dir
3605 else
3606   am_cv_CC_dependencies_compiler_type=none
3607 fi
3608
3609 fi
3610 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3611 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3612 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3613
3614
3615
3616 if
3617   test "x$enable_dependency_tracking" != xno \
3618   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3619   am__fastdepCC_TRUE=
3620   am__fastdepCC_FALSE='#'
3621 else
3622   am__fastdepCC_TRUE='#'
3623   am__fastdepCC_FALSE=
3624 fi
3625
3626
3627
3628 # Check whether --enable-largefile was given.
3629 if test "${enable_largefile+set}" = set; then
3630   enableval=$enable_largefile;
3631 fi
3632
3633 if test "$enable_largefile" != no; then
3634
3635   { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3636 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
3637 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3638   $as_echo_n "(cached) " >&6
3639 else
3640   ac_cv_sys_largefile_CC=no
3641      if test "$GCC" != yes; then
3642        ac_save_CC=$CC
3643        while :; do
3644          # IRIX 6.2 and later do not support large files by default,
3645          # so use the C compiler's -n32 option if that helps.
3646          cat >conftest.$ac_ext <<_ACEOF
3647 /* confdefs.h.  */
3648 _ACEOF
3649 cat confdefs.h >>conftest.$ac_ext
3650 cat >>conftest.$ac_ext <<_ACEOF
3651 /* end confdefs.h.  */
3652 #include <sys/types.h>
3653  /* Check that off_t can represent 2**63 - 1 correctly.
3654     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3655     since some C++ compilers masquerading as C compilers
3656     incorrectly reject 9223372036854775807.  */
3657 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3658   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3659                        && LARGE_OFF_T % 2147483647 == 1)
3660                       ? 1 : -1];
3661 int
3662 main ()
3663 {
3664
3665   ;
3666   return 0;
3667 }
3668 _ACEOF
3669          rm -f conftest.$ac_objext
3670 if { (ac_try="$ac_compile"
3671 case "(($ac_try" in
3672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3673   *) ac_try_echo=$ac_try;;
3674 esac
3675 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3676 $as_echo "$ac_try_echo") >&5
3677   (eval "$ac_compile") 2>conftest.er1
3678   ac_status=$?
3679   grep -v '^ *+' conftest.er1 >conftest.err
3680   rm -f conftest.er1
3681   cat conftest.err >&5
3682   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3683   (exit $ac_status); } && {
3684          test -z "$ac_c_werror_flag" ||
3685          test ! -s conftest.err
3686        } && test -s conftest.$ac_objext; then
3687   break
3688 else
3689   $as_echo "$as_me: failed program was:" >&5
3690 sed 's/^/| /' conftest.$ac_ext >&5
3691
3692
3693 fi
3694
3695 rm -f core conftest.err conftest.$ac_objext
3696          CC="$CC -n32"
3697          rm -f conftest.$ac_objext
3698 if { (ac_try="$ac_compile"
3699 case "(($ac_try" in
3700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3701   *) ac_try_echo=$ac_try;;
3702 esac
3703 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3704 $as_echo "$ac_try_echo") >&5
3705   (eval "$ac_compile") 2>conftest.er1
3706   ac_status=$?
3707   grep -v '^ *+' conftest.er1 >conftest.err
3708   rm -f conftest.er1
3709   cat conftest.err >&5
3710   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711   (exit $ac_status); } && {
3712          test -z "$ac_c_werror_flag" ||
3713          test ! -s conftest.err
3714        } && test -s conftest.$ac_objext; then
3715   ac_cv_sys_largefile_CC=' -n32'; break
3716 else
3717   $as_echo "$as_me: failed program was:" >&5
3718 sed 's/^/| /' conftest.$ac_ext >&5
3719
3720
3721 fi
3722
3723 rm -f core conftest.err conftest.$ac_objext
3724          break
3725        done
3726        CC=$ac_save_CC
3727        rm -f conftest.$ac_ext
3728     fi
3729 fi
3730 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
3731 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
3732   if test "$ac_cv_sys_largefile_CC" != no; then
3733     CC=$CC$ac_cv_sys_largefile_CC
3734   fi
3735
3736   { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3737 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
3738 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3739   $as_echo_n "(cached) " >&6
3740 else
3741   while :; do
3742   cat >conftest.$ac_ext <<_ACEOF
3743 /* confdefs.h.  */
3744 _ACEOF
3745 cat confdefs.h >>conftest.$ac_ext
3746 cat >>conftest.$ac_ext <<_ACEOF
3747 /* end confdefs.h.  */
3748 #include <sys/types.h>
3749  /* Check that off_t can represent 2**63 - 1 correctly.
3750     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3751     since some C++ compilers masquerading as C compilers
3752     incorrectly reject 9223372036854775807.  */
3753 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3754   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3755                        && LARGE_OFF_T % 2147483647 == 1)
3756                       ? 1 : -1];
3757 int
3758 main ()
3759 {
3760
3761   ;
3762   return 0;
3763 }
3764 _ACEOF
3765 rm -f conftest.$ac_objext
3766 if { (ac_try="$ac_compile"
3767 case "(($ac_try" in
3768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3769   *) ac_try_echo=$ac_try;;
3770 esac
3771 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3772 $as_echo "$ac_try_echo") >&5
3773   (eval "$ac_compile") 2>conftest.er1
3774   ac_status=$?
3775   grep -v '^ *+' conftest.er1 >conftest.err
3776   rm -f conftest.er1
3777   cat conftest.err >&5
3778   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3779   (exit $ac_status); } && {
3780          test -z "$ac_c_werror_flag" ||
3781          test ! -s conftest.err
3782        } && test -s conftest.$ac_objext; then
3783   ac_cv_sys_file_offset_bits=no; break
3784 else
3785   $as_echo "$as_me: failed program was:" >&5
3786 sed 's/^/| /' conftest.$ac_ext >&5
3787
3788
3789 fi
3790
3791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3792   cat >conftest.$ac_ext <<_ACEOF
3793 /* confdefs.h.  */
3794 _ACEOF
3795 cat confdefs.h >>conftest.$ac_ext
3796 cat >>conftest.$ac_ext <<_ACEOF
3797 /* end confdefs.h.  */
3798 #define _FILE_OFFSET_BITS 64
3799 #include <sys/types.h>
3800  /* Check that off_t can represent 2**63 - 1 correctly.
3801     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3802     since some C++ compilers masquerading as C compilers
3803     incorrectly reject 9223372036854775807.  */
3804 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3805   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3806                        && LARGE_OFF_T % 2147483647 == 1)
3807                       ? 1 : -1];
3808 int
3809 main ()
3810 {
3811
3812   ;
3813   return 0;
3814 }
3815 _ACEOF
3816 rm -f conftest.$ac_objext
3817 if { (ac_try="$ac_compile"
3818 case "(($ac_try" in
3819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3820   *) ac_try_echo=$ac_try;;
3821 esac
3822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3823 $as_echo "$ac_try_echo") >&5
3824   (eval "$ac_compile") 2>conftest.er1
3825   ac_status=$?
3826   grep -v '^ *+' conftest.er1 >conftest.err
3827   rm -f conftest.er1
3828   cat conftest.err >&5
3829   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3830   (exit $ac_status); } && {
3831          test -z "$ac_c_werror_flag" ||
3832          test ! -s conftest.err
3833        } && test -s conftest.$ac_objext; then
3834   ac_cv_sys_file_offset_bits=64; break
3835 else
3836   $as_echo "$as_me: failed program was:" >&5
3837 sed 's/^/| /' conftest.$ac_ext >&5
3838
3839
3840 fi
3841
3842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3843   ac_cv_sys_file_offset_bits=unknown
3844   break
3845 done
3846 fi
3847 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
3848 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
3849 case $ac_cv_sys_file_offset_bits in #(
3850   no | unknown) ;;
3851   *)
3852 cat >>confdefs.h <<_ACEOF
3853 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3854 _ACEOF
3855 ;;
3856 esac
3857 rm -rf conftest*
3858   if test $ac_cv_sys_file_offset_bits = unknown; then
3859     { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
3860 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
3861 if test "${ac_cv_sys_large_files+set}" = set; then
3862   $as_echo_n "(cached) " >&6
3863 else
3864   while :; do
3865   cat >conftest.$ac_ext <<_ACEOF
3866 /* confdefs.h.  */
3867 _ACEOF
3868 cat confdefs.h >>conftest.$ac_ext
3869 cat >>conftest.$ac_ext <<_ACEOF
3870 /* end confdefs.h.  */
3871 #include <sys/types.h>
3872  /* Check that off_t can represent 2**63 - 1 correctly.
3873     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3874     since some C++ compilers masquerading as C compilers
3875     incorrectly reject 9223372036854775807.  */
3876 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3877   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3878                        && LARGE_OFF_T % 2147483647 == 1)
3879                       ? 1 : -1];
3880 int
3881 main ()
3882 {
3883
3884   ;
3885   return 0;
3886 }
3887 _ACEOF
3888 rm -f conftest.$ac_objext
3889 if { (ac_try="$ac_compile"
3890 case "(($ac_try" in
3891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3892   *) ac_try_echo=$ac_try;;
3893 esac
3894 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3895 $as_echo "$ac_try_echo") >&5
3896   (eval "$ac_compile") 2>conftest.er1
3897   ac_status=$?
3898   grep -v '^ *+' conftest.er1 >conftest.err
3899   rm -f conftest.er1
3900   cat conftest.err >&5
3901   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902   (exit $ac_status); } && {
3903          test -z "$ac_c_werror_flag" ||
3904          test ! -s conftest.err
3905        } && test -s conftest.$ac_objext; then
3906   ac_cv_sys_large_files=no; break
3907 else
3908   $as_echo "$as_me: failed program was:" >&5
3909 sed 's/^/| /' conftest.$ac_ext >&5
3910
3911
3912 fi
3913
3914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3915   cat >conftest.$ac_ext <<_ACEOF
3916 /* confdefs.h.  */
3917 _ACEOF
3918 cat confdefs.h >>conftest.$ac_ext
3919 cat >>conftest.$ac_ext <<_ACEOF
3920 /* end confdefs.h.  */
3921 #define _LARGE_FILES 1
3922 #include <sys/types.h>
3923  /* Check that off_t can represent 2**63 - 1 correctly.
3924     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3925     since some C++ compilers masquerading as C compilers
3926     incorrectly reject 9223372036854775807.  */
3927 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3928   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3929                        && LARGE_OFF_T % 2147483647 == 1)
3930                       ? 1 : -1];
3931 int
3932 main ()
3933 {
3934
3935   ;
3936   return 0;
3937 }
3938 _ACEOF
3939 rm -f conftest.$ac_objext
3940 if { (ac_try="$ac_compile"
3941 case "(($ac_try" in
3942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3943   *) ac_try_echo=$ac_try;;
3944 esac
3945 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3946 $as_echo "$ac_try_echo") >&5
3947   (eval "$ac_compile") 2>conftest.er1
3948   ac_status=$?
3949   grep -v '^ *+' conftest.er1 >conftest.err
3950   rm -f conftest.er1
3951   cat conftest.err >&5
3952   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953   (exit $ac_status); } && {
3954          test -z "$ac_c_werror_flag" ||
3955          test ! -s conftest.err
3956        } && test -s conftest.$ac_objext; then
3957   ac_cv_sys_large_files=1; break
3958 else
3959   $as_echo "$as_me: failed program was:" >&5
3960 sed 's/^/| /' conftest.$ac_ext >&5
3961
3962
3963 fi
3964
3965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3966   ac_cv_sys_large_files=unknown
3967   break
3968 done
3969 fi
3970 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
3971 $as_echo "$ac_cv_sys_large_files" >&6; }
3972 case $ac_cv_sys_large_files in #(
3973   no | unknown) ;;
3974   *)
3975 cat >>confdefs.h <<_ACEOF
3976 #define _LARGE_FILES $ac_cv_sys_large_files
3977 _ACEOF
3978 ;;
3979 esac
3980 rm -rf conftest*
3981   fi
3982 fi
3983
3984
3985 # Check for required programs.
3986 ac_ext=c
3987 ac_cpp='$CPP $CPPFLAGS'
3988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3991 if test -n "$ac_tool_prefix"; then
3992   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3993 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3994 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3995 $as_echo_n "checking for $ac_word... " >&6; }
3996 if test "${ac_cv_prog_CC+set}" = set; then
3997   $as_echo_n "(cached) " >&6
3998 else
3999   if test -n "$CC"; then
4000   ac_cv_prog_CC="$CC" # Let the user override the test.
4001 else
4002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4003 for as_dir in $PATH
4004 do
4005   IFS=$as_save_IFS
4006   test -z "$as_dir" && as_dir=.
4007   for ac_exec_ext in '' $ac_executable_extensions; do
4008   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4009     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4010     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4011     break 2
4012   fi
4013 done
4014 done
4015 IFS=$as_save_IFS
4016
4017 fi
4018 fi
4019 CC=$ac_cv_prog_CC
4020 if test -n "$CC"; then
4021   { $as_echo "$as_me:$LINENO: result: $CC" >&5
4022 $as_echo "$CC" >&6; }
4023 else
4024   { $as_echo "$as_me:$LINENO: result: no" >&5
4025 $as_echo "no" >&6; }
4026 fi
4027
4028
4029 fi
4030 if test -z "$ac_cv_prog_CC"; then
4031   ac_ct_CC=$CC
4032   # Extract the first word of "gcc", so it can be a program name with args.
4033 set dummy gcc; ac_word=$2
4034 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4035 $as_echo_n "checking for $ac_word... " >&6; }
4036 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4037   $as_echo_n "(cached) " >&6
4038 else
4039   if test -n "$ac_ct_CC"; then
4040   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4041 else
4042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4043 for as_dir in $PATH
4044 do
4045   IFS=$as_save_IFS
4046   test -z "$as_dir" && as_dir=.
4047   for ac_exec_ext in '' $ac_executable_extensions; do
4048   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4049     ac_cv_prog_ac_ct_CC="gcc"
4050     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4051     break 2
4052   fi
4053 done
4054 done
4055 IFS=$as_save_IFS
4056
4057 fi
4058 fi
4059 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4060 if test -n "$ac_ct_CC"; then
4061   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4062 $as_echo "$ac_ct_CC" >&6; }
4063 else
4064   { $as_echo "$as_me:$LINENO: result: no" >&5
4065 $as_echo "no" >&6; }
4066 fi
4067
4068   if test "x$ac_ct_CC" = x; then
4069     CC=""
4070   else
4071     case $cross_compiling:$ac_tool_warned in
4072 yes:)
4073 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4074 whose name does not start with the host triplet.  If you think this
4075 configuration is useful to you, please write to autoconf@gnu.org." >&5
4076 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4077 whose name does not start with the host triplet.  If you think this
4078 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4079 ac_tool_warned=yes ;;
4080 esac
4081     CC=$ac_ct_CC
4082   fi
4083 else
4084   CC="$ac_cv_prog_CC"
4085 fi
4086
4087 if test -z "$CC"; then
4088           if test -n "$ac_tool_prefix"; then
4089     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4090 set dummy ${ac_tool_prefix}cc; ac_word=$2
4091 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4092 $as_echo_n "checking for $ac_word... " >&6; }
4093 if test "${ac_cv_prog_CC+set}" = set; then
4094   $as_echo_n "(cached) " >&6
4095 else
4096   if test -n "$CC"; then
4097   ac_cv_prog_CC="$CC" # Let the user override the test.
4098 else
4099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4100 for as_dir in $PATH
4101 do
4102   IFS=$as_save_IFS
4103   test -z "$as_dir" && as_dir=.
4104   for ac_exec_ext in '' $ac_executable_extensions; do
4105   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4106     ac_cv_prog_CC="${ac_tool_prefix}cc"
4107     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4108     break 2
4109   fi
4110 done
4111 done
4112 IFS=$as_save_IFS
4113
4114 fi
4115 fi
4116 CC=$ac_cv_prog_CC
4117 if test -n "$CC"; then
4118   { $as_echo "$as_me:$LINENO: result: $CC" >&5
4119 $as_echo "$CC" >&6; }
4120 else
4121   { $as_echo "$as_me:$LINENO: result: no" >&5
4122 $as_echo "no" >&6; }
4123 fi
4124
4125
4126   fi
4127 fi
4128 if test -z "$CC"; then
4129   # Extract the first word of "cc", so it can be a program name with args.
4130 set dummy cc; ac_word=$2
4131 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4132 $as_echo_n "checking for $ac_word... " >&6; }
4133 if test "${ac_cv_prog_CC+set}" = set; then
4134   $as_echo_n "(cached) " >&6
4135 else
4136   if test -n "$CC"; then
4137   ac_cv_prog_CC="$CC" # Let the user override the test.
4138 else
4139   ac_prog_rejected=no
4140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4141 for as_dir in $PATH
4142 do
4143   IFS=$as_save_IFS
4144   test -z "$as_dir" && as_dir=.
4145   for ac_exec_ext in '' $ac_executable_extensions; do
4146   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4147     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4148        ac_prog_rejected=yes
4149        continue
4150      fi
4151     ac_cv_prog_CC="cc"
4152     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4153     break 2
4154   fi
4155 done
4156 done
4157 IFS=$as_save_IFS
4158
4159 if test $ac_prog_rejected = yes; then
4160   # We found a bogon in the path, so make sure we never use it.
4161   set dummy $ac_cv_prog_CC
4162   shift
4163   if test $# != 0; then
4164     # We chose a different compiler from the bogus one.
4165     # However, it has the same basename, so the bogon will be chosen
4166     # first if we set CC to just the basename; use the full file name.
4167     shift
4168     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4169   fi
4170 fi
4171 fi
4172 fi
4173 CC=$ac_cv_prog_CC
4174 if test -n "$CC"; then
4175   { $as_echo "$as_me:$LINENO: result: $CC" >&5
4176 $as_echo "$CC" >&6; }
4177 else
4178   { $as_echo "$as_me:$LINENO: result: no" >&5
4179 $as_echo "no" >&6; }
4180 fi
4181
4182
4183 fi
4184 if test -z "$CC"; then
4185   if test -n "$ac_tool_prefix"; then
4186   for ac_prog in cl.exe
4187   do
4188     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4189 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4190 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4191 $as_echo_n "checking for $ac_word... " >&6; }
4192 if test "${ac_cv_prog_CC+set}" = set; then
4193   $as_echo_n "(cached) " >&6
4194 else
4195   if test -n "$CC"; then
4196   ac_cv_prog_CC="$CC" # Let the user override the test.
4197 else
4198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4199 for as_dir in $PATH
4200 do
4201   IFS=$as_save_IFS
4202   test -z "$as_dir" && as_dir=.
4203   for ac_exec_ext in '' $ac_executable_extensions; do
4204   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4205     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4206     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4207     break 2
4208   fi
4209 done
4210 done
4211 IFS=$as_save_IFS
4212
4213 fi
4214 fi
4215 CC=$ac_cv_prog_CC
4216 if test -n "$CC"; then
4217   { $as_echo "$as_me:$LINENO: result: $CC" >&5
4218 $as_echo "$CC" >&6; }
4219 else
4220   { $as_echo "$as_me:$LINENO: result: no" >&5
4221 $as_echo "no" >&6; }
4222 fi
4223
4224
4225     test -n "$CC" && break
4226   done
4227 fi
4228 if test -z "$CC"; then
4229   ac_ct_CC=$CC
4230   for ac_prog in cl.exe
4231 do
4232   # Extract the first word of "$ac_prog", so it can be a program name with args.
4233 set dummy $ac_prog; ac_word=$2
4234 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4235 $as_echo_n "checking for $ac_word... " >&6; }
4236 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4237   $as_echo_n "(cached) " >&6
4238 else
4239   if test -n "$ac_ct_CC"; then
4240   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4241 else
4242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4243 for as_dir in $PATH
4244 do
4245   IFS=$as_save_IFS
4246   test -z "$as_dir" && as_dir=.
4247   for ac_exec_ext in '' $ac_executable_extensions; do
4248   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4249     ac_cv_prog_ac_ct_CC="$ac_prog"
4250     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4251     break 2
4252   fi
4253 done
4254 done
4255 IFS=$as_save_IFS
4256
4257 fi
4258 fi
4259 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4260 if test -n "$ac_ct_CC"; then
4261   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4262 $as_echo "$ac_ct_CC" >&6; }
4263 else
4264   { $as_echo "$as_me:$LINENO: result: no" >&5
4265 $as_echo "no" >&6; }
4266 fi
4267
4268
4269   test -n "$ac_ct_CC" && break
4270 done
4271
4272   if test "x$ac_ct_CC" = x; then
4273     CC=""
4274   else
4275     case $cross_compiling:$ac_tool_warned in
4276 yes:)
4277 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4278 whose name does not start with the host triplet.  If you think this
4279 configuration is useful to you, please write to autoconf@gnu.org." >&5
4280 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4281 whose name does not start with the host triplet.  If you think this
4282 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4283 ac_tool_warned=yes ;;
4284 esac
4285     CC=$ac_ct_CC
4286   fi
4287 fi
4288
4289 fi
4290
4291
4292 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4293 See \`config.log' for more details." >&5
4294 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
4295 See \`config.log' for more details." >&2;}
4296    { (exit 1); exit 1; }; }
4297
4298 # Provide some information about the compiler.
4299 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
4300 set X $ac_compile
4301 ac_compiler=$2
4302 { (ac_try="$ac_compiler --version >&5"
4303 case "(($ac_try" in
4304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4305   *) ac_try_echo=$ac_try;;
4306 esac
4307 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4308 $as_echo "$ac_try_echo") >&5
4309   (eval "$ac_compiler --version >&5") 2>&5
4310   ac_status=$?
4311   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312   (exit $ac_status); }
4313 { (ac_try="$ac_compiler -v >&5"
4314 case "(($ac_try" in
4315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4316   *) ac_try_echo=$ac_try;;
4317 esac
4318 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4319 $as_echo "$ac_try_echo") >&5
4320   (eval "$ac_compiler -v >&5") 2>&5
4321   ac_status=$?
4322   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323   (exit $ac_status); }
4324 { (ac_try="$ac_compiler -V >&5"
4325 case "(($ac_try" in
4326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4327   *) ac_try_echo=$ac_try;;
4328 esac
4329 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4330 $as_echo "$ac_try_echo") >&5
4331   (eval "$ac_compiler -V >&5") 2>&5
4332   ac_status=$?
4333   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334   (exit $ac_status); }
4335
4336 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4337 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4338 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4339   $as_echo_n "(cached) " >&6
4340 else
4341   cat >conftest.$ac_ext <<_ACEOF
4342 /* confdefs.h.  */
4343 _ACEOF
4344 cat confdefs.h >>conftest.$ac_ext
4345 cat >>conftest.$ac_ext <<_ACEOF
4346 /* end confdefs.h.  */
4347
4348 int
4349 main ()
4350 {
4351 #ifndef __GNUC__
4352        choke me
4353 #endif
4354
4355   ;
4356   return 0;
4357 }
4358 _ACEOF
4359 rm -f conftest.$ac_objext
4360 if { (ac_try="$ac_compile"
4361 case "(($ac_try" in
4362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4363   *) ac_try_echo=$ac_try;;
4364 esac
4365 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4366 $as_echo "$ac_try_echo") >&5
4367   (eval "$ac_compile") 2>conftest.er1
4368   ac_status=$?
4369   grep -v '^ *+' conftest.er1 >conftest.err
4370   rm -f conftest.er1
4371   cat conftest.err >&5
4372   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373   (exit $ac_status); } && {
4374          test -z "$ac_c_werror_flag" ||
4375          test ! -s conftest.err
4376        } && test -s conftest.$ac_objext; then
4377   ac_compiler_gnu=yes
4378 else
4379   $as_echo "$as_me: failed program was:" >&5
4380 sed 's/^/| /' conftest.$ac_ext >&5
4381
4382         ac_compiler_gnu=no
4383 fi
4384
4385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4386 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4387
4388 fi
4389 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4390 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4391 if test $ac_compiler_gnu = yes; then
4392   GCC=yes
4393 else
4394   GCC=
4395 fi
4396 ac_test_CFLAGS=${CFLAGS+set}
4397 ac_save_CFLAGS=$CFLAGS
4398 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4399 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4400 if test "${ac_cv_prog_cc_g+set}" = set; then
4401   $as_echo_n "(cached) " >&6
4402 else
4403   ac_save_c_werror_flag=$ac_c_werror_flag
4404    ac_c_werror_flag=yes
4405    ac_cv_prog_cc_g=no
4406    CFLAGS="-g"
4407    cat >conftest.$ac_ext <<_ACEOF
4408 /* confdefs.h.  */
4409 _ACEOF
4410 cat confdefs.h >>conftest.$ac_ext
4411 cat >>conftest.$ac_ext <<_ACEOF
4412 /* end confdefs.h.  */
4413
4414 int
4415 main ()
4416 {
4417
4418   ;
4419   return 0;
4420 }
4421 _ACEOF
4422 rm -f conftest.$ac_objext
4423 if { (ac_try="$ac_compile"
4424 case "(($ac_try" in
4425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4426   *) ac_try_echo=$ac_try;;
4427 esac
4428 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4429 $as_echo "$ac_try_echo") >&5
4430   (eval "$ac_compile") 2>conftest.er1
4431   ac_status=$?
4432   grep -v '^ *+' conftest.er1 >conftest.err
4433   rm -f conftest.er1
4434   cat conftest.err >&5
4435   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436   (exit $ac_status); } && {
4437          test -z "$ac_c_werror_flag" ||
4438          test ! -s conftest.err
4439        } && test -s conftest.$ac_objext; then
4440   ac_cv_prog_cc_g=yes
4441 else
4442   $as_echo "$as_me: failed program was:" >&5
4443 sed 's/^/| /' conftest.$ac_ext >&5
4444
4445         CFLAGS=""
4446       cat >conftest.$ac_ext <<_ACEOF
4447 /* confdefs.h.  */
4448 _ACEOF
4449 cat confdefs.h >>conftest.$ac_ext
4450 cat >>conftest.$ac_ext <<_ACEOF
4451 /* end confdefs.h.  */
4452
4453 int
4454 main ()
4455 {
4456
4457   ;
4458   return 0;
4459 }
4460 _ACEOF
4461 rm -f conftest.$ac_objext
4462 if { (ac_try="$ac_compile"
4463 case "(($ac_try" in
4464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4465   *) ac_try_echo=$ac_try;;
4466 esac
4467 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4468 $as_echo "$ac_try_echo") >&5
4469   (eval "$ac_compile") 2>conftest.er1
4470   ac_status=$?
4471   grep -v '^ *+' conftest.er1 >conftest.err
4472   rm -f conftest.er1
4473   cat conftest.err >&5
4474   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4475   (exit $ac_status); } && {
4476          test -z "$ac_c_werror_flag" ||
4477          test ! -s conftest.err
4478        } && test -s conftest.$ac_objext; then
4479   :
4480 else
4481   $as_echo "$as_me: failed program was:" >&5
4482 sed 's/^/| /' conftest.$ac_ext >&5
4483
4484         ac_c_werror_flag=$ac_save_c_werror_flag
4485          CFLAGS="-g"
4486          cat >conftest.$ac_ext <<_ACEOF
4487 /* confdefs.h.  */
4488 _ACEOF
4489 cat confdefs.h >>conftest.$ac_ext
4490 cat >>conftest.$ac_ext <<_ACEOF
4491 /* end confdefs.h.  */
4492
4493 int
4494 main ()
4495 {
4496
4497   ;
4498   return 0;
4499 }
4500 _ACEOF
4501 rm -f conftest.$ac_objext
4502 if { (ac_try="$ac_compile"
4503 case "(($ac_try" in
4504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4505   *) ac_try_echo=$ac_try;;
4506 esac
4507 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4508 $as_echo "$ac_try_echo") >&5
4509   (eval "$ac_compile") 2>conftest.er1
4510   ac_status=$?
4511   grep -v '^ *+' conftest.er1 >conftest.err
4512   rm -f conftest.er1
4513   cat conftest.err >&5
4514   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515   (exit $ac_status); } && {
4516          test -z "$ac_c_werror_flag" ||
4517          test ! -s conftest.err
4518        } && test -s conftest.$ac_objext; then
4519   ac_cv_prog_cc_g=yes
4520 else
4521   $as_echo "$as_me: failed program was:" >&5
4522 sed 's/^/| /' conftest.$ac_ext >&5
4523
4524
4525 fi
4526
4527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4528 fi
4529
4530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4531 fi
4532
4533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4534    ac_c_werror_flag=$ac_save_c_werror_flag
4535 fi
4536 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4537 $as_echo "$ac_cv_prog_cc_g" >&6; }
4538 if test "$ac_test_CFLAGS" = set; then
4539   CFLAGS=$ac_save_CFLAGS
4540 elif test $ac_cv_prog_cc_g = yes; then
4541   if test "$GCC" = yes; then
4542     CFLAGS="-g -O2"
4543   else
4544     CFLAGS="-g"
4545   fi
4546 else
4547   if test "$GCC" = yes; then
4548     CFLAGS="-O2"
4549   else
4550     CFLAGS=
4551   fi
4552 fi
4553 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4554 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4555 if test "${ac_cv_prog_cc_c89+set}" = set; then
4556   $as_echo_n "(cached) " >&6
4557 else
4558   ac_cv_prog_cc_c89=no
4559 ac_save_CC=$CC
4560 cat >conftest.$ac_ext <<_ACEOF
4561 /* confdefs.h.  */
4562 _ACEOF
4563 cat confdefs.h >>conftest.$ac_ext
4564 cat >>conftest.$ac_ext <<_ACEOF
4565 /* end confdefs.h.  */
4566 #include <stdarg.h>
4567 #include <stdio.h>
4568 #include <sys/types.h>
4569 #include <sys/stat.h>
4570 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4571 struct buf { int x; };
4572 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4573 static char *e (p, i)
4574      char **p;
4575      int i;
4576 {
4577   return p[i];
4578 }
4579 static char *f (char * (*g) (char **, int), char **p, ...)
4580 {
4581   char *s;
4582   va_list v;
4583   va_start (v,p);
4584   s = g (p, va_arg (v,int));
4585   va_end (v);
4586   return s;
4587 }
4588
4589 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4590    function prototypes and stuff, but not '\xHH' hex character constants.
4591    These don't provoke an error unfortunately, instead are silently treated
4592    as 'x'.  The following induces an error, until -std is added to get
4593    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4594    array size at least.  It's necessary to write '\x00'==0 to get something
4595    that's true only with -std.  */
4596 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4597
4598 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4599    inside strings and character constants.  */
4600 #define FOO(x) 'x'
4601 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4602
4603 int test (int i, double x);
4604 struct s1 {int (*f) (int a);};
4605 struct s2 {int (*f) (double a);};
4606 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4607 int argc;
4608 char **argv;
4609 int
4610 main ()
4611 {
4612 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4613   ;
4614   return 0;
4615 }
4616 _ACEOF
4617 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4618         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4619 do
4620   CC="$ac_save_CC $ac_arg"
4621   rm -f conftest.$ac_objext
4622 if { (ac_try="$ac_compile"
4623 case "(($ac_try" in
4624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4625   *) ac_try_echo=$ac_try;;
4626 esac
4627 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4628 $as_echo "$ac_try_echo") >&5
4629   (eval "$ac_compile") 2>conftest.er1
4630   ac_status=$?
4631   grep -v '^ *+' conftest.er1 >conftest.err
4632   rm -f conftest.er1
4633   cat conftest.err >&5
4634   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4635   (exit $ac_status); } && {
4636          test -z "$ac_c_werror_flag" ||
4637          test ! -s conftest.err
4638        } && test -s conftest.$ac_objext; then
4639   ac_cv_prog_cc_c89=$ac_arg
4640 else
4641   $as_echo "$as_me: failed program was:" >&5
4642 sed 's/^/| /' conftest.$ac_ext >&5
4643
4644
4645 fi
4646
4647 rm -f core conftest.err conftest.$ac_objext
4648   test "x$ac_cv_prog_cc_c89" != "xno" && break
4649 done
4650 rm -f conftest.$ac_ext
4651 CC=$ac_save_CC
4652
4653 fi
4654 # AC_CACHE_VAL
4655 case "x$ac_cv_prog_cc_c89" in
4656   x)
4657     { $as_echo "$as_me:$LINENO: result: none needed" >&5
4658 $as_echo "none needed" >&6; } ;;
4659   xno)
4660     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4661 $as_echo "unsupported" >&6; } ;;
4662   *)
4663     CC="$CC $ac_cv_prog_cc_c89"
4664     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4665 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4666 esac
4667
4668
4669 ac_ext=c
4670 ac_cpp='$CPP $CPPFLAGS'
4671 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4672 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4673 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4674
4675 depcc="$CC"   am_compiler_list=
4676
4677 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4678 $as_echo_n "checking dependency style of $depcc... " >&6; }
4679 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4680   $as_echo_n "(cached) " >&6
4681 else
4682   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4683   # We make a subdir and do the tests there.  Otherwise we can end up
4684   # making bogus files that we don't know about and never remove.  For
4685   # instance it was reported that on HP-UX the gcc test will end up
4686   # making a dummy file named `D' -- because `-MD' means `put the output
4687   # in D'.
4688   mkdir conftest.dir
4689   # Copy depcomp to subdir because otherwise we won't find it if we're
4690   # using a relative directory.
4691   cp "$am_depcomp" conftest.dir
4692   cd conftest.dir
4693   # We will build objects and dependencies in a subdirectory because
4694   # it helps to detect inapplicable dependency modes.  For instance
4695   # both Tru64's cc and ICC support -MD to output dependencies as a
4696   # side effect of compilation, but ICC will put the dependencies in
4697   # the current directory while Tru64 will put them in the object
4698   # directory.
4699   mkdir sub
4700
4701   am_cv_CC_dependencies_compiler_type=none
4702   if test "$am_compiler_list" = ""; then
4703      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4704   fi
4705   for depmode in $am_compiler_list; do
4706     # Setup a source with many dependencies, because some compilers
4707     # like to wrap large dependency lists on column 80 (with \), and
4708     # we should not choose a depcomp mode which is confused by this.
4709     #
4710     # We need to recreate these files for each test, as the compiler may
4711     # overwrite some of them when testing with obscure command lines.
4712     # This happens at least with the AIX C compiler.
4713     : > sub/conftest.c
4714     for i in 1 2 3 4 5 6; do
4715       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4716       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4717       # Solaris 8's {/usr,}/bin/sh.
4718       touch sub/conftst$i.h
4719     done
4720     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4721
4722     case $depmode in
4723     nosideeffect)
4724       # after this tag, mechanisms are not by side-effect, so they'll
4725       # only be used when explicitly requested
4726       if test "x$enable_dependency_tracking" = xyes; then
4727         continue
4728       else
4729         break
4730       fi
4731       ;;
4732     none) break ;;
4733     esac
4734     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4735     # mode.  It turns out that the SunPro C++ compiler does not properly
4736     # handle `-M -o', and we need to detect this.
4737     if depmode=$depmode \
4738        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4739        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4740        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4741          >/dev/null 2>conftest.err &&
4742        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4743        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4744        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4745       # icc doesn't choke on unknown options, it will just issue warnings
4746       # or remarks (even with -Werror).  So we grep stderr for any message
4747       # that says an option was ignored or not supported.
4748       # When given -MP, icc 7.0 and 7.1 complain thusly:
4749       #   icc: Command line warning: ignoring option '-M'; no argument required
4750       # The diagnosis changed in icc 8.0:
4751       #   icc: Command line remark: option '-MP' not supported
4752       if (grep 'ignoring option' conftest.err ||
4753           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4754         am_cv_CC_dependencies_compiler_type=$depmode
4755         break
4756       fi
4757     fi
4758   done
4759
4760   cd ..
4761   rm -rf conftest.dir
4762 else
4763   am_cv_CC_dependencies_compiler_type=none
4764 fi
4765
4766 fi
4767 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4768 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4769 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4770
4771
4772
4773 if
4774   test "x$enable_dependency_tracking" != xno \
4775   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4776   am__fastdepCC_TRUE=
4777   am__fastdepCC_FALSE='#'
4778 else
4779   am__fastdepCC_TRUE='#'
4780   am__fastdepCC_FALSE=
4781 fi
4782
4783
4784 if test -n "$ac_tool_prefix"; then
4785   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4786 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4787 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4788 $as_echo_n "checking for $ac_word... " >&6; }
4789 if test "${ac_cv_prog_RANLIB+set}" = set; then
4790   $as_echo_n "(cached) " >&6
4791 else
4792   if test -n "$RANLIB"; then
4793   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4794 else
4795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4796 for as_dir in $PATH
4797 do
4798   IFS=$as_save_IFS
4799   test -z "$as_dir" && as_dir=.
4800   for ac_exec_ext in '' $ac_executable_extensions; do
4801   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4802     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4803     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4804     break 2
4805   fi
4806 done
4807 done
4808 IFS=$as_save_IFS
4809
4810 fi
4811 fi
4812 RANLIB=$ac_cv_prog_RANLIB
4813 if test -n "$RANLIB"; then
4814   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
4815 $as_echo "$RANLIB" >&6; }
4816 else
4817   { $as_echo "$as_me:$LINENO: result: no" >&5
4818 $as_echo "no" >&6; }
4819 fi
4820
4821
4822 fi
4823 if test -z "$ac_cv_prog_RANLIB"; then
4824   ac_ct_RANLIB=$RANLIB
4825   # Extract the first word of "ranlib", so it can be a program name with args.
4826 set dummy ranlib; ac_word=$2
4827 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4828 $as_echo_n "checking for $ac_word... " >&6; }
4829 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4830   $as_echo_n "(cached) " >&6
4831 else
4832   if test -n "$ac_ct_RANLIB"; then
4833   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4834 else
4835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4836 for as_dir in $PATH
4837 do
4838   IFS=$as_save_IFS
4839   test -z "$as_dir" && as_dir=.
4840   for ac_exec_ext in '' $ac_executable_extensions; do
4841   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4842     ac_cv_prog_ac_ct_RANLIB="ranlib"
4843     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4844     break 2
4845   fi
4846 done
4847 done
4848 IFS=$as_save_IFS
4849
4850 fi
4851 fi
4852 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4853 if test -n "$ac_ct_RANLIB"; then
4854   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4855 $as_echo "$ac_ct_RANLIB" >&6; }
4856 else
4857   { $as_echo "$as_me:$LINENO: result: no" >&5
4858 $as_echo "no" >&6; }
4859 fi
4860
4861   if test "x$ac_ct_RANLIB" = x; then
4862     RANLIB=":"
4863   else
4864     case $cross_compiling:$ac_tool_warned in
4865 yes:)
4866 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4867 whose name does not start with the host triplet.  If you think this
4868 configuration is useful to you, please write to autoconf@gnu.org." >&5
4869 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4870 whose name does not start with the host triplet.  If you think this
4871 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4872 ac_tool_warned=yes ;;
4873 esac
4874     RANLIB=$ac_ct_RANLIB
4875   fi
4876 else
4877   RANLIB="$ac_cv_prog_RANLIB"
4878 fi
4879
4880 # Check whether --enable-shared was given.
4881 if test "${enable_shared+set}" = set; then
4882   enableval=$enable_shared; p=${PACKAGE-default}
4883     case $enableval in
4884     yes) enable_shared=yes ;;
4885     no) enable_shared=no ;;
4886     *)
4887       enable_shared=no
4888       # Look at the argument we got.  We use all the common list separators.
4889       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4890       for pkg in $enableval; do
4891         IFS="$lt_save_ifs"
4892         if test "X$pkg" = "X$p"; then
4893           enable_shared=yes
4894         fi
4895       done
4896       IFS="$lt_save_ifs"
4897       ;;
4898     esac
4899 else
4900   enable_shared=yes
4901 fi
4902
4903
4904 # Check whether --enable-static was given.
4905 if test "${enable_static+set}" = set; then
4906   enableval=$enable_static; p=${PACKAGE-default}
4907     case $enableval in
4908     yes) enable_static=yes ;;
4909     no) enable_static=no ;;
4910     *)
4911      enable_static=no
4912       # Look at the argument we got.  We use all the common list separators.
4913       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4914       for pkg in $enableval; do
4915         IFS="$lt_save_ifs"
4916         if test "X$pkg" = "X$p"; then
4917           enable_static=yes
4918         fi
4919       done
4920       IFS="$lt_save_ifs"
4921       ;;
4922     esac
4923 else
4924   enable_static=yes
4925 fi
4926
4927
4928 # Check whether --enable-fast-install was given.
4929 if test "${enable_fast_install+set}" = set; then
4930   enableval=$enable_fast_install; p=${PACKAGE-default}
4931     case $enableval in
4932     yes) enable_fast_install=yes ;;
4933     no) enable_fast_install=no ;;
4934     *)
4935       enable_fast_install=no
4936       # Look at the argument we got.  We use all the common list separators.
4937       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4938       for pkg in $enableval; do
4939         IFS="$lt_save_ifs"
4940         if test "X$pkg" = "X$p"; then
4941           enable_fast_install=yes
4942         fi
4943       done
4944       IFS="$lt_save_ifs"
4945       ;;
4946     esac
4947 else
4948   enable_fast_install=yes
4949 fi
4950
4951
4952 # Make sure we can run config.sub.
4953 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4954   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4955 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4956    { (exit 1); exit 1; }; }
4957
4958 { $as_echo "$as_me:$LINENO: checking build system type" >&5
4959 $as_echo_n "checking build system type... " >&6; }
4960 if test "${ac_cv_build+set}" = set; then
4961   $as_echo_n "(cached) " >&6
4962 else
4963   ac_build_alias=$build_alias
4964 test "x$ac_build_alias" = x &&
4965   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4966 test "x$ac_build_alias" = x &&
4967   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4968 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4969    { (exit 1); exit 1; }; }
4970 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4971   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4972 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4973    { (exit 1); exit 1; }; }
4974
4975 fi
4976 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4977 $as_echo "$ac_cv_build" >&6; }
4978 case $ac_cv_build in
4979 *-*-*) ;;
4980 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4981 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
4982    { (exit 1); exit 1; }; };;
4983 esac
4984 build=$ac_cv_build
4985 ac_save_IFS=$IFS; IFS='-'
4986 set x $ac_cv_build
4987 shift
4988 build_cpu=$1
4989 build_vendor=$2
4990 shift; shift
4991 # Remember, the first character of IFS is used to create $*,
4992 # except with old shells:
4993 build_os=$*
4994 IFS=$ac_save_IFS
4995 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4996
4997
4998 { $as_echo "$as_me:$LINENO: checking host system type" >&5
4999 $as_echo_n "checking host system type... " >&6; }
5000 if test "${ac_cv_host+set}" = set; then
5001   $as_echo_n "(cached) " >&6
5002 else
5003   if test "x$host_alias" = x; then
5004   ac_cv_host=$ac_cv_build
5005 else
5006   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5007     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5008 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5009    { (exit 1); exit 1; }; }
5010 fi
5011
5012 fi
5013 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5014 $as_echo "$ac_cv_host" >&6; }
5015 case $ac_cv_host in
5016 *-*-*) ;;
5017 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5018 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
5019    { (exit 1); exit 1; }; };;
5020 esac
5021 host=$ac_cv_host
5022 ac_save_IFS=$IFS; IFS='-'
5023 set x $ac_cv_host
5024 shift
5025 host_cpu=$1
5026 host_vendor=$2
5027 shift; shift
5028 # Remember, the first character of IFS is used to create $*,
5029 # except with old shells:
5030 host_os=$*
5031 IFS=$ac_save_IFS
5032 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5033
5034
5035 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5036 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5037 if test "${lt_cv_path_SED+set}" = set; then
5038   $as_echo_n "(cached) " >&6
5039 else
5040   # Loop through the user's path and test for sed and gsed.
5041 # Then use that list of sed's as ones to test for truncation.
5042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5043 for as_dir in $PATH
5044 do
5045   IFS=$as_save_IFS
5046   test -z "$as_dir" && as_dir=.
5047   for lt_ac_prog in sed gsed; do
5048     for ac_exec_ext in '' $ac_executable_extensions; do
5049       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5050         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5051       fi
5052     done
5053   done
5054 done
5055 lt_ac_max=0
5056 lt_ac_count=0
5057 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5058 # along with /bin/sed that truncates output.
5059 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5060   test ! -f $lt_ac_sed && continue
5061   cat /dev/null > conftest.in
5062   lt_ac_count=0
5063   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5064   # Check for GNU sed and select it if it is found.
5065   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5066     lt_cv_path_SED=$lt_ac_sed
5067     break
5068   fi
5069   while true; do
5070     cat conftest.in conftest.in >conftest.tmp
5071     mv conftest.tmp conftest.in
5072     cp conftest.in conftest.nl
5073     echo >>conftest.nl
5074     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5075     cmp -s conftest.out conftest.nl || break
5076     # 10000 chars as input seems more than enough
5077     test $lt_ac_count -gt 10 && break
5078     lt_ac_count=`expr $lt_ac_count + 1`
5079     if test $lt_ac_count -gt $lt_ac_max; then
5080       lt_ac_max=$lt_ac_count
5081       lt_cv_path_SED=$lt_ac_sed
5082     fi
5083   done
5084 done
5085
5086 fi
5087
5088 SED=$lt_cv_path_SED
5089 { $as_echo "$as_me:$LINENO: result: $SED" >&5
5090 $as_echo "$SED" >&6; }
5091
5092 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5093 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5094 if test "${ac_cv_path_GREP+set}" = set; then
5095   $as_echo_n "(cached) " >&6
5096 else
5097   if test -z "$GREP"; then
5098   ac_path_GREP_found=false
5099   # Loop through the user's path and test for each of PROGNAME-LIST
5100   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5101 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5102 do
5103   IFS=$as_save_IFS
5104   test -z "$as_dir" && as_dir=.
5105   for ac_prog in grep ggrep; do
5106     for ac_exec_ext in '' $ac_executable_extensions; do
5107       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5108       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5109 # Check for GNU ac_path_GREP and select it if it is found.
5110   # Check for GNU $ac_path_GREP
5111 case `"$ac_path_GREP" --version 2>&1` in
5112 *GNU*)
5113   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5114 *)
5115   ac_count=0
5116   $as_echo_n 0123456789 >"conftest.in"
5117   while :
5118   do
5119     cat "conftest.in" "conftest.in" >"conftest.tmp"
5120     mv "conftest.tmp" "conftest.in"
5121     cp "conftest.in" "conftest.nl"
5122     $as_echo 'GREP' >> "conftest.nl"
5123     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5124     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5125     ac_count=`expr $ac_count + 1`
5126     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5127       # Best one so far, save it but keep looking for a better one
5128       ac_cv_path_GREP="$ac_path_GREP"
5129       ac_path_GREP_max=$ac_count
5130     fi
5131     # 10*(2^10) chars as input seems more than enough
5132     test $ac_count -gt 10 && break
5133   done
5134   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5135 esac
5136
5137       $ac_path_GREP_found && break 3
5138     done
5139   done
5140 done
5141 IFS=$as_save_IFS
5142   if test -z "$ac_cv_path_GREP"; then
5143     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5144 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5145    { (exit 1); exit 1; }; }
5146   fi
5147 else
5148   ac_cv_path_GREP=$GREP
5149 fi
5150
5151 fi
5152 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5153 $as_echo "$ac_cv_path_GREP" >&6; }
5154  GREP="$ac_cv_path_GREP"
5155
5156
5157 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5158 $as_echo_n "checking for egrep... " >&6; }
5159 if test "${ac_cv_path_EGREP+set}" = set; then
5160   $as_echo_n "(cached) " >&6
5161 else
5162   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5163    then ac_cv_path_EGREP="$GREP -E"
5164    else
5165      if test -z "$EGREP"; then
5166   ac_path_EGREP_found=false
5167   # Loop through the user's path and test for each of PROGNAME-LIST
5168   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5169 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5170 do
5171   IFS=$as_save_IFS
5172   test -z "$as_dir" && as_dir=.
5173   for ac_prog in egrep; do
5174     for ac_exec_ext in '' $ac_executable_extensions; do
5175       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5176       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5177 # Check for GNU ac_path_EGREP and select it if it is found.
5178   # Check for GNU $ac_path_EGREP
5179 case `"$ac_path_EGREP" --version 2>&1` in
5180 *GNU*)
5181   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5182 *)
5183   ac_count=0
5184   $as_echo_n 0123456789 >"conftest.in"
5185   while :
5186   do
5187     cat "conftest.in" "conftest.in" >"conftest.tmp"
5188     mv "conftest.tmp" "conftest.in"
5189     cp "conftest.in" "conftest.nl"
5190     $as_echo 'EGREP' >> "conftest.nl"
5191     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5192     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5193     ac_count=`expr $ac_count + 1`
5194     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5195       # Best one so far, save it but keep looking for a better one
5196       ac_cv_path_EGREP="$ac_path_EGREP"
5197       ac_path_EGREP_max=$ac_count
5198     fi
5199     # 10*(2^10) chars as input seems more than enough
5200     test $ac_count -gt 10 && break
5201   done
5202   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5203 esac
5204
5205       $ac_path_EGREP_found && break 3
5206     done
5207   done
5208 done
5209 IFS=$as_save_IFS
5210   if test -z "$ac_cv_path_EGREP"; then
5211     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5212 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5213    { (exit 1); exit 1; }; }
5214   fi
5215 else
5216   ac_cv_path_EGREP=$EGREP
5217 fi
5218
5219    fi
5220 fi
5221 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5222 $as_echo "$ac_cv_path_EGREP" >&6; }
5223  EGREP="$ac_cv_path_EGREP"
5224
5225
5226
5227 # Check whether --with-gnu-ld was given.
5228 if test "${with_gnu_ld+set}" = set; then
5229   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5230 else
5231   with_gnu_ld=no
5232 fi
5233
5234 ac_prog=ld
5235 if test "$GCC" = yes; then
5236   # Check if gcc -print-prog-name=ld gives a path.
5237   { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5238 $as_echo_n "checking for ld used by $CC... " >&6; }
5239   case $host in
5240   *-*-mingw*)
5241     # gcc leaves a trailing carriage return which upsets mingw
5242     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5243   *)
5244     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5245   esac
5246   case $ac_prog in
5247     # Accept absolute paths.
5248     [\\/]* | ?:[\\/]*)
5249       re_direlt='/[^/][^/]*/\.\./'
5250       # Canonicalize the pathname of ld
5251       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5252       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5253         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5254       done
5255       test -z "$LD" && LD="$ac_prog"
5256       ;;
5257   "")
5258     # If it fails, then pretend we aren't using GCC.
5259     ac_prog=ld
5260     ;;
5261   *)
5262     # If it is relative, then search for the first ld in PATH.
5263     with_gnu_ld=unknown
5264     ;;
5265   esac
5266 elif test "$with_gnu_ld" = yes; then
5267   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
5268 $as_echo_n "checking for GNU ld... " >&6; }
5269 else
5270   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5271 $as_echo_n "checking for non-GNU ld... " >&6; }
5272 fi
5273 if test "${lt_cv_path_LD+set}" = set; then
5274   $as_echo_n "(cached) " >&6
5275 else
5276   if test -z "$LD"; then
5277   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5278   for ac_dir in $PATH; do
5279     IFS="$lt_save_ifs"
5280     test -z "$ac_dir" && ac_dir=.
5281     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5282       lt_cv_path_LD="$ac_dir/$ac_prog"
5283       # Check to see if the program is GNU ld.  I'd rather use --version,
5284       # but apparently some variants of GNU ld only accept -v.
5285       # Break only if it was the GNU/non-GNU ld that we prefer.
5286       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5287       *GNU* | *'with BFD'*)
5288         test "$with_gnu_ld" != no && break
5289         ;;
5290       *)
5291         test "$with_gnu_ld" != yes && break
5292         ;;
5293       esac
5294     fi
5295   done
5296   IFS="$lt_save_ifs"
5297 else
5298   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5299 fi
5300 fi
5301
5302 LD="$lt_cv_path_LD"
5303 if test -n "$LD"; then
5304   { $as_echo "$as_me:$LINENO: result: $LD" >&5
5305 $as_echo "$LD" >&6; }
5306 else
5307   { $as_echo "$as_me:$LINENO: result: no" >&5
5308 $as_echo "no" >&6; }
5309 fi
5310 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5311 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5312    { (exit 1); exit 1; }; }
5313 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5314 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5315 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5316   $as_echo_n "(cached) " >&6
5317 else
5318   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5319 case `$LD -v 2>&1 </dev/null` in
5320 *GNU* | *'with BFD'*)
5321   lt_cv_prog_gnu_ld=yes
5322   ;;
5323 *)
5324   lt_cv_prog_gnu_ld=no
5325   ;;
5326 esac
5327 fi
5328 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5329 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5330 with_gnu_ld=$lt_cv_prog_gnu_ld
5331
5332
5333 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5334 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5335 if test "${lt_cv_ld_reload_flag+set}" = set; then
5336   $as_echo_n "(cached) " >&6
5337 else
5338   lt_cv_ld_reload_flag='-r'
5339 fi
5340 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5341 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5342 reload_flag=$lt_cv_ld_reload_flag
5343 case $reload_flag in
5344 "" | " "*) ;;
5345 *) reload_flag=" $reload_flag" ;;
5346 esac
5347 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5348 case $host_os in
5349   darwin*)
5350     if test "$GCC" = yes; then
5351       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5352     else
5353       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5354     fi
5355     ;;
5356 esac
5357
5358 { $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5359 $as_echo_n "checking for BSD-compatible nm... " >&6; }
5360 if test "${lt_cv_path_NM+set}" = set; then
5361   $as_echo_n "(cached) " >&6
5362 else
5363   if test -n "$NM"; then
5364   # Let the user override the test.
5365   lt_cv_path_NM="$NM"
5366 else
5367   lt_nm_to_check="${ac_tool_prefix}nm"
5368   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5369     lt_nm_to_check="$lt_nm_to_check nm"
5370   fi
5371   for lt_tmp_nm in $lt_nm_to_check; do
5372     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5373     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5374       IFS="$lt_save_ifs"
5375       test -z "$ac_dir" && ac_dir=.
5376       tmp_nm="$ac_dir/$lt_tmp_nm"
5377       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5378         # Check to see if the nm accepts a BSD-compat flag.
5379         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5380         #   nm: unknown option "B" ignored
5381         # Tru64's nm complains that /dev/null is an invalid object file
5382         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5383         */dev/null* | *'Invalid file or object type'*)
5384           lt_cv_path_NM="$tmp_nm -B"
5385           break
5386           ;;
5387         *)
5388           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5389           */dev/null*)
5390             lt_cv_path_NM="$tmp_nm -p"
5391             break
5392             ;;
5393           *)
5394             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5395             continue # so that we can try to find one that supports BSD flags
5396             ;;
5397           esac
5398           ;;
5399         esac
5400       fi
5401     done
5402     IFS="$lt_save_ifs"
5403   done
5404   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5405 fi
5406 fi
5407 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5408 $as_echo "$lt_cv_path_NM" >&6; }
5409 NM="$lt_cv_path_NM"
5410
5411 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
5412 $as_echo_n "checking whether ln -s works... " >&6; }
5413 LN_S=$as_ln_s
5414 if test "$LN_S" = "ln -s"; then
5415   { $as_echo "$as_me:$LINENO: result: yes" >&5
5416 $as_echo "yes" >&6; }
5417 else
5418   { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5419 $as_echo "no, using $LN_S" >&6; }
5420 fi
5421
5422 { $as_echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5423 $as_echo_n "checking how to recognise dependent libraries... " >&6; }
5424 if test "${lt_cv_deplibs_check_method+set}" = set; then
5425   $as_echo_n "(cached) " >&6
5426 else
5427   lt_cv_file_magic_cmd='$MAGIC_CMD'
5428 lt_cv_file_magic_test_file=
5429 lt_cv_deplibs_check_method='unknown'
5430 # Need to set the preceding variable on all platforms that support
5431 # interlibrary dependencies.
5432 # 'none' -- dependencies not supported.
5433 # `unknown' -- same as none, but documents that we really don't know.
5434 # 'pass_all' -- all dependencies passed with no checks.
5435 # 'test_compile' -- check by making test program.
5436 # 'file_magic [[regex]]' -- check by looking for files in library path
5437 # which responds to the $file_magic_cmd with a given extended regex.
5438 # If you have `file' or equivalent on your system and you're not sure
5439 # whether `pass_all' will *always* work, you probably want this one.
5440
5441 case $host_os in
5442 aix4* | aix5*)
5443   lt_cv_deplibs_check_method=pass_all
5444   ;;
5445
5446 beos*)
5447   lt_cv_deplibs_check_method=pass_all
5448   ;;
5449
5450 bsdi[45]*)
5451   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5452   lt_cv_file_magic_cmd='/usr/bin/file -L'
5453   lt_cv_file_magic_test_file=/shlib/libc.so
5454   ;;
5455
5456 cygwin*)
5457   # func_win32_libid is a shell function defined in ltmain.sh
5458   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5459   lt_cv_file_magic_cmd='func_win32_libid'
5460   ;;
5461
5462 mingw* | pw32*)
5463   # Base MSYS/MinGW do not provide the 'file' command needed by
5464   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5465   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5466   lt_cv_file_magic_cmd='$OBJDUMP -f'
5467   ;;
5468
5469 darwin* | rhapsody*)
5470   lt_cv_deplibs_check_method=pass_all
5471   ;;
5472
5473 freebsd* | kfreebsd*-gnu | dragonfly*)
5474   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5475     case $host_cpu in
5476     i*86 )
5477       # Not sure whether the presence of OpenBSD here was a mistake.
5478       # Let's accept both of them until this is cleared up.
5479       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5480       lt_cv_file_magic_cmd=/usr/bin/file
5481       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5482       ;;
5483     esac
5484   else
5485     lt_cv_deplibs_check_method=pass_all
5486   fi
5487   ;;
5488
5489 gnu*)
5490   lt_cv_deplibs_check_method=pass_all
5491   ;;
5492
5493 hpux10.20* | hpux11*)
5494   lt_cv_file_magic_cmd=/usr/bin/file
5495   case $host_cpu in
5496   ia64*)
5497     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5498     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5499     ;;
5500   hppa*64*)
5501     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]'
5502     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5503     ;;
5504   *)
5505     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5506     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5507     ;;
5508   esac
5509   ;;
5510
5511 interix3*)
5512   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5513   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5514   ;;
5515
5516 irix5* | irix6* | nonstopux*)
5517   case $LD in
5518   *-32|*"-32 ") libmagic=32-bit;;
5519   *-n32|*"-n32 ") libmagic=N32;;
5520   *-64|*"-64 ") libmagic=64-bit;;
5521   *) libmagic=never-match;;
5522   esac
5523   lt_cv_deplibs_check_method=pass_all
5524   ;;
5525
5526 # This must be Linux ELF.
5527 linux*)
5528   lt_cv_deplibs_check_method=pass_all
5529   ;;
5530
5531 netbsd*)
5532   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5533     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5534   else
5535     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5536   fi
5537   ;;
5538
5539 newos6*)
5540   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5541   lt_cv_file_magic_cmd=/usr/bin/file
5542   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5543   ;;
5544
5545 nto-qnx*)
5546   lt_cv_deplibs_check_method=unknown
5547   ;;
5548
5549 openbsd*)
5550   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5551     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5552   else
5553     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5554   fi
5555   ;;
5556
5557 osf3* | osf4* | osf5*)
5558   lt_cv_deplibs_check_method=pass_all
5559   ;;
5560
5561 solaris*)
5562   lt_cv_deplibs_check_method=pass_all
5563   ;;
5564
5565 sysv4 | sysv4.3*)
5566   case $host_vendor in
5567   motorola)
5568     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]'
5569     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5570     ;;
5571   ncr)
5572     lt_cv_deplibs_check_method=pass_all
5573     ;;
5574   sequent)
5575     lt_cv_file_magic_cmd='/bin/file'
5576     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5577     ;;
5578   sni)
5579     lt_cv_file_magic_cmd='/bin/file'
5580     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5581     lt_cv_file_magic_test_file=/lib/libc.so
5582     ;;
5583   siemens)
5584     lt_cv_deplibs_check_method=pass_all
5585     ;;
5586   pc)
5587     lt_cv_deplibs_check_method=pass_all
5588     ;;
5589   esac
5590   ;;
5591
5592 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5593   lt_cv_deplibs_check_method=pass_all
5594   ;;
5595 esac
5596
5597 fi
5598 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5599 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5600 file_magic_cmd=$lt_cv_file_magic_cmd
5601 deplibs_check_method=$lt_cv_deplibs_check_method
5602 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5603
5604
5605
5606
5607 # If no C compiler was specified, use CC.
5608 LTCC=${LTCC-"$CC"}
5609
5610 # If no C compiler flags were specified, use CFLAGS.
5611 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5612
5613 # Allow CC to be a program name with arguments.
5614 compiler=$CC
5615
5616 # Check whether --enable-libtool-lock was given.
5617 if test "${enable_libtool_lock+set}" = set; then
5618   enableval=$enable_libtool_lock;
5619 fi
5620
5621 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5622
5623 # Some flags need to be propagated to the compiler or linker for good
5624 # libtool support.
5625 case $host in
5626 ia64-*-hpux*)
5627   # Find out which ABI we are using.
5628   echo 'int i;' > conftest.$ac_ext
5629   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5630   (eval $ac_compile) 2>&5
5631   ac_status=$?
5632   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633   (exit $ac_status); }; then
5634     case `/usr/bin/file conftest.$ac_objext` in
5635     *ELF-32*)
5636       HPUX_IA64_MODE="32"
5637       ;;
5638     *ELF-64*)
5639       HPUX_IA64_MODE="64"
5640       ;;
5641     esac
5642   fi
5643   rm -rf conftest*
5644   ;;
5645 *-*-irix6*)
5646   # Find out which ABI we are using.
5647   echo '#line 5647 "configure"' > conftest.$ac_ext
5648   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5649   (eval $ac_compile) 2>&5
5650   ac_status=$?
5651   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652   (exit $ac_status); }; then
5653    if test "$lt_cv_prog_gnu_ld" = yes; then
5654     case `/usr/bin/file conftest.$ac_objext` in
5655     *32-bit*)
5656       LD="${LD-ld} -melf32bsmip"
5657       ;;
5658     *N32*)
5659       LD="${LD-ld} -melf32bmipn32"
5660       ;;
5661     *64-bit*)
5662       LD="${LD-ld} -melf64bmip"
5663       ;;
5664     esac
5665    else
5666     case `/usr/bin/file conftest.$ac_objext` in
5667     *32-bit*)
5668       LD="${LD-ld} -32"
5669       ;;
5670     *N32*)
5671       LD="${LD-ld} -n32"
5672       ;;
5673     *64-bit*)
5674       LD="${LD-ld} -64"
5675       ;;
5676     esac
5677    fi
5678   fi
5679   rm -rf conftest*
5680   ;;
5681
5682 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5683   # Find out which ABI we are using.
5684   echo 'int i;' > conftest.$ac_ext
5685   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5686   (eval $ac_compile) 2>&5
5687   ac_status=$?
5688   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5689   (exit $ac_status); }; then
5690     case `/usr/bin/file conftest.o` in
5691     *32-bit*)
5692       case $host in
5693         x86_64-*linux*)
5694           LD="${LD-ld} -m elf_i386"
5695           ;;
5696         ppc64-*linux*|powerpc64-*linux*)
5697           LD="${LD-ld} -m elf32ppclinux"
5698           ;;
5699         s390x-*linux*)
5700           LD="${LD-ld} -m elf_s390"
5701           ;;
5702         sparc64-*linux*)
5703           LD="${LD-ld} -m elf32_sparc"
5704           ;;
5705       esac
5706       ;;
5707     *64-bit*)
5708       case $host in
5709         x86_64-*linux*)
5710           LD="${LD-ld} -m elf_x86_64"
5711           ;;
5712         ppc*-*linux*|powerpc*-*linux*)
5713           LD="${LD-ld} -m elf64ppc"
5714           ;;
5715         s390*-*linux*)
5716           LD="${LD-ld} -m elf64_s390"
5717           ;;
5718         sparc*-*linux*)
5719           LD="${LD-ld} -m elf64_sparc"
5720           ;;
5721       esac
5722       ;;
5723     esac
5724   fi
5725   rm -rf conftest*
5726   ;;
5727
5728 *-*-sco3.2v5*)
5729   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5730   SAVE_CFLAGS="$CFLAGS"
5731   CFLAGS="$CFLAGS -belf"
5732   { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5733 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5734 if test "${lt_cv_cc_needs_belf+set}" = set; then
5735   $as_echo_n "(cached) " >&6
5736 else
5737   ac_ext=c
5738 ac_cpp='$CPP $CPPFLAGS'
5739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5742
5743      cat >conftest.$ac_ext <<_ACEOF
5744 /* confdefs.h.  */
5745 _ACEOF
5746 cat confdefs.h >>conftest.$ac_ext
5747 cat >>conftest.$ac_ext <<_ACEOF
5748 /* end confdefs.h.  */
5749
5750 int
5751 main ()
5752 {
5753
5754   ;
5755   return 0;
5756 }
5757 _ACEOF
5758 rm -f conftest.$ac_objext conftest$ac_exeext
5759 if { (ac_try="$ac_link"
5760 case "(($ac_try" in
5761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5762   *) ac_try_echo=$ac_try;;
5763 esac
5764 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5765 $as_echo "$ac_try_echo") >&5
5766   (eval "$ac_link") 2>conftest.er1
5767   ac_status=$?
5768   grep -v '^ *+' conftest.er1 >conftest.err
5769   rm -f conftest.er1
5770   cat conftest.err >&5
5771   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772   (exit $ac_status); } && {
5773          test -z "$ac_c_werror_flag" ||
5774          test ! -s conftest.err
5775        } && test -s conftest$ac_exeext && {
5776          test "$cross_compiling" = yes ||
5777          $as_test_x conftest$ac_exeext
5778        }; then
5779   lt_cv_cc_needs_belf=yes
5780 else
5781   $as_echo "$as_me: failed program was:" >&5
5782 sed 's/^/| /' conftest.$ac_ext >&5
5783
5784         lt_cv_cc_needs_belf=no
5785 fi
5786
5787 rm -rf conftest.dSYM
5788 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5789       conftest$ac_exeext conftest.$ac_ext
5790      ac_ext=c
5791 ac_cpp='$CPP $CPPFLAGS'
5792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5795
5796 fi
5797 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5798 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5799   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5800     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5801     CFLAGS="$SAVE_CFLAGS"
5802   fi
5803   ;;
5804 sparc*-*solaris*)
5805   # Find out which ABI we are using.
5806   echo 'int i;' > conftest.$ac_ext
5807   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5808   (eval $ac_compile) 2>&5
5809   ac_status=$?
5810   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5811   (exit $ac_status); }; then
5812     case `/usr/bin/file conftest.o` in
5813     *64-bit*)
5814       case $lt_cv_prog_gnu_ld in
5815       yes*) LD="${LD-ld} -m elf64_sparc" ;;
5816       *)    LD="${LD-ld} -64" ;;
5817       esac
5818       ;;
5819     esac
5820   fi
5821   rm -rf conftest*
5822   ;;
5823
5824
5825 esac
5826
5827 need_locks="$enable_libtool_lock"
5828
5829
5830 ac_ext=c
5831 ac_cpp='$CPP $CPPFLAGS'
5832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5835 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5836 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5837 # On Suns, sometimes $CPP names a directory.
5838 if test -n "$CPP" && test -d "$CPP"; then
5839   CPP=
5840 fi
5841 if test -z "$CPP"; then
5842   if test "${ac_cv_prog_CPP+set}" = set; then
5843   $as_echo_n "(cached) " >&6
5844 else
5845       # Double quotes because CPP needs to be expanded
5846     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5847     do
5848       ac_preproc_ok=false
5849 for ac_c_preproc_warn_flag in '' yes
5850 do
5851   # Use a header file that comes with gcc, so configuring glibc
5852   # with a fresh cross-compiler works.
5853   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5854   # <limits.h> exists even on freestanding compilers.
5855   # On the NeXT, cc -E runs the code through the compiler's parser,
5856   # not just through cpp. "Syntax error" is here to catch this case.
5857   cat >conftest.$ac_ext <<_ACEOF
5858 /* confdefs.h.  */
5859 _ACEOF
5860 cat confdefs.h >>conftest.$ac_ext
5861 cat >>conftest.$ac_ext <<_ACEOF
5862 /* end confdefs.h.  */
5863 #ifdef __STDC__
5864 # include <limits.h>
5865 #else
5866 # include <assert.h>
5867 #endif
5868                      Syntax error
5869 _ACEOF
5870 if { (ac_try="$ac_cpp conftest.$ac_ext"
5871 case "(($ac_try" in
5872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5873   *) ac_try_echo=$ac_try;;
5874 esac
5875 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5876 $as_echo "$ac_try_echo") >&5
5877   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5878   ac_status=$?
5879   grep -v '^ *+' conftest.er1 >conftest.err
5880   rm -f conftest.er1
5881   cat conftest.err >&5
5882   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5883   (exit $ac_status); } >/dev/null && {
5884          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5885          test ! -s conftest.err
5886        }; then
5887   :
5888 else
5889   $as_echo "$as_me: failed program was:" >&5
5890 sed 's/^/| /' conftest.$ac_ext >&5
5891
5892   # Broken: fails on valid input.
5893 continue
5894 fi
5895
5896 rm -f conftest.err conftest.$ac_ext
5897
5898   # OK, works on sane cases.  Now check whether nonexistent headers
5899   # can be detected and how.
5900   cat >conftest.$ac_ext <<_ACEOF
5901 /* confdefs.h.  */
5902 _ACEOF
5903 cat confdefs.h >>conftest.$ac_ext
5904 cat >>conftest.$ac_ext <<_ACEOF
5905 /* end confdefs.h.  */
5906 #include <ac_nonexistent.h>
5907 _ACEOF
5908 if { (ac_try="$ac_cpp conftest.$ac_ext"
5909 case "(($ac_try" in
5910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5911   *) ac_try_echo=$ac_try;;
5912 esac
5913 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5914 $as_echo "$ac_try_echo") >&5
5915   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5916   ac_status=$?
5917   grep -v '^ *+' conftest.er1 >conftest.err
5918   rm -f conftest.er1
5919   cat conftest.err >&5
5920   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921   (exit $ac_status); } >/dev/null && {
5922          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5923          test ! -s conftest.err
5924        }; then
5925   # Broken: success on invalid input.
5926 continue
5927 else
5928   $as_echo "$as_me: failed program was:" >&5
5929 sed 's/^/| /' conftest.$ac_ext >&5
5930
5931   # Passes both tests.
5932 ac_preproc_ok=:
5933 break
5934 fi
5935
5936 rm -f conftest.err conftest.$ac_ext
5937
5938 done
5939 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5940 rm -f conftest.err conftest.$ac_ext
5941 if $ac_preproc_ok; then
5942   break
5943 fi
5944
5945     done
5946     ac_cv_prog_CPP=$CPP
5947
5948 fi
5949   CPP=$ac_cv_prog_CPP
5950 else
5951   ac_cv_prog_CPP=$CPP
5952 fi
5953 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5954 $as_echo "$CPP" >&6; }
5955 ac_preproc_ok=false
5956 for ac_c_preproc_warn_flag in '' yes
5957 do
5958   # Use a header file that comes with gcc, so configuring glibc
5959   # with a fresh cross-compiler works.
5960   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5961   # <limits.h> exists even on freestanding compilers.
5962   # On the NeXT, cc -E runs the code through the compiler's parser,
5963   # not just through cpp. "Syntax error" is here to catch this case.
5964   cat >conftest.$ac_ext <<_ACEOF
5965 /* confdefs.h.  */
5966 _ACEOF
5967 cat confdefs.h >>conftest.$ac_ext
5968 cat >>conftest.$ac_ext <<_ACEOF
5969 /* end confdefs.h.  */
5970 #ifdef __STDC__
5971 # include <limits.h>
5972 #else
5973 # include <assert.h>
5974 #endif
5975                      Syntax error
5976 _ACEOF
5977 if { (ac_try="$ac_cpp conftest.$ac_ext"
5978 case "(($ac_try" in
5979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5980   *) ac_try_echo=$ac_try;;
5981 esac
5982 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5983 $as_echo "$ac_try_echo") >&5
5984   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5985   ac_status=$?
5986   grep -v '^ *+' conftest.er1 >conftest.err
5987   rm -f conftest.er1
5988   cat conftest.err >&5
5989   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5990   (exit $ac_status); } >/dev/null && {
5991          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5992          test ! -s conftest.err
5993        }; then
5994   :
5995 else
5996   $as_echo "$as_me: failed program was:" >&5
5997 sed 's/^/| /' conftest.$ac_ext >&5
5998
5999   # Broken: fails on valid input.
6000 continue
6001 fi
6002
6003 rm -f conftest.err conftest.$ac_ext
6004
6005   # OK, works on sane cases.  Now check whether nonexistent headers
6006   # can be detected and how.
6007   cat >conftest.$ac_ext <<_ACEOF
6008 /* confdefs.h.  */
6009 _ACEOF
6010 cat confdefs.h >>conftest.$ac_ext
6011 cat >>conftest.$ac_ext <<_ACEOF
6012 /* end confdefs.h.  */
6013 #include <ac_nonexistent.h>
6014 _ACEOF
6015 if { (ac_try="$ac_cpp conftest.$ac_ext"
6016 case "(($ac_try" in
6017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6018   *) ac_try_echo=$ac_try;;
6019 esac
6020 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6021 $as_echo "$ac_try_echo") >&5
6022   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6023   ac_status=$?
6024   grep -v '^ *+' conftest.er1 >conftest.err
6025   rm -f conftest.er1
6026   cat conftest.err >&5
6027   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028   (exit $ac_status); } >/dev/null && {
6029          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6030          test ! -s conftest.err
6031        }; then
6032   # Broken: success on invalid input.
6033 continue
6034 else
6035   $as_echo "$as_me: failed program was:" >&5
6036 sed 's/^/| /' conftest.$ac_ext >&5
6037
6038   # Passes both tests.
6039 ac_preproc_ok=:
6040 break
6041 fi
6042
6043 rm -f conftest.err conftest.$ac_ext
6044
6045 done
6046 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6047 rm -f conftest.err conftest.$ac_ext
6048 if $ac_preproc_ok; then
6049   :
6050 else
6051   { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6052 See \`config.log' for more details." >&5
6053 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6054 See \`config.log' for more details." >&2;}
6055    { (exit 1); exit 1; }; }
6056 fi
6057
6058 ac_ext=c
6059 ac_cpp='$CPP $CPPFLAGS'
6060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6062 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6063
6064
6065 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6066 $as_echo_n "checking for ANSI C header files... " >&6; }
6067 if test "${ac_cv_header_stdc+set}" = set; then
6068   $as_echo_n "(cached) " >&6
6069 else
6070   cat >conftest.$ac_ext <<_ACEOF
6071 /* confdefs.h.  */
6072 _ACEOF
6073 cat confdefs.h >>conftest.$ac_ext
6074 cat >>conftest.$ac_ext <<_ACEOF
6075 /* end confdefs.h.  */
6076 #include <stdlib.h>
6077 #include <stdarg.h>
6078 #include <string.h>
6079 #include <float.h>
6080
6081 int
6082 main ()
6083 {
6084
6085   ;
6086   return 0;
6087 }
6088 _ACEOF
6089 rm -f conftest.$ac_objext
6090 if { (ac_try="$ac_compile"
6091 case "(($ac_try" in
6092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6093   *) ac_try_echo=$ac_try;;
6094 esac
6095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6096 $as_echo "$ac_try_echo") >&5
6097   (eval "$ac_compile") 2>conftest.er1
6098   ac_status=$?
6099   grep -v '^ *+' conftest.er1 >conftest.err
6100   rm -f conftest.er1
6101   cat conftest.err >&5
6102   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6103   (exit $ac_status); } && {
6104          test -z "$ac_c_werror_flag" ||
6105          test ! -s conftest.err
6106        } && test -s conftest.$ac_objext; then
6107   ac_cv_header_stdc=yes
6108 else
6109   $as_echo "$as_me: failed program was:" >&5
6110 sed 's/^/| /' conftest.$ac_ext >&5
6111
6112         ac_cv_header_stdc=no
6113 fi
6114
6115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6116
6117 if test $ac_cv_header_stdc = yes; then
6118   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6119   cat >conftest.$ac_ext <<_ACEOF
6120 /* confdefs.h.  */
6121 _ACEOF
6122 cat confdefs.h >>conftest.$ac_ext
6123 cat >>conftest.$ac_ext <<_ACEOF
6124 /* end confdefs.h.  */
6125 #include <string.h>
6126
6127 _ACEOF
6128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6129   $EGREP "memchr" >/dev/null 2>&1; then
6130   :
6131 else
6132   ac_cv_header_stdc=no
6133 fi
6134 rm -f conftest*
6135
6136 fi
6137
6138 if test $ac_cv_header_stdc = yes; then
6139   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6140   cat >conftest.$ac_ext <<_ACEOF
6141 /* confdefs.h.  */
6142 _ACEOF
6143 cat confdefs.h >>conftest.$ac_ext
6144 cat >>conftest.$ac_ext <<_ACEOF
6145 /* end confdefs.h.  */
6146 #include <stdlib.h>
6147
6148 _ACEOF
6149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6150   $EGREP "free" >/dev/null 2>&1; then
6151   :
6152 else
6153   ac_cv_header_stdc=no
6154 fi
6155 rm -f conftest*
6156
6157 fi
6158
6159 if test $ac_cv_header_stdc = yes; then
6160   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6161   if test "$cross_compiling" = yes; then
6162   :
6163 else
6164   cat >conftest.$ac_ext <<_ACEOF
6165 /* confdefs.h.  */
6166 _ACEOF
6167 cat confdefs.h >>conftest.$ac_ext
6168 cat >>conftest.$ac_ext <<_ACEOF
6169 /* end confdefs.h.  */
6170 #include <ctype.h>
6171 #include <stdlib.h>
6172 #if ((' ' & 0x0FF) == 0x020)
6173 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6174 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6175 #else
6176 # define ISLOWER(c) \
6177                    (('a' <= (c) && (c) <= 'i') \
6178                      || ('j' <= (c) && (c) <= 'r') \
6179                      || ('s' <= (c) && (c) <= 'z'))
6180 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6181 #endif
6182
6183 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6184 int
6185 main ()
6186 {
6187   int i;
6188   for (i = 0; i < 256; i++)
6189     if (XOR (islower (i), ISLOWER (i))
6190         || toupper (i) != TOUPPER (i))
6191       return 2;
6192   return 0;
6193 }
6194 _ACEOF
6195 rm -f conftest$ac_exeext
6196 if { (ac_try="$ac_link"
6197 case "(($ac_try" in
6198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6199   *) ac_try_echo=$ac_try;;
6200 esac
6201 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6202 $as_echo "$ac_try_echo") >&5
6203   (eval "$ac_link") 2>&5
6204   ac_status=$?
6205   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6206   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6207   { (case "(($ac_try" in
6208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6209   *) ac_try_echo=$ac_try;;
6210 esac
6211 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6212 $as_echo "$ac_try_echo") >&5
6213   (eval "$ac_try") 2>&5
6214   ac_status=$?
6215   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216   (exit $ac_status); }; }; then
6217   :
6218 else
6219   $as_echo "$as_me: program exited with status $ac_status" >&5
6220 $as_echo "$as_me: failed program was:" >&5
6221 sed 's/^/| /' conftest.$ac_ext >&5
6222
6223 ( exit $ac_status )
6224 ac_cv_header_stdc=no
6225 fi
6226 rm -rf conftest.dSYM
6227 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6228 fi
6229
6230
6231 fi
6232 fi
6233 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6234 $as_echo "$ac_cv_header_stdc" >&6; }
6235 if test $ac_cv_header_stdc = yes; then
6236
6237 cat >>confdefs.h <<\_ACEOF
6238 #define STDC_HEADERS 1
6239 _ACEOF
6240
6241 fi
6242
6243 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6254                   inttypes.h stdint.h unistd.h
6255 do
6256 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6257 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6258 $as_echo_n "checking for $ac_header... " >&6; }
6259 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6260   $as_echo_n "(cached) " >&6
6261 else
6262   cat >conftest.$ac_ext <<_ACEOF
6263 /* confdefs.h.  */
6264 _ACEOF
6265 cat confdefs.h >>conftest.$ac_ext
6266 cat >>conftest.$ac_ext <<_ACEOF
6267 /* end confdefs.h.  */
6268 $ac_includes_default
6269
6270 #include <$ac_header>
6271 _ACEOF
6272 rm -f conftest.$ac_objext
6273 if { (ac_try="$ac_compile"
6274 case "(($ac_try" in
6275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6276   *) ac_try_echo=$ac_try;;
6277 esac
6278 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6279 $as_echo "$ac_try_echo") >&5
6280   (eval "$ac_compile") 2>conftest.er1
6281   ac_status=$?
6282   grep -v '^ *+' conftest.er1 >conftest.err
6283   rm -f conftest.er1
6284   cat conftest.err >&5
6285   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286   (exit $ac_status); } && {
6287          test -z "$ac_c_werror_flag" ||
6288          test ! -s conftest.err
6289        } && test -s conftest.$ac_objext; then
6290   eval "$as_ac_Header=yes"
6291 else
6292   $as_echo "$as_me: failed program was:" >&5
6293 sed 's/^/| /' conftest.$ac_ext >&5
6294
6295         eval "$as_ac_Header=no"
6296 fi
6297
6298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6299 fi
6300 ac_res=`eval 'as_val=${'$as_ac_Header'}
6301                  $as_echo "$as_val"'`
6302                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6303 $as_echo "$ac_res" >&6; }
6304 if test `eval 'as_val=${'$as_ac_Header'}
6305                  $as_echo "$as_val"'` = yes; then
6306   cat >>confdefs.h <<_ACEOF
6307 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6308 _ACEOF
6309
6310 fi
6311
6312 done
6313
6314
6315
6316 for ac_header in dlfcn.h
6317 do
6318 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6319 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6320   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6321 $as_echo_n "checking for $ac_header... " >&6; }
6322 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6323   $as_echo_n "(cached) " >&6
6324 fi
6325 ac_res=`eval 'as_val=${'$as_ac_Header'}
6326                  $as_echo "$as_val"'`
6327                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6328 $as_echo "$ac_res" >&6; }
6329 else
6330   # Is the header compilable?
6331 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6332 $as_echo_n "checking $ac_header usability... " >&6; }
6333 cat >conftest.$ac_ext <<_ACEOF
6334 /* confdefs.h.  */
6335 _ACEOF
6336 cat confdefs.h >>conftest.$ac_ext
6337 cat >>conftest.$ac_ext <<_ACEOF
6338 /* end confdefs.h.  */
6339 $ac_includes_default
6340 #include <$ac_header>
6341 _ACEOF
6342 rm -f conftest.$ac_objext
6343 if { (ac_try="$ac_compile"
6344 case "(($ac_try" in
6345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6346   *) ac_try_echo=$ac_try;;
6347 esac
6348 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6349 $as_echo "$ac_try_echo") >&5
6350   (eval "$ac_compile") 2>conftest.er1
6351   ac_status=$?
6352   grep -v '^ *+' conftest.er1 >conftest.err
6353   rm -f conftest.er1
6354   cat conftest.err >&5
6355   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356   (exit $ac_status); } && {
6357          test -z "$ac_c_werror_flag" ||
6358          test ! -s conftest.err
6359        } && test -s conftest.$ac_objext; then
6360   ac_header_compiler=yes
6361 else
6362   $as_echo "$as_me: failed program was:" >&5
6363 sed 's/^/| /' conftest.$ac_ext >&5
6364
6365         ac_header_compiler=no
6366 fi
6367
6368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6369 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6370 $as_echo "$ac_header_compiler" >&6; }
6371
6372 # Is the header present?
6373 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6374 $as_echo_n "checking $ac_header presence... " >&6; }
6375 cat >conftest.$ac_ext <<_ACEOF
6376 /* confdefs.h.  */
6377 _ACEOF
6378 cat confdefs.h >>conftest.$ac_ext
6379 cat >>conftest.$ac_ext <<_ACEOF
6380 /* end confdefs.h.  */
6381 #include <$ac_header>
6382 _ACEOF
6383 if { (ac_try="$ac_cpp conftest.$ac_ext"
6384 case "(($ac_try" in
6385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6386   *) ac_try_echo=$ac_try;;
6387 esac
6388 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6389 $as_echo "$ac_try_echo") >&5
6390   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6391   ac_status=$?
6392   grep -v '^ *+' conftest.er1 >conftest.err
6393   rm -f conftest.er1
6394   cat conftest.err >&5
6395   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6396   (exit $ac_status); } >/dev/null && {
6397          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6398          test ! -s conftest.err
6399        }; then
6400   ac_header_preproc=yes
6401 else
6402   $as_echo "$as_me: failed program was:" >&5
6403 sed 's/^/| /' conftest.$ac_ext >&5
6404
6405   ac_header_preproc=no
6406 fi
6407
6408 rm -f conftest.err conftest.$ac_ext
6409 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6410 $as_echo "$ac_header_preproc" >&6; }
6411
6412 # So?  What about this header?
6413 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6414   yes:no: )
6415     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6416 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6417     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6418 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6419     ac_header_preproc=yes
6420     ;;
6421   no:yes:* )
6422     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6423 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6424     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6425 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6426     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6427 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6428     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6429 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6430     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6431 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6432     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6433 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6434     ( cat <<\_ASBOX
6435 ## ------------------------------------ ##
6436 ## Report this to http://www.sqlite.org ##
6437 ## ------------------------------------ ##
6438 _ASBOX
6439      ) | sed "s/^/$as_me: WARNING:     /" >&2
6440     ;;
6441 esac
6442 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6443 $as_echo_n "checking for $ac_header... " >&6; }
6444 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6445   $as_echo_n "(cached) " >&6
6446 else
6447   eval "$as_ac_Header=\$ac_header_preproc"
6448 fi
6449 ac_res=`eval 'as_val=${'$as_ac_Header'}
6450                  $as_echo "$as_val"'`
6451                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6452 $as_echo "$ac_res" >&6; }
6453
6454 fi
6455 if test `eval 'as_val=${'$as_ac_Header'}
6456                  $as_echo "$as_val"'` = yes; then
6457   cat >>confdefs.h <<_ACEOF
6458 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6459 _ACEOF
6460
6461 fi
6462
6463 done
6464
6465 ac_ext=cpp
6466 ac_cpp='$CXXCPP $CPPFLAGS'
6467 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6468 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6469 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6470 if test -z "$CXX"; then
6471   if test -n "$CCC"; then
6472     CXX=$CCC
6473   else
6474     if test -n "$ac_tool_prefix"; then
6475   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6476   do
6477     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6478 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6479 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6480 $as_echo_n "checking for $ac_word... " >&6; }
6481 if test "${ac_cv_prog_CXX+set}" = set; then
6482   $as_echo_n "(cached) " >&6
6483 else
6484   if test -n "$CXX"; then
6485   ac_cv_prog_CXX="$CXX" # Let the user override the test.
6486 else
6487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6488 for as_dir in $PATH
6489 do
6490   IFS=$as_save_IFS
6491   test -z "$as_dir" && as_dir=.
6492   for ac_exec_ext in '' $ac_executable_extensions; do
6493   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6494     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6495     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6496     break 2
6497   fi
6498 done
6499 done
6500 IFS=$as_save_IFS
6501
6502 fi
6503 fi
6504 CXX=$ac_cv_prog_CXX
6505 if test -n "$CXX"; then
6506   { $as_echo "$as_me:$LINENO: result: $CXX" >&5
6507 $as_echo "$CXX" >&6; }
6508 else
6509   { $as_echo "$as_me:$LINENO: result: no" >&5
6510 $as_echo "no" >&6; }
6511 fi
6512
6513
6514     test -n "$CXX" && break
6515   done
6516 fi
6517 if test -z "$CXX"; then
6518   ac_ct_CXX=$CXX
6519   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6520 do
6521   # Extract the first word of "$ac_prog", so it can be a program name with args.
6522 set dummy $ac_prog; ac_word=$2
6523 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6524 $as_echo_n "checking for $ac_word... " >&6; }
6525 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6526   $as_echo_n "(cached) " >&6
6527 else
6528   if test -n "$ac_ct_CXX"; then
6529   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6530 else
6531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6532 for as_dir in $PATH
6533 do
6534   IFS=$as_save_IFS
6535   test -z "$as_dir" && as_dir=.
6536   for ac_exec_ext in '' $ac_executable_extensions; do
6537   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6538     ac_cv_prog_ac_ct_CXX="$ac_prog"
6539     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6540     break 2
6541   fi
6542 done
6543 done
6544 IFS=$as_save_IFS
6545
6546 fi
6547 fi
6548 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6549 if test -n "$ac_ct_CXX"; then
6550   { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6551 $as_echo "$ac_ct_CXX" >&6; }
6552 else
6553   { $as_echo "$as_me:$LINENO: result: no" >&5
6554 $as_echo "no" >&6; }
6555 fi
6556
6557
6558   test -n "$ac_ct_CXX" && break
6559 done
6560
6561   if test "x$ac_ct_CXX" = x; then
6562     CXX="g++"
6563   else
6564     case $cross_compiling:$ac_tool_warned in
6565 yes:)
6566 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6567 whose name does not start with the host triplet.  If you think this
6568 configuration is useful to you, please write to autoconf@gnu.org." >&5
6569 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6570 whose name does not start with the host triplet.  If you think this
6571 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6572 ac_tool_warned=yes ;;
6573 esac
6574     CXX=$ac_ct_CXX
6575   fi
6576 fi
6577
6578   fi
6579 fi
6580 # Provide some information about the compiler.
6581 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6582 set X $ac_compile
6583 ac_compiler=$2
6584 { (ac_try="$ac_compiler --version >&5"
6585 case "(($ac_try" in
6586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6587   *) ac_try_echo=$ac_try;;
6588 esac
6589 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6590 $as_echo "$ac_try_echo") >&5
6591   (eval "$ac_compiler --version >&5") 2>&5
6592   ac_status=$?
6593   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6594   (exit $ac_status); }
6595 { (ac_try="$ac_compiler -v >&5"
6596 case "(($ac_try" in
6597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6598   *) ac_try_echo=$ac_try;;
6599 esac
6600 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6601 $as_echo "$ac_try_echo") >&5
6602   (eval "$ac_compiler -v >&5") 2>&5
6603   ac_status=$?
6604   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6605   (exit $ac_status); }
6606 { (ac_try="$ac_compiler -V >&5"
6607 case "(($ac_try" in
6608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6609   *) ac_try_echo=$ac_try;;
6610 esac
6611 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6612 $as_echo "$ac_try_echo") >&5
6613   (eval "$ac_compiler -V >&5") 2>&5
6614   ac_status=$?
6615   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6616   (exit $ac_status); }
6617
6618 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6619 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6620 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6621   $as_echo_n "(cached) " >&6
6622 else
6623   cat >conftest.$ac_ext <<_ACEOF
6624 /* confdefs.h.  */
6625 _ACEOF
6626 cat confdefs.h >>conftest.$ac_ext
6627 cat >>conftest.$ac_ext <<_ACEOF
6628 /* end confdefs.h.  */
6629
6630 int
6631 main ()
6632 {
6633 #ifndef __GNUC__
6634        choke me
6635 #endif
6636
6637   ;
6638   return 0;
6639 }
6640 _ACEOF
6641 rm -f conftest.$ac_objext
6642 if { (ac_try="$ac_compile"
6643 case "(($ac_try" in
6644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6645   *) ac_try_echo=$ac_try;;
6646 esac
6647 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6648 $as_echo "$ac_try_echo") >&5
6649   (eval "$ac_compile") 2>conftest.er1
6650   ac_status=$?
6651   grep -v '^ *+' conftest.er1 >conftest.err
6652   rm -f conftest.er1
6653   cat conftest.err >&5
6654   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655   (exit $ac_status); } && {
6656          test -z "$ac_cxx_werror_flag" ||
6657          test ! -s conftest.err
6658        } && test -s conftest.$ac_objext; then
6659   ac_compiler_gnu=yes
6660 else
6661   $as_echo "$as_me: failed program was:" >&5
6662 sed 's/^/| /' conftest.$ac_ext >&5
6663
6664         ac_compiler_gnu=no
6665 fi
6666
6667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6668 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6669
6670 fi
6671 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6672 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6673 if test $ac_compiler_gnu = yes; then
6674   GXX=yes
6675 else
6676   GXX=
6677 fi
6678 ac_test_CXXFLAGS=${CXXFLAGS+set}
6679 ac_save_CXXFLAGS=$CXXFLAGS
6680 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6681 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
6682 if test "${ac_cv_prog_cxx_g+set}" = set; then
6683   $as_echo_n "(cached) " >&6
6684 else
6685   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6686    ac_cxx_werror_flag=yes
6687    ac_cv_prog_cxx_g=no
6688    CXXFLAGS="-g"
6689    cat >conftest.$ac_ext <<_ACEOF
6690 /* confdefs.h.  */
6691 _ACEOF
6692 cat confdefs.h >>conftest.$ac_ext
6693 cat >>conftest.$ac_ext <<_ACEOF
6694 /* end confdefs.h.  */
6695
6696 int
6697 main ()
6698 {
6699
6700   ;
6701   return 0;
6702 }
6703 _ACEOF
6704 rm -f conftest.$ac_objext
6705 if { (ac_try="$ac_compile"
6706 case "(($ac_try" in
6707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6708   *) ac_try_echo=$ac_try;;
6709 esac
6710 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6711 $as_echo "$ac_try_echo") >&5
6712   (eval "$ac_compile") 2>conftest.er1
6713   ac_status=$?
6714   grep -v '^ *+' conftest.er1 >conftest.err
6715   rm -f conftest.er1
6716   cat conftest.err >&5
6717   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6718   (exit $ac_status); } && {
6719          test -z "$ac_cxx_werror_flag" ||
6720          test ! -s conftest.err
6721        } && test -s conftest.$ac_objext; then
6722   ac_cv_prog_cxx_g=yes
6723 else
6724   $as_echo "$as_me: failed program was:" >&5
6725 sed 's/^/| /' conftest.$ac_ext >&5
6726
6727         CXXFLAGS=""
6728       cat >conftest.$ac_ext <<_ACEOF
6729 /* confdefs.h.  */
6730 _ACEOF
6731 cat confdefs.h >>conftest.$ac_ext
6732 cat >>conftest.$ac_ext <<_ACEOF
6733 /* end confdefs.h.  */
6734
6735 int
6736 main ()
6737 {
6738
6739   ;
6740   return 0;
6741 }
6742 _ACEOF
6743 rm -f conftest.$ac_objext
6744 if { (ac_try="$ac_compile"
6745 case "(($ac_try" in
6746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6747   *) ac_try_echo=$ac_try;;
6748 esac
6749 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6750 $as_echo "$ac_try_echo") >&5
6751   (eval "$ac_compile") 2>conftest.er1
6752   ac_status=$?
6753   grep -v '^ *+' conftest.er1 >conftest.err
6754   rm -f conftest.er1
6755   cat conftest.err >&5
6756   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6757   (exit $ac_status); } && {
6758          test -z "$ac_cxx_werror_flag" ||
6759          test ! -s conftest.err
6760        } && test -s conftest.$ac_objext; then
6761   :
6762 else
6763   $as_echo "$as_me: failed program was:" >&5
6764 sed 's/^/| /' conftest.$ac_ext >&5
6765
6766         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6767          CXXFLAGS="-g"
6768          cat >conftest.$ac_ext <<_ACEOF
6769 /* confdefs.h.  */
6770 _ACEOF
6771 cat confdefs.h >>conftest.$ac_ext
6772 cat >>conftest.$ac_ext <<_ACEOF
6773 /* end confdefs.h.  */
6774
6775 int
6776 main ()
6777 {
6778
6779   ;
6780   return 0;
6781 }
6782 _ACEOF
6783 rm -f conftest.$ac_objext
6784 if { (ac_try="$ac_compile"
6785 case "(($ac_try" in
6786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6787   *) ac_try_echo=$ac_try;;
6788 esac
6789 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6790 $as_echo "$ac_try_echo") >&5
6791   (eval "$ac_compile") 2>conftest.er1
6792   ac_status=$?
6793   grep -v '^ *+' conftest.er1 >conftest.err
6794   rm -f conftest.er1
6795   cat conftest.err >&5
6796   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6797   (exit $ac_status); } && {
6798          test -z "$ac_cxx_werror_flag" ||
6799          test ! -s conftest.err
6800        } && test -s conftest.$ac_objext; then
6801   ac_cv_prog_cxx_g=yes
6802 else
6803   $as_echo "$as_me: failed program was:" >&5
6804 sed 's/^/| /' conftest.$ac_ext >&5
6805
6806
6807 fi
6808
6809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6810 fi
6811
6812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6813 fi
6814
6815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6816    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6817 fi
6818 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6819 $as_echo "$ac_cv_prog_cxx_g" >&6; }
6820 if test "$ac_test_CXXFLAGS" = set; then
6821   CXXFLAGS=$ac_save_CXXFLAGS
6822 elif test $ac_cv_prog_cxx_g = yes; then
6823   if test "$GXX" = yes; then
6824     CXXFLAGS="-g -O2"
6825   else
6826     CXXFLAGS="-g"
6827   fi
6828 else
6829   if test "$GXX" = yes; then
6830     CXXFLAGS="-O2"
6831   else
6832     CXXFLAGS=
6833   fi
6834 fi
6835 ac_ext=cpp
6836 ac_cpp='$CXXCPP $CPPFLAGS'
6837 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6838 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6839 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6840
6841 depcc="$CXX"  am_compiler_list=
6842
6843 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6844 $as_echo_n "checking dependency style of $depcc... " >&6; }
6845 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6846   $as_echo_n "(cached) " >&6
6847 else
6848   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6849   # We make a subdir and do the tests there.  Otherwise we can end up
6850   # making bogus files that we don't know about and never remove.  For
6851   # instance it was reported that on HP-UX the gcc test will end up
6852   # making a dummy file named `D' -- because `-MD' means `put the output
6853   # in D'.
6854   mkdir conftest.dir
6855   # Copy depcomp to subdir because otherwise we won't find it if we're
6856   # using a relative directory.
6857   cp "$am_depcomp" conftest.dir
6858   cd conftest.dir
6859   # We will build objects and dependencies in a subdirectory because
6860   # it helps to detect inapplicable dependency modes.  For instance
6861   # both Tru64's cc and ICC support -MD to output dependencies as a
6862   # side effect of compilation, but ICC will put the dependencies in
6863   # the current directory while Tru64 will put them in the object
6864   # directory.
6865   mkdir sub
6866
6867   am_cv_CXX_dependencies_compiler_type=none
6868   if test "$am_compiler_list" = ""; then
6869      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6870   fi
6871   for depmode in $am_compiler_list; do
6872     # Setup a source with many dependencies, because some compilers
6873     # like to wrap large dependency lists on column 80 (with \), and
6874     # we should not choose a depcomp mode which is confused by this.
6875     #
6876     # We need to recreate these files for each test, as the compiler may
6877     # overwrite some of them when testing with obscure command lines.
6878     # This happens at least with the AIX C compiler.
6879     : > sub/conftest.c
6880     for i in 1 2 3 4 5 6; do
6881       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6882       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6883       # Solaris 8's {/usr,}/bin/sh.
6884       touch sub/conftst$i.h
6885     done
6886     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6887
6888     case $depmode in
6889     nosideeffect)
6890       # after this tag, mechanisms are not by side-effect, so they'll
6891       # only be used when explicitly requested
6892       if test "x$enable_dependency_tracking" = xyes; then
6893         continue
6894       else
6895         break
6896       fi
6897       ;;
6898     none) break ;;
6899     esac
6900     # We check with `-c' and `-o' for the sake of the "dashmstdout"
6901     # mode.  It turns out that the SunPro C++ compiler does not properly
6902     # handle `-M -o', and we need to detect this.
6903     if depmode=$depmode \
6904        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6905        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6906        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6907          >/dev/null 2>conftest.err &&
6908        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6909        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6910        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6911       # icc doesn't choke on unknown options, it will just issue warnings
6912       # or remarks (even with -Werror).  So we grep stderr for any message
6913       # that says an option was ignored or not supported.
6914       # When given -MP, icc 7.0 and 7.1 complain thusly:
6915       #   icc: Command line warning: ignoring option '-M'; no argument required
6916       # The diagnosis changed in icc 8.0:
6917       #   icc: Command line remark: option '-MP' not supported
6918       if (grep 'ignoring option' conftest.err ||
6919           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6920         am_cv_CXX_dependencies_compiler_type=$depmode
6921         break
6922       fi
6923     fi
6924   done
6925
6926   cd ..
6927   rm -rf conftest.dir
6928 else
6929   am_cv_CXX_dependencies_compiler_type=none
6930 fi
6931
6932 fi
6933 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6934 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6935 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6936
6937
6938
6939 if
6940   test "x$enable_dependency_tracking" != xno \
6941   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6942   am__fastdepCXX_TRUE=
6943   am__fastdepCXX_FALSE='#'
6944 else
6945   am__fastdepCXX_TRUE='#'
6946   am__fastdepCXX_FALSE=
6947 fi
6948
6949
6950
6951
6952 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6953     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6954     (test "X$CXX" != "Xg++"))) ; then
6955   ac_ext=cpp
6956 ac_cpp='$CXXCPP $CPPFLAGS'
6957 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6958 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6959 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6960 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6961 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
6962 if test -z "$CXXCPP"; then
6963   if test "${ac_cv_prog_CXXCPP+set}" = set; then
6964   $as_echo_n "(cached) " >&6
6965 else
6966       # Double quotes because CXXCPP needs to be expanded
6967     for CXXCPP in "$CXX -E" "/lib/cpp"
6968     do
6969       ac_preproc_ok=false
6970 for ac_cxx_preproc_warn_flag in '' yes
6971 do
6972   # Use a header file that comes with gcc, so configuring glibc
6973   # with a fresh cross-compiler works.
6974   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6975   # <limits.h> exists even on freestanding compilers.
6976   # On the NeXT, cc -E runs the code through the compiler's parser,
6977   # not just through cpp. "Syntax error" is here to catch this case.
6978   cat >conftest.$ac_ext <<_ACEOF
6979 /* confdefs.h.  */
6980 _ACEOF
6981 cat confdefs.h >>conftest.$ac_ext
6982 cat >>conftest.$ac_ext <<_ACEOF
6983 /* end confdefs.h.  */
6984 #ifdef __STDC__
6985 # include <limits.h>
6986 #else
6987 # include <assert.h>
6988 #endif
6989                      Syntax error
6990 _ACEOF
6991 if { (ac_try="$ac_cpp conftest.$ac_ext"
6992 case "(($ac_try" in
6993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6994   *) ac_try_echo=$ac_try;;
6995 esac
6996 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6997 $as_echo "$ac_try_echo") >&5
6998   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6999   ac_status=$?
7000   grep -v '^ *+' conftest.er1 >conftest.err
7001   rm -f conftest.er1
7002   cat conftest.err >&5
7003   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7004   (exit $ac_status); } >/dev/null && {
7005          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7006          test ! -s conftest.err
7007        }; then
7008   :
7009 else
7010   $as_echo "$as_me: failed program was:" >&5
7011 sed 's/^/| /' conftest.$ac_ext >&5
7012
7013   # Broken: fails on valid input.
7014 continue
7015 fi
7016
7017 rm -f conftest.err conftest.$ac_ext
7018
7019   # OK, works on sane cases.  Now check whether nonexistent headers
7020   # can be detected and how.
7021   cat >conftest.$ac_ext <<_ACEOF
7022 /* confdefs.h.  */
7023 _ACEOF
7024 cat confdefs.h >>conftest.$ac_ext
7025 cat >>conftest.$ac_ext <<_ACEOF
7026 /* end confdefs.h.  */
7027 #include <ac_nonexistent.h>
7028 _ACEOF
7029 if { (ac_try="$ac_cpp conftest.$ac_ext"
7030 case "(($ac_try" in
7031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7032   *) ac_try_echo=$ac_try;;
7033 esac
7034 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7035 $as_echo "$ac_try_echo") >&5
7036   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7037   ac_status=$?
7038   grep -v '^ *+' conftest.er1 >conftest.err
7039   rm -f conftest.er1
7040   cat conftest.err >&5
7041   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7042   (exit $ac_status); } >/dev/null && {
7043          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7044          test ! -s conftest.err
7045        }; then
7046   # Broken: success on invalid input.
7047 continue
7048 else
7049   $as_echo "$as_me: failed program was:" >&5
7050 sed 's/^/| /' conftest.$ac_ext >&5
7051
7052   # Passes both tests.
7053 ac_preproc_ok=:
7054 break
7055 fi
7056
7057 rm -f conftest.err conftest.$ac_ext
7058
7059 done
7060 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7061 rm -f conftest.err conftest.$ac_ext
7062 if $ac_preproc_ok; then
7063   break
7064 fi
7065
7066     done
7067     ac_cv_prog_CXXCPP=$CXXCPP
7068
7069 fi
7070   CXXCPP=$ac_cv_prog_CXXCPP
7071 else
7072   ac_cv_prog_CXXCPP=$CXXCPP
7073 fi
7074 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
7075 $as_echo "$CXXCPP" >&6; }
7076 ac_preproc_ok=false
7077 for ac_cxx_preproc_warn_flag in '' yes
7078 do
7079   # Use a header file that comes with gcc, so configuring glibc
7080   # with a fresh cross-compiler works.
7081   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7082   # <limits.h> exists even on freestanding compilers.
7083   # On the NeXT, cc -E runs the code through the compiler's parser,
7084   # not just through cpp. "Syntax error" is here to catch this case.
7085   cat >conftest.$ac_ext <<_ACEOF
7086 /* confdefs.h.  */
7087 _ACEOF
7088 cat confdefs.h >>conftest.$ac_ext
7089 cat >>conftest.$ac_ext <<_ACEOF
7090 /* end confdefs.h.  */
7091 #ifdef __STDC__
7092 # include <limits.h>
7093 #else
7094 # include <assert.h>
7095 #endif
7096                      Syntax error
7097 _ACEOF
7098 if { (ac_try="$ac_cpp conftest.$ac_ext"
7099 case "(($ac_try" in
7100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7101   *) ac_try_echo=$ac_try;;
7102 esac
7103 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7104 $as_echo "$ac_try_echo") >&5
7105   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7106   ac_status=$?
7107   grep -v '^ *+' conftest.er1 >conftest.err
7108   rm -f conftest.er1
7109   cat conftest.err >&5
7110   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7111   (exit $ac_status); } >/dev/null && {
7112          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7113          test ! -s conftest.err
7114        }; then
7115   :
7116 else
7117   $as_echo "$as_me: failed program was:" >&5
7118 sed 's/^/| /' conftest.$ac_ext >&5
7119
7120   # Broken: fails on valid input.
7121 continue
7122 fi
7123
7124 rm -f conftest.err conftest.$ac_ext
7125
7126   # OK, works on sane cases.  Now check whether nonexistent headers
7127   # can be detected and how.
7128   cat >conftest.$ac_ext <<_ACEOF
7129 /* confdefs.h.  */
7130 _ACEOF
7131 cat confdefs.h >>conftest.$ac_ext
7132 cat >>conftest.$ac_ext <<_ACEOF
7133 /* end confdefs.h.  */
7134 #include <ac_nonexistent.h>
7135 _ACEOF
7136 if { (ac_try="$ac_cpp conftest.$ac_ext"
7137 case "(($ac_try" in
7138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7139   *) ac_try_echo=$ac_try;;
7140 esac
7141 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7142 $as_echo "$ac_try_echo") >&5
7143   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7144   ac_status=$?
7145   grep -v '^ *+' conftest.er1 >conftest.err
7146   rm -f conftest.er1
7147   cat conftest.err >&5
7148   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7149   (exit $ac_status); } >/dev/null && {
7150          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7151          test ! -s conftest.err
7152        }; then
7153   # Broken: success on invalid input.
7154 continue
7155 else
7156   $as_echo "$as_me: failed program was:" >&5
7157 sed 's/^/| /' conftest.$ac_ext >&5
7158
7159   # Passes both tests.
7160 ac_preproc_ok=:
7161 break
7162 fi
7163
7164 rm -f conftest.err conftest.$ac_ext
7165
7166 done
7167 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7168 rm -f conftest.err conftest.$ac_ext
7169 if $ac_preproc_ok; then
7170   :
7171 else
7172   { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7173 See \`config.log' for more details." >&5
7174 $as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7175 See \`config.log' for more details." >&2;}
7176    { (exit 1); exit 1; }; }
7177 fi
7178
7179 ac_ext=cpp
7180 ac_cpp='$CXXCPP $CPPFLAGS'
7181 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7182 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7183 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7184
7185 fi
7186
7187
7188 ac_ext=f
7189 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7190 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7191 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7192 if test -n "$ac_tool_prefix"; then
7193   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
7194   do
7195     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7196 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7197 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7198 $as_echo_n "checking for $ac_word... " >&6; }
7199 if test "${ac_cv_prog_F77+set}" = set; then
7200   $as_echo_n "(cached) " >&6
7201 else
7202   if test -n "$F77"; then
7203   ac_cv_prog_F77="$F77" # Let the user override the test.
7204 else
7205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7206 for as_dir in $PATH
7207 do
7208   IFS=$as_save_IFS
7209   test -z "$as_dir" && as_dir=.
7210   for ac_exec_ext in '' $ac_executable_extensions; do
7211   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7212     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7213     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7214     break 2
7215   fi
7216 done
7217 done
7218 IFS=$as_save_IFS
7219
7220 fi
7221 fi
7222 F77=$ac_cv_prog_F77
7223 if test -n "$F77"; then
7224   { $as_echo "$as_me:$LINENO: result: $F77" >&5
7225 $as_echo "$F77" >&6; }
7226 else
7227   { $as_echo "$as_me:$LINENO: result: no" >&5
7228 $as_echo "no" >&6; }
7229 fi
7230
7231
7232     test -n "$F77" && break
7233   done
7234 fi
7235 if test -z "$F77"; then
7236   ac_ct_F77=$F77
7237   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
7238 do
7239   # Extract the first word of "$ac_prog", so it can be a program name with args.
7240 set dummy $ac_prog; ac_word=$2
7241 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7242 $as_echo_n "checking for $ac_word... " >&6; }
7243 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7244   $as_echo_n "(cached) " >&6
7245 else
7246   if test -n "$ac_ct_F77"; then
7247   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7248 else
7249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7250 for as_dir in $PATH
7251 do
7252   IFS=$as_save_IFS
7253   test -z "$as_dir" && as_dir=.
7254   for ac_exec_ext in '' $ac_executable_extensions; do
7255   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7256     ac_cv_prog_ac_ct_F77="$ac_prog"
7257     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7258     break 2
7259   fi
7260 done
7261 done
7262 IFS=$as_save_IFS
7263
7264 fi
7265 fi
7266 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7267 if test -n "$ac_ct_F77"; then
7268   { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7269 $as_echo "$ac_ct_F77" >&6; }
7270 else
7271   { $as_echo "$as_me:$LINENO: result: no" >&5
7272 $as_echo "no" >&6; }
7273 fi
7274
7275
7276   test -n "$ac_ct_F77" && break
7277 done
7278
7279   if test "x$ac_ct_F77" = x; then
7280     F77=""
7281   else
7282     case $cross_compiling:$ac_tool_warned in
7283 yes:)
7284 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7285 whose name does not start with the host triplet.  If you think this
7286 configuration is useful to you, please write to autoconf@gnu.org." >&5
7287 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7288 whose name does not start with the host triplet.  If you think this
7289 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7290 ac_tool_warned=yes ;;
7291 esac
7292     F77=$ac_ct_F77
7293   fi
7294 fi
7295
7296
7297 # Provide some information about the compiler.
7298 $as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
7299 set X $ac_compile
7300 ac_compiler=$2
7301 { (ac_try="$ac_compiler --version >&5"
7302 case "(($ac_try" in
7303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7304   *) ac_try_echo=$ac_try;;
7305 esac
7306 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7307 $as_echo "$ac_try_echo") >&5
7308   (eval "$ac_compiler --version >&5") 2>&5
7309   ac_status=$?
7310   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7311   (exit $ac_status); }
7312 { (ac_try="$ac_compiler -v >&5"
7313 case "(($ac_try" in
7314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7315   *) ac_try_echo=$ac_try;;
7316 esac
7317 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7318 $as_echo "$ac_try_echo") >&5
7319   (eval "$ac_compiler -v >&5") 2>&5
7320   ac_status=$?
7321   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7322   (exit $ac_status); }
7323 { (ac_try="$ac_compiler -V >&5"
7324 case "(($ac_try" in
7325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7326   *) ac_try_echo=$ac_try;;
7327 esac
7328 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7329 $as_echo "$ac_try_echo") >&5
7330   (eval "$ac_compiler -V >&5") 2>&5
7331   ac_status=$?
7332   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7333   (exit $ac_status); }
7334 rm -f a.out
7335
7336 # If we don't use `.F' as extension, the preprocessor is not run on the
7337 # input file.  (Note that this only needs to work for GNU compilers.)
7338 ac_save_ext=$ac_ext
7339 ac_ext=F
7340 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7341 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
7342 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7343   $as_echo_n "(cached) " >&6
7344 else
7345   cat >conftest.$ac_ext <<_ACEOF
7346       program main
7347 #ifndef __GNUC__
7348        choke me
7349 #endif
7350
7351       end
7352 _ACEOF
7353 rm -f conftest.$ac_objext
7354 if { (ac_try="$ac_compile"
7355 case "(($ac_try" in
7356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7357   *) ac_try_echo=$ac_try;;
7358 esac
7359 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7360 $as_echo "$ac_try_echo") >&5
7361   (eval "$ac_compile") 2>conftest.er1
7362   ac_status=$?
7363   grep -v '^ *+' conftest.er1 >conftest.err
7364   rm -f conftest.er1
7365   cat conftest.err >&5
7366   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7367   (exit $ac_status); } && {
7368          test -z "$ac_f77_werror_flag" ||
7369          test ! -s conftest.err
7370        } && test -s conftest.$ac_objext; then
7371   ac_compiler_gnu=yes
7372 else
7373   $as_echo "$as_me: failed program was:" >&5
7374 sed 's/^/| /' conftest.$ac_ext >&5
7375
7376         ac_compiler_gnu=no
7377 fi
7378
7379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7380 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7381
7382 fi
7383 { $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7384 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
7385 ac_ext=$ac_save_ext
7386 ac_test_FFLAGS=${FFLAGS+set}
7387 ac_save_FFLAGS=$FFLAGS
7388 FFLAGS=
7389 { $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7390 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
7391 if test "${ac_cv_prog_f77_g+set}" = set; then
7392   $as_echo_n "(cached) " >&6
7393 else
7394   FFLAGS=-g
7395 cat >conftest.$ac_ext <<_ACEOF
7396       program main
7397
7398       end
7399 _ACEOF
7400 rm -f conftest.$ac_objext
7401 if { (ac_try="$ac_compile"
7402 case "(($ac_try" in
7403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7404   *) ac_try_echo=$ac_try;;
7405 esac
7406 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7407 $as_echo "$ac_try_echo") >&5
7408   (eval "$ac_compile") 2>conftest.er1
7409   ac_status=$?
7410   grep -v '^ *+' conftest.er1 >conftest.err
7411   rm -f conftest.er1
7412   cat conftest.err >&5
7413   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7414   (exit $ac_status); } && {
7415          test -z "$ac_f77_werror_flag" ||
7416          test ! -s conftest.err
7417        } && test -s conftest.$ac_objext; then
7418   ac_cv_prog_f77_g=yes
7419 else
7420   $as_echo "$as_me: failed program was:" >&5
7421 sed 's/^/| /' conftest.$ac_ext >&5
7422
7423         ac_cv_prog_f77_g=no
7424 fi
7425
7426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7427
7428 fi
7429 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7430 $as_echo "$ac_cv_prog_f77_g" >&6; }
7431 if test "$ac_test_FFLAGS" = set; then
7432   FFLAGS=$ac_save_FFLAGS
7433 elif test $ac_cv_prog_f77_g = yes; then
7434   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7435     FFLAGS="-g -O2"
7436   else
7437     FFLAGS="-g"
7438   fi
7439 else
7440   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7441     FFLAGS="-O2"
7442   else
7443     FFLAGS=
7444   fi
7445 fi
7446
7447 if test $ac_compiler_gnu = yes; then
7448   G77=yes
7449 else
7450   G77=
7451 fi
7452 ac_ext=c
7453 ac_cpp='$CPP $CPPFLAGS'
7454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7457
7458
7459
7460 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7461
7462 # find the maximum length of command line arguments
7463 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7464 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7465 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7466   $as_echo_n "(cached) " >&6
7467 else
7468     i=0
7469   teststring="ABCD"
7470
7471   case $build_os in
7472   msdosdjgpp*)
7473     # On DJGPP, this test can blow up pretty badly due to problems in libc
7474     # (any single argument exceeding 2000 bytes causes a buffer overrun
7475     # during glob expansion).  Even if it were fixed, the result of this
7476     # check would be larger than it should be.
7477     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7478     ;;
7479
7480   gnu*)
7481     # Under GNU Hurd, this test is not required because there is
7482     # no limit to the length of command line arguments.
7483     # Libtool will interpret -1 as no limit whatsoever
7484     lt_cv_sys_max_cmd_len=-1;
7485     ;;
7486
7487   cygwin* | mingw*)
7488     # On Win9x/ME, this test blows up -- it succeeds, but takes
7489     # about 5 minutes as the teststring grows exponentially.
7490     # Worse, since 9x/ME are not pre-emptively multitasking,
7491     # you end up with a "frozen" computer, even though with patience
7492     # the test eventually succeeds (with a max line length of 256k).
7493     # Instead, let's just punt: use the minimum linelength reported by
7494     # all of the supported platforms: 8192 (on NT/2K/XP).
7495     lt_cv_sys_max_cmd_len=8192;
7496     ;;
7497
7498   amigaos*)
7499     # On AmigaOS with pdksh, this test takes hours, literally.
7500     # So we just punt and use a minimum line length of 8192.
7501     lt_cv_sys_max_cmd_len=8192;
7502     ;;
7503
7504   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7505     # This has been around since 386BSD, at least.  Likely further.
7506     if test -x /sbin/sysctl; then
7507       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7508     elif test -x /usr/sbin/sysctl; then
7509       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7510     else
7511       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7512     fi
7513     # And add a safety zone
7514     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7515     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7516     ;;
7517
7518   interix*)
7519     # We know the value 262144 and hardcode it with a safety zone (like BSD)
7520     lt_cv_sys_max_cmd_len=196608
7521     ;;
7522
7523   osf*)
7524     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7525     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7526     # nice to cause kernel panics so lets avoid the loop below.
7527     # First set a reasonable default.
7528     lt_cv_sys_max_cmd_len=16384
7529     #
7530     if test -x /sbin/sysconfig; then
7531       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7532         *1*) lt_cv_sys_max_cmd_len=-1 ;;
7533       esac
7534     fi
7535     ;;
7536   sco3.2v5*)
7537     lt_cv_sys_max_cmd_len=102400
7538     ;;
7539   sysv5* | sco5v6* | sysv4.2uw2*)
7540     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7541     if test -n "$kargmax"; then
7542       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7543     else
7544       lt_cv_sys_max_cmd_len=32768
7545     fi
7546     ;;
7547   *)
7548     # If test is not a shell built-in, we'll probably end up computing a
7549     # maximum length that is only half of the actual maximum length, but
7550     # we can't tell.
7551     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7552     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7553                = "XX$teststring") >/dev/null 2>&1 &&
7554             new_result=`expr "X$teststring" : ".*" 2>&1` &&
7555             lt_cv_sys_max_cmd_len=$new_result &&
7556             test $i != 17 # 1/2 MB should be enough
7557     do
7558       i=`expr $i + 1`
7559       teststring=$teststring$teststring
7560     done
7561     teststring=
7562     # Add a significant safety factor because C++ compilers can tack on massive
7563     # amounts of additional arguments before passing them to the linker.
7564     # It appears as though 1/2 is a usable value.
7565     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7566     ;;
7567   esac
7568
7569 fi
7570
7571 if test -n $lt_cv_sys_max_cmd_len ; then
7572   { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7573 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7574 else
7575   { $as_echo "$as_me:$LINENO: result: none" >&5
7576 $as_echo "none" >&6; }
7577 fi
7578
7579
7580
7581
7582 # Check for command to grab the raw symbol name followed by C symbol from nm.
7583 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7584 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7585 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7586   $as_echo_n "(cached) " >&6
7587 else
7588
7589 # These are sane defaults that work on at least a few old systems.
7590 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7591
7592 # Character class describing NM global symbol codes.
7593 symcode='[BCDEGRST]'
7594
7595 # Regexp to match symbols that can be accessed directly from C.
7596 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7597
7598 # Transform an extracted symbol line into a proper C declaration
7599 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7600
7601 # Transform an extracted symbol line into symbol name and symbol address
7602 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'"
7603
7604 # Define system-specific variables.
7605 case $host_os in
7606 aix*)
7607   symcode='[BCDT]'
7608   ;;
7609 cygwin* | mingw* | pw32*)
7610   symcode='[ABCDGISTW]'
7611   ;;
7612 hpux*) # Its linker distinguishes data from code symbols
7613   if test "$host_cpu" = ia64; then
7614     symcode='[ABCDEGRST]'
7615   fi
7616   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7617   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'"
7618   ;;
7619 linux*)
7620   if test "$host_cpu" = ia64; then
7621     symcode='[ABCDGIRSTW]'
7622     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7623     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'"
7624   fi
7625   ;;
7626 irix* | nonstopux*)
7627   symcode='[BCDEGRST]'
7628   ;;
7629 osf*)
7630   symcode='[BCDEGQRST]'
7631   ;;
7632 solaris*)
7633   symcode='[BDRT]'
7634   ;;
7635 sco3.2v5*)
7636   symcode='[DT]'
7637   ;;
7638 sysv4.2uw2*)
7639   symcode='[DT]'
7640   ;;
7641 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7642   symcode='[ABDT]'
7643   ;;
7644 sysv4)
7645   symcode='[DFNSTU]'
7646   ;;
7647 esac
7648
7649 # Handle CRLF in mingw tool chain
7650 opt_cr=
7651 case $build_os in
7652 mingw*)
7653   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7654   ;;
7655 esac
7656
7657 # If we're using GNU nm, then use its standard symbol codes.
7658 case `$NM -V 2>&1` in
7659 *GNU* | *'with BFD'*)
7660   symcode='[ABCDGIRSTW]' ;;
7661 esac
7662
7663 # Try without a prefix undercore, then with it.
7664 for ac_symprfx in "" "_"; do
7665
7666   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7667   symxfrm="\\1 $ac_symprfx\\2 \\2"
7668
7669   # Write the raw and C identifiers.
7670   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7671
7672   # Check to see that the pipe works correctly.
7673   pipe_works=no
7674
7675   rm -f conftest*
7676   cat > conftest.$ac_ext <<EOF
7677 #ifdef __cplusplus
7678 extern "C" {
7679 #endif
7680 char nm_test_var;
7681 void nm_test_func(){}
7682 #ifdef __cplusplus
7683 }
7684 #endif
7685 int main(){nm_test_var='a';nm_test_func();return(0);}
7686 EOF
7687
7688   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7689   (eval $ac_compile) 2>&5
7690   ac_status=$?
7691   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7692   (exit $ac_status); }; then
7693     # Now try to grab the symbols.
7694     nlist=conftest.nm
7695     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7696   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7697   ac_status=$?
7698   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7699   (exit $ac_status); } && test -s "$nlist"; then
7700       # Try sorting and uniquifying the output.
7701       if sort "$nlist" | uniq > "$nlist"T; then
7702         mv -f "$nlist"T "$nlist"
7703       else
7704         rm -f "$nlist"T
7705       fi
7706
7707       # Make sure that we snagged all the symbols we need.
7708       if grep ' nm_test_var$' "$nlist" >/dev/null; then
7709         if grep ' nm_test_func$' "$nlist" >/dev/null; then
7710           cat <<EOF > conftest.$ac_ext
7711 #ifdef __cplusplus
7712 extern "C" {
7713 #endif
7714
7715 EOF
7716           # Now generate the symbol file.
7717           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7718
7719           cat <<EOF >> conftest.$ac_ext
7720 #if defined (__STDC__) && __STDC__
7721 # define lt_ptr_t void *
7722 #else
7723 # define lt_ptr_t char *
7724 # define const
7725 #endif
7726
7727 /* The mapping between symbol names and symbols. */
7728 const struct {
7729   const char *name;
7730   lt_ptr_t address;
7731 }
7732 lt_preloaded_symbols[] =
7733 {
7734 EOF
7735           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7736           cat <<\EOF >> conftest.$ac_ext
7737   {0, (lt_ptr_t) 0}
7738 };
7739
7740 #ifdef __cplusplus
7741 }
7742 #endif
7743 EOF
7744           # Now try linking the two files.
7745           mv conftest.$ac_objext conftstm.$ac_objext
7746           lt_save_LIBS="$LIBS"
7747           lt_save_CFLAGS="$CFLAGS"
7748           LIBS="conftstm.$ac_objext"
7749           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7750           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7751   (eval $ac_link) 2>&5
7752   ac_status=$?
7753   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7754   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7755             pipe_works=yes
7756           fi
7757           LIBS="$lt_save_LIBS"
7758           CFLAGS="$lt_save_CFLAGS"
7759         else
7760           echo "cannot find nm_test_func in $nlist" >&5
7761         fi
7762       else
7763         echo "cannot find nm_test_var in $nlist" >&5
7764       fi
7765     else
7766       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7767     fi
7768   else
7769     echo "$progname: failed program was:" >&5
7770     cat conftest.$ac_ext >&5
7771   fi
7772   rm -f conftest* conftst*
7773
7774   # Do not use the global_symbol_pipe unless it works.
7775   if test "$pipe_works" = yes; then
7776     break
7777   else
7778     lt_cv_sys_global_symbol_pipe=
7779   fi
7780 done
7781
7782 fi
7783
7784 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7785   lt_cv_sys_global_symbol_to_cdecl=
7786 fi
7787 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7788   { $as_echo "$as_me:$LINENO: result: failed" >&5
7789 $as_echo "failed" >&6; }
7790 else
7791   { $as_echo "$as_me:$LINENO: result: ok" >&5
7792 $as_echo "ok" >&6; }
7793 fi
7794
7795 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
7796 $as_echo_n "checking for objdir... " >&6; }
7797 if test "${lt_cv_objdir+set}" = set; then
7798   $as_echo_n "(cached) " >&6
7799 else
7800   rm -f .libs 2>/dev/null
7801 mkdir .libs 2>/dev/null
7802 if test -d .libs; then
7803   lt_cv_objdir=.libs
7804 else
7805   # MS-DOS does not allow filenames that begin with a dot.
7806   lt_cv_objdir=_libs
7807 fi
7808 rmdir .libs 2>/dev/null
7809 fi
7810 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7811 $as_echo "$lt_cv_objdir" >&6; }
7812 objdir=$lt_cv_objdir
7813
7814
7815
7816
7817
7818 case $host_os in
7819 aix3*)
7820   # AIX sometimes has problems with the GCC collect2 program.  For some
7821   # reason, if we set the COLLECT_NAMES environment variable, the problems
7822   # vanish in a puff of smoke.
7823   if test "X${COLLECT_NAMES+set}" != Xset; then
7824     COLLECT_NAMES=
7825     export COLLECT_NAMES
7826   fi
7827   ;;
7828 esac
7829
7830 # Sed substitution that helps us do robust quoting.  It backslashifies
7831 # metacharacters that are still active within double-quoted strings.
7832 Xsed='sed -e 1s/^X//'
7833 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7834
7835 # Same as above, but do not quote variable references.
7836 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7837
7838 # Sed substitution to delay expansion of an escaped shell variable in a
7839 # double_quote_subst'ed string.
7840 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7841
7842 # Sed substitution to avoid accidental globbing in evaled expressions
7843 no_glob_subst='s/\*/\\\*/g'
7844
7845 # Constants:
7846 rm="rm -f"
7847
7848 # Global variables:
7849 default_ofile=libtool
7850 can_build_shared=yes
7851
7852 # All known linkers require a `.a' archive for static linking (except MSVC,
7853 # which needs '.lib').
7854 libext=a
7855 ltmain="$ac_aux_dir/ltmain.sh"
7856 ofile="$default_ofile"
7857 with_gnu_ld="$lt_cv_prog_gnu_ld"
7858
7859 if test -n "$ac_tool_prefix"; then
7860   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7861 set dummy ${ac_tool_prefix}ar; ac_word=$2
7862 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7863 $as_echo_n "checking for $ac_word... " >&6; }
7864 if test "${ac_cv_prog_AR+set}" = set; then
7865   $as_echo_n "(cached) " >&6
7866 else
7867   if test -n "$AR"; then
7868   ac_cv_prog_AR="$AR" # Let the user override the test.
7869 else
7870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7871 for as_dir in $PATH
7872 do
7873   IFS=$as_save_IFS
7874   test -z "$as_dir" && as_dir=.
7875   for ac_exec_ext in '' $ac_executable_extensions; do
7876   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7877     ac_cv_prog_AR="${ac_tool_prefix}ar"
7878     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7879     break 2
7880   fi
7881 done
7882 done
7883 IFS=$as_save_IFS
7884
7885 fi
7886 fi
7887 AR=$ac_cv_prog_AR
7888 if test -n "$AR"; then
7889   { $as_echo "$as_me:$LINENO: result: $AR" >&5
7890 $as_echo "$AR" >&6; }
7891 else
7892   { $as_echo "$as_me:$LINENO: result: no" >&5
7893 $as_echo "no" >&6; }
7894 fi
7895
7896
7897 fi
7898 if test -z "$ac_cv_prog_AR"; then
7899   ac_ct_AR=$AR
7900   # Extract the first word of "ar", so it can be a program name with args.
7901 set dummy ar; ac_word=$2
7902 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7903 $as_echo_n "checking for $ac_word... " >&6; }
7904 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7905   $as_echo_n "(cached) " >&6
7906 else
7907   if test -n "$ac_ct_AR"; then
7908   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7909 else
7910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7911 for as_dir in $PATH
7912 do
7913   IFS=$as_save_IFS
7914   test -z "$as_dir" && as_dir=.
7915   for ac_exec_ext in '' $ac_executable_extensions; do
7916   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7917     ac_cv_prog_ac_ct_AR="ar"
7918     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7919     break 2
7920   fi
7921 done
7922 done
7923 IFS=$as_save_IFS
7924
7925 fi
7926 fi
7927 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7928 if test -n "$ac_ct_AR"; then
7929   { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7930 $as_echo "$ac_ct_AR" >&6; }
7931 else
7932   { $as_echo "$as_me:$LINENO: result: no" >&5
7933 $as_echo "no" >&6; }
7934 fi
7935
7936   if test "x$ac_ct_AR" = x; then
7937     AR="false"
7938   else
7939     case $cross_compiling:$ac_tool_warned in
7940 yes:)
7941 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7942 whose name does not start with the host triplet.  If you think this
7943 configuration is useful to you, please write to autoconf@gnu.org." >&5
7944 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7945 whose name does not start with the host triplet.  If you think this
7946 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7947 ac_tool_warned=yes ;;
7948 esac
7949     AR=$ac_ct_AR
7950   fi
7951 else
7952   AR="$ac_cv_prog_AR"
7953 fi
7954
7955 if test -n "$ac_tool_prefix"; then
7956   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7957 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7958 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7959 $as_echo_n "checking for $ac_word... " >&6; }
7960 if test "${ac_cv_prog_RANLIB+set}" = set; then
7961   $as_echo_n "(cached) " >&6
7962 else
7963   if test -n "$RANLIB"; then
7964   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7965 else
7966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7967 for as_dir in $PATH
7968 do
7969   IFS=$as_save_IFS
7970   test -z "$as_dir" && as_dir=.
7971   for ac_exec_ext in '' $ac_executable_extensions; do
7972   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7973     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7974     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7975     break 2
7976   fi
7977 done
7978 done
7979 IFS=$as_save_IFS
7980
7981 fi
7982 fi
7983 RANLIB=$ac_cv_prog_RANLIB
7984 if test -n "$RANLIB"; then
7985   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
7986 $as_echo "$RANLIB" >&6; }
7987 else
7988   { $as_echo "$as_me:$LINENO: result: no" >&5
7989 $as_echo "no" >&6; }
7990 fi
7991
7992
7993 fi
7994 if test -z "$ac_cv_prog_RANLIB"; then
7995   ac_ct_RANLIB=$RANLIB
7996   # Extract the first word of "ranlib", so it can be a program name with args.
7997 set dummy ranlib; ac_word=$2
7998 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7999 $as_echo_n "checking for $ac_word... " >&6; }
8000 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8001   $as_echo_n "(cached) " >&6
8002 else
8003   if test -n "$ac_ct_RANLIB"; then
8004   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8005 else
8006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8007 for as_dir in $PATH
8008 do
8009   IFS=$as_save_IFS
8010   test -z "$as_dir" && as_dir=.
8011   for ac_exec_ext in '' $ac_executable_extensions; do
8012   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8013     ac_cv_prog_ac_ct_RANLIB="ranlib"
8014     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8015     break 2
8016   fi
8017 done
8018 done
8019 IFS=$as_save_IFS
8020
8021 fi
8022 fi
8023 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8024 if test -n "$ac_ct_RANLIB"; then
8025   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8026 $as_echo "$ac_ct_RANLIB" >&6; }
8027 else
8028   { $as_echo "$as_me:$LINENO: result: no" >&5
8029 $as_echo "no" >&6; }
8030 fi
8031
8032   if test "x$ac_ct_RANLIB" = x; then
8033     RANLIB=":"
8034   else
8035     case $cross_compiling:$ac_tool_warned in
8036 yes:)
8037 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8038 whose name does not start with the host triplet.  If you think this
8039 configuration is useful to you, please write to autoconf@gnu.org." >&5
8040 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8041 whose name does not start with the host triplet.  If you think this
8042 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8043 ac_tool_warned=yes ;;
8044 esac
8045     RANLIB=$ac_ct_RANLIB
8046   fi
8047 else
8048   RANLIB="$ac_cv_prog_RANLIB"
8049 fi
8050
8051 if test -n "$ac_tool_prefix"; then
8052   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8053 set dummy ${ac_tool_prefix}strip; ac_word=$2
8054 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8055 $as_echo_n "checking for $ac_word... " >&6; }
8056 if test "${ac_cv_prog_STRIP+set}" = set; then
8057   $as_echo_n "(cached) " >&6
8058 else
8059   if test -n "$STRIP"; then
8060   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8061 else
8062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8063 for as_dir in $PATH
8064 do
8065   IFS=$as_save_IFS
8066   test -z "$as_dir" && as_dir=.
8067   for ac_exec_ext in '' $ac_executable_extensions; do
8068   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8069     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8070     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8071     break 2
8072   fi
8073 done
8074 done
8075 IFS=$as_save_IFS
8076
8077 fi
8078 fi
8079 STRIP=$ac_cv_prog_STRIP
8080 if test -n "$STRIP"; then
8081   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
8082 $as_echo "$STRIP" >&6; }
8083 else
8084   { $as_echo "$as_me:$LINENO: result: no" >&5
8085 $as_echo "no" >&6; }
8086 fi
8087
8088
8089 fi
8090 if test -z "$ac_cv_prog_STRIP"; then
8091   ac_ct_STRIP=$STRIP
8092   # Extract the first word of "strip", so it can be a program name with args.
8093 set dummy strip; ac_word=$2
8094 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8095 $as_echo_n "checking for $ac_word... " >&6; }
8096 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8097   $as_echo_n "(cached) " >&6
8098 else
8099   if test -n "$ac_ct_STRIP"; then
8100   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8101 else
8102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8103 for as_dir in $PATH
8104 do
8105   IFS=$as_save_IFS
8106   test -z "$as_dir" && as_dir=.
8107   for ac_exec_ext in '' $ac_executable_extensions; do
8108   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8109     ac_cv_prog_ac_ct_STRIP="strip"
8110     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8111     break 2
8112   fi
8113 done
8114 done
8115 IFS=$as_save_IFS
8116
8117 fi
8118 fi
8119 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8120 if test -n "$ac_ct_STRIP"; then
8121   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8122 $as_echo "$ac_ct_STRIP" >&6; }
8123 else
8124   { $as_echo "$as_me:$LINENO: result: no" >&5
8125 $as_echo "no" >&6; }
8126 fi
8127
8128   if test "x$ac_ct_STRIP" = x; then
8129     STRIP=":"
8130   else
8131     case $cross_compiling:$ac_tool_warned in
8132 yes:)
8133 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8134 whose name does not start with the host triplet.  If you think this
8135 configuration is useful to you, please write to autoconf@gnu.org." >&5
8136 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8137 whose name does not start with the host triplet.  If you think this
8138 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8139 ac_tool_warned=yes ;;
8140 esac
8141     STRIP=$ac_ct_STRIP
8142   fi
8143 else
8144   STRIP="$ac_cv_prog_STRIP"
8145 fi
8146
8147
8148 old_CC="$CC"
8149 old_CFLAGS="$CFLAGS"
8150
8151 # Set sane defaults for various variables
8152 test -z "$AR" && AR=ar
8153 test -z "$AR_FLAGS" && AR_FLAGS=cru
8154 test -z "$AS" && AS=as
8155 test -z "$CC" && CC=cc
8156 test -z "$LTCC" && LTCC=$CC
8157 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8158 test -z "$DLLTOOL" && DLLTOOL=dlltool
8159 test -z "$LD" && LD=ld
8160 test -z "$LN_S" && LN_S="ln -s"
8161 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8162 test -z "$NM" && NM=nm
8163 test -z "$SED" && SED=sed
8164 test -z "$OBJDUMP" && OBJDUMP=objdump
8165 test -z "$RANLIB" && RANLIB=:
8166 test -z "$STRIP" && STRIP=:
8167 test -z "$ac_objext" && ac_objext=o
8168
8169 # Determine commands to create old-style static archives.
8170 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8171 old_postinstall_cmds='chmod 644 $oldlib'
8172 old_postuninstall_cmds=
8173
8174 if test -n "$RANLIB"; then
8175   case $host_os in
8176   openbsd*)
8177     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8178     ;;
8179   *)
8180     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8181     ;;
8182   esac
8183   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8184 fi
8185
8186 for cc_temp in $compiler""; do
8187   case $cc_temp in
8188     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8189     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8190     \-*) ;;
8191     *) break;;
8192   esac
8193 done
8194 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8195
8196
8197 # Only perform the check for file, if the check method requires it
8198 case $deplibs_check_method in
8199 file_magic*)
8200   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8201     { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8202 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8203 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8204   $as_echo_n "(cached) " >&6
8205 else
8206   case $MAGIC_CMD in
8207 [\\/*] |  ?:[\\/]*)
8208   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8209   ;;
8210 *)
8211   lt_save_MAGIC_CMD="$MAGIC_CMD"
8212   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8213   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8214   for ac_dir in $ac_dummy; do
8215     IFS="$lt_save_ifs"
8216     test -z "$ac_dir" && ac_dir=.
8217     if test -f $ac_dir/${ac_tool_prefix}file; then
8218       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8219       if test -n "$file_magic_test_file"; then
8220         case $deplibs_check_method in
8221         "file_magic "*)
8222           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8223           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8224           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8225             $EGREP "$file_magic_regex" > /dev/null; then
8226             :
8227           else
8228             cat <<EOF 1>&2
8229
8230 *** Warning: the command libtool uses to detect shared libraries,
8231 *** $file_magic_cmd, produces output that libtool cannot recognize.
8232 *** The result is that libtool may fail to recognize shared libraries
8233 *** as such.  This will affect the creation of libtool libraries that
8234 *** depend on shared libraries, but programs linked with such libtool
8235 *** libraries will work regardless of this problem.  Nevertheless, you
8236 *** may want to report the problem to your system manager and/or to
8237 *** bug-libtool@gnu.org
8238
8239 EOF
8240           fi ;;
8241         esac
8242       fi
8243       break
8244     fi
8245   done
8246   IFS="$lt_save_ifs"
8247   MAGIC_CMD="$lt_save_MAGIC_CMD"
8248   ;;
8249 esac
8250 fi
8251
8252 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8253 if test -n "$MAGIC_CMD"; then
8254   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8255 $as_echo "$MAGIC_CMD" >&6; }
8256 else
8257   { $as_echo "$as_me:$LINENO: result: no" >&5
8258 $as_echo "no" >&6; }
8259 fi
8260
8261 if test -z "$lt_cv_path_MAGIC_CMD"; then
8262   if test -n "$ac_tool_prefix"; then
8263     { $as_echo "$as_me:$LINENO: checking for file" >&5
8264 $as_echo_n "checking for file... " >&6; }
8265 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8266   $as_echo_n "(cached) " >&6
8267 else
8268   case $MAGIC_CMD in
8269 [\\/*] |  ?:[\\/]*)
8270   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8271   ;;
8272 *)
8273   lt_save_MAGIC_CMD="$MAGIC_CMD"
8274   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8275   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8276   for ac_dir in $ac_dummy; do
8277     IFS="$lt_save_ifs"
8278     test -z "$ac_dir" && ac_dir=.
8279     if test -f $ac_dir/file; then
8280       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8281       if test -n "$file_magic_test_file"; then
8282         case $deplibs_check_method in
8283         "file_magic "*)
8284           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8285           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8286           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8287             $EGREP "$file_magic_regex" > /dev/null; then
8288             :
8289           else
8290             cat <<EOF 1>&2
8291
8292 *** Warning: the command libtool uses to detect shared libraries,
8293 *** $file_magic_cmd, produces output that libtool cannot recognize.
8294 *** The result is that libtool may fail to recognize shared libraries
8295 *** as such.  This will affect the creation of libtool libraries that
8296 *** depend on shared libraries, but programs linked with such libtool
8297 *** libraries will work regardless of this problem.  Nevertheless, you
8298 *** may want to report the problem to your system manager and/or to
8299 *** bug-libtool@gnu.org
8300
8301 EOF
8302           fi ;;
8303         esac
8304       fi
8305       break
8306     fi
8307   done
8308   IFS="$lt_save_ifs"
8309   MAGIC_CMD="$lt_save_MAGIC_CMD"
8310   ;;
8311 esac
8312 fi
8313
8314 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8315 if test -n "$MAGIC_CMD"; then
8316   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8317 $as_echo "$MAGIC_CMD" >&6; }
8318 else
8319   { $as_echo "$as_me:$LINENO: result: no" >&5
8320 $as_echo "no" >&6; }
8321 fi
8322
8323   else
8324     MAGIC_CMD=:
8325   fi
8326 fi
8327
8328   fi
8329   ;;
8330 esac
8331
8332 enable_dlopen=no
8333 enable_win32_dll=no
8334
8335 # Check whether --enable-libtool-lock was given.
8336 if test "${enable_libtool_lock+set}" = set; then
8337   enableval=$enable_libtool_lock;
8338 fi
8339
8340 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8341
8342
8343 # Check whether --with-pic was given.
8344 if test "${with_pic+set}" = set; then
8345   withval=$with_pic; pic_mode="$withval"
8346 else
8347   pic_mode=default
8348 fi
8349
8350 test -z "$pic_mode" && pic_mode=default
8351
8352 # Use C for the default configuration in the libtool script
8353 tagname=
8354 lt_save_CC="$CC"
8355 ac_ext=c
8356 ac_cpp='$CPP $CPPFLAGS'
8357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8360
8361
8362 # Source file extension for C test sources.
8363 ac_ext=c
8364
8365 # Object file extension for compiled C test sources.
8366 objext=o
8367 objext=$objext
8368
8369 # Code to be used in simple compile tests
8370 lt_simple_compile_test_code="int some_variable = 0;\n"
8371
8372 # Code to be used in simple link tests
8373 lt_simple_link_test_code='int main(){return(0);}\n'
8374
8375
8376 # If no C compiler was specified, use CC.
8377 LTCC=${LTCC-"$CC"}
8378
8379 # If no C compiler flags were specified, use CFLAGS.
8380 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8381
8382 # Allow CC to be a program name with arguments.
8383 compiler=$CC
8384
8385
8386 # save warnings/boilerplate of simple test code
8387 ac_outfile=conftest.$ac_objext
8388 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8389 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8390 _lt_compiler_boilerplate=`cat conftest.err`
8391 $rm conftest*
8392
8393 ac_outfile=conftest.$ac_objext
8394 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8395 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8396 _lt_linker_boilerplate=`cat conftest.err`
8397 $rm conftest*
8398
8399
8400
8401 lt_prog_compiler_no_builtin_flag=
8402
8403 if test "$GCC" = yes; then
8404   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8405
8406
8407 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8408 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8409 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8410   $as_echo_n "(cached) " >&6
8411 else
8412   lt_cv_prog_compiler_rtti_exceptions=no
8413   ac_outfile=conftest.$ac_objext
8414    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8415    lt_compiler_flag="-fno-rtti -fno-exceptions"
8416    # Insert the option either (1) after the last *FLAGS variable, or
8417    # (2) before a word containing "conftest.", or (3) at the end.
8418    # Note that $ac_compile itself does not contain backslashes and begins
8419    # with a dollar sign (not a hyphen), so the echo should work correctly.
8420    # The option is referenced via a variable to avoid confusing sed.
8421    lt_compile=`echo "$ac_compile" | $SED \
8422    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8423    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8424    -e 's:$: $lt_compiler_flag:'`
8425    (eval echo "\"\$as_me:8425: $lt_compile\"" >&5)
8426    (eval "$lt_compile" 2>conftest.err)
8427    ac_status=$?
8428    cat conftest.err >&5
8429    echo "$as_me:8429: \$? = $ac_status" >&5
8430    if (exit $ac_status) && test -s "$ac_outfile"; then
8431      # The compiler can only warn and ignore the option if not recognized
8432      # So say no if there are warnings other than the usual output.
8433      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8434      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8435      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8436        lt_cv_prog_compiler_rtti_exceptions=yes
8437      fi
8438    fi
8439    $rm conftest*
8440
8441 fi
8442 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8443 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8444
8445 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8446     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8447 else
8448     :
8449 fi
8450
8451 fi
8452
8453 lt_prog_compiler_wl=
8454 lt_prog_compiler_pic=
8455 lt_prog_compiler_static=
8456
8457 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8458 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8459
8460   if test "$GCC" = yes; then
8461     lt_prog_compiler_wl='-Wl,'
8462     lt_prog_compiler_static='-static'
8463
8464     case $host_os in
8465       aix*)
8466       # All AIX code is PIC.
8467       if test "$host_cpu" = ia64; then
8468         # AIX 5 now supports IA64 processor
8469         lt_prog_compiler_static='-Bstatic'
8470       fi
8471       ;;
8472
8473     amigaos*)
8474       # FIXME: we need at least 68020 code to build shared libraries, but
8475       # adding the `-m68020' flag to GCC prevents building anything better,
8476       # like `-m68040'.
8477       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8478       ;;
8479
8480     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8481       # PIC is the default for these OSes.
8482       ;;
8483
8484     mingw* | pw32* | os2*)
8485       # This hack is so that the source file can tell whether it is being
8486       # built for inclusion in a dll (and should export symbols for example).
8487       lt_prog_compiler_pic='-DDLL_EXPORT'
8488       ;;
8489
8490     darwin* | rhapsody*)
8491       # PIC is the default on this platform
8492       # Common symbols not allowed in MH_DYLIB files
8493       lt_prog_compiler_pic='-fno-common'
8494       ;;
8495
8496     interix3*)
8497       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8498       # Instead, we relocate shared libraries at runtime.
8499       ;;
8500
8501     msdosdjgpp*)
8502       # Just because we use GCC doesn't mean we suddenly get shared libraries
8503       # on systems that don't support them.
8504       lt_prog_compiler_can_build_shared=no
8505       enable_shared=no
8506       ;;
8507
8508     sysv4*MP*)
8509       if test -d /usr/nec; then
8510         lt_prog_compiler_pic=-Kconform_pic
8511       fi
8512       ;;
8513
8514     hpux*)
8515       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8516       # not for PA HP-UX.
8517       case $host_cpu in
8518       hppa*64*|ia64*)
8519         # +Z the default
8520         ;;
8521       *)
8522         lt_prog_compiler_pic='-fPIC'
8523         ;;
8524       esac
8525       ;;
8526
8527     *)
8528       lt_prog_compiler_pic='-fPIC'
8529       ;;
8530     esac
8531   else
8532     # PORTME Check for flag to pass linker flags through the system compiler.
8533     case $host_os in
8534     aix*)
8535       lt_prog_compiler_wl='-Wl,'
8536       if test "$host_cpu" = ia64; then
8537         # AIX 5 now supports IA64 processor
8538         lt_prog_compiler_static='-Bstatic'
8539       else
8540         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8541       fi
8542       ;;
8543       darwin*)
8544         # PIC is the default on this platform
8545         # Common symbols not allowed in MH_DYLIB files
8546        case $cc_basename in
8547          xlc*)
8548          lt_prog_compiler_pic='-qnocommon'
8549          lt_prog_compiler_wl='-Wl,'
8550          ;;
8551        esac
8552        ;;
8553
8554     mingw* | pw32* | os2*)
8555       # This hack is so that the source file can tell whether it is being
8556       # built for inclusion in a dll (and should export symbols for example).
8557       lt_prog_compiler_pic='-DDLL_EXPORT'
8558       ;;
8559
8560     hpux9* | hpux10* | hpux11*)
8561       lt_prog_compiler_wl='-Wl,'
8562       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8563       # not for PA HP-UX.
8564       case $host_cpu in
8565       hppa*64*|ia64*)
8566         # +Z the default
8567         ;;
8568       *)
8569         lt_prog_compiler_pic='+Z'
8570         ;;
8571       esac
8572       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8573       lt_prog_compiler_static='${wl}-a ${wl}archive'
8574       ;;
8575
8576     irix5* | irix6* | nonstopux*)
8577       lt_prog_compiler_wl='-Wl,'
8578       # PIC (with -KPIC) is the default.
8579       lt_prog_compiler_static='-non_shared'
8580       ;;
8581
8582     newsos6)
8583       lt_prog_compiler_pic='-KPIC'
8584       lt_prog_compiler_static='-Bstatic'
8585       ;;
8586
8587     linux*)
8588       case $cc_basename in
8589       icc* | ecc*)
8590         lt_prog_compiler_wl='-Wl,'
8591         lt_prog_compiler_pic='-KPIC'
8592         lt_prog_compiler_static='-static'
8593         ;;
8594       pgcc* | pgf77* | pgf90* | pgf95*)
8595         # Portland Group compilers (*not* the Pentium gcc compiler,
8596         # which looks to be a dead project)
8597         lt_prog_compiler_wl='-Wl,'
8598         lt_prog_compiler_pic='-fpic'
8599         lt_prog_compiler_static='-Bstatic'
8600         ;;
8601       ccc*)
8602         lt_prog_compiler_wl='-Wl,'
8603         # All Alpha code is PIC.
8604         lt_prog_compiler_static='-non_shared'
8605         ;;
8606       esac
8607       ;;
8608
8609     osf3* | osf4* | osf5*)
8610       lt_prog_compiler_wl='-Wl,'
8611       # All OSF/1 code is PIC.
8612       lt_prog_compiler_static='-non_shared'
8613       ;;
8614
8615     solaris*)
8616       lt_prog_compiler_pic='-KPIC'
8617       lt_prog_compiler_static='-Bstatic'
8618       case $cc_basename in
8619       f77* | f90* | f95*)
8620         lt_prog_compiler_wl='-Qoption ld ';;
8621       *)
8622         lt_prog_compiler_wl='-Wl,';;
8623       esac
8624       ;;
8625
8626     sunos4*)
8627       lt_prog_compiler_wl='-Qoption ld '
8628       lt_prog_compiler_pic='-PIC'
8629       lt_prog_compiler_static='-Bstatic'
8630       ;;
8631
8632     sysv4 | sysv4.2uw2* | sysv4.3*)
8633       lt_prog_compiler_wl='-Wl,'
8634       lt_prog_compiler_pic='-KPIC'
8635       lt_prog_compiler_static='-Bstatic'
8636       ;;
8637
8638     sysv4*MP*)
8639       if test -d /usr/nec ;then
8640         lt_prog_compiler_pic='-Kconform_pic'
8641         lt_prog_compiler_static='-Bstatic'
8642       fi
8643       ;;
8644
8645     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8646       lt_prog_compiler_wl='-Wl,'
8647       lt_prog_compiler_pic='-KPIC'
8648       lt_prog_compiler_static='-Bstatic'
8649       ;;
8650
8651     unicos*)
8652       lt_prog_compiler_wl='-Wl,'
8653       lt_prog_compiler_can_build_shared=no
8654       ;;
8655
8656     uts4*)
8657       lt_prog_compiler_pic='-pic'
8658       lt_prog_compiler_static='-Bstatic'
8659       ;;
8660
8661     *)
8662       lt_prog_compiler_can_build_shared=no
8663       ;;
8664     esac
8665   fi
8666
8667 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8668 $as_echo "$lt_prog_compiler_pic" >&6; }
8669
8670 #
8671 # Check to make sure the PIC flag actually works.
8672 #
8673 if test -n "$lt_prog_compiler_pic"; then
8674
8675 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8676 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8677 if test "${lt_prog_compiler_pic_works+set}" = set; then
8678   $as_echo_n "(cached) " >&6
8679 else
8680   lt_prog_compiler_pic_works=no
8681   ac_outfile=conftest.$ac_objext
8682    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8683    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8684    # Insert the option either (1) after the last *FLAGS variable, or
8685    # (2) before a word containing "conftest.", or (3) at the end.
8686    # Note that $ac_compile itself does not contain backslashes and begins
8687    # with a dollar sign (not a hyphen), so the echo should work correctly.
8688    # The option is referenced via a variable to avoid confusing sed.
8689    lt_compile=`echo "$ac_compile" | $SED \
8690    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8691    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8692    -e 's:$: $lt_compiler_flag:'`
8693    (eval echo "\"\$as_me:8693: $lt_compile\"" >&5)
8694    (eval "$lt_compile" 2>conftest.err)
8695    ac_status=$?
8696    cat conftest.err >&5
8697    echo "$as_me:8697: \$? = $ac_status" >&5
8698    if (exit $ac_status) && test -s "$ac_outfile"; then
8699      # The compiler can only warn and ignore the option if not recognized
8700      # So say no if there are warnings other than the usual output.
8701      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8702      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8703      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8704        lt_prog_compiler_pic_works=yes
8705      fi
8706    fi
8707    $rm conftest*
8708
8709 fi
8710 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8711 $as_echo "$lt_prog_compiler_pic_works" >&6; }
8712
8713 if test x"$lt_prog_compiler_pic_works" = xyes; then
8714     case $lt_prog_compiler_pic in
8715      "" | " "*) ;;
8716      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8717      esac
8718 else
8719     lt_prog_compiler_pic=
8720      lt_prog_compiler_can_build_shared=no
8721 fi
8722
8723 fi
8724 case $host_os in
8725   # For platforms which do not support PIC, -DPIC is meaningless:
8726   *djgpp*)
8727     lt_prog_compiler_pic=
8728     ;;
8729   *)
8730     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8731     ;;
8732 esac
8733
8734 #
8735 # Check to make sure the static flag actually works.
8736 #
8737 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8738 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8739 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8740 if test "${lt_prog_compiler_static_works+set}" = set; then
8741   $as_echo_n "(cached) " >&6
8742 else
8743   lt_prog_compiler_static_works=no
8744    save_LDFLAGS="$LDFLAGS"
8745    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8746    printf "$lt_simple_link_test_code" > conftest.$ac_ext
8747    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8748      # The linker can only warn and ignore the option if not recognized
8749      # So say no if there are warnings
8750      if test -s conftest.err; then
8751        # Append any errors to the config.log.
8752        cat conftest.err 1>&5
8753        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8754        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8755        if diff conftest.exp conftest.er2 >/dev/null; then
8756          lt_prog_compiler_static_works=yes
8757        fi
8758      else
8759        lt_prog_compiler_static_works=yes
8760      fi
8761    fi
8762    $rm conftest*
8763    LDFLAGS="$save_LDFLAGS"
8764
8765 fi
8766 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8767 $as_echo "$lt_prog_compiler_static_works" >&6; }
8768
8769 if test x"$lt_prog_compiler_static_works" = xyes; then
8770     :
8771 else
8772     lt_prog_compiler_static=
8773 fi
8774
8775
8776 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8777 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8778 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8779   $as_echo_n "(cached) " >&6
8780 else
8781   lt_cv_prog_compiler_c_o=no
8782    $rm -r conftest 2>/dev/null
8783    mkdir conftest
8784    cd conftest
8785    mkdir out
8786    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8787
8788    lt_compiler_flag="-o out/conftest2.$ac_objext"
8789    # Insert the option either (1) after the last *FLAGS variable, or
8790    # (2) before a word containing "conftest.", or (3) at the end.
8791    # Note that $ac_compile itself does not contain backslashes and begins
8792    # with a dollar sign (not a hyphen), so the echo should work correctly.
8793    lt_compile=`echo "$ac_compile" | $SED \
8794    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8795    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8796    -e 's:$: $lt_compiler_flag:'`
8797    (eval echo "\"\$as_me:8797: $lt_compile\"" >&5)
8798    (eval "$lt_compile" 2>out/conftest.err)
8799    ac_status=$?
8800    cat out/conftest.err >&5
8801    echo "$as_me:8801: \$? = $ac_status" >&5
8802    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8803    then
8804      # The compiler can only warn and ignore the option if not recognized
8805      # So say no if there are warnings
8806      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8807      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8808      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8809        lt_cv_prog_compiler_c_o=yes
8810      fi
8811    fi
8812    chmod u+w . 2>&5
8813    $rm conftest*
8814    # SGI C++ compiler will create directory out/ii_files/ for
8815    # template instantiation
8816    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8817    $rm out/* && rmdir out
8818    cd ..
8819    rmdir conftest
8820    $rm conftest*
8821
8822 fi
8823 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8824 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8825
8826
8827 hard_links="nottested"
8828 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8829   # do not overwrite the value of need_locks provided by the user
8830   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8831 $as_echo_n "checking if we can lock with hard links... " >&6; }
8832   hard_links=yes
8833   $rm conftest*
8834   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8835   touch conftest.a
8836   ln conftest.a conftest.b 2>&5 || hard_links=no
8837   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8838   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8839 $as_echo "$hard_links" >&6; }
8840   if test "$hard_links" = no; then
8841     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8842 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8843     need_locks=warn
8844   fi
8845 else
8846   need_locks=no
8847 fi
8848
8849 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8850 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8851
8852   runpath_var=
8853   allow_undefined_flag=
8854   enable_shared_with_static_runtimes=no
8855   archive_cmds=
8856   archive_expsym_cmds=
8857   old_archive_From_new_cmds=
8858   old_archive_from_expsyms_cmds=
8859   export_dynamic_flag_spec=
8860   whole_archive_flag_spec=
8861   thread_safe_flag_spec=
8862   hardcode_libdir_flag_spec=
8863   hardcode_libdir_flag_spec_ld=
8864   hardcode_libdir_separator=
8865   hardcode_direct=no
8866   hardcode_minus_L=no
8867   hardcode_shlibpath_var=unsupported
8868   link_all_deplibs=unknown
8869   hardcode_automatic=no
8870   module_cmds=
8871   module_expsym_cmds=
8872   always_export_symbols=no
8873   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8874   # include_expsyms should be a list of space-separated symbols to be *always*
8875   # included in the symbol list
8876   include_expsyms=
8877   # exclude_expsyms can be an extended regexp of symbols to exclude
8878   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8879   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8880   # as well as any symbol that contains `d'.
8881   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8882   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8883   # platforms (ab)use it in PIC code, but their linkers get confused if
8884   # the symbol is explicitly referenced.  Since portable code cannot
8885   # rely on this symbol name, it's probably fine to never include it in
8886   # preloaded symbol tables.
8887   extract_expsyms_cmds=
8888   # Just being paranoid about ensuring that cc_basename is set.
8889   for cc_temp in $compiler""; do
8890   case $cc_temp in
8891     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8892     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8893     \-*) ;;
8894     *) break;;
8895   esac
8896 done
8897 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8898
8899   case $host_os in
8900   cygwin* | mingw* | pw32*)
8901     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8902     # When not using gcc, we currently assume that we are using
8903     # Microsoft Visual C++.
8904     if test "$GCC" != yes; then
8905       with_gnu_ld=no
8906     fi
8907     ;;
8908   interix*)
8909     # we just hope/assume this is gcc and not c89 (= MSVC++)
8910     with_gnu_ld=yes
8911     ;;
8912   openbsd*)
8913     with_gnu_ld=no
8914     ;;
8915   esac
8916
8917   ld_shlibs=yes
8918   if test "$with_gnu_ld" = yes; then
8919     # If archive_cmds runs LD, not CC, wlarc should be empty
8920     wlarc='${wl}'
8921
8922     # Set some defaults for GNU ld with shared library support. These
8923     # are reset later if shared libraries are not supported. Putting them
8924     # here allows them to be overridden if necessary.
8925     runpath_var=LD_RUN_PATH
8926     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8927     export_dynamic_flag_spec='${wl}--export-dynamic'
8928     # ancient GNU ld didn't support --whole-archive et. al.
8929     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8930         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8931       else
8932         whole_archive_flag_spec=
8933     fi
8934     supports_anon_versioning=no
8935     case `$LD -v 2>/dev/null` in
8936       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8937       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8938       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8939       *\ 2.11.*) ;; # other 2.11 versions
8940       *) supports_anon_versioning=yes ;;
8941     esac
8942
8943     # See if GNU ld supports shared libraries.
8944     case $host_os in
8945     aix3* | aix4* | aix5*)
8946       # On AIX/PPC, the GNU linker is very broken
8947       if test "$host_cpu" != ia64; then
8948         ld_shlibs=no
8949         cat <<EOF 1>&2
8950
8951 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8952 *** to be unable to reliably create shared libraries on AIX.
8953 *** Therefore, libtool is disabling shared libraries support.  If you
8954 *** really care for shared libraries, you may want to modify your PATH
8955 *** so that a non-GNU linker is found, and then restart.
8956
8957 EOF
8958       fi
8959       ;;
8960
8961     amigaos*)
8962       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)'
8963       hardcode_libdir_flag_spec='-L$libdir'
8964       hardcode_minus_L=yes
8965
8966       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8967       # that the semantics of dynamic libraries on AmigaOS, at least up
8968       # to version 4, is to share data among multiple programs linked
8969       # with the same dynamic library.  Since this doesn't match the
8970       # behavior of shared libraries on other platforms, we can't use
8971       # them.
8972       ld_shlibs=no
8973       ;;
8974
8975     beos*)
8976       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8977         allow_undefined_flag=unsupported
8978         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8979         # support --undefined.  This deserves some investigation.  FIXME
8980         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8981       else
8982         ld_shlibs=no
8983       fi
8984       ;;
8985
8986     cygwin* | mingw* | pw32*)
8987       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8988       # as there is no search path for DLLs.
8989       hardcode_libdir_flag_spec='-L$libdir'
8990       allow_undefined_flag=unsupported
8991       always_export_symbols=no
8992       enable_shared_with_static_runtimes=yes
8993       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8994
8995       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8996         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8997         # If the export-symbols file already is a .def file (1st line
8998         # is EXPORTS), use it as is; otherwise, prepend...
8999         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9000           cp $export_symbols $output_objdir/$soname.def;
9001         else
9002           echo EXPORTS > $output_objdir/$soname.def;
9003           cat $export_symbols >> $output_objdir/$soname.def;
9004         fi~
9005         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9006       else
9007         ld_shlibs=no
9008       fi
9009       ;;
9010
9011     interix3*)
9012       hardcode_direct=no
9013       hardcode_shlibpath_var=no
9014       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9015       export_dynamic_flag_spec='${wl}-E'
9016       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9017       # Instead, shared libraries are loaded at an image base (0x10000000 by
9018       # default) and relocated if they conflict, which is a slow very memory
9019       # consuming and fragmenting process.  To avoid this, we pick a random,
9020       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9021       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9022       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9023       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'
9024       ;;
9025
9026     linux*)
9027       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9028         tmp_addflag=
9029         case $cc_basename,$host_cpu in
9030         pgcc*)                          # Portland Group C compiler
9031           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'
9032           tmp_addflag=' $pic_flag'
9033           ;;
9034         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9035           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'
9036           tmp_addflag=' $pic_flag -Mnomain' ;;
9037         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9038           tmp_addflag=' -i_dynamic' ;;
9039         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9040           tmp_addflag=' -i_dynamic -nofor_main' ;;
9041         ifc* | ifort*)                  # Intel Fortran compiler
9042           tmp_addflag=' -nofor_main' ;;
9043         esac
9044         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9045
9046         if test $supports_anon_versioning = yes; then
9047           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9048   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9049   $echo "local: *; };" >> $output_objdir/$libname.ver~
9050           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9051         fi
9052       else
9053         ld_shlibs=no
9054       fi
9055       ;;
9056
9057     netbsd*)
9058       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9059         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9060         wlarc=
9061       else
9062         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9063         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9064       fi
9065       ;;
9066
9067     solaris*)
9068       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9069         ld_shlibs=no
9070         cat <<EOF 1>&2
9071
9072 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9073 *** create shared libraries on Solaris systems.  Therefore, libtool
9074 *** is disabling shared libraries support.  We urge you to upgrade GNU
9075 *** binutils to release 2.9.1 or newer.  Another option is to modify
9076 *** your PATH or compiler configuration so that the native linker is
9077 *** used, and then restart.
9078
9079 EOF
9080       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9081         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9082         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9083       else
9084         ld_shlibs=no
9085       fi
9086       ;;
9087
9088     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9089       case `$LD -v 2>&1` in
9090         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9091         ld_shlibs=no
9092         cat <<_LT_EOF 1>&2
9093
9094 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9095 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9096 *** is disabling shared libraries support.  We urge you to upgrade GNU
9097 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9098 *** your PATH or compiler configuration so that the native linker is
9099 *** used, and then restart.
9100
9101 _LT_EOF
9102         ;;
9103         *)
9104           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9105             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9106             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9107             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9108           else
9109             ld_shlibs=no
9110           fi
9111         ;;
9112       esac
9113       ;;
9114
9115     sunos4*)
9116       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9117       wlarc=
9118       hardcode_direct=yes
9119       hardcode_shlibpath_var=no
9120       ;;
9121
9122     *)
9123       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9124         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9125         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9126       else
9127         ld_shlibs=no
9128       fi
9129       ;;
9130     esac
9131
9132     if test "$ld_shlibs" = no; then
9133       runpath_var=
9134       hardcode_libdir_flag_spec=
9135       export_dynamic_flag_spec=
9136       whole_archive_flag_spec=
9137     fi
9138   else
9139     # PORTME fill in a description of your system's linker (not GNU ld)
9140     case $host_os in
9141     aix3*)
9142       allow_undefined_flag=unsupported
9143       always_export_symbols=yes
9144       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'
9145       # Note: this linker hardcodes the directories in LIBPATH if there
9146       # are no directories specified by -L.
9147       hardcode_minus_L=yes
9148       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9149         # Neither direct hardcoding nor static linking is supported with a
9150         # broken collect2.
9151         hardcode_direct=unsupported
9152       fi
9153       ;;
9154
9155     aix4* | aix5*)
9156       if test "$host_cpu" = ia64; then
9157         # On IA64, the linker does run time linking by default, so we don't
9158         # have to do anything special.
9159         aix_use_runtimelinking=no
9160         exp_sym_flag='-Bexport'
9161         no_entry_flag=""
9162       else
9163         # If we're using GNU nm, then we don't want the "-C" option.
9164         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9165         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9166           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'
9167         else
9168           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'
9169         fi
9170         aix_use_runtimelinking=no
9171
9172         # Test if we are trying to use run time linking or normal
9173         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9174         # need to do runtime linking.
9175         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9176           for ld_flag in $LDFLAGS; do
9177           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9178             aix_use_runtimelinking=yes
9179             break
9180           fi
9181           done
9182           ;;
9183         esac
9184
9185         exp_sym_flag='-bexport'
9186         no_entry_flag='-bnoentry'
9187       fi
9188
9189       # When large executables or shared objects are built, AIX ld can
9190       # have problems creating the table of contents.  If linking a library
9191       # or program results in "error TOC overflow" add -mminimal-toc to
9192       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9193       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9194
9195       archive_cmds=''
9196       hardcode_direct=yes
9197       hardcode_libdir_separator=':'
9198       link_all_deplibs=yes
9199
9200       if test "$GCC" = yes; then
9201         case $host_os in aix4.[012]|aix4.[012].*)
9202         # We only want to do this on AIX 4.2 and lower, the check
9203         # below for broken collect2 doesn't work under 4.3+
9204           collect2name=`${CC} -print-prog-name=collect2`
9205           if test -f "$collect2name" && \
9206            strings "$collect2name" | grep resolve_lib_name >/dev/null
9207           then
9208           # We have reworked collect2
9209           hardcode_direct=yes
9210           else
9211           # We have old collect2
9212           hardcode_direct=unsupported
9213           # It fails to find uninstalled libraries when the uninstalled
9214           # path is not listed in the libpath.  Setting hardcode_minus_L
9215           # to unsupported forces relinking
9216           hardcode_minus_L=yes
9217           hardcode_libdir_flag_spec='-L$libdir'
9218           hardcode_libdir_separator=
9219           fi
9220           ;;
9221         esac
9222         shared_flag='-shared'
9223         if test "$aix_use_runtimelinking" = yes; then
9224           shared_flag="$shared_flag "'${wl}-G'
9225         fi
9226       else
9227         # not using gcc
9228         if test "$host_cpu" = ia64; then
9229         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9230         # chokes on -Wl,-G. The following line is correct:
9231           shared_flag='-G'
9232         else
9233           if test "$aix_use_runtimelinking" = yes; then
9234             shared_flag='${wl}-G'
9235           else
9236             shared_flag='${wl}-bM:SRE'
9237           fi
9238         fi
9239       fi
9240
9241       # It seems that -bexpall does not export symbols beginning with
9242       # underscore (_), so it is better to generate a list of symbols to export.
9243       always_export_symbols=yes
9244       if test "$aix_use_runtimelinking" = yes; then
9245         # Warning - without using the other runtime loading flags (-brtl),
9246         # -berok will link without error, but may produce a broken library.
9247         allow_undefined_flag='-berok'
9248        # Determine the default libpath from the value encoded in an empty executable.
9249        cat >conftest.$ac_ext <<_ACEOF
9250 /* confdefs.h.  */
9251 _ACEOF
9252 cat confdefs.h >>conftest.$ac_ext
9253 cat >>conftest.$ac_ext <<_ACEOF
9254 /* end confdefs.h.  */
9255
9256 int
9257 main ()
9258 {
9259
9260   ;
9261   return 0;
9262 }
9263 _ACEOF
9264 rm -f conftest.$ac_objext conftest$ac_exeext
9265 if { (ac_try="$ac_link"
9266 case "(($ac_try" in
9267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9268   *) ac_try_echo=$ac_try;;
9269 esac
9270 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9271 $as_echo "$ac_try_echo") >&5
9272   (eval "$ac_link") 2>conftest.er1
9273   ac_status=$?
9274   grep -v '^ *+' conftest.er1 >conftest.err
9275   rm -f conftest.er1
9276   cat conftest.err >&5
9277   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9278   (exit $ac_status); } && {
9279          test -z "$ac_c_werror_flag" ||
9280          test ! -s conftest.err
9281        } && test -s conftest$ac_exeext && {
9282          test "$cross_compiling" = yes ||
9283          $as_test_x conftest$ac_exeext
9284        }; then
9285
9286 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9287 }'`
9288 # Check for a 64-bit object if we didn't find anything.
9289 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9290 }'`; fi
9291 else
9292   $as_echo "$as_me: failed program was:" >&5
9293 sed 's/^/| /' conftest.$ac_ext >&5
9294
9295
9296 fi
9297
9298 rm -rf conftest.dSYM
9299 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9300       conftest$ac_exeext conftest.$ac_ext
9301 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9302
9303        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9304         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"
9305        else
9306         if test "$host_cpu" = ia64; then
9307           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9308           allow_undefined_flag="-z nodefs"
9309           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"
9310         else
9311          # Determine the default libpath from the value encoded in an empty executable.
9312          cat >conftest.$ac_ext <<_ACEOF
9313 /* confdefs.h.  */
9314 _ACEOF
9315 cat confdefs.h >>conftest.$ac_ext
9316 cat >>conftest.$ac_ext <<_ACEOF
9317 /* end confdefs.h.  */
9318
9319 int
9320 main ()
9321 {
9322
9323   ;
9324   return 0;
9325 }
9326 _ACEOF
9327 rm -f conftest.$ac_objext conftest$ac_exeext
9328 if { (ac_try="$ac_link"
9329 case "(($ac_try" in
9330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9331   *) ac_try_echo=$ac_try;;
9332 esac
9333 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9334 $as_echo "$ac_try_echo") >&5
9335   (eval "$ac_link") 2>conftest.er1
9336   ac_status=$?
9337   grep -v '^ *+' conftest.er1 >conftest.err
9338   rm -f conftest.er1
9339   cat conftest.err >&5
9340   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9341   (exit $ac_status); } && {
9342          test -z "$ac_c_werror_flag" ||
9343          test ! -s conftest.err
9344        } && test -s conftest$ac_exeext && {
9345          test "$cross_compiling" = yes ||
9346          $as_test_x conftest$ac_exeext
9347        }; then
9348
9349 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9350 }'`
9351 # Check for a 64-bit object if we didn't find anything.
9352 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9353 }'`; fi
9354 else
9355   $as_echo "$as_me: failed program was:" >&5
9356 sed 's/^/| /' conftest.$ac_ext >&5
9357
9358
9359 fi
9360
9361 rm -rf conftest.dSYM
9362 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9363       conftest$ac_exeext conftest.$ac_ext
9364 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9365
9366          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9367           # Warning - without using the other run time loading flags,
9368           # -berok will link without error, but may produce a broken library.
9369           no_undefined_flag=' ${wl}-bernotok'
9370           allow_undefined_flag=' ${wl}-berok'
9371           # Exported symbols can be pulled into shared objects from archives
9372           whole_archive_flag_spec='$convenience'
9373           archive_cmds_need_lc=yes
9374           # This is similar to how AIX traditionally builds its shared libraries.
9375           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'
9376         fi
9377       fi
9378       ;;
9379
9380     amigaos*)
9381       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)'
9382       hardcode_libdir_flag_spec='-L$libdir'
9383       hardcode_minus_L=yes
9384       # see comment about different semantics on the GNU ld section
9385       ld_shlibs=no
9386       ;;
9387
9388     bsdi[45]*)
9389       export_dynamic_flag_spec=-rdynamic
9390       ;;
9391
9392     cygwin* | mingw* | pw32*)
9393       # When not using gcc, we currently assume that we are using
9394       # Microsoft Visual C++.
9395       # hardcode_libdir_flag_spec is actually meaningless, as there is
9396       # no search path for DLLs.
9397       hardcode_libdir_flag_spec=' '
9398       allow_undefined_flag=unsupported
9399       # Tell ltmain to make .lib files, not .a files.
9400       libext=lib
9401       # Tell ltmain to make .dll files, not .so files.
9402       shrext_cmds=".dll"
9403       # FIXME: Setting linknames here is a bad hack.
9404       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9405       # The linker will automatically build a .lib file if we build a DLL.
9406       old_archive_From_new_cmds='true'
9407       # FIXME: Should let the user specify the lib program.
9408       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9409       fix_srcfile_path='`cygpath -w "$srcfile"`'
9410       enable_shared_with_static_runtimes=yes
9411       ;;
9412
9413     darwin* | rhapsody*)
9414       case $host_os in
9415         rhapsody* | darwin1.[012])
9416          allow_undefined_flag='${wl}-undefined ${wl}suppress'
9417          ;;
9418        *) # Darwin 1.3 on
9419          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9420            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9421          else
9422            case ${MACOSX_DEPLOYMENT_TARGET} in
9423              10.[012])
9424                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9425                ;;
9426              10.*)
9427                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9428                ;;
9429            esac
9430          fi
9431          ;;
9432       esac
9433       archive_cmds_need_lc=no
9434       hardcode_direct=no
9435       hardcode_automatic=yes
9436       hardcode_shlibpath_var=unsupported
9437       whole_archive_flag_spec=''
9438       link_all_deplibs=yes
9439     if test "$GCC" = yes ; then
9440         output_verbose_link_cmd='echo'
9441         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9442       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9443       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9444       archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9445       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}'
9446     else
9447       case $cc_basename in
9448         xlc*)
9449          output_verbose_link_cmd='echo'
9450          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9451          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9452           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9453          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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9454           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}'
9455           ;;
9456        *)
9457          ld_shlibs=no
9458           ;;
9459       esac
9460     fi
9461       ;;
9462
9463     dgux*)
9464       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9465       hardcode_libdir_flag_spec='-L$libdir'
9466       hardcode_shlibpath_var=no
9467       ;;
9468
9469     freebsd1*)
9470       ld_shlibs=no
9471       ;;
9472
9473     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9474     # support.  Future versions do this automatically, but an explicit c++rt0.o
9475     # does not break anything, and helps significantly (at the cost of a little
9476     # extra space).
9477     freebsd2.2*)
9478       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9479       hardcode_libdir_flag_spec='-R$libdir'
9480       hardcode_direct=yes
9481       hardcode_shlibpath_var=no
9482       ;;
9483
9484     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9485     freebsd2*)
9486       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9487       hardcode_direct=yes
9488       hardcode_minus_L=yes
9489       hardcode_shlibpath_var=no
9490       ;;
9491
9492     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9493     freebsd* | kfreebsd*-gnu | dragonfly*)
9494       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9495       hardcode_libdir_flag_spec='-R$libdir'
9496       hardcode_direct=yes
9497       hardcode_shlibpath_var=no
9498       ;;
9499
9500     hpux9*)
9501       if test "$GCC" = yes; then
9502         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'
9503       else
9504         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'
9505       fi
9506       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9507       hardcode_libdir_separator=:
9508       hardcode_direct=yes
9509
9510       # hardcode_minus_L: Not really in the search PATH,
9511       # but as the default location of the library.
9512       hardcode_minus_L=yes
9513       export_dynamic_flag_spec='${wl}-E'
9514       ;;
9515
9516     hpux10*)
9517       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9518         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9519       else
9520         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9521       fi
9522       if test "$with_gnu_ld" = no; then
9523         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9524         hardcode_libdir_separator=:
9525
9526         hardcode_direct=yes
9527         export_dynamic_flag_spec='${wl}-E'
9528
9529         # hardcode_minus_L: Not really in the search PATH,
9530         # but as the default location of the library.
9531         hardcode_minus_L=yes
9532       fi
9533       ;;
9534
9535     hpux11*)
9536       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9537         case $host_cpu in
9538         hppa*64*)
9539           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9540           ;;
9541         ia64*)
9542           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9543           ;;
9544         *)
9545           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9546           ;;
9547         esac
9548       else
9549         case $host_cpu in
9550         hppa*64*)
9551           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9552           ;;
9553         ia64*)
9554           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9555           ;;
9556         *)
9557           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9558           ;;
9559         esac
9560       fi
9561       if test "$with_gnu_ld" = no; then
9562         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9563         hardcode_libdir_separator=:
9564
9565         case $host_cpu in
9566         hppa*64*|ia64*)
9567           hardcode_libdir_flag_spec_ld='+b $libdir'
9568           hardcode_direct=no
9569           hardcode_shlibpath_var=no
9570           ;;
9571         *)
9572           hardcode_direct=yes
9573           export_dynamic_flag_spec='${wl}-E'
9574
9575           # hardcode_minus_L: Not really in the search PATH,
9576           # but as the default location of the library.
9577           hardcode_minus_L=yes
9578           ;;
9579         esac
9580       fi
9581       ;;
9582
9583     irix5* | irix6* | nonstopux*)
9584       if test "$GCC" = yes; then
9585         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'
9586       else
9587         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'
9588         hardcode_libdir_flag_spec_ld='-rpath $libdir'
9589       fi
9590       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9591       hardcode_libdir_separator=:
9592       link_all_deplibs=yes
9593       ;;
9594
9595     netbsd*)
9596       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9597         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9598       else
9599         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9600       fi
9601       hardcode_libdir_flag_spec='-R$libdir'
9602       hardcode_direct=yes
9603       hardcode_shlibpath_var=no
9604       ;;
9605
9606     newsos6)
9607       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9608       hardcode_direct=yes
9609       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9610       hardcode_libdir_separator=:
9611       hardcode_shlibpath_var=no
9612       ;;
9613
9614     openbsd*)
9615       hardcode_direct=yes
9616       hardcode_shlibpath_var=no
9617       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9618         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9619         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9620         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9621         export_dynamic_flag_spec='${wl}-E'
9622       else
9623        case $host_os in
9624          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9625            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9626            hardcode_libdir_flag_spec='-R$libdir'
9627            ;;
9628          *)
9629            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9630            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9631            ;;
9632        esac
9633       fi
9634       ;;
9635
9636     os2*)
9637       hardcode_libdir_flag_spec='-L$libdir'
9638       hardcode_minus_L=yes
9639       allow_undefined_flag=unsupported
9640       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'
9641       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9642       ;;
9643
9644     osf3*)
9645       if test "$GCC" = yes; then
9646         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9647         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'
9648       else
9649         allow_undefined_flag=' -expect_unresolved \*'
9650         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'
9651       fi
9652       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9653       hardcode_libdir_separator=:
9654       ;;
9655
9656     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9657       if test "$GCC" = yes; then
9658         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9659         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'
9660         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9661       else
9662         allow_undefined_flag=' -expect_unresolved \*'
9663         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'
9664         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9665         $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'
9666
9667         # Both c and cxx compiler support -rpath directly
9668         hardcode_libdir_flag_spec='-rpath $libdir'
9669       fi
9670       hardcode_libdir_separator=:
9671       ;;
9672
9673     solaris*)
9674       no_undefined_flag=' -z text'
9675       if test "$GCC" = yes; then
9676         wlarc='${wl}'
9677         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9678         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9679           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9680       else
9681         wlarc=''
9682         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9683         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9684         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9685       fi
9686       hardcode_libdir_flag_spec='-R$libdir'
9687       hardcode_shlibpath_var=no
9688       case $host_os in
9689       solaris2.[0-5] | solaris2.[0-5].*) ;;
9690       *)
9691         # The compiler driver will combine linker options so we
9692         # cannot just pass the convience library names through
9693         # without $wl, iff we do not link with $LD.
9694         # Luckily, gcc supports the same syntax we need for Sun Studio.
9695         # Supported since Solaris 2.6 (maybe 2.5.1?)
9696         case $wlarc in
9697         '')
9698           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9699         *)
9700           whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
9701         esac ;;
9702       esac
9703       link_all_deplibs=yes
9704       ;;
9705
9706     sunos4*)
9707       if test "x$host_vendor" = xsequent; then
9708         # Use $CC to link under sequent, because it throws in some extra .o
9709         # files that make .init and .fini sections work.
9710         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9711       else
9712         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9713       fi
9714       hardcode_libdir_flag_spec='-L$libdir'
9715       hardcode_direct=yes
9716       hardcode_minus_L=yes
9717       hardcode_shlibpath_var=no
9718       ;;
9719
9720     sysv4)
9721       case $host_vendor in
9722         sni)
9723           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9724           hardcode_direct=yes # is this really true???
9725         ;;
9726         siemens)
9727           ## LD is ld it makes a PLAMLIB
9728           ## CC just makes a GrossModule.
9729           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9730           reload_cmds='$CC -r -o $output$reload_objs'
9731           hardcode_direct=no
9732         ;;
9733         motorola)
9734           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9735           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9736         ;;
9737       esac
9738       runpath_var='LD_RUN_PATH'
9739       hardcode_shlibpath_var=no
9740       ;;
9741
9742     sysv4.3*)
9743       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9744       hardcode_shlibpath_var=no
9745       export_dynamic_flag_spec='-Bexport'
9746       ;;
9747
9748     sysv4*MP*)
9749       if test -d /usr/nec; then
9750         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9751         hardcode_shlibpath_var=no
9752         runpath_var=LD_RUN_PATH
9753         hardcode_runpath_var=yes
9754         ld_shlibs=yes
9755       fi
9756       ;;
9757
9758     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9759       no_undefined_flag='${wl}-z,text'
9760       archive_cmds_need_lc=no
9761       hardcode_shlibpath_var=no
9762       runpath_var='LD_RUN_PATH'
9763
9764       if test "$GCC" = yes; then
9765         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9766         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9767       else
9768         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9769         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9770       fi
9771       ;;
9772
9773     sysv5* | sco3.2v5* | sco5v6*)
9774       # Note: We can NOT use -z defs as we might desire, because we do not
9775       # link with -lc, and that would cause any symbols used from libc to
9776       # always be unresolved, which means just about no library would
9777       # ever link correctly.  If we're not using GNU ld we use -z text
9778       # though, which does catch some bad symbols but isn't as heavy-handed
9779       # as -z defs.
9780       no_undefined_flag='${wl}-z,text'
9781       allow_undefined_flag='${wl}-z,nodefs'
9782       archive_cmds_need_lc=no
9783       hardcode_shlibpath_var=no
9784       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9785       hardcode_libdir_separator=':'
9786       link_all_deplibs=yes
9787       export_dynamic_flag_spec='${wl}-Bexport'
9788       runpath_var='LD_RUN_PATH'
9789
9790       if test "$GCC" = yes; then
9791         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9792         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9793       else
9794         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9795         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9796       fi
9797       ;;
9798
9799     uts4*)
9800       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9801       hardcode_libdir_flag_spec='-L$libdir'
9802       hardcode_shlibpath_var=no
9803       ;;
9804
9805     *)
9806       ld_shlibs=no
9807       ;;
9808     esac
9809   fi
9810
9811 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9812 $as_echo "$ld_shlibs" >&6; }
9813 test "$ld_shlibs" = no && can_build_shared=no
9814
9815 #
9816 # Do we need to explicitly link libc?
9817 #
9818 case "x$archive_cmds_need_lc" in
9819 x|xyes)
9820   # Assume -lc should be added
9821   archive_cmds_need_lc=yes
9822
9823   if test "$enable_shared" = yes && test "$GCC" = yes; then
9824     case $archive_cmds in
9825     *'~'*)
9826       # FIXME: we may have to deal with multi-command sequences.
9827       ;;
9828     '$CC '*)
9829       # Test whether the compiler implicitly links with -lc since on some
9830       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9831       # to ld, don't add -lc before -lgcc.
9832       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9833 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9834       $rm conftest*
9835       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9836
9837       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9838   (eval $ac_compile) 2>&5
9839   ac_status=$?
9840   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9841   (exit $ac_status); } 2>conftest.err; then
9842         soname=conftest
9843         lib=conftest
9844         libobjs=conftest.$ac_objext
9845         deplibs=
9846         wl=$lt_prog_compiler_wl
9847         pic_flag=$lt_prog_compiler_pic
9848         compiler_flags=-v
9849         linker_flags=-v
9850         verstring=
9851         output_objdir=.
9852         libname=conftest
9853         lt_save_allow_undefined_flag=$allow_undefined_flag
9854         allow_undefined_flag=
9855         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9856   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9857   ac_status=$?
9858   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9859   (exit $ac_status); }
9860         then
9861           archive_cmds_need_lc=no
9862         else
9863           archive_cmds_need_lc=yes
9864         fi
9865         allow_undefined_flag=$lt_save_allow_undefined_flag
9866       else
9867         cat conftest.err 1>&5
9868       fi
9869       $rm conftest*
9870       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9871 $as_echo "$archive_cmds_need_lc" >&6; }
9872       ;;
9873     esac
9874   fi
9875   ;;
9876 esac
9877
9878 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9879 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9880 library_names_spec=
9881 libname_spec='lib$name'
9882 soname_spec=
9883 shrext_cmds=".so"
9884 postinstall_cmds=
9885 postuninstall_cmds=
9886 finish_cmds=
9887 finish_eval=
9888 shlibpath_var=
9889 shlibpath_overrides_runpath=unknown
9890 version_type=none
9891 dynamic_linker="$host_os ld.so"
9892 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9893 if test "$GCC" = yes; then
9894   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9895   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9896     # if the path contains ";" then we assume it to be the separator
9897     # otherwise default to the standard path separator (i.e. ":") - it is
9898     # assumed that no part of a normal pathname contains ";" but that should
9899     # okay in the real world where ";" in dirpaths is itself problematic.
9900     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9901   else
9902     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9903   fi
9904 else
9905   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9906 fi
9907 need_lib_prefix=unknown
9908 hardcode_into_libs=no
9909
9910 # when you set need_version to no, make sure it does not cause -set_version
9911 # flags to be left without arguments
9912 need_version=unknown
9913
9914 case $host_os in
9915 aix3*)
9916   version_type=linux
9917   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9918   shlibpath_var=LIBPATH
9919
9920   # AIX 3 has no versioning support, so we append a major version to the name.
9921   soname_spec='${libname}${release}${shared_ext}$major'
9922   ;;
9923
9924 aix4* | aix5*)
9925   version_type=linux
9926   need_lib_prefix=no
9927   need_version=no
9928   hardcode_into_libs=yes
9929   if test "$host_cpu" = ia64; then
9930     # AIX 5 supports IA64
9931     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9932     shlibpath_var=LD_LIBRARY_PATH
9933   else
9934     # With GCC up to 2.95.x, collect2 would create an import file
9935     # for dependence libraries.  The import file would start with
9936     # the line `#! .'.  This would cause the generated library to
9937     # depend on `.', always an invalid library.  This was fixed in
9938     # development snapshots of GCC prior to 3.0.
9939     case $host_os in
9940       aix4 | aix4.[01] | aix4.[01].*)
9941       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9942            echo ' yes '
9943            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9944         :
9945       else
9946         can_build_shared=no
9947       fi
9948       ;;
9949     esac
9950     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9951     # soname into executable. Probably we can add versioning support to
9952     # collect2, so additional links can be useful in future.
9953     if test "$aix_use_runtimelinking" = yes; then
9954       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9955       # instead of lib<name>.a to let people know that these are not
9956       # typical AIX shared libraries.
9957       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9958     else
9959       # We preserve .a as extension for shared libraries through AIX4.2
9960       # and later when we are not doing run time linking.
9961       library_names_spec='${libname}${release}.a $libname.a'
9962       soname_spec='${libname}${release}${shared_ext}$major'
9963     fi
9964     shlibpath_var=LIBPATH
9965   fi
9966   ;;
9967
9968 amigaos*)
9969   library_names_spec='$libname.ixlibrary $libname.a'
9970   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9971   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'
9972   ;;
9973
9974 beos*)
9975   library_names_spec='${libname}${shared_ext}'
9976   dynamic_linker="$host_os ld.so"
9977   shlibpath_var=LIBRARY_PATH
9978   ;;
9979
9980 bsdi[45]*)
9981   version_type=linux
9982   need_version=no
9983   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9984   soname_spec='${libname}${release}${shared_ext}$major'
9985   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9986   shlibpath_var=LD_LIBRARY_PATH
9987   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9988   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9989   # the default ld.so.conf also contains /usr/contrib/lib and
9990   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9991   # libtool to hard-code these into programs
9992   ;;
9993
9994 cygwin* | mingw* | pw32*)
9995   version_type=windows
9996   shrext_cmds=".dll"
9997   need_version=no
9998   need_lib_prefix=no
9999
10000   case $GCC,$host_os in
10001   yes,cygwin* | yes,mingw* | yes,pw32*)
10002     library_names_spec='$libname.dll.a'
10003     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10004     postinstall_cmds='base_file=`basename \${file}`~
10005       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10006       dldir=$destdir/`dirname \$dlpath`~
10007       test -d \$dldir || mkdir -p \$dldir~
10008       $install_prog $dir/$dlname \$dldir/$dlname~
10009       chmod a+x \$dldir/$dlname'
10010     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10011       dlpath=$dir/\$dldll~
10012        $rm \$dlpath'
10013     shlibpath_overrides_runpath=yes
10014
10015     case $host_os in
10016     cygwin*)
10017       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10018       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10019       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10020       ;;
10021     mingw*)
10022       # MinGW DLLs use traditional 'lib' prefix
10023       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10024       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10025       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10026         # It is most probably a Windows format PATH printed by
10027         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10028         # path with ; separators, and with drive letters. We can handle the
10029         # drive letters (cygwin fileutils understands them), so leave them,
10030         # especially as we might pass files found there to a mingw objdump,
10031         # which wouldn't understand a cygwinified path. Ahh.
10032         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10033       else
10034         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10035       fi
10036       ;;
10037     pw32*)
10038       # pw32 DLLs use 'pw' prefix rather than 'lib'
10039       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10040       ;;
10041     esac
10042     ;;
10043
10044   *)
10045     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10046     ;;
10047   esac
10048   dynamic_linker='Win32 ld.exe'
10049   # FIXME: first we should search . and the directory the executable is in
10050   shlibpath_var=PATH
10051   ;;
10052
10053 darwin* | rhapsody*)
10054   dynamic_linker="$host_os dyld"
10055   version_type=darwin
10056   need_lib_prefix=no
10057   need_version=no
10058   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10059   soname_spec='${libname}${release}${major}$shared_ext'
10060   shlibpath_overrides_runpath=yes
10061   shlibpath_var=DYLD_LIBRARY_PATH
10062   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10063   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10064   if test "$GCC" = yes; then
10065     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
10066   else
10067     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10068   fi
10069   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10070   ;;
10071
10072 dgux*)
10073   version_type=linux
10074   need_lib_prefix=no
10075   need_version=no
10076   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10077   soname_spec='${libname}${release}${shared_ext}$major'
10078   shlibpath_var=LD_LIBRARY_PATH
10079   ;;
10080
10081 freebsd1*)
10082   dynamic_linker=no
10083   ;;
10084
10085 kfreebsd*-gnu)
10086   version_type=linux
10087   need_lib_prefix=no
10088   need_version=no
10089   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10090   soname_spec='${libname}${release}${shared_ext}$major'
10091   shlibpath_var=LD_LIBRARY_PATH
10092   shlibpath_overrides_runpath=no
10093   hardcode_into_libs=yes
10094   dynamic_linker='GNU ld.so'
10095   ;;
10096
10097 freebsd* | dragonfly*)
10098   # DragonFly does not have aout.  When/if they implement a new
10099   # versioning mechanism, adjust this.
10100   if test -x /usr/bin/objformat; then
10101     objformat=`/usr/bin/objformat`
10102   else
10103     case $host_os in
10104     freebsd[123]*) objformat=aout ;;
10105     *) objformat=elf ;;
10106     esac
10107   fi
10108   version_type=freebsd-$objformat
10109   case $version_type in
10110     freebsd-elf*)
10111       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10112       need_version=no
10113       need_lib_prefix=no
10114       ;;
10115     freebsd-*)
10116       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10117       need_version=yes
10118       ;;
10119   esac
10120   shlibpath_var=LD_LIBRARY_PATH
10121   case $host_os in
10122   freebsd2*)
10123     shlibpath_overrides_runpath=yes
10124     ;;
10125   freebsd3.[01]* | freebsdelf3.[01]*)
10126     shlibpath_overrides_runpath=yes
10127     hardcode_into_libs=yes
10128     ;;
10129   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10130   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10131     shlibpath_overrides_runpath=no
10132     hardcode_into_libs=yes
10133     ;;
10134   freebsd*) # from 4.6 on
10135     shlibpath_overrides_runpath=yes
10136     hardcode_into_libs=yes
10137     ;;
10138   esac
10139   ;;
10140
10141 gnu*)
10142   version_type=linux
10143   need_lib_prefix=no
10144   need_version=no
10145   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10146   soname_spec='${libname}${release}${shared_ext}$major'
10147   shlibpath_var=LD_LIBRARY_PATH
10148   hardcode_into_libs=yes
10149   ;;
10150
10151 hpux9* | hpux10* | hpux11*)
10152   # Give a soname corresponding to the major version so that dld.sl refuses to
10153   # link against other versions.
10154   version_type=sunos
10155   need_lib_prefix=no
10156   need_version=no
10157   case $host_cpu in
10158   ia64*)
10159     shrext_cmds='.so'
10160     hardcode_into_libs=yes
10161     dynamic_linker="$host_os dld.so"
10162     shlibpath_var=LD_LIBRARY_PATH
10163     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10164     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10165     soname_spec='${libname}${release}${shared_ext}$major'
10166     if test "X$HPUX_IA64_MODE" = X32; then
10167       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10168     else
10169       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10170     fi
10171     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10172     ;;
10173    hppa*64*)
10174      shrext_cmds='.sl'
10175      hardcode_into_libs=yes
10176      dynamic_linker="$host_os dld.sl"
10177      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10178      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10179      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10180      soname_spec='${libname}${release}${shared_ext}$major'
10181      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10182      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10183      ;;
10184    *)
10185     shrext_cmds='.sl'
10186     dynamic_linker="$host_os dld.sl"
10187     shlibpath_var=SHLIB_PATH
10188     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10189     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10190     soname_spec='${libname}${release}${shared_ext}$major'
10191     ;;
10192   esac
10193   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10194   postinstall_cmds='chmod 555 $lib'
10195   ;;
10196
10197 interix3*)
10198   version_type=linux
10199   need_lib_prefix=no
10200   need_version=no
10201   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10202   soname_spec='${libname}${release}${shared_ext}$major'
10203   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10204   shlibpath_var=LD_LIBRARY_PATH
10205   shlibpath_overrides_runpath=no
10206   hardcode_into_libs=yes
10207   ;;
10208
10209 irix5* | irix6* | nonstopux*)
10210   case $host_os in
10211     nonstopux*) version_type=nonstopux ;;
10212     *)
10213         if test "$lt_cv_prog_gnu_ld" = yes; then
10214                 version_type=linux
10215         else
10216                 version_type=irix
10217         fi ;;
10218   esac
10219   need_lib_prefix=no
10220   need_version=no
10221   soname_spec='${libname}${release}${shared_ext}$major'
10222   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10223   case $host_os in
10224   irix5* | nonstopux*)
10225     libsuff= shlibsuff=
10226     ;;
10227   *)
10228     case $LD in # libtool.m4 will add one of these switches to LD
10229     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10230       libsuff= shlibsuff= libmagic=32-bit;;
10231     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10232       libsuff=32 shlibsuff=N32 libmagic=N32;;
10233     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10234       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10235     *) libsuff= shlibsuff= libmagic=never-match;;
10236     esac
10237     ;;
10238   esac
10239   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10240   shlibpath_overrides_runpath=no
10241   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10242   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10243   hardcode_into_libs=yes
10244   ;;
10245
10246 # No shared lib support for Linux oldld, aout, or coff.
10247 linux*oldld* | linux*aout* | linux*coff*)
10248   dynamic_linker=no
10249   ;;
10250
10251 # This must be Linux ELF.
10252 linux*)
10253   version_type=linux
10254   need_lib_prefix=no
10255   need_version=no
10256   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10257   soname_spec='${libname}${release}${shared_ext}$major'
10258   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10259   shlibpath_var=LD_LIBRARY_PATH
10260   shlibpath_overrides_runpath=no
10261   # This implies no fast_install, which is unacceptable.
10262   # Some rework will be needed to allow for fast_install
10263   # before this can be enabled.
10264   hardcode_into_libs=yes
10265
10266   # Append ld.so.conf contents to the search path
10267   if test -f /etc/ld.so.conf; then
10268     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10269     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10270   fi
10271
10272   # We used to test for /lib/ld.so.1 and disable shared libraries on
10273   # powerpc, because MkLinux only supported shared libraries with the
10274   # GNU dynamic linker.  Since this was broken with cross compilers,
10275   # most powerpc-linux boxes support dynamic linking these days and
10276   # people can always --disable-shared, the test was removed, and we
10277   # assume the GNU/Linux dynamic linker is in use.
10278   dynamic_linker='GNU/Linux ld.so'
10279   ;;
10280
10281 knetbsd*-gnu)
10282   version_type=linux
10283   need_lib_prefix=no
10284   need_version=no
10285   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10286   soname_spec='${libname}${release}${shared_ext}$major'
10287   shlibpath_var=LD_LIBRARY_PATH
10288   shlibpath_overrides_runpath=no
10289   hardcode_into_libs=yes
10290   dynamic_linker='GNU ld.so'
10291   ;;
10292
10293 netbsd*)
10294   version_type=sunos
10295   need_lib_prefix=no
10296   need_version=no
10297   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10298     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10299     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10300     dynamic_linker='NetBSD (a.out) ld.so'
10301   else
10302     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10303     soname_spec='${libname}${release}${shared_ext}$major'
10304     dynamic_linker='NetBSD ld.elf_so'
10305   fi
10306   shlibpath_var=LD_LIBRARY_PATH
10307   shlibpath_overrides_runpath=yes
10308   hardcode_into_libs=yes
10309   ;;
10310
10311 newsos6)
10312   version_type=linux
10313   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10314   shlibpath_var=LD_LIBRARY_PATH
10315   shlibpath_overrides_runpath=yes
10316   ;;
10317
10318 nto-qnx*)
10319   version_type=linux
10320   need_lib_prefix=no
10321   need_version=no
10322   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10323   soname_spec='${libname}${release}${shared_ext}$major'
10324   shlibpath_var=LD_LIBRARY_PATH
10325   shlibpath_overrides_runpath=yes
10326   ;;
10327
10328 openbsd*)
10329   version_type=sunos
10330   sys_lib_dlsearch_path_spec="/usr/lib"
10331   need_lib_prefix=no
10332   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10333   case $host_os in
10334     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10335     *)                         need_version=no  ;;
10336   esac
10337   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10338   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10339   shlibpath_var=LD_LIBRARY_PATH
10340   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10341     case $host_os in
10342       openbsd2.[89] | openbsd2.[89].*)
10343         shlibpath_overrides_runpath=no
10344         ;;
10345       *)
10346         shlibpath_overrides_runpath=yes
10347         ;;
10348       esac
10349   else
10350     shlibpath_overrides_runpath=yes
10351   fi
10352   ;;
10353
10354 os2*)
10355   libname_spec='$name'
10356   shrext_cmds=".dll"
10357   need_lib_prefix=no
10358   library_names_spec='$libname${shared_ext} $libname.a'
10359   dynamic_linker='OS/2 ld.exe'
10360   shlibpath_var=LIBPATH
10361   ;;
10362
10363 osf3* | osf4* | osf5*)
10364   version_type=osf
10365   need_lib_prefix=no
10366   need_version=no
10367   soname_spec='${libname}${release}${shared_ext}$major'
10368   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10369   shlibpath_var=LD_LIBRARY_PATH
10370   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10371   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10372   ;;
10373
10374 solaris*)
10375   version_type=linux
10376   need_lib_prefix=no
10377   need_version=no
10378   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10379   soname_spec='${libname}${release}${shared_ext}$major'
10380   shlibpath_var=LD_LIBRARY_PATH
10381   shlibpath_overrides_runpath=yes
10382   hardcode_into_libs=yes
10383   # ldd complains unless libraries are executable
10384   postinstall_cmds='chmod +x $lib'
10385   ;;
10386
10387 sunos4*)
10388   version_type=sunos
10389   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10390   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10391   shlibpath_var=LD_LIBRARY_PATH
10392   shlibpath_overrides_runpath=yes
10393   if test "$with_gnu_ld" = yes; then
10394     need_lib_prefix=no
10395   fi
10396   need_version=yes
10397   ;;
10398
10399 sysv4 | sysv4.3*)
10400   version_type=linux
10401   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10402   soname_spec='${libname}${release}${shared_ext}$major'
10403   shlibpath_var=LD_LIBRARY_PATH
10404   case $host_vendor in
10405     sni)
10406       shlibpath_overrides_runpath=no
10407       need_lib_prefix=no
10408       export_dynamic_flag_spec='${wl}-Blargedynsym'
10409       runpath_var=LD_RUN_PATH
10410       ;;
10411     siemens)
10412       need_lib_prefix=no
10413       ;;
10414     motorola)
10415       need_lib_prefix=no
10416       need_version=no
10417       shlibpath_overrides_runpath=no
10418       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10419       ;;
10420   esac
10421   ;;
10422
10423 sysv4*MP*)
10424   if test -d /usr/nec ;then
10425     version_type=linux
10426     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10427     soname_spec='$libname${shared_ext}.$major'
10428     shlibpath_var=LD_LIBRARY_PATH
10429   fi
10430   ;;
10431
10432 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10433   version_type=freebsd-elf
10434   need_lib_prefix=no
10435   need_version=no
10436   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10437   soname_spec='${libname}${release}${shared_ext}$major'
10438   shlibpath_var=LD_LIBRARY_PATH
10439   hardcode_into_libs=yes
10440   if test "$with_gnu_ld" = yes; then
10441     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10442     shlibpath_overrides_runpath=no
10443   else
10444     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10445     shlibpath_overrides_runpath=yes
10446     case $host_os in
10447       sco3.2v5*)
10448         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10449         ;;
10450     esac
10451   fi
10452   sys_lib_dlsearch_path_spec='/usr/lib'
10453   ;;
10454
10455 uts4*)
10456   version_type=linux
10457   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10458   soname_spec='${libname}${release}${shared_ext}$major'
10459   shlibpath_var=LD_LIBRARY_PATH
10460   ;;
10461
10462 *)
10463   dynamic_linker=no
10464   ;;
10465 esac
10466 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10467 $as_echo "$dynamic_linker" >&6; }
10468 test "$dynamic_linker" = no && can_build_shared=no
10469
10470 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10471 if test "$GCC" = yes; then
10472   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10473 fi
10474
10475 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10476 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10477 hardcode_action=
10478 if test -n "$hardcode_libdir_flag_spec" || \
10479    test -n "$runpath_var" || \
10480    test "X$hardcode_automatic" = "Xyes" ; then
10481
10482   # We can hardcode non-existant directories.
10483   if test "$hardcode_direct" != no &&
10484      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10485      # have to relink, otherwise we might link with an installed library
10486      # when we should be linking with a yet-to-be-installed one
10487      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10488      test "$hardcode_minus_L" != no; then
10489     # Linking always hardcodes the temporary library directory.
10490     hardcode_action=relink
10491   else
10492     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10493     hardcode_action=immediate
10494   fi
10495 else
10496   # We cannot hardcode anything, or else we can only hardcode existing
10497   # directories.
10498   hardcode_action=unsupported
10499 fi
10500 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10501 $as_echo "$hardcode_action" >&6; }
10502
10503 if test "$hardcode_action" = relink; then
10504   # Fast installation is not supported
10505   enable_fast_install=no
10506 elif test "$shlibpath_overrides_runpath" = yes ||
10507      test "$enable_shared" = no; then
10508   # Fast installation is not necessary
10509   enable_fast_install=needless
10510 fi
10511
10512 striplib=
10513 old_striplib=
10514 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10515 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10516 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10517   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10518   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10519   { $as_echo "$as_me:$LINENO: result: yes" >&5
10520 $as_echo "yes" >&6; }
10521 else
10522 # FIXME - insert some real tests, host_os isn't really good enough
10523   case $host_os in
10524    darwin*)
10525        if test -n "$STRIP" ; then
10526          striplib="$STRIP -x"
10527          { $as_echo "$as_me:$LINENO: result: yes" >&5
10528 $as_echo "yes" >&6; }
10529        else
10530   { $as_echo "$as_me:$LINENO: result: no" >&5
10531 $as_echo "no" >&6; }
10532 fi
10533        ;;
10534    *)
10535   { $as_echo "$as_me:$LINENO: result: no" >&5
10536 $as_echo "no" >&6; }
10537     ;;
10538   esac
10539 fi
10540
10541 if test "x$enable_dlopen" != xyes; then
10542   enable_dlopen=unknown
10543   enable_dlopen_self=unknown
10544   enable_dlopen_self_static=unknown
10545 else
10546   lt_cv_dlopen=no
10547   lt_cv_dlopen_libs=
10548
10549   case $host_os in
10550   beos*)
10551     lt_cv_dlopen="load_add_on"
10552     lt_cv_dlopen_libs=
10553     lt_cv_dlopen_self=yes
10554     ;;
10555
10556   mingw* | pw32*)
10557     lt_cv_dlopen="LoadLibrary"
10558     lt_cv_dlopen_libs=
10559    ;;
10560
10561   cygwin*)
10562     lt_cv_dlopen="dlopen"
10563     lt_cv_dlopen_libs=
10564    ;;
10565
10566   darwin*)
10567   # if libdl is installed we need to link against it
10568     { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10569 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10570 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10571   $as_echo_n "(cached) " >&6
10572 else
10573   ac_check_lib_save_LIBS=$LIBS
10574 LIBS="-ldl  $LIBS"
10575 cat >conftest.$ac_ext <<_ACEOF
10576 /* confdefs.h.  */
10577 _ACEOF
10578 cat confdefs.h >>conftest.$ac_ext
10579 cat >>conftest.$ac_ext <<_ACEOF
10580 /* end confdefs.h.  */
10581
10582 /* Override any GCC internal prototype to avoid an error.
10583    Use char because int might match the return type of a GCC
10584    builtin and then its argument prototype would still apply.  */
10585 #ifdef __cplusplus
10586 extern "C"
10587 #endif
10588 char dlopen ();
10589 int
10590 main ()
10591 {
10592 return dlopen ();
10593   ;
10594   return 0;
10595 }
10596 _ACEOF
10597 rm -f conftest.$ac_objext conftest$ac_exeext
10598 if { (ac_try="$ac_link"
10599 case "(($ac_try" in
10600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10601   *) ac_try_echo=$ac_try;;
10602 esac
10603 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10604 $as_echo "$ac_try_echo") >&5
10605   (eval "$ac_link") 2>conftest.er1
10606   ac_status=$?
10607   grep -v '^ *+' conftest.er1 >conftest.err
10608   rm -f conftest.er1
10609   cat conftest.err >&5
10610   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10611   (exit $ac_status); } && {
10612          test -z "$ac_c_werror_flag" ||
10613          test ! -s conftest.err
10614        } && test -s conftest$ac_exeext && {
10615          test "$cross_compiling" = yes ||
10616          $as_test_x conftest$ac_exeext
10617        }; then
10618   ac_cv_lib_dl_dlopen=yes
10619 else
10620   $as_echo "$as_me: failed program was:" >&5
10621 sed 's/^/| /' conftest.$ac_ext >&5
10622
10623         ac_cv_lib_dl_dlopen=no
10624 fi
10625
10626 rm -rf conftest.dSYM
10627 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10628       conftest$ac_exeext conftest.$ac_ext
10629 LIBS=$ac_check_lib_save_LIBS
10630 fi
10631 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10632 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10633 if test $ac_cv_lib_dl_dlopen = yes; then
10634   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10635 else
10636
10637     lt_cv_dlopen="dyld"
10638     lt_cv_dlopen_libs=
10639     lt_cv_dlopen_self=yes
10640
10641 fi
10642
10643    ;;
10644
10645   *)
10646     { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10647 $as_echo_n "checking for shl_load... " >&6; }
10648 if test "${ac_cv_func_shl_load+set}" = set; then
10649   $as_echo_n "(cached) " >&6
10650 else
10651   cat >conftest.$ac_ext <<_ACEOF
10652 /* confdefs.h.  */
10653 _ACEOF
10654 cat confdefs.h >>conftest.$ac_ext
10655 cat >>conftest.$ac_ext <<_ACEOF
10656 /* end confdefs.h.  */
10657 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10658    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10659 #define shl_load innocuous_shl_load
10660
10661 /* System header to define __stub macros and hopefully few prototypes,
10662     which can conflict with char shl_load (); below.
10663     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10664     <limits.h> exists even on freestanding compilers.  */
10665
10666 #ifdef __STDC__
10667 # include <limits.h>
10668 #else
10669 # include <assert.h>
10670 #endif
10671
10672 #undef shl_load
10673
10674 /* Override any GCC internal prototype to avoid an error.
10675    Use char because int might match the return type of a GCC
10676    builtin and then its argument prototype would still apply.  */
10677 #ifdef __cplusplus
10678 extern "C"
10679 #endif
10680 char shl_load ();
10681 /* The GNU C library defines this for functions which it implements
10682     to always fail with ENOSYS.  Some functions are actually named
10683     something starting with __ and the normal name is an alias.  */
10684 #if defined __stub_shl_load || defined __stub___shl_load
10685 choke me
10686 #endif
10687
10688 int
10689 main ()
10690 {
10691 return shl_load ();
10692   ;
10693   return 0;
10694 }
10695 _ACEOF
10696 rm -f conftest.$ac_objext conftest$ac_exeext
10697 if { (ac_try="$ac_link"
10698 case "(($ac_try" in
10699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10700   *) ac_try_echo=$ac_try;;
10701 esac
10702 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10703 $as_echo "$ac_try_echo") >&5
10704   (eval "$ac_link") 2>conftest.er1
10705   ac_status=$?
10706   grep -v '^ *+' conftest.er1 >conftest.err
10707   rm -f conftest.er1
10708   cat conftest.err >&5
10709   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10710   (exit $ac_status); } && {
10711          test -z "$ac_c_werror_flag" ||
10712          test ! -s conftest.err
10713        } && test -s conftest$ac_exeext && {
10714          test "$cross_compiling" = yes ||
10715          $as_test_x conftest$ac_exeext
10716        }; then
10717   ac_cv_func_shl_load=yes
10718 else
10719   $as_echo "$as_me: failed program was:" >&5
10720 sed 's/^/| /' conftest.$ac_ext >&5
10721
10722         ac_cv_func_shl_load=no
10723 fi
10724
10725 rm -rf conftest.dSYM
10726 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10727       conftest$ac_exeext conftest.$ac_ext
10728 fi
10729 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10730 $as_echo "$ac_cv_func_shl_load" >&6; }
10731 if test $ac_cv_func_shl_load = yes; then
10732   lt_cv_dlopen="shl_load"
10733 else
10734   { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10735 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10736 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10737   $as_echo_n "(cached) " >&6
10738 else
10739   ac_check_lib_save_LIBS=$LIBS
10740 LIBS="-ldld  $LIBS"
10741 cat >conftest.$ac_ext <<_ACEOF
10742 /* confdefs.h.  */
10743 _ACEOF
10744 cat confdefs.h >>conftest.$ac_ext
10745 cat >>conftest.$ac_ext <<_ACEOF
10746 /* end confdefs.h.  */
10747
10748 /* Override any GCC internal prototype to avoid an error.
10749    Use char because int might match the return type of a GCC
10750    builtin and then its argument prototype would still apply.  */
10751 #ifdef __cplusplus
10752 extern "C"
10753 #endif
10754 char shl_load ();
10755 int
10756 main ()
10757 {
10758 return shl_load ();
10759   ;
10760   return 0;
10761 }
10762 _ACEOF
10763 rm -f conftest.$ac_objext conftest$ac_exeext
10764 if { (ac_try="$ac_link"
10765 case "(($ac_try" in
10766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10767   *) ac_try_echo=$ac_try;;
10768 esac
10769 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10770 $as_echo "$ac_try_echo") >&5
10771   (eval "$ac_link") 2>conftest.er1
10772   ac_status=$?
10773   grep -v '^ *+' conftest.er1 >conftest.err
10774   rm -f conftest.er1
10775   cat conftest.err >&5
10776   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10777   (exit $ac_status); } && {
10778          test -z "$ac_c_werror_flag" ||
10779          test ! -s conftest.err
10780        } && test -s conftest$ac_exeext && {
10781          test "$cross_compiling" = yes ||
10782          $as_test_x conftest$ac_exeext
10783        }; then
10784   ac_cv_lib_dld_shl_load=yes
10785 else
10786   $as_echo "$as_me: failed program was:" >&5
10787 sed 's/^/| /' conftest.$ac_ext >&5
10788
10789         ac_cv_lib_dld_shl_load=no
10790 fi
10791
10792 rm -rf conftest.dSYM
10793 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10794       conftest$ac_exeext conftest.$ac_ext
10795 LIBS=$ac_check_lib_save_LIBS
10796 fi
10797 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10798 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10799 if test $ac_cv_lib_dld_shl_load = yes; then
10800   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10801 else
10802   { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10803 $as_echo_n "checking for dlopen... " >&6; }
10804 if test "${ac_cv_func_dlopen+set}" = set; then
10805   $as_echo_n "(cached) " >&6
10806 else
10807   cat >conftest.$ac_ext <<_ACEOF
10808 /* confdefs.h.  */
10809 _ACEOF
10810 cat confdefs.h >>conftest.$ac_ext
10811 cat >>conftest.$ac_ext <<_ACEOF
10812 /* end confdefs.h.  */
10813 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10814    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10815 #define dlopen innocuous_dlopen
10816
10817 /* System header to define __stub macros and hopefully few prototypes,
10818     which can conflict with char dlopen (); below.
10819     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10820     <limits.h> exists even on freestanding compilers.  */
10821
10822 #ifdef __STDC__
10823 # include <limits.h>
10824 #else
10825 # include <assert.h>
10826 #endif
10827
10828 #undef dlopen
10829
10830 /* Override any GCC internal prototype to avoid an error.
10831    Use char because int might match the return type of a GCC
10832    builtin and then its argument prototype would still apply.  */
10833 #ifdef __cplusplus
10834 extern "C"
10835 #endif
10836 char dlopen ();
10837 /* The GNU C library defines this for functions which it implements
10838     to always fail with ENOSYS.  Some functions are actually named
10839     something starting with __ and the normal name is an alias.  */
10840 #if defined __stub_dlopen || defined __stub___dlopen
10841 choke me
10842 #endif
10843
10844 int
10845 main ()
10846 {
10847 return dlopen ();
10848   ;
10849   return 0;
10850 }
10851 _ACEOF
10852 rm -f conftest.$ac_objext conftest$ac_exeext
10853 if { (ac_try="$ac_link"
10854 case "(($ac_try" in
10855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10856   *) ac_try_echo=$ac_try;;
10857 esac
10858 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10859 $as_echo "$ac_try_echo") >&5
10860   (eval "$ac_link") 2>conftest.er1
10861   ac_status=$?
10862   grep -v '^ *+' conftest.er1 >conftest.err
10863   rm -f conftest.er1
10864   cat conftest.err >&5
10865   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10866   (exit $ac_status); } && {
10867          test -z "$ac_c_werror_flag" ||
10868          test ! -s conftest.err
10869        } && test -s conftest$ac_exeext && {
10870          test "$cross_compiling" = yes ||
10871          $as_test_x conftest$ac_exeext
10872        }; then
10873   ac_cv_func_dlopen=yes
10874 else
10875   $as_echo "$as_me: failed program was:" >&5
10876 sed 's/^/| /' conftest.$ac_ext >&5
10877
10878         ac_cv_func_dlopen=no
10879 fi
10880
10881 rm -rf conftest.dSYM
10882 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10883       conftest$ac_exeext conftest.$ac_ext
10884 fi
10885 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10886 $as_echo "$ac_cv_func_dlopen" >&6; }
10887 if test $ac_cv_func_dlopen = yes; then
10888   lt_cv_dlopen="dlopen"
10889 else
10890   { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10891 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10892 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10893   $as_echo_n "(cached) " >&6
10894 else
10895   ac_check_lib_save_LIBS=$LIBS
10896 LIBS="-ldl  $LIBS"
10897 cat >conftest.$ac_ext <<_ACEOF
10898 /* confdefs.h.  */
10899 _ACEOF
10900 cat confdefs.h >>conftest.$ac_ext
10901 cat >>conftest.$ac_ext <<_ACEOF
10902 /* end confdefs.h.  */
10903
10904 /* Override any GCC internal prototype to avoid an error.
10905    Use char because int might match the return type of a GCC
10906    builtin and then its argument prototype would still apply.  */
10907 #ifdef __cplusplus
10908 extern "C"
10909 #endif
10910 char dlopen ();
10911 int
10912 main ()
10913 {
10914 return dlopen ();
10915   ;
10916   return 0;
10917 }
10918 _ACEOF
10919 rm -f conftest.$ac_objext conftest$ac_exeext
10920 if { (ac_try="$ac_link"
10921 case "(($ac_try" in
10922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10923   *) ac_try_echo=$ac_try;;
10924 esac
10925 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10926 $as_echo "$ac_try_echo") >&5
10927   (eval "$ac_link") 2>conftest.er1
10928   ac_status=$?
10929   grep -v '^ *+' conftest.er1 >conftest.err
10930   rm -f conftest.er1
10931   cat conftest.err >&5
10932   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10933   (exit $ac_status); } && {
10934          test -z "$ac_c_werror_flag" ||
10935          test ! -s conftest.err
10936        } && test -s conftest$ac_exeext && {
10937          test "$cross_compiling" = yes ||
10938          $as_test_x conftest$ac_exeext
10939        }; then
10940   ac_cv_lib_dl_dlopen=yes
10941 else
10942   $as_echo "$as_me: failed program was:" >&5
10943 sed 's/^/| /' conftest.$ac_ext >&5
10944
10945         ac_cv_lib_dl_dlopen=no
10946 fi
10947
10948 rm -rf conftest.dSYM
10949 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10950       conftest$ac_exeext conftest.$ac_ext
10951 LIBS=$ac_check_lib_save_LIBS
10952 fi
10953 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10954 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10955 if test $ac_cv_lib_dl_dlopen = yes; then
10956   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10957 else
10958   { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10959 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10960 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10961   $as_echo_n "(cached) " >&6
10962 else
10963   ac_check_lib_save_LIBS=$LIBS
10964 LIBS="-lsvld  $LIBS"
10965 cat >conftest.$ac_ext <<_ACEOF
10966 /* confdefs.h.  */
10967 _ACEOF
10968 cat confdefs.h >>conftest.$ac_ext
10969 cat >>conftest.$ac_ext <<_ACEOF
10970 /* end confdefs.h.  */
10971
10972 /* Override any GCC internal prototype to avoid an error.
10973    Use char because int might match the return type of a GCC
10974    builtin and then its argument prototype would still apply.  */
10975 #ifdef __cplusplus
10976 extern "C"
10977 #endif
10978 char dlopen ();
10979 int
10980 main ()
10981 {
10982 return dlopen ();
10983   ;
10984   return 0;
10985 }
10986 _ACEOF
10987 rm -f conftest.$ac_objext conftest$ac_exeext
10988 if { (ac_try="$ac_link"
10989 case "(($ac_try" in
10990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10991   *) ac_try_echo=$ac_try;;
10992 esac
10993 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10994 $as_echo "$ac_try_echo") >&5
10995   (eval "$ac_link") 2>conftest.er1
10996   ac_status=$?
10997   grep -v '^ *+' conftest.er1 >conftest.err
10998   rm -f conftest.er1
10999   cat conftest.err >&5
11000   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11001   (exit $ac_status); } && {
11002          test -z "$ac_c_werror_flag" ||
11003          test ! -s conftest.err
11004        } && test -s conftest$ac_exeext && {
11005          test "$cross_compiling" = yes ||
11006          $as_test_x conftest$ac_exeext
11007        }; then
11008   ac_cv_lib_svld_dlopen=yes
11009 else
11010   $as_echo "$as_me: failed program was:" >&5
11011 sed 's/^/| /' conftest.$ac_ext >&5
11012
11013         ac_cv_lib_svld_dlopen=no
11014 fi
11015
11016 rm -rf conftest.dSYM
11017 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11018       conftest$ac_exeext conftest.$ac_ext
11019 LIBS=$ac_check_lib_save_LIBS
11020 fi
11021 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11022 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11023 if test $ac_cv_lib_svld_dlopen = yes; then
11024   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11025 else
11026   { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11027 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11028 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11029   $as_echo_n "(cached) " >&6
11030 else
11031   ac_check_lib_save_LIBS=$LIBS
11032 LIBS="-ldld  $LIBS"
11033 cat >conftest.$ac_ext <<_ACEOF
11034 /* confdefs.h.  */
11035 _ACEOF
11036 cat confdefs.h >>conftest.$ac_ext
11037 cat >>conftest.$ac_ext <<_ACEOF
11038 /* end confdefs.h.  */
11039
11040 /* Override any GCC internal prototype to avoid an error.
11041    Use char because int might match the return type of a GCC
11042    builtin and then its argument prototype would still apply.  */
11043 #ifdef __cplusplus
11044 extern "C"
11045 #endif
11046 char dld_link ();
11047 int
11048 main ()
11049 {
11050 return dld_link ();
11051   ;
11052   return 0;
11053 }
11054 _ACEOF
11055 rm -f conftest.$ac_objext conftest$ac_exeext
11056 if { (ac_try="$ac_link"
11057 case "(($ac_try" in
11058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11059   *) ac_try_echo=$ac_try;;
11060 esac
11061 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11062 $as_echo "$ac_try_echo") >&5
11063   (eval "$ac_link") 2>conftest.er1
11064   ac_status=$?
11065   grep -v '^ *+' conftest.er1 >conftest.err
11066   rm -f conftest.er1
11067   cat conftest.err >&5
11068   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069   (exit $ac_status); } && {
11070          test -z "$ac_c_werror_flag" ||
11071          test ! -s conftest.err
11072        } && test -s conftest$ac_exeext && {
11073          test "$cross_compiling" = yes ||
11074          $as_test_x conftest$ac_exeext
11075        }; then
11076   ac_cv_lib_dld_dld_link=yes
11077 else
11078   $as_echo "$as_me: failed program was:" >&5
11079 sed 's/^/| /' conftest.$ac_ext >&5
11080
11081         ac_cv_lib_dld_dld_link=no
11082 fi
11083
11084 rm -rf conftest.dSYM
11085 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11086       conftest$ac_exeext conftest.$ac_ext
11087 LIBS=$ac_check_lib_save_LIBS
11088 fi
11089 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11090 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11091 if test $ac_cv_lib_dld_dld_link = yes; then
11092   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11093 fi
11094
11095
11096 fi
11097
11098
11099 fi
11100
11101
11102 fi
11103
11104
11105 fi
11106
11107
11108 fi
11109
11110     ;;
11111   esac
11112
11113   if test "x$lt_cv_dlopen" != xno; then
11114     enable_dlopen=yes
11115   else
11116     enable_dlopen=no
11117   fi
11118
11119   case $lt_cv_dlopen in
11120   dlopen)
11121     save_CPPFLAGS="$CPPFLAGS"
11122     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11123
11124     save_LDFLAGS="$LDFLAGS"
11125     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11126
11127     save_LIBS="$LIBS"
11128     LIBS="$lt_cv_dlopen_libs $LIBS"
11129
11130     { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11131 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11132 if test "${lt_cv_dlopen_self+set}" = set; then
11133   $as_echo_n "(cached) " >&6
11134 else
11135           if test "$cross_compiling" = yes; then :
11136   lt_cv_dlopen_self=cross
11137 else
11138   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11139   lt_status=$lt_dlunknown
11140   cat > conftest.$ac_ext <<EOF
11141 #line 11141 "configure"
11142 #include "confdefs.h"
11143
11144 #if HAVE_DLFCN_H
11145 #include <dlfcn.h>
11146 #endif
11147
11148 #include <stdio.h>
11149
11150 #ifdef RTLD_GLOBAL
11151 #  define LT_DLGLOBAL           RTLD_GLOBAL
11152 #else
11153 #  ifdef DL_GLOBAL
11154 #    define LT_DLGLOBAL         DL_GLOBAL
11155 #  else
11156 #    define LT_DLGLOBAL         0
11157 #  endif
11158 #endif
11159
11160 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11161    find out it does not work in some platform. */
11162 #ifndef LT_DLLAZY_OR_NOW
11163 #  ifdef RTLD_LAZY
11164 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11165 #  else
11166 #    ifdef DL_LAZY
11167 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11168 #    else
11169 #      ifdef RTLD_NOW
11170 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11171 #      else
11172 #        ifdef DL_NOW
11173 #          define LT_DLLAZY_OR_NOW      DL_NOW
11174 #        else
11175 #          define LT_DLLAZY_OR_NOW      0
11176 #        endif
11177 #      endif
11178 #    endif
11179 #  endif
11180 #endif
11181
11182 #ifdef __cplusplus
11183 extern "C" void exit (int);
11184 #endif
11185
11186 void fnord() { int i=42;}
11187 int main ()
11188 {
11189   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11190   int status = $lt_dlunknown;
11191
11192   if (self)
11193     {
11194       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11195       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11196       /* dlclose (self); */
11197     }
11198   else
11199     puts (dlerror ());
11200
11201     exit (status);
11202 }
11203 EOF
11204   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11205   (eval $ac_link) 2>&5
11206   ac_status=$?
11207   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11208   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11209     (./conftest; exit; ) >&5 2>/dev/null
11210     lt_status=$?
11211     case x$lt_status in
11212       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11213       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11214       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11215     esac
11216   else :
11217     # compilation failed
11218     lt_cv_dlopen_self=no
11219   fi
11220 fi
11221 rm -fr conftest*
11222
11223
11224 fi
11225 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11226 $as_echo "$lt_cv_dlopen_self" >&6; }
11227
11228     if test "x$lt_cv_dlopen_self" = xyes; then
11229       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11230       { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11231 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11232 if test "${lt_cv_dlopen_self_static+set}" = set; then
11233   $as_echo_n "(cached) " >&6
11234 else
11235           if test "$cross_compiling" = yes; then :
11236   lt_cv_dlopen_self_static=cross
11237 else
11238   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11239   lt_status=$lt_dlunknown
11240   cat > conftest.$ac_ext <<EOF
11241 #line 11241 "configure"
11242 #include "confdefs.h"
11243
11244 #if HAVE_DLFCN_H
11245 #include <dlfcn.h>
11246 #endif
11247
11248 #include <stdio.h>
11249
11250 #ifdef RTLD_GLOBAL
11251 #  define LT_DLGLOBAL           RTLD_GLOBAL
11252 #else
11253 #  ifdef DL_GLOBAL
11254 #    define LT_DLGLOBAL         DL_GLOBAL
11255 #  else
11256 #    define LT_DLGLOBAL         0
11257 #  endif
11258 #endif
11259
11260 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11261    find out it does not work in some platform. */
11262 #ifndef LT_DLLAZY_OR_NOW
11263 #  ifdef RTLD_LAZY
11264 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11265 #  else
11266 #    ifdef DL_LAZY
11267 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11268 #    else
11269 #      ifdef RTLD_NOW
11270 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11271 #      else
11272 #        ifdef DL_NOW
11273 #          define LT_DLLAZY_OR_NOW      DL_NOW
11274 #        else
11275 #          define LT_DLLAZY_OR_NOW      0
11276 #        endif
11277 #      endif
11278 #    endif
11279 #  endif
11280 #endif
11281
11282 #ifdef __cplusplus
11283 extern "C" void exit (int);
11284 #endif
11285
11286 void fnord() { int i=42;}
11287 int main ()
11288 {
11289   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11290   int status = $lt_dlunknown;
11291
11292   if (self)
11293     {
11294       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11295       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11296       /* dlclose (self); */
11297     }
11298   else
11299     puts (dlerror ());
11300
11301     exit (status);
11302 }
11303 EOF
11304   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11305   (eval $ac_link) 2>&5
11306   ac_status=$?
11307   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11308   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11309     (./conftest; exit; ) >&5 2>/dev/null
11310     lt_status=$?
11311     case x$lt_status in
11312       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11313       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11314       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11315     esac
11316   else :
11317     # compilation failed
11318     lt_cv_dlopen_self_static=no
11319   fi
11320 fi
11321 rm -fr conftest*
11322
11323
11324 fi
11325 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11326 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11327     fi
11328
11329     CPPFLAGS="$save_CPPFLAGS"
11330     LDFLAGS="$save_LDFLAGS"
11331     LIBS="$save_LIBS"
11332     ;;
11333   esac
11334
11335   case $lt_cv_dlopen_self in
11336   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11337   *) enable_dlopen_self=unknown ;;
11338   esac
11339
11340   case $lt_cv_dlopen_self_static in
11341   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11342   *) enable_dlopen_self_static=unknown ;;
11343   esac
11344 fi
11345
11346
11347 # Report which library types will actually be built
11348 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11349 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11350 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11351 $as_echo "$can_build_shared" >&6; }
11352
11353 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11354 $as_echo_n "checking whether to build shared libraries... " >&6; }
11355 test "$can_build_shared" = "no" && enable_shared=no
11356
11357 # On AIX, shared libraries and static libraries use the same namespace, and
11358 # are all built from PIC.
11359 case $host_os in
11360 aix3*)
11361   test "$enable_shared" = yes && enable_static=no
11362   if test -n "$RANLIB"; then
11363     archive_cmds="$archive_cmds~\$RANLIB \$lib"
11364     postinstall_cmds='$RANLIB $lib'
11365   fi
11366   ;;
11367
11368 aix4* | aix5*)
11369   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11370     test "$enable_shared" = yes && enable_static=no
11371   fi
11372     ;;
11373 esac
11374 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11375 $as_echo "$enable_shared" >&6; }
11376
11377 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11378 $as_echo_n "checking whether to build static libraries... " >&6; }
11379 # Make sure either enable_shared or enable_static is yes.
11380 test "$enable_shared" = yes || enable_static=yes
11381 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11382 $as_echo "$enable_static" >&6; }
11383
11384 # The else clause should only fire when bootstrapping the
11385 # libtool distribution, otherwise you forgot to ship ltmain.sh
11386 # with your package, and you will get complaints that there are
11387 # no rules to generate ltmain.sh.
11388 if test -f "$ltmain"; then
11389   # See if we are running on zsh, and set the options which allow our commands through
11390   # without removal of \ escapes.
11391   if test -n "${ZSH_VERSION+set}" ; then
11392     setopt NO_GLOB_SUBST
11393   fi
11394   # Now quote all the things that may contain metacharacters while being
11395   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11396   # variables and quote the copies for generation of the libtool script.
11397   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11398     SED SHELL STRIP \
11399     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11400     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11401     deplibs_check_method reload_flag reload_cmds need_locks \
11402     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11403     lt_cv_sys_global_symbol_to_c_name_address \
11404     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11405     old_postinstall_cmds old_postuninstall_cmds \
11406     compiler \
11407     CC \
11408     LD \
11409     lt_prog_compiler_wl \
11410     lt_prog_compiler_pic \
11411     lt_prog_compiler_static \
11412     lt_prog_compiler_no_builtin_flag \
11413     export_dynamic_flag_spec \
11414     thread_safe_flag_spec \
11415     whole_archive_flag_spec \
11416     enable_shared_with_static_runtimes \
11417     old_archive_cmds \
11418     old_archive_from_new_cmds \
11419     predep_objects \
11420     postdep_objects \
11421     predeps \
11422     postdeps \
11423     compiler_lib_search_path \
11424     archive_cmds \
11425     archive_expsym_cmds \
11426     postinstall_cmds \
11427     postuninstall_cmds \
11428     old_archive_from_expsyms_cmds \
11429     allow_undefined_flag \
11430     no_undefined_flag \
11431     export_symbols_cmds \
11432     hardcode_libdir_flag_spec \
11433     hardcode_libdir_flag_spec_ld \
11434     hardcode_libdir_separator \
11435     hardcode_automatic \
11436     module_cmds \
11437     module_expsym_cmds \
11438     lt_cv_prog_compiler_c_o \
11439     exclude_expsyms \
11440     include_expsyms; do
11441
11442     case $var in
11443     old_archive_cmds | \
11444     old_archive_from_new_cmds | \
11445     archive_cmds | \
11446     archive_expsym_cmds | \
11447     module_cmds | \
11448     module_expsym_cmds | \
11449     old_archive_from_expsyms_cmds | \
11450     export_symbols_cmds | \
11451     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11452     postinstall_cmds | postuninstall_cmds | \
11453     old_postinstall_cmds | old_postuninstall_cmds | \
11454     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11455       # Double-quote double-evaled strings.
11456       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11457       ;;
11458     *)
11459       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11460       ;;
11461     esac
11462   done
11463
11464   case $lt_echo in
11465   *'\$0 --fallback-echo"')
11466     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11467     ;;
11468   esac
11469
11470 cfgfile="${ofile}T"
11471   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11472   $rm -f "$cfgfile"
11473   { $as_echo "$as_me:$LINENO: creating $ofile" >&5
11474 $as_echo "$as_me: creating $ofile" >&6;}
11475
11476   cat <<__EOF__ >> "$cfgfile"
11477 #! $SHELL
11478
11479 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11480 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11481 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11482 #
11483 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11484 # Free Software Foundation, Inc.
11485 #
11486 # This file is part of GNU Libtool:
11487 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11488 #
11489 # This program is free software; you can redistribute it and/or modify
11490 # it under the terms of the GNU General Public License as published by
11491 # the Free Software Foundation; either version 2 of the License, or
11492 # (at your option) any later version.
11493 #
11494 # This program is distributed in the hope that it will be useful, but
11495 # WITHOUT ANY WARRANTY; without even the implied warranty of
11496 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11497 # General Public License for more details.
11498 #
11499 # You should have received a copy of the GNU General Public License
11500 # along with this program; if not, write to the Free Software
11501 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11502 #
11503 # As a special exception to the GNU General Public License, if you
11504 # distribute this file as part of a program that contains a
11505 # configuration script generated by Autoconf, you may include it under
11506 # the same distribution terms that you use for the rest of that program.
11507
11508 # A sed program that does not truncate output.
11509 SED=$lt_SED
11510
11511 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11512 Xsed="$SED -e 1s/^X//"
11513
11514 # The HP-UX ksh and POSIX shell print the target directory to stdout
11515 # if CDPATH is set.
11516 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11517
11518 # The names of the tagged configurations supported by this script.
11519 available_tags=
11520
11521 # ### BEGIN LIBTOOL CONFIG
11522
11523 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11524
11525 # Shell to use when invoking shell scripts.
11526 SHELL=$lt_SHELL
11527
11528 # Whether or not to build shared libraries.
11529 build_libtool_libs=$enable_shared
11530
11531 # Whether or not to build static libraries.
11532 build_old_libs=$enable_static
11533
11534 # Whether or not to add -lc for building shared libraries.
11535 build_libtool_need_lc=$archive_cmds_need_lc
11536
11537 # Whether or not to disallow shared libs when runtime libs are static
11538 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11539
11540 # Whether or not to optimize for fast installation.
11541 fast_install=$enable_fast_install
11542
11543 # The host system.
11544 host_alias=$host_alias
11545 host=$host
11546 host_os=$host_os
11547
11548 # The build system.
11549 build_alias=$build_alias
11550 build=$build
11551 build_os=$build_os
11552
11553 # An echo program that does not interpret backslashes.
11554 echo=$lt_echo
11555
11556 # The archiver.
11557 AR=$lt_AR
11558 AR_FLAGS=$lt_AR_FLAGS
11559
11560 # A C compiler.
11561 LTCC=$lt_LTCC
11562
11563 # LTCC compiler flags.
11564 LTCFLAGS=$lt_LTCFLAGS
11565
11566 # A language-specific compiler.
11567 CC=$lt_compiler
11568
11569 # Is the compiler the GNU C compiler?
11570 with_gcc=$GCC
11571
11572 # An ERE matcher.
11573 EGREP=$lt_EGREP
11574
11575 # The linker used to build libraries.
11576 LD=$lt_LD
11577
11578 # Whether we need hard or soft links.
11579 LN_S=$lt_LN_S
11580
11581 # A BSD-compatible nm program.
11582 NM=$lt_NM
11583
11584 # A symbol stripping program
11585 STRIP=$lt_STRIP
11586
11587 # Used to examine libraries when file_magic_cmd begins "file"
11588 MAGIC_CMD=$MAGIC_CMD
11589
11590 # Used on cygwin: DLL creation program.
11591 DLLTOOL="$DLLTOOL"
11592
11593 # Used on cygwin: object dumper.
11594 OBJDUMP="$OBJDUMP"
11595
11596 # Used on cygwin: assembler.
11597 AS="$AS"
11598
11599 # The name of the directory that contains temporary libtool files.
11600 objdir=$objdir
11601
11602 # How to create reloadable object files.
11603 reload_flag=$lt_reload_flag
11604 reload_cmds=$lt_reload_cmds
11605
11606 # How to pass a linker flag through the compiler.
11607 wl=$lt_lt_prog_compiler_wl
11608
11609 # Object file suffix (normally "o").
11610 objext="$ac_objext"
11611
11612 # Old archive suffix (normally "a").
11613 libext="$libext"
11614
11615 # Shared library suffix (normally ".so").
11616 shrext_cmds='$shrext_cmds'
11617
11618 # Executable file suffix (normally "").
11619 exeext="$exeext"
11620
11621 # Additional compiler flags for building library objects.
11622 pic_flag=$lt_lt_prog_compiler_pic
11623 pic_mode=$pic_mode
11624
11625 # What is the maximum length of a command?
11626 max_cmd_len=$lt_cv_sys_max_cmd_len
11627
11628 # Does compiler simultaneously support -c and -o options?
11629 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11630
11631 # Must we lock files when doing compilation?
11632 need_locks=$lt_need_locks
11633
11634 # Do we need the lib prefix for modules?
11635 need_lib_prefix=$need_lib_prefix
11636
11637 # Do we need a version for libraries?
11638 need_version=$need_version
11639
11640 # Whether dlopen is supported.
11641 dlopen_support=$enable_dlopen
11642
11643 # Whether dlopen of programs is supported.
11644 dlopen_self=$enable_dlopen_self
11645
11646 # Whether dlopen of statically linked programs is supported.
11647 dlopen_self_static=$enable_dlopen_self_static
11648
11649 # Compiler flag to prevent dynamic linking.
11650 link_static_flag=$lt_lt_prog_compiler_static
11651
11652 # Compiler flag to turn off builtin functions.
11653 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11654
11655 # Compiler flag to allow reflexive dlopens.
11656 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11657
11658 # Compiler flag to generate shared objects directly from archives.
11659 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11660
11661 # Compiler flag to generate thread-safe objects.
11662 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11663
11664 # Library versioning type.
11665 version_type=$version_type
11666
11667 # Format of library name prefix.
11668 libname_spec=$lt_libname_spec
11669
11670 # List of archive names.  First name is the real one, the rest are links.
11671 # The last name is the one that the linker finds with -lNAME.
11672 library_names_spec=$lt_library_names_spec
11673
11674 # The coded name of the library, if different from the real name.
11675 soname_spec=$lt_soname_spec
11676
11677 # Commands used to build and install an old-style archive.
11678 RANLIB=$lt_RANLIB
11679 old_archive_cmds=$lt_old_archive_cmds
11680 old_postinstall_cmds=$lt_old_postinstall_cmds
11681 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11682
11683 # Create an old-style archive from a shared archive.
11684 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11685
11686 # Create a temporary old-style archive to link instead of a shared archive.
11687 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11688
11689 # Commands used to build and install a shared archive.
11690 archive_cmds=$lt_archive_cmds
11691 archive_expsym_cmds=$lt_archive_expsym_cmds
11692 postinstall_cmds=$lt_postinstall_cmds
11693 postuninstall_cmds=$lt_postuninstall_cmds
11694
11695 # Commands used to build a loadable module (assumed same as above if empty)
11696 module_cmds=$lt_module_cmds
11697 module_expsym_cmds=$lt_module_expsym_cmds
11698
11699 # Commands to strip libraries.
11700 old_striplib=$lt_old_striplib
11701 striplib=$lt_striplib
11702
11703 # Dependencies to place before the objects being linked to create a
11704 # shared library.
11705 predep_objects=$lt_predep_objects
11706
11707 # Dependencies to place after the objects being linked to create a
11708 # shared library.
11709 postdep_objects=$lt_postdep_objects
11710
11711 # Dependencies to place before the objects being linked to create a
11712 # shared library.
11713 predeps=$lt_predeps
11714
11715 # Dependencies to place after the objects being linked to create a
11716 # shared library.
11717 postdeps=$lt_postdeps
11718
11719 # The library search path used internally by the compiler when linking
11720 # a shared library.
11721 compiler_lib_search_path=$lt_compiler_lib_search_path
11722
11723 # Method to check whether dependent libraries are shared objects.
11724 deplibs_check_method=$lt_deplibs_check_method
11725
11726 # Command to use when deplibs_check_method == file_magic.
11727 file_magic_cmd=$lt_file_magic_cmd
11728
11729 # Flag that allows shared libraries with undefined symbols to be built.
11730 allow_undefined_flag=$lt_allow_undefined_flag
11731
11732 # Flag that forces no undefined symbols.
11733 no_undefined_flag=$lt_no_undefined_flag
11734
11735 # Commands used to finish a libtool library installation in a directory.
11736 finish_cmds=$lt_finish_cmds
11737
11738 # Same as above, but a single script fragment to be evaled but not shown.
11739 finish_eval=$lt_finish_eval
11740
11741 # Take the output of nm and produce a listing of raw symbols and C names.
11742 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11743
11744 # Transform the output of nm in a proper C declaration
11745 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11746
11747 # Transform the output of nm in a C name address pair
11748 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11749
11750 # This is the shared library runtime path variable.
11751 runpath_var=$runpath_var
11752
11753 # This is the shared library path variable.
11754 shlibpath_var=$shlibpath_var
11755
11756 # Is shlibpath searched before the hard-coded library search path?
11757 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11758
11759 # How to hardcode a shared library path into an executable.
11760 hardcode_action=$hardcode_action
11761
11762 # Whether we should hardcode library paths into libraries.
11763 hardcode_into_libs=$hardcode_into_libs
11764
11765 # Flag to hardcode \$libdir into a binary during linking.
11766 # This must work even if \$libdir does not exist.
11767 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11768
11769 # If ld is used when linking, flag to hardcode \$libdir into
11770 # a binary during linking. This must work even if \$libdir does
11771 # not exist.
11772 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11773
11774 # Whether we need a single -rpath flag with a separated argument.
11775 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11776
11777 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11778 # resulting binary.
11779 hardcode_direct=$hardcode_direct
11780
11781 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11782 # resulting binary.
11783 hardcode_minus_L=$hardcode_minus_L
11784
11785 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11786 # the resulting binary.
11787 hardcode_shlibpath_var=$hardcode_shlibpath_var
11788
11789 # Set to yes if building a shared library automatically hardcodes DIR into the library
11790 # and all subsequent libraries and executables linked against it.
11791 hardcode_automatic=$hardcode_automatic
11792
11793 # Variables whose values should be saved in libtool wrapper scripts and
11794 # restored at relink time.
11795 variables_saved_for_relink="$variables_saved_for_relink"
11796
11797 # Whether libtool must link a program against all its dependency libraries.
11798 link_all_deplibs=$link_all_deplibs
11799
11800 # Compile-time system search path for libraries
11801 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11802
11803 # Run-time system search path for libraries
11804 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11805
11806 # Fix the shell variable \$srcfile for the compiler.
11807 fix_srcfile_path="$fix_srcfile_path"
11808
11809 # Set to yes if exported symbols are required.
11810 always_export_symbols=$always_export_symbols
11811
11812 # The commands to list exported symbols.
11813 export_symbols_cmds=$lt_export_symbols_cmds
11814
11815 # The commands to extract the exported symbol list from a shared archive.
11816 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11817
11818 # Symbols that should not be listed in the preloaded symbols.
11819 exclude_expsyms=$lt_exclude_expsyms
11820
11821 # Symbols that must always be exported.
11822 include_expsyms=$lt_include_expsyms
11823
11824 # ### END LIBTOOL CONFIG
11825
11826 __EOF__
11827
11828
11829   case $host_os in
11830   aix3*)
11831     cat <<\EOF >> "$cfgfile"
11832
11833 # AIX sometimes has problems with the GCC collect2 program.  For some
11834 # reason, if we set the COLLECT_NAMES environment variable, the problems
11835 # vanish in a puff of smoke.
11836 if test "X${COLLECT_NAMES+set}" != Xset; then
11837   COLLECT_NAMES=
11838   export COLLECT_NAMES
11839 fi
11840 EOF
11841     ;;
11842   esac
11843
11844   # We use sed instead of cat because bash on DJGPP gets confused if
11845   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11846   # text mode, it properly converts lines to CR/LF.  This bash problem
11847   # is reportedly fixed, but why not run on old versions too?
11848   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11849
11850   mv -f "$cfgfile" "$ofile" || \
11851     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11852   chmod +x "$ofile"
11853
11854 else
11855   # If there is no Makefile yet, we rely on a make rule to execute
11856   # `config.status --recheck' to rerun these tests and create the
11857   # libtool script then.
11858   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11859   if test -f "$ltmain_in"; then
11860     test -f Makefile && make "$ltmain"
11861   fi
11862 fi
11863
11864
11865 ac_ext=c
11866 ac_cpp='$CPP $CPPFLAGS'
11867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11870
11871 CC="$lt_save_CC"
11872
11873
11874 # Check whether --with-tags was given.
11875 if test "${with_tags+set}" = set; then
11876   withval=$with_tags; tagnames="$withval"
11877 fi
11878
11879
11880 if test -f "$ltmain" && test -n "$tagnames"; then
11881   if test ! -f "${ofile}"; then
11882     { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11883 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11884   fi
11885
11886   if test -z "$LTCC"; then
11887     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11888     if test -z "$LTCC"; then
11889       { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11890 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11891     else
11892       { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11893 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11894     fi
11895   fi
11896   if test -z "$LTCFLAGS"; then
11897     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11898   fi
11899
11900   # Extract list of available tagged configurations in $ofile.
11901   # Note that this assumes the entire list is on one line.
11902   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11903
11904   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11905   for tagname in $tagnames; do
11906     IFS="$lt_save_ifs"
11907     # Check whether tagname contains only valid characters
11908     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11909     "") ;;
11910     *)  { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11911 $as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
11912    { (exit 1); exit 1; }; }
11913         ;;
11914     esac
11915
11916     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11917     then
11918       { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11919 $as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11920    { (exit 1); exit 1; }; }
11921     fi
11922
11923     # Update the list of available tags.
11924     if test -n "$tagname"; then
11925       echo appending configuration tag \"$tagname\" to $ofile
11926
11927       case $tagname in
11928       CXX)
11929         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11930             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11931             (test "X$CXX" != "Xg++"))) ; then
11932           ac_ext=cpp
11933 ac_cpp='$CXXCPP $CPPFLAGS'
11934 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11935 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11936 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11937
11938
11939
11940
11941 archive_cmds_need_lc_CXX=no
11942 allow_undefined_flag_CXX=
11943 always_export_symbols_CXX=no
11944 archive_expsym_cmds_CXX=
11945 export_dynamic_flag_spec_CXX=
11946 hardcode_direct_CXX=no
11947 hardcode_libdir_flag_spec_CXX=
11948 hardcode_libdir_flag_spec_ld_CXX=
11949 hardcode_libdir_separator_CXX=
11950 hardcode_minus_L_CXX=no
11951 hardcode_shlibpath_var_CXX=unsupported
11952 hardcode_automatic_CXX=no
11953 module_cmds_CXX=
11954 module_expsym_cmds_CXX=
11955 link_all_deplibs_CXX=unknown
11956 old_archive_cmds_CXX=$old_archive_cmds
11957 no_undefined_flag_CXX=
11958 whole_archive_flag_spec_CXX=
11959 enable_shared_with_static_runtimes_CXX=no
11960
11961 # Dependencies to place before and after the object being linked:
11962 predep_objects_CXX=
11963 postdep_objects_CXX=
11964 predeps_CXX=
11965 postdeps_CXX=
11966 compiler_lib_search_path_CXX=
11967
11968 # Source file extension for C++ test sources.
11969 ac_ext=cpp
11970
11971 # Object file extension for compiled C++ test sources.
11972 objext=o
11973 objext_CXX=$objext
11974
11975 # Code to be used in simple compile tests
11976 lt_simple_compile_test_code="int some_variable = 0;\n"
11977
11978 # Code to be used in simple link tests
11979 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11980
11981 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11982
11983 # If no C compiler was specified, use CC.
11984 LTCC=${LTCC-"$CC"}
11985
11986 # If no C compiler flags were specified, use CFLAGS.
11987 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11988
11989 # Allow CC to be a program name with arguments.
11990 compiler=$CC
11991
11992
11993 # save warnings/boilerplate of simple test code
11994 ac_outfile=conftest.$ac_objext
11995 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11996 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11997 _lt_compiler_boilerplate=`cat conftest.err`
11998 $rm conftest*
11999
12000 ac_outfile=conftest.$ac_objext
12001 printf "$lt_simple_link_test_code" >conftest.$ac_ext
12002 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12003 _lt_linker_boilerplate=`cat conftest.err`
12004 $rm conftest*
12005
12006
12007 # Allow CC to be a program name with arguments.
12008 lt_save_CC=$CC
12009 lt_save_LD=$LD
12010 lt_save_GCC=$GCC
12011 GCC=$GXX
12012 lt_save_with_gnu_ld=$with_gnu_ld
12013 lt_save_path_LD=$lt_cv_path_LD
12014 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12015   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12016 else
12017   $as_unset lt_cv_prog_gnu_ld
12018 fi
12019 if test -n "${lt_cv_path_LDCXX+set}"; then
12020   lt_cv_path_LD=$lt_cv_path_LDCXX
12021 else
12022   $as_unset lt_cv_path_LD
12023 fi
12024 test -z "${LDCXX+set}" || LD=$LDCXX
12025 CC=${CXX-"c++"}
12026 compiler=$CC
12027 compiler_CXX=$CC
12028 for cc_temp in $compiler""; do
12029   case $cc_temp in
12030     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12031     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12032     \-*) ;;
12033     *) break;;
12034   esac
12035 done
12036 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12037
12038
12039 # We don't want -fno-exception wen compiling C++ code, so set the
12040 # no_builtin_flag separately
12041 if test "$GXX" = yes; then
12042   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12043 else
12044   lt_prog_compiler_no_builtin_flag_CXX=
12045 fi
12046
12047 if test "$GXX" = yes; then
12048   # Set up default GNU C++ configuration
12049
12050
12051 # Check whether --with-gnu-ld was given.
12052 if test "${with_gnu_ld+set}" = set; then
12053   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12054 else
12055   with_gnu_ld=no
12056 fi
12057
12058 ac_prog=ld
12059 if test "$GCC" = yes; then
12060   # Check if gcc -print-prog-name=ld gives a path.
12061   { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12062 $as_echo_n "checking for ld used by $CC... " >&6; }
12063   case $host in
12064   *-*-mingw*)
12065     # gcc leaves a trailing carriage return which upsets mingw
12066     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12067   *)
12068     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12069   esac
12070   case $ac_prog in
12071     # Accept absolute paths.
12072     [\\/]* | ?:[\\/]*)
12073       re_direlt='/[^/][^/]*/\.\./'
12074       # Canonicalize the pathname of ld
12075       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12076       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12077         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12078       done
12079       test -z "$LD" && LD="$ac_prog"
12080       ;;
12081   "")
12082     # If it fails, then pretend we aren't using GCC.
12083     ac_prog=ld
12084     ;;
12085   *)
12086     # If it is relative, then search for the first ld in PATH.
12087     with_gnu_ld=unknown
12088     ;;
12089   esac
12090 elif test "$with_gnu_ld" = yes; then
12091   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
12092 $as_echo_n "checking for GNU ld... " >&6; }
12093 else
12094   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12095 $as_echo_n "checking for non-GNU ld... " >&6; }
12096 fi
12097 if test "${lt_cv_path_LD+set}" = set; then
12098   $as_echo_n "(cached) " >&6
12099 else
12100   if test -z "$LD"; then
12101   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12102   for ac_dir in $PATH; do
12103     IFS="$lt_save_ifs"
12104     test -z "$ac_dir" && ac_dir=.
12105     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12106       lt_cv_path_LD="$ac_dir/$ac_prog"
12107       # Check to see if the program is GNU ld.  I'd rather use --version,
12108       # but apparently some variants of GNU ld only accept -v.
12109       # Break only if it was the GNU/non-GNU ld that we prefer.
12110       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12111       *GNU* | *'with BFD'*)
12112         test "$with_gnu_ld" != no && break
12113         ;;
12114       *)
12115         test "$with_gnu_ld" != yes && break
12116         ;;
12117       esac
12118     fi
12119   done
12120   IFS="$lt_save_ifs"
12121 else
12122   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12123 fi
12124 fi
12125
12126 LD="$lt_cv_path_LD"
12127 if test -n "$LD"; then
12128   { $as_echo "$as_me:$LINENO: result: $LD" >&5
12129 $as_echo "$LD" >&6; }
12130 else
12131   { $as_echo "$as_me:$LINENO: result: no" >&5
12132 $as_echo "no" >&6; }
12133 fi
12134 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12135 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12136    { (exit 1); exit 1; }; }
12137 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12138 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12139 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12140   $as_echo_n "(cached) " >&6
12141 else
12142   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12143 case `$LD -v 2>&1 </dev/null` in
12144 *GNU* | *'with BFD'*)
12145   lt_cv_prog_gnu_ld=yes
12146   ;;
12147 *)
12148   lt_cv_prog_gnu_ld=no
12149   ;;
12150 esac
12151 fi
12152 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12153 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12154 with_gnu_ld=$lt_cv_prog_gnu_ld
12155
12156
12157
12158   # Check if GNU C++ uses GNU ld as the underlying linker, since the
12159   # archiving commands below assume that GNU ld is being used.
12160   if test "$with_gnu_ld" = yes; then
12161     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12162     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'
12163
12164     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12165     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12166
12167     # If archive_cmds runs LD, not CC, wlarc should be empty
12168     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12169     #     investigate it a little bit more. (MM)
12170     wlarc='${wl}'
12171
12172     # ancient GNU ld didn't support --whole-archive et. al.
12173     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12174         grep 'no-whole-archive' > /dev/null; then
12175       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12176     else
12177       whole_archive_flag_spec_CXX=
12178     fi
12179   else
12180     with_gnu_ld=no
12181     wlarc=
12182
12183     # A generic and very simple default shared library creation
12184     # command for GNU C++ for the case where it uses the native
12185     # linker, instead of GNU ld.  If possible, this setting should
12186     # overridden to take advantage of the native linker features on
12187     # the platform it is being used on.
12188     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12189   fi
12190
12191   # Commands to make compiler produce verbose output that lists
12192   # what "hidden" libraries, object files and flags are used when
12193   # linking a shared library.
12194   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12195
12196 else
12197   GXX=no
12198   with_gnu_ld=no
12199   wlarc=
12200 fi
12201
12202 # PORTME: fill in a description of your system's C++ link characteristics
12203 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12204 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12205 ld_shlibs_CXX=yes
12206 case $host_os in
12207   aix3*)
12208     # FIXME: insert proper C++ library support
12209     ld_shlibs_CXX=no
12210     ;;
12211   aix4* | aix5*)
12212     if test "$host_cpu" = ia64; then
12213       # On IA64, the linker does run time linking by default, so we don't
12214       # have to do anything special.
12215       aix_use_runtimelinking=no
12216       exp_sym_flag='-Bexport'
12217       no_entry_flag=""
12218     else
12219       aix_use_runtimelinking=no
12220
12221       # Test if we are trying to use run time linking or normal
12222       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12223       # need to do runtime linking.
12224       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12225         for ld_flag in $LDFLAGS; do
12226           case $ld_flag in
12227           *-brtl*)
12228             aix_use_runtimelinking=yes
12229             break
12230             ;;
12231           esac
12232         done
12233         ;;
12234       esac
12235
12236       exp_sym_flag='-bexport'
12237       no_entry_flag='-bnoentry'
12238     fi
12239
12240     # When large executables or shared objects are built, AIX ld can
12241     # have problems creating the table of contents.  If linking a library
12242     # or program results in "error TOC overflow" add -mminimal-toc to
12243     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12244     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12245
12246     archive_cmds_CXX=''
12247     hardcode_direct_CXX=yes
12248     hardcode_libdir_separator_CXX=':'
12249     link_all_deplibs_CXX=yes
12250
12251     if test "$GXX" = yes; then
12252       case $host_os in aix4.[012]|aix4.[012].*)
12253       # We only want to do this on AIX 4.2 and lower, the check
12254       # below for broken collect2 doesn't work under 4.3+
12255         collect2name=`${CC} -print-prog-name=collect2`
12256         if test -f "$collect2name" && \
12257            strings "$collect2name" | grep resolve_lib_name >/dev/null
12258         then
12259           # We have reworked collect2
12260           hardcode_direct_CXX=yes
12261         else
12262           # We have old collect2
12263           hardcode_direct_CXX=unsupported
12264           # It fails to find uninstalled libraries when the uninstalled
12265           # path is not listed in the libpath.  Setting hardcode_minus_L
12266           # to unsupported forces relinking
12267           hardcode_minus_L_CXX=yes
12268           hardcode_libdir_flag_spec_CXX='-L$libdir'
12269           hardcode_libdir_separator_CXX=
12270         fi
12271         ;;
12272       esac
12273       shared_flag='-shared'
12274       if test "$aix_use_runtimelinking" = yes; then
12275         shared_flag="$shared_flag "'${wl}-G'
12276       fi
12277     else
12278       # not using gcc
12279       if test "$host_cpu" = ia64; then
12280         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12281         # chokes on -Wl,-G. The following line is correct:
12282         shared_flag='-G'
12283       else
12284         if test "$aix_use_runtimelinking" = yes; then
12285           shared_flag='${wl}-G'
12286         else
12287           shared_flag='${wl}-bM:SRE'
12288         fi
12289       fi
12290     fi
12291
12292     # It seems that -bexpall does not export symbols beginning with
12293     # underscore (_), so it is better to generate a list of symbols to export.
12294     always_export_symbols_CXX=yes
12295     if test "$aix_use_runtimelinking" = yes; then
12296       # Warning - without using the other runtime loading flags (-brtl),
12297       # -berok will link without error, but may produce a broken library.
12298       allow_undefined_flag_CXX='-berok'
12299       # Determine the default libpath from the value encoded in an empty executable.
12300       cat >conftest.$ac_ext <<_ACEOF
12301 /* confdefs.h.  */
12302 _ACEOF
12303 cat confdefs.h >>conftest.$ac_ext
12304 cat >>conftest.$ac_ext <<_ACEOF
12305 /* end confdefs.h.  */
12306
12307 int
12308 main ()
12309 {
12310
12311   ;
12312   return 0;
12313 }
12314 _ACEOF
12315 rm -f conftest.$ac_objext conftest$ac_exeext
12316 if { (ac_try="$ac_link"
12317 case "(($ac_try" in
12318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12319   *) ac_try_echo=$ac_try;;
12320 esac
12321 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12322 $as_echo "$ac_try_echo") >&5
12323   (eval "$ac_link") 2>conftest.er1
12324   ac_status=$?
12325   grep -v '^ *+' conftest.er1 >conftest.err
12326   rm -f conftest.er1
12327   cat conftest.err >&5
12328   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12329   (exit $ac_status); } && {
12330          test -z "$ac_cxx_werror_flag" ||
12331          test ! -s conftest.err
12332        } && test -s conftest$ac_exeext && {
12333          test "$cross_compiling" = yes ||
12334          $as_test_x conftest$ac_exeext
12335        }; then
12336
12337 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12338 }'`
12339 # Check for a 64-bit object if we didn't find anything.
12340 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12341 }'`; fi
12342 else
12343   $as_echo "$as_me: failed program was:" >&5
12344 sed 's/^/| /' conftest.$ac_ext >&5
12345
12346
12347 fi
12348
12349 rm -rf conftest.dSYM
12350 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12351       conftest$ac_exeext conftest.$ac_ext
12352 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12353
12354       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12355
12356       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"
12357      else
12358       if test "$host_cpu" = ia64; then
12359         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12360         allow_undefined_flag_CXX="-z nodefs"
12361         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"
12362       else
12363         # Determine the default libpath from the value encoded in an empty executable.
12364         cat >conftest.$ac_ext <<_ACEOF
12365 /* confdefs.h.  */
12366 _ACEOF
12367 cat confdefs.h >>conftest.$ac_ext
12368 cat >>conftest.$ac_ext <<_ACEOF
12369 /* end confdefs.h.  */
12370
12371 int
12372 main ()
12373 {
12374
12375   ;
12376   return 0;
12377 }
12378 _ACEOF
12379 rm -f conftest.$ac_objext conftest$ac_exeext
12380 if { (ac_try="$ac_link"
12381 case "(($ac_try" in
12382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12383   *) ac_try_echo=$ac_try;;
12384 esac
12385 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12386 $as_echo "$ac_try_echo") >&5
12387   (eval "$ac_link") 2>conftest.er1
12388   ac_status=$?
12389   grep -v '^ *+' conftest.er1 >conftest.err
12390   rm -f conftest.er1
12391   cat conftest.err >&5
12392   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12393   (exit $ac_status); } && {
12394          test -z "$ac_cxx_werror_flag" ||
12395          test ! -s conftest.err
12396        } && test -s conftest$ac_exeext && {
12397          test "$cross_compiling" = yes ||
12398          $as_test_x conftest$ac_exeext
12399        }; then
12400
12401 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12402 }'`
12403 # Check for a 64-bit object if we didn't find anything.
12404 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12405 }'`; fi
12406 else
12407   $as_echo "$as_me: failed program was:" >&5
12408 sed 's/^/| /' conftest.$ac_ext >&5
12409
12410
12411 fi
12412
12413 rm -rf conftest.dSYM
12414 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12415       conftest$ac_exeext conftest.$ac_ext
12416 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12417
12418         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12419         # Warning - without using the other run time loading flags,
12420         # -berok will link without error, but may produce a broken library.
12421         no_undefined_flag_CXX=' ${wl}-bernotok'
12422         allow_undefined_flag_CXX=' ${wl}-berok'
12423         # Exported symbols can be pulled into shared objects from archives
12424         whole_archive_flag_spec_CXX='$convenience'
12425         archive_cmds_need_lc_CXX=yes
12426         # This is similar to how AIX traditionally builds its shared libraries.
12427         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'
12428       fi
12429     fi
12430     ;;
12431
12432   beos*)
12433     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12434       allow_undefined_flag_CXX=unsupported
12435       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12436       # support --undefined.  This deserves some investigation.  FIXME
12437       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12438     else
12439       ld_shlibs_CXX=no
12440     fi
12441     ;;
12442
12443   chorus*)
12444     case $cc_basename in
12445       *)
12446         # FIXME: insert proper C++ library support
12447         ld_shlibs_CXX=no
12448         ;;
12449     esac
12450     ;;
12451
12452   cygwin* | mingw* | pw32*)
12453     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12454     # as there is no search path for DLLs.
12455     hardcode_libdir_flag_spec_CXX='-L$libdir'
12456     allow_undefined_flag_CXX=unsupported
12457     always_export_symbols_CXX=no
12458     enable_shared_with_static_runtimes_CXX=yes
12459
12460     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12461       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'
12462       # If the export-symbols file already is a .def file (1st line
12463       # is EXPORTS), use it as is; otherwise, prepend...
12464       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12465         cp $export_symbols $output_objdir/$soname.def;
12466       else
12467         echo EXPORTS > $output_objdir/$soname.def;
12468         cat $export_symbols >> $output_objdir/$soname.def;
12469       fi~
12470       $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'
12471     else
12472       ld_shlibs_CXX=no
12473     fi
12474   ;;
12475       darwin* | rhapsody*)
12476         case $host_os in
12477         rhapsody* | darwin1.[012])
12478          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12479          ;;
12480        *) # Darwin 1.3 on
12481          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12482            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12483          else
12484            case ${MACOSX_DEPLOYMENT_TARGET} in
12485              10.[012])
12486                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12487                ;;
12488              10.*)
12489                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12490                ;;
12491            esac
12492          fi
12493          ;;
12494         esac
12495       archive_cmds_need_lc_CXX=no
12496       hardcode_direct_CXX=no
12497       hardcode_automatic_CXX=yes
12498       hardcode_shlibpath_var_CXX=unsupported
12499       whole_archive_flag_spec_CXX=''
12500       link_all_deplibs_CXX=yes
12501
12502     if test "$GXX" = yes ; then
12503       lt_int_apple_cc_single_mod=no
12504       output_verbose_link_cmd='echo'
12505       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12506        lt_int_apple_cc_single_mod=yes
12507       fi
12508       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12509        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12510       else
12511           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'
12512         fi
12513         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12514         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12515           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12516             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12517           else
12518             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12519           fi
12520             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}'
12521       else
12522       case $cc_basename in
12523         xlc*)
12524          output_verbose_link_cmd='echo'
12525           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12526           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12527           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12528           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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12529           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}'
12530           ;;
12531        *)
12532          ld_shlibs_CXX=no
12533           ;;
12534       esac
12535       fi
12536         ;;
12537
12538   dgux*)
12539     case $cc_basename in
12540       ec++*)
12541         # FIXME: insert proper C++ library support
12542         ld_shlibs_CXX=no
12543         ;;
12544       ghcx*)
12545         # Green Hills C++ Compiler
12546         # FIXME: insert proper C++ library support
12547         ld_shlibs_CXX=no
12548         ;;
12549       *)
12550         # FIXME: insert proper C++ library support
12551         ld_shlibs_CXX=no
12552         ;;
12553     esac
12554     ;;
12555   freebsd[12]*)
12556     # C++ shared libraries reported to be fairly broken before switch to ELF
12557     ld_shlibs_CXX=no
12558     ;;
12559   freebsd-elf*)
12560     archive_cmds_need_lc_CXX=no
12561     ;;
12562   freebsd* | kfreebsd*-gnu | dragonfly*)
12563     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12564     # conventions
12565     ld_shlibs_CXX=yes
12566     ;;
12567   gnu*)
12568     ;;
12569   hpux9*)
12570     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12571     hardcode_libdir_separator_CXX=:
12572     export_dynamic_flag_spec_CXX='${wl}-E'
12573     hardcode_direct_CXX=yes
12574     hardcode_minus_L_CXX=yes # Not in the search PATH,
12575                                 # but as the default
12576                                 # location of the library.
12577
12578     case $cc_basename in
12579     CC*)
12580       # FIXME: insert proper C++ library support
12581       ld_shlibs_CXX=no
12582       ;;
12583     aCC*)
12584       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'
12585       # Commands to make compiler produce verbose output that lists
12586       # what "hidden" libraries, object files and flags are used when
12587       # linking a shared library.
12588       #
12589       # There doesn't appear to be a way to prevent this compiler from
12590       # explicitly linking system object files so we need to strip them
12591       # from the output so that they don't get included in the library
12592       # dependencies.
12593       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'
12594       ;;
12595     *)
12596       if test "$GXX" = yes; then
12597         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'
12598       else
12599         # FIXME: insert proper C++ library support
12600         ld_shlibs_CXX=no
12601       fi
12602       ;;
12603     esac
12604     ;;
12605   hpux10*|hpux11*)
12606     if test $with_gnu_ld = no; then
12607       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12608       hardcode_libdir_separator_CXX=:
12609
12610       case $host_cpu in
12611       hppa*64*|ia64*)
12612         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12613         ;;
12614       *)
12615         export_dynamic_flag_spec_CXX='${wl}-E'
12616         ;;
12617       esac
12618     fi
12619     case $host_cpu in
12620     hppa*64*|ia64*)
12621       hardcode_direct_CXX=no
12622       hardcode_shlibpath_var_CXX=no
12623       ;;
12624     *)
12625       hardcode_direct_CXX=yes
12626       hardcode_minus_L_CXX=yes # Not in the search PATH,
12627                                               # but as the default
12628                                               # location of the library.
12629       ;;
12630     esac
12631
12632     case $cc_basename in
12633       CC*)
12634         # FIXME: insert proper C++ library support
12635         ld_shlibs_CXX=no
12636         ;;
12637       aCC*)
12638         case $host_cpu in
12639         hppa*64*)
12640           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12641           ;;
12642         ia64*)
12643           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12644           ;;
12645         *)
12646           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12647           ;;
12648         esac
12649         # Commands to make compiler produce verbose output that lists
12650         # what "hidden" libraries, object files and flags are used when
12651         # linking a shared library.
12652         #
12653         # There doesn't appear to be a way to prevent this compiler from
12654         # explicitly linking system object files so we need to strip them
12655         # from the output so that they don't get included in the library
12656         # dependencies.
12657         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'
12658         ;;
12659       *)
12660         if test "$GXX" = yes; then
12661           if test $with_gnu_ld = no; then
12662             case $host_cpu in
12663             hppa*64*)
12664               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12665               ;;
12666             ia64*)
12667               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12668               ;;
12669             *)
12670               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'
12671               ;;
12672             esac
12673           fi
12674         else
12675           # FIXME: insert proper C++ library support
12676           ld_shlibs_CXX=no
12677         fi
12678         ;;
12679     esac
12680     ;;
12681   interix3*)
12682     hardcode_direct_CXX=no
12683     hardcode_shlibpath_var_CXX=no
12684     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12685     export_dynamic_flag_spec_CXX='${wl}-E'
12686     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12687     # Instead, shared libraries are loaded at an image base (0x10000000 by
12688     # default) and relocated if they conflict, which is a slow very memory
12689     # consuming and fragmenting process.  To avoid this, we pick a random,
12690     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12691     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12692     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'
12693     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'
12694     ;;
12695   irix5* | irix6*)
12696     case $cc_basename in
12697       CC*)
12698         # SGI C++
12699         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'
12700
12701         # Archives containing C++ object files must be created using
12702         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12703         # necessary to make sure instantiated templates are included
12704         # in the archive.
12705         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12706         ;;
12707       *)
12708         if test "$GXX" = yes; then
12709           if test "$with_gnu_ld" = no; then
12710             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'
12711           else
12712             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'
12713           fi
12714         fi
12715         link_all_deplibs_CXX=yes
12716         ;;
12717     esac
12718     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12719     hardcode_libdir_separator_CXX=:
12720     ;;
12721   linux*)
12722     case $cc_basename in
12723       KCC*)
12724         # Kuck and Associates, Inc. (KAI) C++ Compiler
12725
12726         # KCC will only create a shared library if the output file
12727         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12728         # to its proper name (with version) after linking.
12729         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'
12730         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'
12731         # Commands to make compiler produce verbose output that lists
12732         # what "hidden" libraries, object files and flags are used when
12733         # linking a shared library.
12734         #
12735         # There doesn't appear to be a way to prevent this compiler from
12736         # explicitly linking system object files so we need to strip them
12737         # from the output so that they don't get included in the library
12738         # dependencies.
12739         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'
12740
12741         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12742         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12743
12744         # Archives containing C++ object files must be created using
12745         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12746         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12747         ;;
12748       icpc*)
12749         # Intel C++
12750         with_gnu_ld=yes
12751         # version 8.0 and above of icpc choke on multiply defined symbols
12752         # if we add $predep_objects and $postdep_objects, however 7.1 and
12753         # earlier do not add the objects themselves.
12754         case `$CC -V 2>&1` in
12755         *"Version 7."*)
12756           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12757           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'
12758           ;;
12759         *)  # Version 8.0 or newer
12760           tmp_idyn=
12761           case $host_cpu in
12762             ia64*) tmp_idyn=' -i_dynamic';;
12763           esac
12764           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12765           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'
12766           ;;
12767         esac
12768         archive_cmds_need_lc_CXX=no
12769         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12770         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12771         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12772         ;;
12773       pgCC*)
12774         # Portland Group C++ compiler
12775         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12776         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'
12777
12778         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12779         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12780         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'
12781         ;;
12782       cxx*)
12783         # Compaq C++
12784         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12785         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'
12786
12787         runpath_var=LD_RUN_PATH
12788         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12789         hardcode_libdir_separator_CXX=:
12790
12791         # Commands to make compiler produce verbose output that lists
12792         # what "hidden" libraries, object files and flags are used when
12793         # linking a shared library.
12794         #
12795         # There doesn't appear to be a way to prevent this compiler from
12796         # explicitly linking system object files so we need to strip them
12797         # from the output so that they don't get included in the library
12798         # dependencies.
12799         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'
12800         ;;
12801     esac
12802     ;;
12803   lynxos*)
12804     # FIXME: insert proper C++ library support
12805     ld_shlibs_CXX=no
12806     ;;
12807   m88k*)
12808     # FIXME: insert proper C++ library support
12809     ld_shlibs_CXX=no
12810     ;;
12811   mvs*)
12812     case $cc_basename in
12813       cxx*)
12814         # FIXME: insert proper C++ library support
12815         ld_shlibs_CXX=no
12816         ;;
12817       *)
12818         # FIXME: insert proper C++ library support
12819         ld_shlibs_CXX=no
12820         ;;
12821     esac
12822     ;;
12823   netbsd*)
12824     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12825       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12826       wlarc=
12827       hardcode_libdir_flag_spec_CXX='-R$libdir'
12828       hardcode_direct_CXX=yes
12829       hardcode_shlibpath_var_CXX=no
12830     fi
12831     # Workaround some broken pre-1.5 toolchains
12832     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12833     ;;
12834   openbsd2*)
12835     # C++ shared libraries are fairly broken
12836     ld_shlibs_CXX=no
12837     ;;
12838   openbsd*)
12839     hardcode_direct_CXX=yes
12840     hardcode_shlibpath_var_CXX=no
12841     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12842     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12843     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12844       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12845       export_dynamic_flag_spec_CXX='${wl}-E'
12846       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12847     fi
12848     output_verbose_link_cmd='echo'
12849     ;;
12850   osf3*)
12851     case $cc_basename in
12852       KCC*)
12853         # Kuck and Associates, Inc. (KAI) C++ Compiler
12854
12855         # KCC will only create a shared library if the output file
12856         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12857         # to its proper name (with version) after linking.
12858         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'
12859
12860         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12861         hardcode_libdir_separator_CXX=:
12862
12863         # Archives containing C++ object files must be created using
12864         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12865         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12866
12867         ;;
12868       RCC*)
12869         # Rational C++ 2.4.1
12870         # FIXME: insert proper C++ library support
12871         ld_shlibs_CXX=no
12872         ;;
12873       cxx*)
12874         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12875         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'
12876
12877         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12878         hardcode_libdir_separator_CXX=:
12879
12880         # Commands to make compiler produce verbose output that lists
12881         # what "hidden" libraries, object files and flags are used when
12882         # linking a shared library.
12883         #
12884         # There doesn't appear to be a way to prevent this compiler from
12885         # explicitly linking system object files so we need to strip them
12886         # from the output so that they don't get included in the library
12887         # dependencies.
12888         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'
12889         ;;
12890       *)
12891         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12892           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12893           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'
12894
12895           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12896           hardcode_libdir_separator_CXX=:
12897
12898           # Commands to make compiler produce verbose output that lists
12899           # what "hidden" libraries, object files and flags are used when
12900           # linking a shared library.
12901           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12902
12903         else
12904           # FIXME: insert proper C++ library support
12905           ld_shlibs_CXX=no
12906         fi
12907         ;;
12908     esac
12909     ;;
12910   osf4* | osf5*)
12911     case $cc_basename in
12912       KCC*)
12913         # Kuck and Associates, Inc. (KAI) C++ Compiler
12914
12915         # KCC will only create a shared library if the output file
12916         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12917         # to its proper name (with version) after linking.
12918         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'
12919
12920         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12921         hardcode_libdir_separator_CXX=:
12922
12923         # Archives containing C++ object files must be created using
12924         # the KAI C++ compiler.
12925         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12926         ;;
12927       RCC*)
12928         # Rational C++ 2.4.1
12929         # FIXME: insert proper C++ library support
12930         ld_shlibs_CXX=no
12931         ;;
12932       cxx*)
12933         allow_undefined_flag_CXX=' -expect_unresolved \*'
12934         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'
12935         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12936           echo "-hidden">> $lib.exp~
12937           $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~
12938           $rm $lib.exp'
12939
12940         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12941         hardcode_libdir_separator_CXX=:
12942
12943         # Commands to make compiler produce verbose output that lists
12944         # what "hidden" libraries, object files and flags are used when
12945         # linking a shared library.
12946         #
12947         # There doesn't appear to be a way to prevent this compiler from
12948         # explicitly linking system object files so we need to strip them
12949         # from the output so that they don't get included in the library
12950         # dependencies.
12951         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'
12952         ;;
12953       *)
12954         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12955           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12956          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'
12957
12958           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12959           hardcode_libdir_separator_CXX=:
12960
12961           # Commands to make compiler produce verbose output that lists
12962           # what "hidden" libraries, object files and flags are used when
12963           # linking a shared library.
12964           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12965
12966         else
12967           # FIXME: insert proper C++ library support
12968           ld_shlibs_CXX=no
12969         fi
12970         ;;
12971     esac
12972     ;;
12973   psos*)
12974     # FIXME: insert proper C++ library support
12975     ld_shlibs_CXX=no
12976     ;;
12977   sunos4*)
12978     case $cc_basename in
12979       CC*)
12980         # Sun C++ 4.x
12981         # FIXME: insert proper C++ library support
12982         ld_shlibs_CXX=no
12983         ;;
12984       lcc*)
12985         # Lucid
12986         # FIXME: insert proper C++ library support
12987         ld_shlibs_CXX=no
12988         ;;
12989       *)
12990         # FIXME: insert proper C++ library support
12991         ld_shlibs_CXX=no
12992         ;;
12993     esac
12994     ;;
12995   solaris*)
12996     case $cc_basename in
12997       CC*)
12998         # Sun C++ 4.2, 5.x and Centerline C++
12999         archive_cmds_need_lc_CXX=yes
13000         no_undefined_flag_CXX=' -zdefs'
13001         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13002         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13003         $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'
13004
13005         hardcode_libdir_flag_spec_CXX='-R$libdir'
13006         hardcode_shlibpath_var_CXX=no
13007         case $host_os in
13008           solaris2.[0-5] | solaris2.[0-5].*) ;;
13009           *)
13010             # The C++ compiler is used as linker so we must use $wl
13011             # flag to pass the commands to the underlying system
13012             # linker. We must also pass each convience library through
13013             # to the system linker between allextract/defaultextract.
13014             # The C++ compiler will combine linker options so we
13015             # cannot just pass the convience library names through
13016             # without $wl.
13017             # Supported since Solaris 2.6 (maybe 2.5.1?)
13018             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
13019             ;;
13020         esac
13021         link_all_deplibs_CXX=yes
13022
13023         output_verbose_link_cmd='echo'
13024
13025         # Archives containing C++ object files must be created using
13026         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13027         # necessary to make sure instantiated templates are included
13028         # in the archive.
13029         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13030         ;;
13031       gcx*)
13032         # Green Hills C++ Compiler
13033         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13034
13035         # The C++ compiler must be used to create the archive.
13036         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13037         ;;
13038       *)
13039         # GNU C++ compiler with Solaris linker
13040         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13041           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13042           if $CC --version | grep -v '^2\.7' > /dev/null; then
13043             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13044             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13045                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13046
13047             # Commands to make compiler produce verbose output that lists
13048             # what "hidden" libraries, object files and flags are used when
13049             # linking a shared library.
13050             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13051           else
13052             # g++ 2.7 appears to require `-G' NOT `-shared' on this
13053             # platform.
13054             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13055             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13056                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13057
13058             # Commands to make compiler produce verbose output that lists
13059             # what "hidden" libraries, object files and flags are used when
13060             # linking a shared library.
13061             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13062           fi
13063
13064           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13065         fi
13066         ;;
13067     esac
13068     ;;
13069   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13070     no_undefined_flag_CXX='${wl}-z,text'
13071     archive_cmds_need_lc_CXX=no
13072     hardcode_shlibpath_var_CXX=no
13073     runpath_var='LD_RUN_PATH'
13074
13075     case $cc_basename in
13076       CC*)
13077         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13078         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13079         ;;
13080       *)
13081         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13082         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13083         ;;
13084     esac
13085     ;;
13086   sysv5* | sco3.2v5* | sco5v6*)
13087     # Note: We can NOT use -z defs as we might desire, because we do not
13088     # link with -lc, and that would cause any symbols used from libc to
13089     # always be unresolved, which means just about no library would
13090     # ever link correctly.  If we're not using GNU ld we use -z text
13091     # though, which does catch some bad symbols but isn't as heavy-handed
13092     # as -z defs.
13093     # For security reasons, it is highly recommended that you always
13094     # use absolute paths for naming shared libraries, and exclude the
13095     # DT_RUNPATH tag from executables and libraries.  But doing so
13096     # requires that you compile everything twice, which is a pain.
13097     # So that behaviour is only enabled if SCOABSPATH is set to a
13098     # non-empty value in the environment.  Most likely only useful for
13099     # creating official distributions of packages.
13100     # This is a hack until libtool officially supports absolute path
13101     # names for shared libraries.
13102     no_undefined_flag_CXX='${wl}-z,text'
13103     allow_undefined_flag_CXX='${wl}-z,nodefs'
13104     archive_cmds_need_lc_CXX=no
13105     hardcode_shlibpath_var_CXX=no
13106     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
13107     hardcode_libdir_separator_CXX=':'
13108     link_all_deplibs_CXX=yes
13109     export_dynamic_flag_spec_CXX='${wl}-Bexport'
13110     runpath_var='LD_RUN_PATH'
13111
13112     case $cc_basename in
13113       CC*)
13114         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13115         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13116         ;;
13117       *)
13118         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13119         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13120         ;;
13121     esac
13122     ;;
13123   tandem*)
13124     case $cc_basename in
13125       NCC*)
13126         # NonStop-UX NCC 3.20
13127         # FIXME: insert proper C++ library support
13128         ld_shlibs_CXX=no
13129         ;;
13130       *)
13131         # FIXME: insert proper C++ library support
13132         ld_shlibs_CXX=no
13133         ;;
13134     esac
13135     ;;
13136   vxworks*)
13137     # FIXME: insert proper C++ library support
13138     ld_shlibs_CXX=no
13139     ;;
13140   *)
13141     # FIXME: insert proper C++ library support
13142     ld_shlibs_CXX=no
13143     ;;
13144 esac
13145 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13146 $as_echo "$ld_shlibs_CXX" >&6; }
13147 test "$ld_shlibs_CXX" = no && can_build_shared=no
13148
13149 GCC_CXX="$GXX"
13150 LD_CXX="$LD"
13151
13152
13153 cat > conftest.$ac_ext <<EOF
13154 class Foo
13155 {
13156 public:
13157   Foo (void) { a = 0; }
13158 private:
13159   int a;
13160 };
13161 EOF
13162
13163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13164   (eval $ac_compile) 2>&5
13165   ac_status=$?
13166   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13167   (exit $ac_status); }; then
13168   # Parse the compiler output and extract the necessary
13169   # objects, libraries and library flags.
13170
13171   # Sentinel used to keep track of whether or not we are before
13172   # the conftest object file.
13173   pre_test_object_deps_done=no
13174
13175   # The `*' in the case matches for architectures that use `case' in
13176   # $output_verbose_cmd can trigger glob expansion during the loop
13177   # eval without this substitution.
13178   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13179
13180   for p in `eval $output_verbose_link_cmd`; do
13181     case $p in
13182
13183     -L* | -R* | -l*)
13184        # Some compilers place space between "-{L,R}" and the path.
13185        # Remove the space.
13186        if test $p = "-L" \
13187           || test $p = "-R"; then
13188          prev=$p
13189          continue
13190        else
13191          prev=
13192        fi
13193
13194        if test "$pre_test_object_deps_done" = no; then
13195          case $p in
13196          -L* | -R*)
13197            # Internal compiler library paths should come after those
13198            # provided the user.  The postdeps already come after the
13199            # user supplied libs so there is no need to process them.
13200            if test -z "$compiler_lib_search_path_CXX"; then
13201              compiler_lib_search_path_CXX="${prev}${p}"
13202            else
13203              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13204            fi
13205            ;;
13206          # The "-l" case would never come before the object being
13207          # linked, so don't bother handling this case.
13208          esac
13209        else
13210          if test -z "$postdeps_CXX"; then
13211            postdeps_CXX="${prev}${p}"
13212          else
13213            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13214          fi
13215        fi
13216        ;;
13217
13218     *.$objext)
13219        # This assumes that the test object file only shows up
13220        # once in the compiler output.
13221        if test "$p" = "conftest.$objext"; then
13222          pre_test_object_deps_done=yes
13223          continue
13224        fi
13225
13226        if test "$pre_test_object_deps_done" = no; then
13227          if test -z "$predep_objects_CXX"; then
13228            predep_objects_CXX="$p"
13229          else
13230            predep_objects_CXX="$predep_objects_CXX $p"
13231          fi
13232        else
13233          if test -z "$postdep_objects_CXX"; then
13234            postdep_objects_CXX="$p"
13235          else
13236            postdep_objects_CXX="$postdep_objects_CXX $p"
13237          fi
13238        fi
13239        ;;
13240
13241     *) ;; # Ignore the rest.
13242
13243     esac
13244   done
13245
13246   # Clean up.
13247   rm -f a.out a.exe
13248 else
13249   echo "libtool.m4: error: problem compiling CXX test program"
13250 fi
13251
13252 $rm -f confest.$objext
13253
13254 # PORTME: override above test on systems where it is broken
13255 case $host_os in
13256 interix3*)
13257   # Interix 3.5 installs completely hosed .la files for C++, so rather than
13258   # hack all around it, let's just trust "g++" to DTRT.
13259   predep_objects_CXX=
13260   postdep_objects_CXX=
13261   postdeps_CXX=
13262   ;;
13263
13264 solaris*)
13265   case $cc_basename in
13266   CC*)
13267     # Adding this requires a known-good setup of shared libraries for
13268     # Sun compiler versions before 5.6, else PIC objects from an old
13269     # archive will be linked into the output, leading to subtle bugs.
13270     postdeps_CXX='-lCstd -lCrun'
13271     ;;
13272   esac
13273   ;;
13274 esac
13275
13276
13277 case " $postdeps_CXX " in
13278 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13279 esac
13280
13281 lt_prog_compiler_wl_CXX=
13282 lt_prog_compiler_pic_CXX=
13283 lt_prog_compiler_static_CXX=
13284
13285 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13286 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13287
13288   # C++ specific cases for pic, static, wl, etc.
13289   if test "$GXX" = yes; then
13290     lt_prog_compiler_wl_CXX='-Wl,'
13291     lt_prog_compiler_static_CXX='-static'
13292
13293     case $host_os in
13294     aix*)
13295       # All AIX code is PIC.
13296       if test "$host_cpu" = ia64; then
13297         # AIX 5 now supports IA64 processor
13298         lt_prog_compiler_static_CXX='-Bstatic'
13299       fi
13300       ;;
13301     amigaos*)
13302       # FIXME: we need at least 68020 code to build shared libraries, but
13303       # adding the `-m68020' flag to GCC prevents building anything better,
13304       # like `-m68040'.
13305       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13306       ;;
13307     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13308       # PIC is the default for these OSes.
13309       ;;
13310     mingw* | os2* | pw32*)
13311       # This hack is so that the source file can tell whether it is being
13312       # built for inclusion in a dll (and should export symbols for example).
13313       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13314       ;;
13315     darwin* | rhapsody*)
13316       # PIC is the default on this platform
13317       # Common symbols not allowed in MH_DYLIB files
13318       lt_prog_compiler_pic_CXX='-fno-common'
13319       ;;
13320     *djgpp*)
13321       # DJGPP does not support shared libraries at all
13322       lt_prog_compiler_pic_CXX=
13323       ;;
13324     interix3*)
13325       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13326       # Instead, we relocate shared libraries at runtime.
13327       ;;
13328     sysv4*MP*)
13329       if test -d /usr/nec; then
13330         lt_prog_compiler_pic_CXX=-Kconform_pic
13331       fi
13332       ;;
13333     hpux*)
13334       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13335       # not for PA HP-UX.
13336       case $host_cpu in
13337       hppa*64*|ia64*)
13338         ;;
13339       *)
13340         lt_prog_compiler_pic_CXX='-fPIC'
13341         ;;
13342       esac
13343       ;;
13344     *)
13345       lt_prog_compiler_pic_CXX='-fPIC'
13346       ;;
13347     esac
13348   else
13349     case $host_os in
13350       aix4* | aix5*)
13351         # All AIX code is PIC.
13352         if test "$host_cpu" = ia64; then
13353           # AIX 5 now supports IA64 processor
13354           lt_prog_compiler_static_CXX='-Bstatic'
13355         else
13356           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13357         fi
13358         ;;
13359       chorus*)
13360         case $cc_basename in
13361         cxch68*)
13362           # Green Hills C++ Compiler
13363           # _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"
13364           ;;
13365         esac
13366         ;;
13367        darwin*)
13368          # PIC is the default on this platform
13369          # Common symbols not allowed in MH_DYLIB files
13370          case $cc_basename in
13371            xlc*)
13372            lt_prog_compiler_pic_CXX='-qnocommon'
13373            lt_prog_compiler_wl_CXX='-Wl,'
13374            ;;
13375          esac
13376        ;;
13377       dgux*)
13378         case $cc_basename in
13379           ec++*)
13380             lt_prog_compiler_pic_CXX='-KPIC'
13381             ;;
13382           ghcx*)
13383             # Green Hills C++ Compiler
13384             lt_prog_compiler_pic_CXX='-pic'
13385             ;;
13386           *)
13387             ;;
13388         esac
13389         ;;
13390       freebsd* | kfreebsd*-gnu | dragonfly*)
13391         # FreeBSD uses GNU C++
13392         ;;
13393       hpux9* | hpux10* | hpux11*)
13394         case $cc_basename in
13395           CC*)
13396             lt_prog_compiler_wl_CXX='-Wl,'
13397             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13398             if test "$host_cpu" != ia64; then
13399               lt_prog_compiler_pic_CXX='+Z'
13400             fi
13401             ;;
13402           aCC*)
13403             lt_prog_compiler_wl_CXX='-Wl,'
13404             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13405             case $host_cpu in
13406             hppa*64*|ia64*)
13407               # +Z the default
13408               ;;
13409             *)
13410               lt_prog_compiler_pic_CXX='+Z'
13411               ;;
13412             esac
13413             ;;
13414           *)
13415             ;;
13416         esac
13417         ;;
13418       interix*)
13419         # This is c89, which is MS Visual C++ (no shared libs)
13420         # Anyone wants to do a port?
13421         ;;
13422       irix5* | irix6* | nonstopux*)
13423         case $cc_basename in
13424           CC*)
13425             lt_prog_compiler_wl_CXX='-Wl,'
13426             lt_prog_compiler_static_CXX='-non_shared'
13427             # CC pic flag -KPIC is the default.
13428             ;;
13429           *)
13430             ;;
13431         esac
13432         ;;
13433       linux*)
13434         case $cc_basename in
13435           KCC*)
13436             # KAI C++ Compiler
13437             lt_prog_compiler_wl_CXX='--backend -Wl,'
13438             lt_prog_compiler_pic_CXX='-fPIC'
13439             ;;
13440           icpc* | ecpc*)
13441             # Intel C++
13442             lt_prog_compiler_wl_CXX='-Wl,'
13443             lt_prog_compiler_pic_CXX='-KPIC'
13444             lt_prog_compiler_static_CXX='-static'
13445             ;;
13446           pgCC*)
13447             # Portland Group C++ compiler.
13448             lt_prog_compiler_wl_CXX='-Wl,'
13449             lt_prog_compiler_pic_CXX='-fpic'
13450             lt_prog_compiler_static_CXX='-Bstatic'
13451             ;;
13452           cxx*)
13453             # Compaq C++
13454             # Make sure the PIC flag is empty.  It appears that all Alpha
13455             # Linux and Compaq Tru64 Unix objects are PIC.
13456             lt_prog_compiler_pic_CXX=
13457             lt_prog_compiler_static_CXX='-non_shared'
13458             ;;
13459           *)
13460             ;;
13461         esac
13462         ;;
13463       lynxos*)
13464         ;;
13465       m88k*)
13466         ;;
13467       mvs*)
13468         case $cc_basename in
13469           cxx*)
13470             lt_prog_compiler_pic_CXX='-W c,exportall'
13471             ;;
13472           *)
13473             ;;
13474         esac
13475         ;;
13476       netbsd*)
13477         ;;
13478       osf3* | osf4* | osf5*)
13479         case $cc_basename in
13480           KCC*)
13481             lt_prog_compiler_wl_CXX='--backend -Wl,'
13482             ;;
13483           RCC*)
13484             # Rational C++ 2.4.1
13485             lt_prog_compiler_pic_CXX='-pic'
13486             ;;
13487           cxx*)
13488             # Digital/Compaq C++
13489             lt_prog_compiler_wl_CXX='-Wl,'
13490             # Make sure the PIC flag is empty.  It appears that all Alpha
13491             # Linux and Compaq Tru64 Unix objects are PIC.
13492             lt_prog_compiler_pic_CXX=
13493             lt_prog_compiler_static_CXX='-non_shared'
13494             ;;
13495           *)
13496             ;;
13497         esac
13498         ;;
13499       psos*)
13500         ;;
13501       solaris*)
13502         case $cc_basename in
13503           CC*)
13504             # Sun C++ 4.2, 5.x and Centerline C++
13505             lt_prog_compiler_pic_CXX='-KPIC'
13506             lt_prog_compiler_static_CXX='-Bstatic'
13507             lt_prog_compiler_wl_CXX='-Qoption ld '
13508             ;;
13509           gcx*)
13510             # Green Hills C++ Compiler
13511             lt_prog_compiler_pic_CXX='-PIC'
13512             ;;
13513           *)
13514             ;;
13515         esac
13516         ;;
13517       sunos4*)
13518         case $cc_basename in
13519           CC*)
13520             # Sun C++ 4.x
13521             lt_prog_compiler_pic_CXX='-pic'
13522             lt_prog_compiler_static_CXX='-Bstatic'
13523             ;;
13524           lcc*)
13525             # Lucid
13526             lt_prog_compiler_pic_CXX='-pic'
13527             ;;
13528           *)
13529             ;;
13530         esac
13531         ;;
13532       tandem*)
13533         case $cc_basename in
13534           NCC*)
13535             # NonStop-UX NCC 3.20
13536             lt_prog_compiler_pic_CXX='-KPIC'
13537             ;;
13538           *)
13539             ;;
13540         esac
13541         ;;
13542       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13543         case $cc_basename in
13544           CC*)
13545             lt_prog_compiler_wl_CXX='-Wl,'
13546             lt_prog_compiler_pic_CXX='-KPIC'
13547             lt_prog_compiler_static_CXX='-Bstatic'
13548             ;;
13549         esac
13550         ;;
13551       vxworks*)
13552         ;;
13553       *)
13554         lt_prog_compiler_can_build_shared_CXX=no
13555         ;;
13556     esac
13557   fi
13558
13559 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13560 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13561
13562 #
13563 # Check to make sure the PIC flag actually works.
13564 #
13565 if test -n "$lt_prog_compiler_pic_CXX"; then
13566
13567 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13568 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13569 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13570   $as_echo_n "(cached) " >&6
13571 else
13572   lt_prog_compiler_pic_works_CXX=no
13573   ac_outfile=conftest.$ac_objext
13574    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13575    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13576    # Insert the option either (1) after the last *FLAGS variable, or
13577    # (2) before a word containing "conftest.", or (3) at the end.
13578    # Note that $ac_compile itself does not contain backslashes and begins
13579    # with a dollar sign (not a hyphen), so the echo should work correctly.
13580    # The option is referenced via a variable to avoid confusing sed.
13581    lt_compile=`echo "$ac_compile" | $SED \
13582    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13583    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13584    -e 's:$: $lt_compiler_flag:'`
13585    (eval echo "\"\$as_me:13585: $lt_compile\"" >&5)
13586    (eval "$lt_compile" 2>conftest.err)
13587    ac_status=$?
13588    cat conftest.err >&5
13589    echo "$as_me:13589: \$? = $ac_status" >&5
13590    if (exit $ac_status) && test -s "$ac_outfile"; then
13591      # The compiler can only warn and ignore the option if not recognized
13592      # So say no if there are warnings other than the usual output.
13593      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13594      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13595      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13596        lt_prog_compiler_pic_works_CXX=yes
13597      fi
13598    fi
13599    $rm conftest*
13600
13601 fi
13602 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13603 $as_echo "$lt_prog_compiler_pic_works_CXX" >&6; }
13604
13605 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13606     case $lt_prog_compiler_pic_CXX in
13607      "" | " "*) ;;
13608      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13609      esac
13610 else
13611     lt_prog_compiler_pic_CXX=
13612      lt_prog_compiler_can_build_shared_CXX=no
13613 fi
13614
13615 fi
13616 case $host_os in
13617   # For platforms which do not support PIC, -DPIC is meaningless:
13618   *djgpp*)
13619     lt_prog_compiler_pic_CXX=
13620     ;;
13621   *)
13622     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13623     ;;
13624 esac
13625
13626 #
13627 # Check to make sure the static flag actually works.
13628 #
13629 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13630 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13631 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13632 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
13633   $as_echo_n "(cached) " >&6
13634 else
13635   lt_prog_compiler_static_works_CXX=no
13636    save_LDFLAGS="$LDFLAGS"
13637    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13638    printf "$lt_simple_link_test_code" > conftest.$ac_ext
13639    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13640      # The linker can only warn and ignore the option if not recognized
13641      # So say no if there are warnings
13642      if test -s conftest.err; then
13643        # Append any errors to the config.log.
13644        cat conftest.err 1>&5
13645        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13646        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13647        if diff conftest.exp conftest.er2 >/dev/null; then
13648          lt_prog_compiler_static_works_CXX=yes
13649        fi
13650      else
13651        lt_prog_compiler_static_works_CXX=yes
13652      fi
13653    fi
13654    $rm conftest*
13655    LDFLAGS="$save_LDFLAGS"
13656
13657 fi
13658 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
13659 $as_echo "$lt_prog_compiler_static_works_CXX" >&6; }
13660
13661 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
13662     :
13663 else
13664     lt_prog_compiler_static_CXX=
13665 fi
13666
13667
13668 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13669 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13670 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13671   $as_echo_n "(cached) " >&6
13672 else
13673   lt_cv_prog_compiler_c_o_CXX=no
13674    $rm -r conftest 2>/dev/null
13675    mkdir conftest
13676    cd conftest
13677    mkdir out
13678    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13679
13680    lt_compiler_flag="-o out/conftest2.$ac_objext"
13681    # Insert the option either (1) after the last *FLAGS variable, or
13682    # (2) before a word containing "conftest.", or (3) at the end.
13683    # Note that $ac_compile itself does not contain backslashes and begins
13684    # with a dollar sign (not a hyphen), so the echo should work correctly.
13685    lt_compile=`echo "$ac_compile" | $SED \
13686    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13687    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13688    -e 's:$: $lt_compiler_flag:'`
13689    (eval echo "\"\$as_me:13689: $lt_compile\"" >&5)
13690    (eval "$lt_compile" 2>out/conftest.err)
13691    ac_status=$?
13692    cat out/conftest.err >&5
13693    echo "$as_me:13693: \$? = $ac_status" >&5
13694    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13695    then
13696      # The compiler can only warn and ignore the option if not recognized
13697      # So say no if there are warnings
13698      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13699      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13700      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13701        lt_cv_prog_compiler_c_o_CXX=yes
13702      fi
13703    fi
13704    chmod u+w . 2>&5
13705    $rm conftest*
13706    # SGI C++ compiler will create directory out/ii_files/ for
13707    # template instantiation
13708    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13709    $rm out/* && rmdir out
13710    cd ..
13711    rmdir conftest
13712    $rm conftest*
13713
13714 fi
13715 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13716 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13717
13718
13719 hard_links="nottested"
13720 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13721   # do not overwrite the value of need_locks provided by the user
13722   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13723 $as_echo_n "checking if we can lock with hard links... " >&6; }
13724   hard_links=yes
13725   $rm conftest*
13726   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13727   touch conftest.a
13728   ln conftest.a conftest.b 2>&5 || hard_links=no
13729   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13730   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
13731 $as_echo "$hard_links" >&6; }
13732   if test "$hard_links" = no; then
13733     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13734 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13735     need_locks=warn
13736   fi
13737 else
13738   need_locks=no
13739 fi
13740
13741 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13742 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13743
13744   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13745   case $host_os in
13746   aix4* | aix5*)
13747     # If we're using GNU nm, then we don't want the "-C" option.
13748     # -C means demangle to AIX nm, but means don't demangle with GNU nm
13749     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13750       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'
13751     else
13752       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'
13753     fi
13754     ;;
13755   pw32*)
13756     export_symbols_cmds_CXX="$ltdll_cmds"
13757   ;;
13758   cygwin* | mingw*)
13759     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'
13760   ;;
13761   *)
13762     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13763   ;;
13764   esac
13765
13766 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13767 $as_echo "$ld_shlibs_CXX" >&6; }
13768 test "$ld_shlibs_CXX" = no && can_build_shared=no
13769
13770 #
13771 # Do we need to explicitly link libc?
13772 #
13773 case "x$archive_cmds_need_lc_CXX" in
13774 x|xyes)
13775   # Assume -lc should be added
13776   archive_cmds_need_lc_CXX=yes
13777
13778   if test "$enable_shared" = yes && test "$GCC" = yes; then
13779     case $archive_cmds_CXX in
13780     *'~'*)
13781       # FIXME: we may have to deal with multi-command sequences.
13782       ;;
13783     '$CC '*)
13784       # Test whether the compiler implicitly links with -lc since on some
13785       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13786       # to ld, don't add -lc before -lgcc.
13787       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13788 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13789       $rm conftest*
13790       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13791
13792       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13793   (eval $ac_compile) 2>&5
13794   ac_status=$?
13795   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13796   (exit $ac_status); } 2>conftest.err; then
13797         soname=conftest
13798         lib=conftest
13799         libobjs=conftest.$ac_objext
13800         deplibs=
13801         wl=$lt_prog_compiler_wl_CXX
13802         pic_flag=$lt_prog_compiler_pic_CXX
13803         compiler_flags=-v
13804         linker_flags=-v
13805         verstring=
13806         output_objdir=.
13807         libname=conftest
13808         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13809         allow_undefined_flag_CXX=
13810         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13811   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13812   ac_status=$?
13813   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13814   (exit $ac_status); }
13815         then
13816           archive_cmds_need_lc_CXX=no
13817         else
13818           archive_cmds_need_lc_CXX=yes
13819         fi
13820         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13821       else
13822         cat conftest.err 1>&5
13823       fi
13824       $rm conftest*
13825       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13826 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
13827       ;;
13828     esac
13829   fi
13830   ;;
13831 esac
13832
13833 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13834 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13835 library_names_spec=
13836 libname_spec='lib$name'
13837 soname_spec=
13838 shrext_cmds=".so"
13839 postinstall_cmds=
13840 postuninstall_cmds=
13841 finish_cmds=
13842 finish_eval=
13843 shlibpath_var=
13844 shlibpath_overrides_runpath=unknown
13845 version_type=none
13846 dynamic_linker="$host_os ld.so"
13847 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13848 if test "$GCC" = yes; then
13849   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13850   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13851     # if the path contains ";" then we assume it to be the separator
13852     # otherwise default to the standard path separator (i.e. ":") - it is
13853     # assumed that no part of a normal pathname contains ";" but that should
13854     # okay in the real world where ";" in dirpaths is itself problematic.
13855     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13856   else
13857     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13858   fi
13859 else
13860   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13861 fi
13862 need_lib_prefix=unknown
13863 hardcode_into_libs=no
13864
13865 # when you set need_version to no, make sure it does not cause -set_version
13866 # flags to be left without arguments
13867 need_version=unknown
13868
13869 case $host_os in
13870 aix3*)
13871   version_type=linux
13872   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13873   shlibpath_var=LIBPATH
13874
13875   # AIX 3 has no versioning support, so we append a major version to the name.
13876   soname_spec='${libname}${release}${shared_ext}$major'
13877   ;;
13878
13879 aix4* | aix5*)
13880   version_type=linux
13881   need_lib_prefix=no
13882   need_version=no
13883   hardcode_into_libs=yes
13884   if test "$host_cpu" = ia64; then
13885     # AIX 5 supports IA64
13886     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13887     shlibpath_var=LD_LIBRARY_PATH
13888   else
13889     # With GCC up to 2.95.x, collect2 would create an import file
13890     # for dependence libraries.  The import file would start with
13891     # the line `#! .'.  This would cause the generated library to
13892     # depend on `.', always an invalid library.  This was fixed in
13893     # development snapshots of GCC prior to 3.0.
13894     case $host_os in
13895       aix4 | aix4.[01] | aix4.[01].*)
13896       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13897            echo ' yes '
13898            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13899         :
13900       else
13901         can_build_shared=no
13902       fi
13903       ;;
13904     esac
13905     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13906     # soname into executable. Probably we can add versioning support to
13907     # collect2, so additional links can be useful in future.
13908     if test "$aix_use_runtimelinking" = yes; then
13909       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13910       # instead of lib<name>.a to let people know that these are not
13911       # typical AIX shared libraries.
13912       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13913     else
13914       # We preserve .a as extension for shared libraries through AIX4.2
13915       # and later when we are not doing run time linking.
13916       library_names_spec='${libname}${release}.a $libname.a'
13917       soname_spec='${libname}${release}${shared_ext}$major'
13918     fi
13919     shlibpath_var=LIBPATH
13920   fi
13921   ;;
13922
13923 amigaos*)
13924   library_names_spec='$libname.ixlibrary $libname.a'
13925   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13926   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'
13927   ;;
13928
13929 beos*)
13930   library_names_spec='${libname}${shared_ext}'
13931   dynamic_linker="$host_os ld.so"
13932   shlibpath_var=LIBRARY_PATH
13933   ;;
13934
13935 bsdi[45]*)
13936   version_type=linux
13937   need_version=no
13938   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13939   soname_spec='${libname}${release}${shared_ext}$major'
13940   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13941   shlibpath_var=LD_LIBRARY_PATH
13942   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13943   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13944   # the default ld.so.conf also contains /usr/contrib/lib and
13945   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13946   # libtool to hard-code these into programs
13947   ;;
13948
13949 cygwin* | mingw* | pw32*)
13950   version_type=windows
13951   shrext_cmds=".dll"
13952   need_version=no
13953   need_lib_prefix=no
13954
13955   case $GCC,$host_os in
13956   yes,cygwin* | yes,mingw* | yes,pw32*)
13957     library_names_spec='$libname.dll.a'
13958     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13959     postinstall_cmds='base_file=`basename \${file}`~
13960       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13961       dldir=$destdir/`dirname \$dlpath`~
13962       test -d \$dldir || mkdir -p \$dldir~
13963       $install_prog $dir/$dlname \$dldir/$dlname~
13964       chmod a+x \$dldir/$dlname'
13965     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13966       dlpath=$dir/\$dldll~
13967        $rm \$dlpath'
13968     shlibpath_overrides_runpath=yes
13969
13970     case $host_os in
13971     cygwin*)
13972       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13973       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13974       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13975       ;;
13976     mingw*)
13977       # MinGW DLLs use traditional 'lib' prefix
13978       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13979       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13980       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13981         # It is most probably a Windows format PATH printed by
13982         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13983         # path with ; separators, and with drive letters. We can handle the
13984         # drive letters (cygwin fileutils understands them), so leave them,
13985         # especially as we might pass files found there to a mingw objdump,
13986         # which wouldn't understand a cygwinified path. Ahh.
13987         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13988       else
13989         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13990       fi
13991       ;;
13992     pw32*)
13993       # pw32 DLLs use 'pw' prefix rather than 'lib'
13994       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13995       ;;
13996     esac
13997     ;;
13998
13999   *)
14000     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14001     ;;
14002   esac
14003   dynamic_linker='Win32 ld.exe'
14004   # FIXME: first we should search . and the directory the executable is in
14005   shlibpath_var=PATH
14006   ;;
14007
14008 darwin* | rhapsody*)
14009   dynamic_linker="$host_os dyld"
14010   version_type=darwin
14011   need_lib_prefix=no
14012   need_version=no
14013   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14014   soname_spec='${libname}${release}${major}$shared_ext'
14015   shlibpath_overrides_runpath=yes
14016   shlibpath_var=DYLD_LIBRARY_PATH
14017   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14018   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14019   if test "$GCC" = yes; then
14020     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
14021   else
14022     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14023   fi
14024   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14025   ;;
14026
14027 dgux*)
14028   version_type=linux
14029   need_lib_prefix=no
14030   need_version=no
14031   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14032   soname_spec='${libname}${release}${shared_ext}$major'
14033   shlibpath_var=LD_LIBRARY_PATH
14034   ;;
14035
14036 freebsd1*)
14037   dynamic_linker=no
14038   ;;
14039
14040 kfreebsd*-gnu)
14041   version_type=linux
14042   need_lib_prefix=no
14043   need_version=no
14044   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14045   soname_spec='${libname}${release}${shared_ext}$major'
14046   shlibpath_var=LD_LIBRARY_PATH
14047   shlibpath_overrides_runpath=no
14048   hardcode_into_libs=yes
14049   dynamic_linker='GNU ld.so'
14050   ;;
14051
14052 freebsd* | dragonfly*)
14053   # DragonFly does not have aout.  When/if they implement a new
14054   # versioning mechanism, adjust this.
14055   if test -x /usr/bin/objformat; then
14056     objformat=`/usr/bin/objformat`
14057   else
14058     case $host_os in
14059     freebsd[123]*) objformat=aout ;;
14060     *) objformat=elf ;;
14061     esac
14062   fi
14063   version_type=freebsd-$objformat
14064   case $version_type in
14065     freebsd-elf*)
14066       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14067       need_version=no
14068       need_lib_prefix=no
14069       ;;
14070     freebsd-*)
14071       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14072       need_version=yes
14073       ;;
14074   esac
14075   shlibpath_var=LD_LIBRARY_PATH
14076   case $host_os in
14077   freebsd2*)
14078     shlibpath_overrides_runpath=yes
14079     ;;
14080   freebsd3.[01]* | freebsdelf3.[01]*)
14081     shlibpath_overrides_runpath=yes
14082     hardcode_into_libs=yes
14083     ;;
14084   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14085   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14086     shlibpath_overrides_runpath=no
14087     hardcode_into_libs=yes
14088     ;;
14089   freebsd*) # from 4.6 on
14090     shlibpath_overrides_runpath=yes
14091     hardcode_into_libs=yes
14092     ;;
14093   esac
14094   ;;
14095
14096 gnu*)
14097   version_type=linux
14098   need_lib_prefix=no
14099   need_version=no
14100   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14101   soname_spec='${libname}${release}${shared_ext}$major'
14102   shlibpath_var=LD_LIBRARY_PATH
14103   hardcode_into_libs=yes
14104   ;;
14105
14106 hpux9* | hpux10* | hpux11*)
14107   # Give a soname corresponding to the major version so that dld.sl refuses to
14108   # link against other versions.
14109   version_type=sunos
14110   need_lib_prefix=no
14111   need_version=no
14112   case $host_cpu in
14113   ia64*)
14114     shrext_cmds='.so'
14115     hardcode_into_libs=yes
14116     dynamic_linker="$host_os dld.so"
14117     shlibpath_var=LD_LIBRARY_PATH
14118     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14119     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14120     soname_spec='${libname}${release}${shared_ext}$major'
14121     if test "X$HPUX_IA64_MODE" = X32; then
14122       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14123     else
14124       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14125     fi
14126     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14127     ;;
14128    hppa*64*)
14129      shrext_cmds='.sl'
14130      hardcode_into_libs=yes
14131      dynamic_linker="$host_os dld.sl"
14132      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14133      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14134      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14135      soname_spec='${libname}${release}${shared_ext}$major'
14136      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14137      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14138      ;;
14139    *)
14140     shrext_cmds='.sl'
14141     dynamic_linker="$host_os dld.sl"
14142     shlibpath_var=SHLIB_PATH
14143     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14144     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14145     soname_spec='${libname}${release}${shared_ext}$major'
14146     ;;
14147   esac
14148   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14149   postinstall_cmds='chmod 555 $lib'
14150   ;;
14151
14152 interix3*)
14153   version_type=linux
14154   need_lib_prefix=no
14155   need_version=no
14156   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14157   soname_spec='${libname}${release}${shared_ext}$major'
14158   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14159   shlibpath_var=LD_LIBRARY_PATH
14160   shlibpath_overrides_runpath=no
14161   hardcode_into_libs=yes
14162   ;;
14163
14164 irix5* | irix6* | nonstopux*)
14165   case $host_os in
14166     nonstopux*) version_type=nonstopux ;;
14167     *)
14168         if test "$lt_cv_prog_gnu_ld" = yes; then
14169                 version_type=linux
14170         else
14171                 version_type=irix
14172         fi ;;
14173   esac
14174   need_lib_prefix=no
14175   need_version=no
14176   soname_spec='${libname}${release}${shared_ext}$major'
14177   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14178   case $host_os in
14179   irix5* | nonstopux*)
14180     libsuff= shlibsuff=
14181     ;;
14182   *)
14183     case $LD in # libtool.m4 will add one of these switches to LD
14184     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14185       libsuff= shlibsuff= libmagic=32-bit;;
14186     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14187       libsuff=32 shlibsuff=N32 libmagic=N32;;
14188     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14189       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14190     *) libsuff= shlibsuff= libmagic=never-match;;
14191     esac
14192     ;;
14193   esac
14194   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14195   shlibpath_overrides_runpath=no
14196   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14197   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14198   hardcode_into_libs=yes
14199   ;;
14200
14201 # No shared lib support for Linux oldld, aout, or coff.
14202 linux*oldld* | linux*aout* | linux*coff*)
14203   dynamic_linker=no
14204   ;;
14205
14206 # This must be Linux ELF.
14207 linux*)
14208   version_type=linux
14209   need_lib_prefix=no
14210   need_version=no
14211   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14212   soname_spec='${libname}${release}${shared_ext}$major'
14213   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14214   shlibpath_var=LD_LIBRARY_PATH
14215   shlibpath_overrides_runpath=no
14216   # This implies no fast_install, which is unacceptable.
14217   # Some rework will be needed to allow for fast_install
14218   # before this can be enabled.
14219   hardcode_into_libs=yes
14220
14221   # Append ld.so.conf contents to the search path
14222   if test -f /etc/ld.so.conf; then
14223     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14224     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14225   fi
14226
14227   # We used to test for /lib/ld.so.1 and disable shared libraries on
14228   # powerpc, because MkLinux only supported shared libraries with the
14229   # GNU dynamic linker.  Since this was broken with cross compilers,
14230   # most powerpc-linux boxes support dynamic linking these days and
14231   # people can always --disable-shared, the test was removed, and we
14232   # assume the GNU/Linux dynamic linker is in use.
14233   dynamic_linker='GNU/Linux ld.so'
14234   ;;
14235
14236 knetbsd*-gnu)
14237   version_type=linux
14238   need_lib_prefix=no
14239   need_version=no
14240   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14241   soname_spec='${libname}${release}${shared_ext}$major'
14242   shlibpath_var=LD_LIBRARY_PATH
14243   shlibpath_overrides_runpath=no
14244   hardcode_into_libs=yes
14245   dynamic_linker='GNU ld.so'
14246   ;;
14247
14248 netbsd*)
14249   version_type=sunos
14250   need_lib_prefix=no
14251   need_version=no
14252   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14253     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14254     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14255     dynamic_linker='NetBSD (a.out) ld.so'
14256   else
14257     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14258     soname_spec='${libname}${release}${shared_ext}$major'
14259     dynamic_linker='NetBSD ld.elf_so'
14260   fi
14261   shlibpath_var=LD_LIBRARY_PATH
14262   shlibpath_overrides_runpath=yes
14263   hardcode_into_libs=yes
14264   ;;
14265
14266 newsos6)
14267   version_type=linux
14268   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14269   shlibpath_var=LD_LIBRARY_PATH
14270   shlibpath_overrides_runpath=yes
14271   ;;
14272
14273 nto-qnx*)
14274   version_type=linux
14275   need_lib_prefix=no
14276   need_version=no
14277   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14278   soname_spec='${libname}${release}${shared_ext}$major'
14279   shlibpath_var=LD_LIBRARY_PATH
14280   shlibpath_overrides_runpath=yes
14281   ;;
14282
14283 openbsd*)
14284   version_type=sunos
14285   sys_lib_dlsearch_path_spec="/usr/lib"
14286   need_lib_prefix=no
14287   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14288   case $host_os in
14289     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14290     *)                         need_version=no  ;;
14291   esac
14292   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14293   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14294   shlibpath_var=LD_LIBRARY_PATH
14295   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14296     case $host_os in
14297       openbsd2.[89] | openbsd2.[89].*)
14298         shlibpath_overrides_runpath=no
14299         ;;
14300       *)
14301         shlibpath_overrides_runpath=yes
14302         ;;
14303       esac
14304   else
14305     shlibpath_overrides_runpath=yes
14306   fi
14307   ;;
14308
14309 os2*)
14310   libname_spec='$name'
14311   shrext_cmds=".dll"
14312   need_lib_prefix=no
14313   library_names_spec='$libname${shared_ext} $libname.a'
14314   dynamic_linker='OS/2 ld.exe'
14315   shlibpath_var=LIBPATH
14316   ;;
14317
14318 osf3* | osf4* | osf5*)
14319   version_type=osf
14320   need_lib_prefix=no
14321   need_version=no
14322   soname_spec='${libname}${release}${shared_ext}$major'
14323   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14324   shlibpath_var=LD_LIBRARY_PATH
14325   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14326   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14327   ;;
14328
14329 solaris*)
14330   version_type=linux
14331   need_lib_prefix=no
14332   need_version=no
14333   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14334   soname_spec='${libname}${release}${shared_ext}$major'
14335   shlibpath_var=LD_LIBRARY_PATH
14336   shlibpath_overrides_runpath=yes
14337   hardcode_into_libs=yes
14338   # ldd complains unless libraries are executable
14339   postinstall_cmds='chmod +x $lib'
14340   ;;
14341
14342 sunos4*)
14343   version_type=sunos
14344   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14345   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14346   shlibpath_var=LD_LIBRARY_PATH
14347   shlibpath_overrides_runpath=yes
14348   if test "$with_gnu_ld" = yes; then
14349     need_lib_prefix=no
14350   fi
14351   need_version=yes
14352   ;;
14353
14354 sysv4 | sysv4.3*)
14355   version_type=linux
14356   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14357   soname_spec='${libname}${release}${shared_ext}$major'
14358   shlibpath_var=LD_LIBRARY_PATH
14359   case $host_vendor in
14360     sni)
14361       shlibpath_overrides_runpath=no
14362       need_lib_prefix=no
14363       export_dynamic_flag_spec='${wl}-Blargedynsym'
14364       runpath_var=LD_RUN_PATH
14365       ;;
14366     siemens)
14367       need_lib_prefix=no
14368       ;;
14369     motorola)
14370       need_lib_prefix=no
14371       need_version=no
14372       shlibpath_overrides_runpath=no
14373       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14374       ;;
14375   esac
14376   ;;
14377
14378 sysv4*MP*)
14379   if test -d /usr/nec ;then
14380     version_type=linux
14381     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14382     soname_spec='$libname${shared_ext}.$major'
14383     shlibpath_var=LD_LIBRARY_PATH
14384   fi
14385   ;;
14386
14387 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14388   version_type=freebsd-elf
14389   need_lib_prefix=no
14390   need_version=no
14391   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14392   soname_spec='${libname}${release}${shared_ext}$major'
14393   shlibpath_var=LD_LIBRARY_PATH
14394   hardcode_into_libs=yes
14395   if test "$with_gnu_ld" = yes; then
14396     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14397     shlibpath_overrides_runpath=no
14398   else
14399     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14400     shlibpath_overrides_runpath=yes
14401     case $host_os in
14402       sco3.2v5*)
14403         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14404         ;;
14405     esac
14406   fi
14407   sys_lib_dlsearch_path_spec='/usr/lib'
14408   ;;
14409
14410 uts4*)
14411   version_type=linux
14412   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14413   soname_spec='${libname}${release}${shared_ext}$major'
14414   shlibpath_var=LD_LIBRARY_PATH
14415   ;;
14416
14417 *)
14418   dynamic_linker=no
14419   ;;
14420 esac
14421 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14422 $as_echo "$dynamic_linker" >&6; }
14423 test "$dynamic_linker" = no && can_build_shared=no
14424
14425 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14426 if test "$GCC" = yes; then
14427   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14428 fi
14429
14430 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14431 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14432 hardcode_action_CXX=
14433 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14434    test -n "$runpath_var_CXX" || \
14435    test "X$hardcode_automatic_CXX" = "Xyes" ; then
14436
14437   # We can hardcode non-existant directories.
14438   if test "$hardcode_direct_CXX" != no &&
14439      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14440      # have to relink, otherwise we might link with an installed library
14441      # when we should be linking with a yet-to-be-installed one
14442      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14443      test "$hardcode_minus_L_CXX" != no; then
14444     # Linking always hardcodes the temporary library directory.
14445     hardcode_action_CXX=relink
14446   else
14447     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14448     hardcode_action_CXX=immediate
14449   fi
14450 else
14451   # We cannot hardcode anything, or else we can only hardcode existing
14452   # directories.
14453   hardcode_action_CXX=unsupported
14454 fi
14455 { $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14456 $as_echo "$hardcode_action_CXX" >&6; }
14457
14458 if test "$hardcode_action_CXX" = relink; then
14459   # Fast installation is not supported
14460   enable_fast_install=no
14461 elif test "$shlibpath_overrides_runpath" = yes ||
14462      test "$enable_shared" = no; then
14463   # Fast installation is not necessary
14464   enable_fast_install=needless
14465 fi
14466
14467
14468 # The else clause should only fire when bootstrapping the
14469 # libtool distribution, otherwise you forgot to ship ltmain.sh
14470 # with your package, and you will get complaints that there are
14471 # no rules to generate ltmain.sh.
14472 if test -f "$ltmain"; then
14473   # See if we are running on zsh, and set the options which allow our commands through
14474   # without removal of \ escapes.
14475   if test -n "${ZSH_VERSION+set}" ; then
14476     setopt NO_GLOB_SUBST
14477   fi
14478   # Now quote all the things that may contain metacharacters while being
14479   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14480   # variables and quote the copies for generation of the libtool script.
14481   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14482     SED SHELL STRIP \
14483     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14484     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14485     deplibs_check_method reload_flag reload_cmds need_locks \
14486     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14487     lt_cv_sys_global_symbol_to_c_name_address \
14488     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14489     old_postinstall_cmds old_postuninstall_cmds \
14490     compiler_CXX \
14491     CC_CXX \
14492     LD_CXX \
14493     lt_prog_compiler_wl_CXX \
14494     lt_prog_compiler_pic_CXX \
14495     lt_prog_compiler_static_CXX \
14496     lt_prog_compiler_no_builtin_flag_CXX \
14497     export_dynamic_flag_spec_CXX \
14498     thread_safe_flag_spec_CXX \
14499     whole_archive_flag_spec_CXX \
14500     enable_shared_with_static_runtimes_CXX \
14501     old_archive_cmds_CXX \
14502     old_archive_from_new_cmds_CXX \
14503     predep_objects_CXX \
14504     postdep_objects_CXX \
14505     predeps_CXX \
14506     postdeps_CXX \
14507     compiler_lib_search_path_CXX \
14508     archive_cmds_CXX \
14509     archive_expsym_cmds_CXX \
14510     postinstall_cmds_CXX \
14511     postuninstall_cmds_CXX \
14512     old_archive_from_expsyms_cmds_CXX \
14513     allow_undefined_flag_CXX \
14514     no_undefined_flag_CXX \
14515     export_symbols_cmds_CXX \
14516     hardcode_libdir_flag_spec_CXX \
14517     hardcode_libdir_flag_spec_ld_CXX \
14518     hardcode_libdir_separator_CXX \
14519     hardcode_automatic_CXX \
14520     module_cmds_CXX \
14521     module_expsym_cmds_CXX \
14522     lt_cv_prog_compiler_c_o_CXX \
14523     exclude_expsyms_CXX \
14524     include_expsyms_CXX; do
14525
14526     case $var in
14527     old_archive_cmds_CXX | \
14528     old_archive_from_new_cmds_CXX | \
14529     archive_cmds_CXX | \
14530     archive_expsym_cmds_CXX | \
14531     module_cmds_CXX | \
14532     module_expsym_cmds_CXX | \
14533     old_archive_from_expsyms_cmds_CXX | \
14534     export_symbols_cmds_CXX | \
14535     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14536     postinstall_cmds | postuninstall_cmds | \
14537     old_postinstall_cmds | old_postuninstall_cmds | \
14538     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14539       # Double-quote double-evaled strings.
14540       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14541       ;;
14542     *)
14543       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14544       ;;
14545     esac
14546   done
14547
14548   case $lt_echo in
14549   *'\$0 --fallback-echo"')
14550     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14551     ;;
14552   esac
14553
14554 cfgfile="$ofile"
14555
14556   cat <<__EOF__ >> "$cfgfile"
14557 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14558
14559 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14560
14561 # Shell to use when invoking shell scripts.
14562 SHELL=$lt_SHELL
14563
14564 # Whether or not to build shared libraries.
14565 build_libtool_libs=$enable_shared
14566
14567 # Whether or not to build static libraries.
14568 build_old_libs=$enable_static
14569
14570 # Whether or not to add -lc for building shared libraries.
14571 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14572
14573 # Whether or not to disallow shared libs when runtime libs are static
14574 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14575
14576 # Whether or not to optimize for fast installation.
14577 fast_install=$enable_fast_install
14578
14579 # The host system.
14580 host_alias=$host_alias
14581 host=$host
14582 host_os=$host_os
14583
14584 # The build system.
14585 build_alias=$build_alias
14586 build=$build
14587 build_os=$build_os
14588
14589 # An echo program that does not interpret backslashes.
14590 echo=$lt_echo
14591
14592 # The archiver.
14593 AR=$lt_AR
14594 AR_FLAGS=$lt_AR_FLAGS
14595
14596 # A C compiler.
14597 LTCC=$lt_LTCC
14598
14599 # LTCC compiler flags.
14600 LTCFLAGS=$lt_LTCFLAGS
14601
14602 # A language-specific compiler.
14603 CC=$lt_compiler_CXX
14604
14605 # Is the compiler the GNU C compiler?
14606 with_gcc=$GCC_CXX
14607
14608 # An ERE matcher.
14609 EGREP=$lt_EGREP
14610
14611 # The linker used to build libraries.
14612 LD=$lt_LD_CXX
14613
14614 # Whether we need hard or soft links.
14615 LN_S=$lt_LN_S
14616
14617 # A BSD-compatible nm program.
14618 NM=$lt_NM
14619
14620 # A symbol stripping program
14621 STRIP=$lt_STRIP
14622
14623 # Used to examine libraries when file_magic_cmd begins "file"
14624 MAGIC_CMD=$MAGIC_CMD
14625
14626 # Used on cygwin: DLL creation program.
14627 DLLTOOL="$DLLTOOL"
14628
14629 # Used on cygwin: object dumper.
14630 OBJDUMP="$OBJDUMP"
14631
14632 # Used on cygwin: assembler.
14633 AS="$AS"
14634
14635 # The name of the directory that contains temporary libtool files.
14636 objdir=$objdir
14637
14638 # How to create reloadable object files.
14639 reload_flag=$lt_reload_flag
14640 reload_cmds=$lt_reload_cmds
14641
14642 # How to pass a linker flag through the compiler.
14643 wl=$lt_lt_prog_compiler_wl_CXX
14644
14645 # Object file suffix (normally "o").
14646 objext="$ac_objext"
14647
14648 # Old archive suffix (normally "a").
14649 libext="$libext"
14650
14651 # Shared library suffix (normally ".so").
14652 shrext_cmds='$shrext_cmds'
14653
14654 # Executable file suffix (normally "").
14655 exeext="$exeext"
14656
14657 # Additional compiler flags for building library objects.
14658 pic_flag=$lt_lt_prog_compiler_pic_CXX
14659 pic_mode=$pic_mode
14660
14661 # What is the maximum length of a command?
14662 max_cmd_len=$lt_cv_sys_max_cmd_len
14663
14664 # Does compiler simultaneously support -c and -o options?
14665 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14666
14667 # Must we lock files when doing compilation?
14668 need_locks=$lt_need_locks
14669
14670 # Do we need the lib prefix for modules?
14671 need_lib_prefix=$need_lib_prefix
14672
14673 # Do we need a version for libraries?
14674 need_version=$need_version
14675
14676 # Whether dlopen is supported.
14677 dlopen_support=$enable_dlopen
14678
14679 # Whether dlopen of programs is supported.
14680 dlopen_self=$enable_dlopen_self
14681
14682 # Whether dlopen of statically linked programs is supported.
14683 dlopen_self_static=$enable_dlopen_self_static
14684
14685 # Compiler flag to prevent dynamic linking.
14686 link_static_flag=$lt_lt_prog_compiler_static_CXX
14687
14688 # Compiler flag to turn off builtin functions.
14689 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14690
14691 # Compiler flag to allow reflexive dlopens.
14692 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14693
14694 # Compiler flag to generate shared objects directly from archives.
14695 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14696
14697 # Compiler flag to generate thread-safe objects.
14698 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14699
14700 # Library versioning type.
14701 version_type=$version_type
14702
14703 # Format of library name prefix.
14704 libname_spec=$lt_libname_spec
14705
14706 # List of archive names.  First name is the real one, the rest are links.
14707 # The last name is the one that the linker finds with -lNAME.
14708 library_names_spec=$lt_library_names_spec
14709
14710 # The coded name of the library, if different from the real name.
14711 soname_spec=$lt_soname_spec
14712
14713 # Commands used to build and install an old-style archive.
14714 RANLIB=$lt_RANLIB
14715 old_archive_cmds=$lt_old_archive_cmds_CXX
14716 old_postinstall_cmds=$lt_old_postinstall_cmds
14717 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14718
14719 # Create an old-style archive from a shared archive.
14720 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14721
14722 # Create a temporary old-style archive to link instead of a shared archive.
14723 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14724
14725 # Commands used to build and install a shared archive.
14726 archive_cmds=$lt_archive_cmds_CXX
14727 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14728 postinstall_cmds=$lt_postinstall_cmds
14729 postuninstall_cmds=$lt_postuninstall_cmds
14730
14731 # Commands used to build a loadable module (assumed same as above if empty)
14732 module_cmds=$lt_module_cmds_CXX
14733 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14734
14735 # Commands to strip libraries.
14736 old_striplib=$lt_old_striplib
14737 striplib=$lt_striplib
14738
14739 # Dependencies to place before the objects being linked to create a
14740 # shared library.
14741 predep_objects=$lt_predep_objects_CXX
14742
14743 # Dependencies to place after the objects being linked to create a
14744 # shared library.
14745 postdep_objects=$lt_postdep_objects_CXX
14746
14747 # Dependencies to place before the objects being linked to create a
14748 # shared library.
14749 predeps=$lt_predeps_CXX
14750
14751 # Dependencies to place after the objects being linked to create a
14752 # shared library.
14753 postdeps=$lt_postdeps_CXX
14754
14755 # The library search path used internally by the compiler when linking
14756 # a shared library.
14757 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14758
14759 # Method to check whether dependent libraries are shared objects.
14760 deplibs_check_method=$lt_deplibs_check_method
14761
14762 # Command to use when deplibs_check_method == file_magic.
14763 file_magic_cmd=$lt_file_magic_cmd
14764
14765 # Flag that allows shared libraries with undefined symbols to be built.
14766 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14767
14768 # Flag that forces no undefined symbols.
14769 no_undefined_flag=$lt_no_undefined_flag_CXX
14770
14771 # Commands used to finish a libtool library installation in a directory.
14772 finish_cmds=$lt_finish_cmds
14773
14774 # Same as above, but a single script fragment to be evaled but not shown.
14775 finish_eval=$lt_finish_eval
14776
14777 # Take the output of nm and produce a listing of raw symbols and C names.
14778 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14779
14780 # Transform the output of nm in a proper C declaration
14781 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14782
14783 # Transform the output of nm in a C name address pair
14784 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14785
14786 # This is the shared library runtime path variable.
14787 runpath_var=$runpath_var
14788
14789 # This is the shared library path variable.
14790 shlibpath_var=$shlibpath_var
14791
14792 # Is shlibpath searched before the hard-coded library search path?
14793 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14794
14795 # How to hardcode a shared library path into an executable.
14796 hardcode_action=$hardcode_action_CXX
14797
14798 # Whether we should hardcode library paths into libraries.
14799 hardcode_into_libs=$hardcode_into_libs
14800
14801 # Flag to hardcode \$libdir into a binary during linking.
14802 # This must work even if \$libdir does not exist.
14803 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14804
14805 # If ld is used when linking, flag to hardcode \$libdir into
14806 # a binary during linking. This must work even if \$libdir does
14807 # not exist.
14808 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14809
14810 # Whether we need a single -rpath flag with a separated argument.
14811 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14812
14813 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14814 # resulting binary.
14815 hardcode_direct=$hardcode_direct_CXX
14816
14817 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14818 # resulting binary.
14819 hardcode_minus_L=$hardcode_minus_L_CXX
14820
14821 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14822 # the resulting binary.
14823 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14824
14825 # Set to yes if building a shared library automatically hardcodes DIR into the library
14826 # and all subsequent libraries and executables linked against it.
14827 hardcode_automatic=$hardcode_automatic_CXX
14828
14829 # Variables whose values should be saved in libtool wrapper scripts and
14830 # restored at relink time.
14831 variables_saved_for_relink="$variables_saved_for_relink"
14832
14833 # Whether libtool must link a program against all its dependency libraries.
14834 link_all_deplibs=$link_all_deplibs_CXX
14835
14836 # Compile-time system search path for libraries
14837 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14838
14839 # Run-time system search path for libraries
14840 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14841
14842 # Fix the shell variable \$srcfile for the compiler.
14843 fix_srcfile_path="$fix_srcfile_path_CXX"
14844
14845 # Set to yes if exported symbols are required.
14846 always_export_symbols=$always_export_symbols_CXX
14847
14848 # The commands to list exported symbols.
14849 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14850
14851 # The commands to extract the exported symbol list from a shared archive.
14852 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14853
14854 # Symbols that should not be listed in the preloaded symbols.
14855 exclude_expsyms=$lt_exclude_expsyms_CXX
14856
14857 # Symbols that must always be exported.
14858 include_expsyms=$lt_include_expsyms_CXX
14859
14860 # ### END LIBTOOL TAG CONFIG: $tagname
14861
14862 __EOF__
14863
14864
14865 else
14866   # If there is no Makefile yet, we rely on a make rule to execute
14867   # `config.status --recheck' to rerun these tests and create the
14868   # libtool script then.
14869   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14870   if test -f "$ltmain_in"; then
14871     test -f Makefile && make "$ltmain"
14872   fi
14873 fi
14874
14875
14876 ac_ext=c
14877 ac_cpp='$CPP $CPPFLAGS'
14878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14881
14882 CC=$lt_save_CC
14883 LDCXX=$LD
14884 LD=$lt_save_LD
14885 GCC=$lt_save_GCC
14886 with_gnu_ldcxx=$with_gnu_ld
14887 with_gnu_ld=$lt_save_with_gnu_ld
14888 lt_cv_path_LDCXX=$lt_cv_path_LD
14889 lt_cv_path_LD=$lt_save_path_LD
14890 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14891 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14892
14893         else
14894           tagname=""
14895         fi
14896         ;;
14897
14898       F77)
14899         if test -n "$F77" && test "X$F77" != "Xno"; then
14900
14901 ac_ext=f
14902 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14903 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14904 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14905
14906
14907 archive_cmds_need_lc_F77=no
14908 allow_undefined_flag_F77=
14909 always_export_symbols_F77=no
14910 archive_expsym_cmds_F77=
14911 export_dynamic_flag_spec_F77=
14912 hardcode_direct_F77=no
14913 hardcode_libdir_flag_spec_F77=
14914 hardcode_libdir_flag_spec_ld_F77=
14915 hardcode_libdir_separator_F77=
14916 hardcode_minus_L_F77=no
14917 hardcode_automatic_F77=no
14918 module_cmds_F77=
14919 module_expsym_cmds_F77=
14920 link_all_deplibs_F77=unknown
14921 old_archive_cmds_F77=$old_archive_cmds
14922 no_undefined_flag_F77=
14923 whole_archive_flag_spec_F77=
14924 enable_shared_with_static_runtimes_F77=no
14925
14926 # Source file extension for f77 test sources.
14927 ac_ext=f
14928
14929 # Object file extension for compiled f77 test sources.
14930 objext=o
14931 objext_F77=$objext
14932
14933 # Code to be used in simple compile tests
14934 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
14935
14936 # Code to be used in simple link tests
14937 lt_simple_link_test_code="      program t\n      end\n"
14938
14939 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14940
14941 # If no C compiler was specified, use CC.
14942 LTCC=${LTCC-"$CC"}
14943
14944 # If no C compiler flags were specified, use CFLAGS.
14945 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14946
14947 # Allow CC to be a program name with arguments.
14948 compiler=$CC
14949
14950
14951 # save warnings/boilerplate of simple test code
14952 ac_outfile=conftest.$ac_objext
14953 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14954 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14955 _lt_compiler_boilerplate=`cat conftest.err`
14956 $rm conftest*
14957
14958 ac_outfile=conftest.$ac_objext
14959 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14960 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14961 _lt_linker_boilerplate=`cat conftest.err`
14962 $rm conftest*
14963
14964
14965 # Allow CC to be a program name with arguments.
14966 lt_save_CC="$CC"
14967 CC=${F77-"f77"}
14968 compiler=$CC
14969 compiler_F77=$CC
14970 for cc_temp in $compiler""; do
14971   case $cc_temp in
14972     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14973     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14974     \-*) ;;
14975     *) break;;
14976   esac
14977 done
14978 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14979
14980
14981 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14982 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
14983 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
14984 $as_echo "$can_build_shared" >&6; }
14985
14986 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14987 $as_echo_n "checking whether to build shared libraries... " >&6; }
14988 test "$can_build_shared" = "no" && enable_shared=no
14989
14990 # On AIX, shared libraries and static libraries use the same namespace, and
14991 # are all built from PIC.
14992 case $host_os in
14993 aix3*)
14994   test "$enable_shared" = yes && enable_static=no
14995   if test -n "$RANLIB"; then
14996     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14997     postinstall_cmds='$RANLIB $lib'
14998   fi
14999   ;;
15000 aix4* | aix5*)
15001   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15002     test "$enable_shared" = yes && enable_static=no
15003   fi
15004   ;;
15005 esac
15006 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
15007 $as_echo "$enable_shared" >&6; }
15008
15009 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15010 $as_echo_n "checking whether to build static libraries... " >&6; }
15011 # Make sure either enable_shared or enable_static is yes.
15012 test "$enable_shared" = yes || enable_static=yes
15013 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
15014 $as_echo "$enable_static" >&6; }
15015
15016 GCC_F77="$G77"
15017 LD_F77="$LD"
15018
15019 lt_prog_compiler_wl_F77=
15020 lt_prog_compiler_pic_F77=
15021 lt_prog_compiler_static_F77=
15022
15023 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15024 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15025
15026   if test "$GCC" = yes; then
15027     lt_prog_compiler_wl_F77='-Wl,'
15028     lt_prog_compiler_static_F77='-static'
15029
15030     case $host_os in
15031       aix*)
15032       # All AIX code is PIC.
15033       if test "$host_cpu" = ia64; then
15034         # AIX 5 now supports IA64 processor
15035         lt_prog_compiler_static_F77='-Bstatic'
15036       fi
15037       ;;
15038
15039     amigaos*)
15040       # FIXME: we need at least 68020 code to build shared libraries, but
15041       # adding the `-m68020' flag to GCC prevents building anything better,
15042       # like `-m68040'.
15043       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15044       ;;
15045
15046     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15047       # PIC is the default for these OSes.
15048       ;;
15049
15050     mingw* | pw32* | os2*)
15051       # This hack is so that the source file can tell whether it is being
15052       # built for inclusion in a dll (and should export symbols for example).
15053       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15054       ;;
15055
15056     darwin* | rhapsody*)
15057       # PIC is the default on this platform
15058       # Common symbols not allowed in MH_DYLIB files
15059       lt_prog_compiler_pic_F77='-fno-common'
15060       ;;
15061
15062     interix3*)
15063       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15064       # Instead, we relocate shared libraries at runtime.
15065       ;;
15066
15067     msdosdjgpp*)
15068       # Just because we use GCC doesn't mean we suddenly get shared libraries
15069       # on systems that don't support them.
15070       lt_prog_compiler_can_build_shared_F77=no
15071       enable_shared=no
15072       ;;
15073
15074     sysv4*MP*)
15075       if test -d /usr/nec; then
15076         lt_prog_compiler_pic_F77=-Kconform_pic
15077       fi
15078       ;;
15079
15080     hpux*)
15081       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15082       # not for PA HP-UX.
15083       case $host_cpu in
15084       hppa*64*|ia64*)
15085         # +Z the default
15086         ;;
15087       *)
15088         lt_prog_compiler_pic_F77='-fPIC'
15089         ;;
15090       esac
15091       ;;
15092
15093     *)
15094       lt_prog_compiler_pic_F77='-fPIC'
15095       ;;
15096     esac
15097   else
15098     # PORTME Check for flag to pass linker flags through the system compiler.
15099     case $host_os in
15100     aix*)
15101       lt_prog_compiler_wl_F77='-Wl,'
15102       if test "$host_cpu" = ia64; then
15103         # AIX 5 now supports IA64 processor
15104         lt_prog_compiler_static_F77='-Bstatic'
15105       else
15106         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15107       fi
15108       ;;
15109       darwin*)
15110         # PIC is the default on this platform
15111         # Common symbols not allowed in MH_DYLIB files
15112        case $cc_basename in
15113          xlc*)
15114          lt_prog_compiler_pic_F77='-qnocommon'
15115          lt_prog_compiler_wl_F77='-Wl,'
15116          ;;
15117        esac
15118        ;;
15119
15120     mingw* | pw32* | os2*)
15121       # This hack is so that the source file can tell whether it is being
15122       # built for inclusion in a dll (and should export symbols for example).
15123       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15124       ;;
15125
15126     hpux9* | hpux10* | hpux11*)
15127       lt_prog_compiler_wl_F77='-Wl,'
15128       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15129       # not for PA HP-UX.
15130       case $host_cpu in
15131       hppa*64*|ia64*)
15132         # +Z the default
15133         ;;
15134       *)
15135         lt_prog_compiler_pic_F77='+Z'
15136         ;;
15137       esac
15138       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15139       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15140       ;;
15141
15142     irix5* | irix6* | nonstopux*)
15143       lt_prog_compiler_wl_F77='-Wl,'
15144       # PIC (with -KPIC) is the default.
15145       lt_prog_compiler_static_F77='-non_shared'
15146       ;;
15147
15148     newsos6)
15149       lt_prog_compiler_pic_F77='-KPIC'
15150       lt_prog_compiler_static_F77='-Bstatic'
15151       ;;
15152
15153     linux*)
15154       case $cc_basename in
15155       icc* | ecc*)
15156         lt_prog_compiler_wl_F77='-Wl,'
15157         lt_prog_compiler_pic_F77='-KPIC'
15158         lt_prog_compiler_static_F77='-static'
15159         ;;
15160       pgcc* | pgf77* | pgf90* | pgf95*)
15161         # Portland Group compilers (*not* the Pentium gcc compiler,
15162         # which looks to be a dead project)
15163         lt_prog_compiler_wl_F77='-Wl,'
15164         lt_prog_compiler_pic_F77='-fpic'
15165         lt_prog_compiler_static_F77='-Bstatic'
15166         ;;
15167       ccc*)
15168         lt_prog_compiler_wl_F77='-Wl,'
15169         # All Alpha code is PIC.
15170         lt_prog_compiler_static_F77='-non_shared'
15171         ;;
15172       esac
15173       ;;
15174
15175     osf3* | osf4* | osf5*)
15176       lt_prog_compiler_wl_F77='-Wl,'
15177       # All OSF/1 code is PIC.
15178       lt_prog_compiler_static_F77='-non_shared'
15179       ;;
15180
15181     solaris*)
15182       lt_prog_compiler_pic_F77='-KPIC'
15183       lt_prog_compiler_static_F77='-Bstatic'
15184       case $cc_basename in
15185       f77* | f90* | f95*)
15186         lt_prog_compiler_wl_F77='-Qoption ld ';;
15187       *)
15188         lt_prog_compiler_wl_F77='-Wl,';;
15189       esac
15190       ;;
15191
15192     sunos4*)
15193       lt_prog_compiler_wl_F77='-Qoption ld '
15194       lt_prog_compiler_pic_F77='-PIC'
15195       lt_prog_compiler_static_F77='-Bstatic'
15196       ;;
15197
15198     sysv4 | sysv4.2uw2* | sysv4.3*)
15199       lt_prog_compiler_wl_F77='-Wl,'
15200       lt_prog_compiler_pic_F77='-KPIC'
15201       lt_prog_compiler_static_F77='-Bstatic'
15202       ;;
15203
15204     sysv4*MP*)
15205       if test -d /usr/nec ;then
15206         lt_prog_compiler_pic_F77='-Kconform_pic'
15207         lt_prog_compiler_static_F77='-Bstatic'
15208       fi
15209       ;;
15210
15211     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15212       lt_prog_compiler_wl_F77='-Wl,'
15213       lt_prog_compiler_pic_F77='-KPIC'
15214       lt_prog_compiler_static_F77='-Bstatic'
15215       ;;
15216
15217     unicos*)
15218       lt_prog_compiler_wl_F77='-Wl,'
15219       lt_prog_compiler_can_build_shared_F77=no
15220       ;;
15221
15222     uts4*)
15223       lt_prog_compiler_pic_F77='-pic'
15224       lt_prog_compiler_static_F77='-Bstatic'
15225       ;;
15226
15227     *)
15228       lt_prog_compiler_can_build_shared_F77=no
15229       ;;
15230     esac
15231   fi
15232
15233 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15234 $as_echo "$lt_prog_compiler_pic_F77" >&6; }
15235
15236 #
15237 # Check to make sure the PIC flag actually works.
15238 #
15239 if test -n "$lt_prog_compiler_pic_F77"; then
15240
15241 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15242 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
15243 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15244   $as_echo_n "(cached) " >&6
15245 else
15246   lt_prog_compiler_pic_works_F77=no
15247   ac_outfile=conftest.$ac_objext
15248    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15249    lt_compiler_flag="$lt_prog_compiler_pic_F77"
15250    # Insert the option either (1) after the last *FLAGS variable, or
15251    # (2) before a word containing "conftest.", or (3) at the end.
15252    # Note that $ac_compile itself does not contain backslashes and begins
15253    # with a dollar sign (not a hyphen), so the echo should work correctly.
15254    # The option is referenced via a variable to avoid confusing sed.
15255    lt_compile=`echo "$ac_compile" | $SED \
15256    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15257    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15258    -e 's:$: $lt_compiler_flag:'`
15259    (eval echo "\"\$as_me:15259: $lt_compile\"" >&5)
15260    (eval "$lt_compile" 2>conftest.err)
15261    ac_status=$?
15262    cat conftest.err >&5
15263    echo "$as_me:15263: \$? = $ac_status" >&5
15264    if (exit $ac_status) && test -s "$ac_outfile"; then
15265      # The compiler can only warn and ignore the option if not recognized
15266      # So say no if there are warnings other than the usual output.
15267      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15268      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15269      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15270        lt_prog_compiler_pic_works_F77=yes
15271      fi
15272    fi
15273    $rm conftest*
15274
15275 fi
15276 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15277 $as_echo "$lt_prog_compiler_pic_works_F77" >&6; }
15278
15279 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15280     case $lt_prog_compiler_pic_F77 in
15281      "" | " "*) ;;
15282      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15283      esac
15284 else
15285     lt_prog_compiler_pic_F77=
15286      lt_prog_compiler_can_build_shared_F77=no
15287 fi
15288
15289 fi
15290 case $host_os in
15291   # For platforms which do not support PIC, -DPIC is meaningless:
15292   *djgpp*)
15293     lt_prog_compiler_pic_F77=
15294     ;;
15295   *)
15296     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15297     ;;
15298 esac
15299
15300 #
15301 # Check to make sure the static flag actually works.
15302 #
15303 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15304 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15305 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15306 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
15307   $as_echo_n "(cached) " >&6
15308 else
15309   lt_prog_compiler_static_works_F77=no
15310    save_LDFLAGS="$LDFLAGS"
15311    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15312    printf "$lt_simple_link_test_code" > conftest.$ac_ext
15313    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15314      # The linker can only warn and ignore the option if not recognized
15315      # So say no if there are warnings
15316      if test -s conftest.err; then
15317        # Append any errors to the config.log.
15318        cat conftest.err 1>&5
15319        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15320        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15321        if diff conftest.exp conftest.er2 >/dev/null; then
15322          lt_prog_compiler_static_works_F77=yes
15323        fi
15324      else
15325        lt_prog_compiler_static_works_F77=yes
15326      fi
15327    fi
15328    $rm conftest*
15329    LDFLAGS="$save_LDFLAGS"
15330
15331 fi
15332 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
15333 $as_echo "$lt_prog_compiler_static_works_F77" >&6; }
15334
15335 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
15336     :
15337 else
15338     lt_prog_compiler_static_F77=
15339 fi
15340
15341
15342 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15343 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15344 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15345   $as_echo_n "(cached) " >&6
15346 else
15347   lt_cv_prog_compiler_c_o_F77=no
15348    $rm -r conftest 2>/dev/null
15349    mkdir conftest
15350    cd conftest
15351    mkdir out
15352    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15353
15354    lt_compiler_flag="-o out/conftest2.$ac_objext"
15355    # Insert the option either (1) after the last *FLAGS variable, or
15356    # (2) before a word containing "conftest.", or (3) at the end.
15357    # Note that $ac_compile itself does not contain backslashes and begins
15358    # with a dollar sign (not a hyphen), so the echo should work correctly.
15359    lt_compile=`echo "$ac_compile" | $SED \
15360    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15361    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15362    -e 's:$: $lt_compiler_flag:'`
15363    (eval echo "\"\$as_me:15363: $lt_compile\"" >&5)
15364    (eval "$lt_compile" 2>out/conftest.err)
15365    ac_status=$?
15366    cat out/conftest.err >&5
15367    echo "$as_me:15367: \$? = $ac_status" >&5
15368    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15369    then
15370      # The compiler can only warn and ignore the option if not recognized
15371      # So say no if there are warnings
15372      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15373      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15374      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15375        lt_cv_prog_compiler_c_o_F77=yes
15376      fi
15377    fi
15378    chmod u+w . 2>&5
15379    $rm conftest*
15380    # SGI C++ compiler will create directory out/ii_files/ for
15381    # template instantiation
15382    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15383    $rm out/* && rmdir out
15384    cd ..
15385    rmdir conftest
15386    $rm conftest*
15387
15388 fi
15389 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15390 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
15391
15392
15393 hard_links="nottested"
15394 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15395   # do not overwrite the value of need_locks provided by the user
15396   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15397 $as_echo_n "checking if we can lock with hard links... " >&6; }
15398   hard_links=yes
15399   $rm conftest*
15400   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15401   touch conftest.a
15402   ln conftest.a conftest.b 2>&5 || hard_links=no
15403   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15404   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
15405 $as_echo "$hard_links" >&6; }
15406   if test "$hard_links" = no; then
15407     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15408 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15409     need_locks=warn
15410   fi
15411 else
15412   need_locks=no
15413 fi
15414
15415 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15416 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15417
15418   runpath_var=
15419   allow_undefined_flag_F77=
15420   enable_shared_with_static_runtimes_F77=no
15421   archive_cmds_F77=
15422   archive_expsym_cmds_F77=
15423   old_archive_From_new_cmds_F77=
15424   old_archive_from_expsyms_cmds_F77=
15425   export_dynamic_flag_spec_F77=
15426   whole_archive_flag_spec_F77=
15427   thread_safe_flag_spec_F77=
15428   hardcode_libdir_flag_spec_F77=
15429   hardcode_libdir_flag_spec_ld_F77=
15430   hardcode_libdir_separator_F77=
15431   hardcode_direct_F77=no
15432   hardcode_minus_L_F77=no
15433   hardcode_shlibpath_var_F77=unsupported
15434   link_all_deplibs_F77=unknown
15435   hardcode_automatic_F77=no
15436   module_cmds_F77=
15437   module_expsym_cmds_F77=
15438   always_export_symbols_F77=no
15439   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15440   # include_expsyms should be a list of space-separated symbols to be *always*
15441   # included in the symbol list
15442   include_expsyms_F77=
15443   # exclude_expsyms can be an extended regexp of symbols to exclude
15444   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15445   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15446   # as well as any symbol that contains `d'.
15447   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15448   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15449   # platforms (ab)use it in PIC code, but their linkers get confused if
15450   # the symbol is explicitly referenced.  Since portable code cannot
15451   # rely on this symbol name, it's probably fine to never include it in
15452   # preloaded symbol tables.
15453   extract_expsyms_cmds=
15454   # Just being paranoid about ensuring that cc_basename is set.
15455   for cc_temp in $compiler""; do
15456   case $cc_temp in
15457     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15458     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15459     \-*) ;;
15460     *) break;;
15461   esac
15462 done
15463 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15464
15465   case $host_os in
15466   cygwin* | mingw* | pw32*)
15467     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15468     # When not using gcc, we currently assume that we are using
15469     # Microsoft Visual C++.
15470     if test "$GCC" != yes; then
15471       with_gnu_ld=no
15472     fi
15473     ;;
15474   interix*)
15475     # we just hope/assume this is gcc and not c89 (= MSVC++)
15476     with_gnu_ld=yes
15477     ;;
15478   openbsd*)
15479     with_gnu_ld=no
15480     ;;
15481   esac
15482
15483   ld_shlibs_F77=yes
15484   if test "$with_gnu_ld" = yes; then
15485     # If archive_cmds runs LD, not CC, wlarc should be empty
15486     wlarc='${wl}'
15487
15488     # Set some defaults for GNU ld with shared library support. These
15489     # are reset later if shared libraries are not supported. Putting them
15490     # here allows them to be overridden if necessary.
15491     runpath_var=LD_RUN_PATH
15492     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15493     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15494     # ancient GNU ld didn't support --whole-archive et. al.
15495     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15496         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15497       else
15498         whole_archive_flag_spec_F77=
15499     fi
15500     supports_anon_versioning=no
15501     case `$LD -v 2>/dev/null` in
15502       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15503       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15504       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15505       *\ 2.11.*) ;; # other 2.11 versions
15506       *) supports_anon_versioning=yes ;;
15507     esac
15508
15509     # See if GNU ld supports shared libraries.
15510     case $host_os in
15511     aix3* | aix4* | aix5*)
15512       # On AIX/PPC, the GNU linker is very broken
15513       if test "$host_cpu" != ia64; then
15514         ld_shlibs_F77=no
15515         cat <<EOF 1>&2
15516
15517 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15518 *** to be unable to reliably create shared libraries on AIX.
15519 *** Therefore, libtool is disabling shared libraries support.  If you
15520 *** really care for shared libraries, you may want to modify your PATH
15521 *** so that a non-GNU linker is found, and then restart.
15522
15523 EOF
15524       fi
15525       ;;
15526
15527     amigaos*)
15528       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)'
15529       hardcode_libdir_flag_spec_F77='-L$libdir'
15530       hardcode_minus_L_F77=yes
15531
15532       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15533       # that the semantics of dynamic libraries on AmigaOS, at least up
15534       # to version 4, is to share data among multiple programs linked
15535       # with the same dynamic library.  Since this doesn't match the
15536       # behavior of shared libraries on other platforms, we can't use
15537       # them.
15538       ld_shlibs_F77=no
15539       ;;
15540
15541     beos*)
15542       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15543         allow_undefined_flag_F77=unsupported
15544         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15545         # support --undefined.  This deserves some investigation.  FIXME
15546         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15547       else
15548         ld_shlibs_F77=no
15549       fi
15550       ;;
15551
15552     cygwin* | mingw* | pw32*)
15553       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15554       # as there is no search path for DLLs.
15555       hardcode_libdir_flag_spec_F77='-L$libdir'
15556       allow_undefined_flag_F77=unsupported
15557       always_export_symbols_F77=no
15558       enable_shared_with_static_runtimes_F77=yes
15559       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15560
15561       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15562         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15563         # If the export-symbols file already is a .def file (1st line
15564         # is EXPORTS), use it as is; otherwise, prepend...
15565         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15566           cp $export_symbols $output_objdir/$soname.def;
15567         else
15568           echo EXPORTS > $output_objdir/$soname.def;
15569           cat $export_symbols >> $output_objdir/$soname.def;
15570         fi~
15571         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15572       else
15573         ld_shlibs_F77=no
15574       fi
15575       ;;
15576
15577     interix3*)
15578       hardcode_direct_F77=no
15579       hardcode_shlibpath_var_F77=no
15580       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15581       export_dynamic_flag_spec_F77='${wl}-E'
15582       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15583       # Instead, shared libraries are loaded at an image base (0x10000000 by
15584       # default) and relocated if they conflict, which is a slow very memory
15585       # consuming and fragmenting process.  To avoid this, we pick a random,
15586       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15587       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15588       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'
15589       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'
15590       ;;
15591
15592     linux*)
15593       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15594         tmp_addflag=
15595         case $cc_basename,$host_cpu in
15596         pgcc*)                          # Portland Group C compiler
15597           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'
15598           tmp_addflag=' $pic_flag'
15599           ;;
15600         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
15601           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'
15602           tmp_addflag=' $pic_flag -Mnomain' ;;
15603         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
15604           tmp_addflag=' -i_dynamic' ;;
15605         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15606           tmp_addflag=' -i_dynamic -nofor_main' ;;
15607         ifc* | ifort*)                  # Intel Fortran compiler
15608           tmp_addflag=' -nofor_main' ;;
15609         esac
15610         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15611
15612         if test $supports_anon_versioning = yes; then
15613           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15614   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15615   $echo "local: *; };" >> $output_objdir/$libname.ver~
15616           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15617         fi
15618       else
15619         ld_shlibs_F77=no
15620       fi
15621       ;;
15622
15623     netbsd*)
15624       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15625         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15626         wlarc=
15627       else
15628         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15629         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15630       fi
15631       ;;
15632
15633     solaris*)
15634       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15635         ld_shlibs_F77=no
15636         cat <<EOF 1>&2
15637
15638 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15639 *** create shared libraries on Solaris systems.  Therefore, libtool
15640 *** is disabling shared libraries support.  We urge you to upgrade GNU
15641 *** binutils to release 2.9.1 or newer.  Another option is to modify
15642 *** your PATH or compiler configuration so that the native linker is
15643 *** used, and then restart.
15644
15645 EOF
15646       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15647         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15648         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15649       else
15650         ld_shlibs_F77=no
15651       fi
15652       ;;
15653
15654     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15655       case `$LD -v 2>&1` in
15656         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15657         ld_shlibs_F77=no
15658         cat <<_LT_EOF 1>&2
15659
15660 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15661 *** reliably create shared libraries on SCO systems.  Therefore, libtool
15662 *** is disabling shared libraries support.  We urge you to upgrade GNU
15663 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15664 *** your PATH or compiler configuration so that the native linker is
15665 *** used, and then restart.
15666
15667 _LT_EOF
15668         ;;
15669         *)
15670           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15671             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15672             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15673             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15674           else
15675             ld_shlibs_F77=no
15676           fi
15677         ;;
15678       esac
15679       ;;
15680
15681     sunos4*)
15682       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15683       wlarc=
15684       hardcode_direct_F77=yes
15685       hardcode_shlibpath_var_F77=no
15686       ;;
15687
15688     *)
15689       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15690         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15691         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15692       else
15693         ld_shlibs_F77=no
15694       fi
15695       ;;
15696     esac
15697
15698     if test "$ld_shlibs_F77" = no; then
15699       runpath_var=
15700       hardcode_libdir_flag_spec_F77=
15701       export_dynamic_flag_spec_F77=
15702       whole_archive_flag_spec_F77=
15703     fi
15704   else
15705     # PORTME fill in a description of your system's linker (not GNU ld)
15706     case $host_os in
15707     aix3*)
15708       allow_undefined_flag_F77=unsupported
15709       always_export_symbols_F77=yes
15710       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'
15711       # Note: this linker hardcodes the directories in LIBPATH if there
15712       # are no directories specified by -L.
15713       hardcode_minus_L_F77=yes
15714       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15715         # Neither direct hardcoding nor static linking is supported with a
15716         # broken collect2.
15717         hardcode_direct_F77=unsupported
15718       fi
15719       ;;
15720
15721     aix4* | aix5*)
15722       if test "$host_cpu" = ia64; then
15723         # On IA64, the linker does run time linking by default, so we don't
15724         # have to do anything special.
15725         aix_use_runtimelinking=no
15726         exp_sym_flag='-Bexport'
15727         no_entry_flag=""
15728       else
15729         # If we're using GNU nm, then we don't want the "-C" option.
15730         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15731         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15732           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'
15733         else
15734           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'
15735         fi
15736         aix_use_runtimelinking=no
15737
15738         # Test if we are trying to use run time linking or normal
15739         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15740         # need to do runtime linking.
15741         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15742           for ld_flag in $LDFLAGS; do
15743           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15744             aix_use_runtimelinking=yes
15745             break
15746           fi
15747           done
15748           ;;
15749         esac
15750
15751         exp_sym_flag='-bexport'
15752         no_entry_flag='-bnoentry'
15753       fi
15754
15755       # When large executables or shared objects are built, AIX ld can
15756       # have problems creating the table of contents.  If linking a library
15757       # or program results in "error TOC overflow" add -mminimal-toc to
15758       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15759       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15760
15761       archive_cmds_F77=''
15762       hardcode_direct_F77=yes
15763       hardcode_libdir_separator_F77=':'
15764       link_all_deplibs_F77=yes
15765
15766       if test "$GCC" = yes; then
15767         case $host_os in aix4.[012]|aix4.[012].*)
15768         # We only want to do this on AIX 4.2 and lower, the check
15769         # below for broken collect2 doesn't work under 4.3+
15770           collect2name=`${CC} -print-prog-name=collect2`
15771           if test -f "$collect2name" && \
15772            strings "$collect2name" | grep resolve_lib_name >/dev/null
15773           then
15774           # We have reworked collect2
15775           hardcode_direct_F77=yes
15776           else
15777           # We have old collect2
15778           hardcode_direct_F77=unsupported
15779           # It fails to find uninstalled libraries when the uninstalled
15780           # path is not listed in the libpath.  Setting hardcode_minus_L
15781           # to unsupported forces relinking
15782           hardcode_minus_L_F77=yes
15783           hardcode_libdir_flag_spec_F77='-L$libdir'
15784           hardcode_libdir_separator_F77=
15785           fi
15786           ;;
15787         esac
15788         shared_flag='-shared'
15789         if test "$aix_use_runtimelinking" = yes; then
15790           shared_flag="$shared_flag "'${wl}-G'
15791         fi
15792       else
15793         # not using gcc
15794         if test "$host_cpu" = ia64; then
15795         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15796         # chokes on -Wl,-G. The following line is correct:
15797           shared_flag='-G'
15798         else
15799           if test "$aix_use_runtimelinking" = yes; then
15800             shared_flag='${wl}-G'
15801           else
15802             shared_flag='${wl}-bM:SRE'
15803           fi
15804         fi
15805       fi
15806
15807       # It seems that -bexpall does not export symbols beginning with
15808       # underscore (_), so it is better to generate a list of symbols to export.
15809       always_export_symbols_F77=yes
15810       if test "$aix_use_runtimelinking" = yes; then
15811         # Warning - without using the other runtime loading flags (-brtl),
15812         # -berok will link without error, but may produce a broken library.
15813         allow_undefined_flag_F77='-berok'
15814        # Determine the default libpath from the value encoded in an empty executable.
15815        cat >conftest.$ac_ext <<_ACEOF
15816       program main
15817
15818       end
15819 _ACEOF
15820 rm -f conftest.$ac_objext conftest$ac_exeext
15821 if { (ac_try="$ac_link"
15822 case "(($ac_try" in
15823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15824   *) ac_try_echo=$ac_try;;
15825 esac
15826 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15827 $as_echo "$ac_try_echo") >&5
15828   (eval "$ac_link") 2>conftest.er1
15829   ac_status=$?
15830   grep -v '^ *+' conftest.er1 >conftest.err
15831   rm -f conftest.er1
15832   cat conftest.err >&5
15833   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15834   (exit $ac_status); } && {
15835          test -z "$ac_f77_werror_flag" ||
15836          test ! -s conftest.err
15837        } && test -s conftest$ac_exeext && {
15838          test "$cross_compiling" = yes ||
15839          $as_test_x conftest$ac_exeext
15840        }; then
15841
15842 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15843 }'`
15844 # Check for a 64-bit object if we didn't find anything.
15845 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15846 }'`; fi
15847 else
15848   $as_echo "$as_me: failed program was:" >&5
15849 sed 's/^/| /' conftest.$ac_ext >&5
15850
15851
15852 fi
15853
15854 rm -rf conftest.dSYM
15855 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15856       conftest$ac_exeext conftest.$ac_ext
15857 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15858
15859        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15860         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"
15861        else
15862         if test "$host_cpu" = ia64; then
15863           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15864           allow_undefined_flag_F77="-z nodefs"
15865           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"
15866         else
15867          # Determine the default libpath from the value encoded in an empty executable.
15868          cat >conftest.$ac_ext <<_ACEOF
15869       program main
15870
15871       end
15872 _ACEOF
15873 rm -f conftest.$ac_objext conftest$ac_exeext
15874 if { (ac_try="$ac_link"
15875 case "(($ac_try" in
15876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15877   *) ac_try_echo=$ac_try;;
15878 esac
15879 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15880 $as_echo "$ac_try_echo") >&5
15881   (eval "$ac_link") 2>conftest.er1
15882   ac_status=$?
15883   grep -v '^ *+' conftest.er1 >conftest.err
15884   rm -f conftest.er1
15885   cat conftest.err >&5
15886   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15887   (exit $ac_status); } && {
15888          test -z "$ac_f77_werror_flag" ||
15889          test ! -s conftest.err
15890        } && test -s conftest$ac_exeext && {
15891          test "$cross_compiling" = yes ||
15892          $as_test_x conftest$ac_exeext
15893        }; then
15894
15895 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15896 }'`
15897 # Check for a 64-bit object if we didn't find anything.
15898 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15899 }'`; fi
15900 else
15901   $as_echo "$as_me: failed program was:" >&5
15902 sed 's/^/| /' conftest.$ac_ext >&5
15903
15904
15905 fi
15906
15907 rm -rf conftest.dSYM
15908 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15909       conftest$ac_exeext conftest.$ac_ext
15910 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15911
15912          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15913           # Warning - without using the other run time loading flags,
15914           # -berok will link without error, but may produce a broken library.
15915           no_undefined_flag_F77=' ${wl}-bernotok'
15916           allow_undefined_flag_F77=' ${wl}-berok'
15917           # Exported symbols can be pulled into shared objects from archives
15918           whole_archive_flag_spec_F77='$convenience'
15919           archive_cmds_need_lc_F77=yes
15920           # This is similar to how AIX traditionally builds its shared libraries.
15921           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'
15922         fi
15923       fi
15924       ;;
15925
15926     amigaos*)
15927       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)'
15928       hardcode_libdir_flag_spec_F77='-L$libdir'
15929       hardcode_minus_L_F77=yes
15930       # see comment about different semantics on the GNU ld section
15931       ld_shlibs_F77=no
15932       ;;
15933
15934     bsdi[45]*)
15935       export_dynamic_flag_spec_F77=-rdynamic
15936       ;;
15937
15938     cygwin* | mingw* | pw32*)
15939       # When not using gcc, we currently assume that we are using
15940       # Microsoft Visual C++.
15941       # hardcode_libdir_flag_spec is actually meaningless, as there is
15942       # no search path for DLLs.
15943       hardcode_libdir_flag_spec_F77=' '
15944       allow_undefined_flag_F77=unsupported
15945       # Tell ltmain to make .lib files, not .a files.
15946       libext=lib
15947       # Tell ltmain to make .dll files, not .so files.
15948       shrext_cmds=".dll"
15949       # FIXME: Setting linknames here is a bad hack.
15950       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15951       # The linker will automatically build a .lib file if we build a DLL.
15952       old_archive_From_new_cmds_F77='true'
15953       # FIXME: Should let the user specify the lib program.
15954       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15955       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15956       enable_shared_with_static_runtimes_F77=yes
15957       ;;
15958
15959     darwin* | rhapsody*)
15960       case $host_os in
15961         rhapsody* | darwin1.[012])
15962          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15963          ;;
15964        *) # Darwin 1.3 on
15965          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15966            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15967          else
15968            case ${MACOSX_DEPLOYMENT_TARGET} in
15969              10.[012])
15970                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15971                ;;
15972              10.*)
15973                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15974                ;;
15975            esac
15976          fi
15977          ;;
15978       esac
15979       archive_cmds_need_lc_F77=no
15980       hardcode_direct_F77=no
15981       hardcode_automatic_F77=yes
15982       hardcode_shlibpath_var_F77=unsupported
15983       whole_archive_flag_spec_F77=''
15984       link_all_deplibs_F77=yes
15985     if test "$GCC" = yes ; then
15986         output_verbose_link_cmd='echo'
15987         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15988       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15989       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15990       archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15991       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}'
15992     else
15993       case $cc_basename in
15994         xlc*)
15995          output_verbose_link_cmd='echo'
15996          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15997          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15998           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15999          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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16000           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}'
16001           ;;
16002        *)
16003          ld_shlibs_F77=no
16004           ;;
16005       esac
16006     fi
16007       ;;
16008
16009     dgux*)
16010       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16011       hardcode_libdir_flag_spec_F77='-L$libdir'
16012       hardcode_shlibpath_var_F77=no
16013       ;;
16014
16015     freebsd1*)
16016       ld_shlibs_F77=no
16017       ;;
16018
16019     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16020     # support.  Future versions do this automatically, but an explicit c++rt0.o
16021     # does not break anything, and helps significantly (at the cost of a little
16022     # extra space).
16023     freebsd2.2*)
16024       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16025       hardcode_libdir_flag_spec_F77='-R$libdir'
16026       hardcode_direct_F77=yes
16027       hardcode_shlibpath_var_F77=no
16028       ;;
16029
16030     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16031     freebsd2*)
16032       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16033       hardcode_direct_F77=yes
16034       hardcode_minus_L_F77=yes
16035       hardcode_shlibpath_var_F77=no
16036       ;;
16037
16038     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16039     freebsd* | kfreebsd*-gnu | dragonfly*)
16040       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16041       hardcode_libdir_flag_spec_F77='-R$libdir'
16042       hardcode_direct_F77=yes
16043       hardcode_shlibpath_var_F77=no
16044       ;;
16045
16046     hpux9*)
16047       if test "$GCC" = yes; then
16048         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'
16049       else
16050         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'
16051       fi
16052       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16053       hardcode_libdir_separator_F77=:
16054       hardcode_direct_F77=yes
16055
16056       # hardcode_minus_L: Not really in the search PATH,
16057       # but as the default location of the library.
16058       hardcode_minus_L_F77=yes
16059       export_dynamic_flag_spec_F77='${wl}-E'
16060       ;;
16061
16062     hpux10*)
16063       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16064         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16065       else
16066         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16067       fi
16068       if test "$with_gnu_ld" = no; then
16069         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16070         hardcode_libdir_separator_F77=:
16071
16072         hardcode_direct_F77=yes
16073         export_dynamic_flag_spec_F77='${wl}-E'
16074
16075         # hardcode_minus_L: Not really in the search PATH,
16076         # but as the default location of the library.
16077         hardcode_minus_L_F77=yes
16078       fi
16079       ;;
16080
16081     hpux11*)
16082       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16083         case $host_cpu in
16084         hppa*64*)
16085           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16086           ;;
16087         ia64*)
16088           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16089           ;;
16090         *)
16091           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16092           ;;
16093         esac
16094       else
16095         case $host_cpu in
16096         hppa*64*)
16097           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16098           ;;
16099         ia64*)
16100           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16101           ;;
16102         *)
16103           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16104           ;;
16105         esac
16106       fi
16107       if test "$with_gnu_ld" = no; then
16108         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16109         hardcode_libdir_separator_F77=:
16110
16111         case $host_cpu in
16112         hppa*64*|ia64*)
16113           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16114           hardcode_direct_F77=no
16115           hardcode_shlibpath_var_F77=no
16116           ;;
16117         *)
16118           hardcode_direct_F77=yes
16119           export_dynamic_flag_spec_F77='${wl}-E'
16120
16121           # hardcode_minus_L: Not really in the search PATH,
16122           # but as the default location of the library.
16123           hardcode_minus_L_F77=yes
16124           ;;
16125         esac
16126       fi
16127       ;;
16128
16129     irix5* | irix6* | nonstopux*)
16130       if test "$GCC" = yes; then
16131         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'
16132       else
16133         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'
16134         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16135       fi
16136       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16137       hardcode_libdir_separator_F77=:
16138       link_all_deplibs_F77=yes
16139       ;;
16140
16141     netbsd*)
16142       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16143         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16144       else
16145         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16146       fi
16147       hardcode_libdir_flag_spec_F77='-R$libdir'
16148       hardcode_direct_F77=yes
16149       hardcode_shlibpath_var_F77=no
16150       ;;
16151
16152     newsos6)
16153       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16154       hardcode_direct_F77=yes
16155       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16156       hardcode_libdir_separator_F77=:
16157       hardcode_shlibpath_var_F77=no
16158       ;;
16159
16160     openbsd*)
16161       hardcode_direct_F77=yes
16162       hardcode_shlibpath_var_F77=no
16163       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16164         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16165         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16166         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16167         export_dynamic_flag_spec_F77='${wl}-E'
16168       else
16169        case $host_os in
16170          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16171            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16172            hardcode_libdir_flag_spec_F77='-R$libdir'
16173            ;;
16174          *)
16175            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16176            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16177            ;;
16178        esac
16179       fi
16180       ;;
16181
16182     os2*)
16183       hardcode_libdir_flag_spec_F77='-L$libdir'
16184       hardcode_minus_L_F77=yes
16185       allow_undefined_flag_F77=unsupported
16186       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'
16187       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16188       ;;
16189
16190     osf3*)
16191       if test "$GCC" = yes; then
16192         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16193         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'
16194       else
16195         allow_undefined_flag_F77=' -expect_unresolved \*'
16196         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'
16197       fi
16198       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16199       hardcode_libdir_separator_F77=:
16200       ;;
16201
16202     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16203       if test "$GCC" = yes; then
16204         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16205         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'
16206         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16207       else
16208         allow_undefined_flag_F77=' -expect_unresolved \*'
16209         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'
16210         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~
16211         $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'
16212
16213         # Both c and cxx compiler support -rpath directly
16214         hardcode_libdir_flag_spec_F77='-rpath $libdir'
16215       fi
16216       hardcode_libdir_separator_F77=:
16217       ;;
16218
16219     solaris*)
16220       no_undefined_flag_F77=' -z text'
16221       if test "$GCC" = yes; then
16222         wlarc='${wl}'
16223         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16224         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16225           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16226       else
16227         wlarc=''
16228         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16229         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16230         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16231       fi
16232       hardcode_libdir_flag_spec_F77='-R$libdir'
16233       hardcode_shlibpath_var_F77=no
16234       case $host_os in
16235       solaris2.[0-5] | solaris2.[0-5].*) ;;
16236       *)
16237         # The compiler driver will combine linker options so we
16238         # cannot just pass the convience library names through
16239         # without $wl, iff we do not link with $LD.
16240         # Luckily, gcc supports the same syntax we need for Sun Studio.
16241         # Supported since Solaris 2.6 (maybe 2.5.1?)
16242         case $wlarc in
16243         '')
16244           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16245         *)
16246           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
16247         esac ;;
16248       esac
16249       link_all_deplibs_F77=yes
16250       ;;
16251
16252     sunos4*)
16253       if test "x$host_vendor" = xsequent; then
16254         # Use $CC to link under sequent, because it throws in some extra .o
16255         # files that make .init and .fini sections work.
16256         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16257       else
16258         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16259       fi
16260       hardcode_libdir_flag_spec_F77='-L$libdir'
16261       hardcode_direct_F77=yes
16262       hardcode_minus_L_F77=yes
16263       hardcode_shlibpath_var_F77=no
16264       ;;
16265
16266     sysv4)
16267       case $host_vendor in
16268         sni)
16269           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16270           hardcode_direct_F77=yes # is this really true???
16271         ;;
16272         siemens)
16273           ## LD is ld it makes a PLAMLIB
16274           ## CC just makes a GrossModule.
16275           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16276           reload_cmds_F77='$CC -r -o $output$reload_objs'
16277           hardcode_direct_F77=no
16278         ;;
16279         motorola)
16280           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16281           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16282         ;;
16283       esac
16284       runpath_var='LD_RUN_PATH'
16285       hardcode_shlibpath_var_F77=no
16286       ;;
16287
16288     sysv4.3*)
16289       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16290       hardcode_shlibpath_var_F77=no
16291       export_dynamic_flag_spec_F77='-Bexport'
16292       ;;
16293
16294     sysv4*MP*)
16295       if test -d /usr/nec; then
16296         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16297         hardcode_shlibpath_var_F77=no
16298         runpath_var=LD_RUN_PATH
16299         hardcode_runpath_var=yes
16300         ld_shlibs_F77=yes
16301       fi
16302       ;;
16303
16304     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16305       no_undefined_flag_F77='${wl}-z,text'
16306       archive_cmds_need_lc_F77=no
16307       hardcode_shlibpath_var_F77=no
16308       runpath_var='LD_RUN_PATH'
16309
16310       if test "$GCC" = yes; then
16311         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16312         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16313       else
16314         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16315         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16316       fi
16317       ;;
16318
16319     sysv5* | sco3.2v5* | sco5v6*)
16320       # Note: We can NOT use -z defs as we might desire, because we do not
16321       # link with -lc, and that would cause any symbols used from libc to
16322       # always be unresolved, which means just about no library would
16323       # ever link correctly.  If we're not using GNU ld we use -z text
16324       # though, which does catch some bad symbols but isn't as heavy-handed
16325       # as -z defs.
16326       no_undefined_flag_F77='${wl}-z,text'
16327       allow_undefined_flag_F77='${wl}-z,nodefs'
16328       archive_cmds_need_lc_F77=no
16329       hardcode_shlibpath_var_F77=no
16330       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16331       hardcode_libdir_separator_F77=':'
16332       link_all_deplibs_F77=yes
16333       export_dynamic_flag_spec_F77='${wl}-Bexport'
16334       runpath_var='LD_RUN_PATH'
16335
16336       if test "$GCC" = yes; then
16337         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16338         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16339       else
16340         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16341         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16342       fi
16343       ;;
16344
16345     uts4*)
16346       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16347       hardcode_libdir_flag_spec_F77='-L$libdir'
16348       hardcode_shlibpath_var_F77=no
16349       ;;
16350
16351     *)
16352       ld_shlibs_F77=no
16353       ;;
16354     esac
16355   fi
16356
16357 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16358 $as_echo "$ld_shlibs_F77" >&6; }
16359 test "$ld_shlibs_F77" = no && can_build_shared=no
16360
16361 #
16362 # Do we need to explicitly link libc?
16363 #
16364 case "x$archive_cmds_need_lc_F77" in
16365 x|xyes)
16366   # Assume -lc should be added
16367   archive_cmds_need_lc_F77=yes
16368
16369   if test "$enable_shared" = yes && test "$GCC" = yes; then
16370     case $archive_cmds_F77 in
16371     *'~'*)
16372       # FIXME: we may have to deal with multi-command sequences.
16373       ;;
16374     '$CC '*)
16375       # Test whether the compiler implicitly links with -lc since on some
16376       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16377       # to ld, don't add -lc before -lgcc.
16378       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16379 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16380       $rm conftest*
16381       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16382
16383       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16384   (eval $ac_compile) 2>&5
16385   ac_status=$?
16386   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16387   (exit $ac_status); } 2>conftest.err; then
16388         soname=conftest
16389         lib=conftest
16390         libobjs=conftest.$ac_objext
16391         deplibs=
16392         wl=$lt_prog_compiler_wl_F77
16393         pic_flag=$lt_prog_compiler_pic_F77
16394         compiler_flags=-v
16395         linker_flags=-v
16396         verstring=
16397         output_objdir=.
16398         libname=conftest
16399         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16400         allow_undefined_flag_F77=
16401         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16402   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16403   ac_status=$?
16404   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16405   (exit $ac_status); }
16406         then
16407           archive_cmds_need_lc_F77=no
16408         else
16409           archive_cmds_need_lc_F77=yes
16410         fi
16411         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16412       else
16413         cat conftest.err 1>&5
16414       fi
16415       $rm conftest*
16416       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16417 $as_echo "$archive_cmds_need_lc_F77" >&6; }
16418       ;;
16419     esac
16420   fi
16421   ;;
16422 esac
16423
16424 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16425 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16426 library_names_spec=
16427 libname_spec='lib$name'
16428 soname_spec=
16429 shrext_cmds=".so"
16430 postinstall_cmds=
16431 postuninstall_cmds=
16432 finish_cmds=
16433 finish_eval=
16434 shlibpath_var=
16435 shlibpath_overrides_runpath=unknown
16436 version_type=none
16437 dynamic_linker="$host_os ld.so"
16438 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16439 if test "$GCC" = yes; then
16440   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16441   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16442     # if the path contains ";" then we assume it to be the separator
16443     # otherwise default to the standard path separator (i.e. ":") - it is
16444     # assumed that no part of a normal pathname contains ";" but that should
16445     # okay in the real world where ";" in dirpaths is itself problematic.
16446     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16447   else
16448     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16449   fi
16450 else
16451   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16452 fi
16453 need_lib_prefix=unknown
16454 hardcode_into_libs=no
16455
16456 # when you set need_version to no, make sure it does not cause -set_version
16457 # flags to be left without arguments
16458 need_version=unknown
16459
16460 case $host_os in
16461 aix3*)
16462   version_type=linux
16463   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16464   shlibpath_var=LIBPATH
16465
16466   # AIX 3 has no versioning support, so we append a major version to the name.
16467   soname_spec='${libname}${release}${shared_ext}$major'
16468   ;;
16469
16470 aix4* | aix5*)
16471   version_type=linux
16472   need_lib_prefix=no
16473   need_version=no
16474   hardcode_into_libs=yes
16475   if test "$host_cpu" = ia64; then
16476     # AIX 5 supports IA64
16477     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16478     shlibpath_var=LD_LIBRARY_PATH
16479   else
16480     # With GCC up to 2.95.x, collect2 would create an import file
16481     # for dependence libraries.  The import file would start with
16482     # the line `#! .'.  This would cause the generated library to
16483     # depend on `.', always an invalid library.  This was fixed in
16484     # development snapshots of GCC prior to 3.0.
16485     case $host_os in
16486       aix4 | aix4.[01] | aix4.[01].*)
16487       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16488            echo ' yes '
16489            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16490         :
16491       else
16492         can_build_shared=no
16493       fi
16494       ;;
16495     esac
16496     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16497     # soname into executable. Probably we can add versioning support to
16498     # collect2, so additional links can be useful in future.
16499     if test "$aix_use_runtimelinking" = yes; then
16500       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16501       # instead of lib<name>.a to let people know that these are not
16502       # typical AIX shared libraries.
16503       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16504     else
16505       # We preserve .a as extension for shared libraries through AIX4.2
16506       # and later when we are not doing run time linking.
16507       library_names_spec='${libname}${release}.a $libname.a'
16508       soname_spec='${libname}${release}${shared_ext}$major'
16509     fi
16510     shlibpath_var=LIBPATH
16511   fi
16512   ;;
16513
16514 amigaos*)
16515   library_names_spec='$libname.ixlibrary $libname.a'
16516   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16517   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'
16518   ;;
16519
16520 beos*)
16521   library_names_spec='${libname}${shared_ext}'
16522   dynamic_linker="$host_os ld.so"
16523   shlibpath_var=LIBRARY_PATH
16524   ;;
16525
16526 bsdi[45]*)
16527   version_type=linux
16528   need_version=no
16529   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16530   soname_spec='${libname}${release}${shared_ext}$major'
16531   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16532   shlibpath_var=LD_LIBRARY_PATH
16533   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16534   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16535   # the default ld.so.conf also contains /usr/contrib/lib and
16536   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16537   # libtool to hard-code these into programs
16538   ;;
16539
16540 cygwin* | mingw* | pw32*)
16541   version_type=windows
16542   shrext_cmds=".dll"
16543   need_version=no
16544   need_lib_prefix=no
16545
16546   case $GCC,$host_os in
16547   yes,cygwin* | yes,mingw* | yes,pw32*)
16548     library_names_spec='$libname.dll.a'
16549     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16550     postinstall_cmds='base_file=`basename \${file}`~
16551       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16552       dldir=$destdir/`dirname \$dlpath`~
16553       test -d \$dldir || mkdir -p \$dldir~
16554       $install_prog $dir/$dlname \$dldir/$dlname~
16555       chmod a+x \$dldir/$dlname'
16556     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16557       dlpath=$dir/\$dldll~
16558        $rm \$dlpath'
16559     shlibpath_overrides_runpath=yes
16560
16561     case $host_os in
16562     cygwin*)
16563       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16564       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16565       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16566       ;;
16567     mingw*)
16568       # MinGW DLLs use traditional 'lib' prefix
16569       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16570       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16571       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16572         # It is most probably a Windows format PATH printed by
16573         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16574         # path with ; separators, and with drive letters. We can handle the
16575         # drive letters (cygwin fileutils understands them), so leave them,
16576         # especially as we might pass files found there to a mingw objdump,
16577         # which wouldn't understand a cygwinified path. Ahh.
16578         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16579       else
16580         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16581       fi
16582       ;;
16583     pw32*)
16584       # pw32 DLLs use 'pw' prefix rather than 'lib'
16585       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16586       ;;
16587     esac
16588     ;;
16589
16590   *)
16591     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16592     ;;
16593   esac
16594   dynamic_linker='Win32 ld.exe'
16595   # FIXME: first we should search . and the directory the executable is in
16596   shlibpath_var=PATH
16597   ;;
16598
16599 darwin* | rhapsody*)
16600   dynamic_linker="$host_os dyld"
16601   version_type=darwin
16602   need_lib_prefix=no
16603   need_version=no
16604   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16605   soname_spec='${libname}${release}${major}$shared_ext'
16606   shlibpath_overrides_runpath=yes
16607   shlibpath_var=DYLD_LIBRARY_PATH
16608   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16609   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16610   if test "$GCC" = yes; then
16611     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
16612   else
16613     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16614   fi
16615   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16616   ;;
16617
16618 dgux*)
16619   version_type=linux
16620   need_lib_prefix=no
16621   need_version=no
16622   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16623   soname_spec='${libname}${release}${shared_ext}$major'
16624   shlibpath_var=LD_LIBRARY_PATH
16625   ;;
16626
16627 freebsd1*)
16628   dynamic_linker=no
16629   ;;
16630
16631 kfreebsd*-gnu)
16632   version_type=linux
16633   need_lib_prefix=no
16634   need_version=no
16635   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16636   soname_spec='${libname}${release}${shared_ext}$major'
16637   shlibpath_var=LD_LIBRARY_PATH
16638   shlibpath_overrides_runpath=no
16639   hardcode_into_libs=yes
16640   dynamic_linker='GNU ld.so'
16641   ;;
16642
16643 freebsd* | dragonfly*)
16644   # DragonFly does not have aout.  When/if they implement a new
16645   # versioning mechanism, adjust this.
16646   if test -x /usr/bin/objformat; then
16647     objformat=`/usr/bin/objformat`
16648   else
16649     case $host_os in
16650     freebsd[123]*) objformat=aout ;;
16651     *) objformat=elf ;;
16652     esac
16653   fi
16654   version_type=freebsd-$objformat
16655   case $version_type in
16656     freebsd-elf*)
16657       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16658       need_version=no
16659       need_lib_prefix=no
16660       ;;
16661     freebsd-*)
16662       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16663       need_version=yes
16664       ;;
16665   esac
16666   shlibpath_var=LD_LIBRARY_PATH
16667   case $host_os in
16668   freebsd2*)
16669     shlibpath_overrides_runpath=yes
16670     ;;
16671   freebsd3.[01]* | freebsdelf3.[01]*)
16672     shlibpath_overrides_runpath=yes
16673     hardcode_into_libs=yes
16674     ;;
16675   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16676   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16677     shlibpath_overrides_runpath=no
16678     hardcode_into_libs=yes
16679     ;;
16680   freebsd*) # from 4.6 on
16681     shlibpath_overrides_runpath=yes
16682     hardcode_into_libs=yes
16683     ;;
16684   esac
16685   ;;
16686
16687 gnu*)
16688   version_type=linux
16689   need_lib_prefix=no
16690   need_version=no
16691   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16692   soname_spec='${libname}${release}${shared_ext}$major'
16693   shlibpath_var=LD_LIBRARY_PATH
16694   hardcode_into_libs=yes
16695   ;;
16696
16697 hpux9* | hpux10* | hpux11*)
16698   # Give a soname corresponding to the major version so that dld.sl refuses to
16699   # link against other versions.
16700   version_type=sunos
16701   need_lib_prefix=no
16702   need_version=no
16703   case $host_cpu in
16704   ia64*)
16705     shrext_cmds='.so'
16706     hardcode_into_libs=yes
16707     dynamic_linker="$host_os dld.so"
16708     shlibpath_var=LD_LIBRARY_PATH
16709     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16710     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16711     soname_spec='${libname}${release}${shared_ext}$major'
16712     if test "X$HPUX_IA64_MODE" = X32; then
16713       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16714     else
16715       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16716     fi
16717     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16718     ;;
16719    hppa*64*)
16720      shrext_cmds='.sl'
16721      hardcode_into_libs=yes
16722      dynamic_linker="$host_os dld.sl"
16723      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16724      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16725      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16726      soname_spec='${libname}${release}${shared_ext}$major'
16727      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16728      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16729      ;;
16730    *)
16731     shrext_cmds='.sl'
16732     dynamic_linker="$host_os dld.sl"
16733     shlibpath_var=SHLIB_PATH
16734     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16735     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16736     soname_spec='${libname}${release}${shared_ext}$major'
16737     ;;
16738   esac
16739   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16740   postinstall_cmds='chmod 555 $lib'
16741   ;;
16742
16743 interix3*)
16744   version_type=linux
16745   need_lib_prefix=no
16746   need_version=no
16747   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16748   soname_spec='${libname}${release}${shared_ext}$major'
16749   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16750   shlibpath_var=LD_LIBRARY_PATH
16751   shlibpath_overrides_runpath=no
16752   hardcode_into_libs=yes
16753   ;;
16754
16755 irix5* | irix6* | nonstopux*)
16756   case $host_os in
16757     nonstopux*) version_type=nonstopux ;;
16758     *)
16759         if test "$lt_cv_prog_gnu_ld" = yes; then
16760                 version_type=linux
16761         else
16762                 version_type=irix
16763         fi ;;
16764   esac
16765   need_lib_prefix=no
16766   need_version=no
16767   soname_spec='${libname}${release}${shared_ext}$major'
16768   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16769   case $host_os in
16770   irix5* | nonstopux*)
16771     libsuff= shlibsuff=
16772     ;;
16773   *)
16774     case $LD in # libtool.m4 will add one of these switches to LD
16775     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16776       libsuff= shlibsuff= libmagic=32-bit;;
16777     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16778       libsuff=32 shlibsuff=N32 libmagic=N32;;
16779     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16780       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16781     *) libsuff= shlibsuff= libmagic=never-match;;
16782     esac
16783     ;;
16784   esac
16785   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16786   shlibpath_overrides_runpath=no
16787   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16788   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16789   hardcode_into_libs=yes
16790   ;;
16791
16792 # No shared lib support for Linux oldld, aout, or coff.
16793 linux*oldld* | linux*aout* | linux*coff*)
16794   dynamic_linker=no
16795   ;;
16796
16797 # This must be Linux ELF.
16798 linux*)
16799   version_type=linux
16800   need_lib_prefix=no
16801   need_version=no
16802   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16803   soname_spec='${libname}${release}${shared_ext}$major'
16804   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16805   shlibpath_var=LD_LIBRARY_PATH
16806   shlibpath_overrides_runpath=no
16807   # This implies no fast_install, which is unacceptable.
16808   # Some rework will be needed to allow for fast_install
16809   # before this can be enabled.
16810   hardcode_into_libs=yes
16811
16812   # Append ld.so.conf contents to the search path
16813   if test -f /etc/ld.so.conf; then
16814     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16815     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16816   fi
16817
16818   # We used to test for /lib/ld.so.1 and disable shared libraries on
16819   # powerpc, because MkLinux only supported shared libraries with the
16820   # GNU dynamic linker.  Since this was broken with cross compilers,
16821   # most powerpc-linux boxes support dynamic linking these days and
16822   # people can always --disable-shared, the test was removed, and we
16823   # assume the GNU/Linux dynamic linker is in use.
16824   dynamic_linker='GNU/Linux ld.so'
16825   ;;
16826
16827 knetbsd*-gnu)
16828   version_type=linux
16829   need_lib_prefix=no
16830   need_version=no
16831   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16832   soname_spec='${libname}${release}${shared_ext}$major'
16833   shlibpath_var=LD_LIBRARY_PATH
16834   shlibpath_overrides_runpath=no
16835   hardcode_into_libs=yes
16836   dynamic_linker='GNU ld.so'
16837   ;;
16838
16839 netbsd*)
16840   version_type=sunos
16841   need_lib_prefix=no
16842   need_version=no
16843   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16844     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16845     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16846     dynamic_linker='NetBSD (a.out) ld.so'
16847   else
16848     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16849     soname_spec='${libname}${release}${shared_ext}$major'
16850     dynamic_linker='NetBSD ld.elf_so'
16851   fi
16852   shlibpath_var=LD_LIBRARY_PATH
16853   shlibpath_overrides_runpath=yes
16854   hardcode_into_libs=yes
16855   ;;
16856
16857 newsos6)
16858   version_type=linux
16859   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16860   shlibpath_var=LD_LIBRARY_PATH
16861   shlibpath_overrides_runpath=yes
16862   ;;
16863
16864 nto-qnx*)
16865   version_type=linux
16866   need_lib_prefix=no
16867   need_version=no
16868   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16869   soname_spec='${libname}${release}${shared_ext}$major'
16870   shlibpath_var=LD_LIBRARY_PATH
16871   shlibpath_overrides_runpath=yes
16872   ;;
16873
16874 openbsd*)
16875   version_type=sunos
16876   sys_lib_dlsearch_path_spec="/usr/lib"
16877   need_lib_prefix=no
16878   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16879   case $host_os in
16880     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16881     *)                         need_version=no  ;;
16882   esac
16883   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16884   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16885   shlibpath_var=LD_LIBRARY_PATH
16886   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16887     case $host_os in
16888       openbsd2.[89] | openbsd2.[89].*)
16889         shlibpath_overrides_runpath=no
16890         ;;
16891       *)
16892         shlibpath_overrides_runpath=yes
16893         ;;
16894       esac
16895   else
16896     shlibpath_overrides_runpath=yes
16897   fi
16898   ;;
16899
16900 os2*)
16901   libname_spec='$name'
16902   shrext_cmds=".dll"
16903   need_lib_prefix=no
16904   library_names_spec='$libname${shared_ext} $libname.a'
16905   dynamic_linker='OS/2 ld.exe'
16906   shlibpath_var=LIBPATH
16907   ;;
16908
16909 osf3* | osf4* | osf5*)
16910   version_type=osf
16911   need_lib_prefix=no
16912   need_version=no
16913   soname_spec='${libname}${release}${shared_ext}$major'
16914   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16915   shlibpath_var=LD_LIBRARY_PATH
16916   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16917   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16918   ;;
16919
16920 solaris*)
16921   version_type=linux
16922   need_lib_prefix=no
16923   need_version=no
16924   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16925   soname_spec='${libname}${release}${shared_ext}$major'
16926   shlibpath_var=LD_LIBRARY_PATH
16927   shlibpath_overrides_runpath=yes
16928   hardcode_into_libs=yes
16929   # ldd complains unless libraries are executable
16930   postinstall_cmds='chmod +x $lib'
16931   ;;
16932
16933 sunos4*)
16934   version_type=sunos
16935   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16936   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16937   shlibpath_var=LD_LIBRARY_PATH
16938   shlibpath_overrides_runpath=yes
16939   if test "$with_gnu_ld" = yes; then
16940     need_lib_prefix=no
16941   fi
16942   need_version=yes
16943   ;;
16944
16945 sysv4 | sysv4.3*)
16946   version_type=linux
16947   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16948   soname_spec='${libname}${release}${shared_ext}$major'
16949   shlibpath_var=LD_LIBRARY_PATH
16950   case $host_vendor in
16951     sni)
16952       shlibpath_overrides_runpath=no
16953       need_lib_prefix=no
16954       export_dynamic_flag_spec='${wl}-Blargedynsym'
16955       runpath_var=LD_RUN_PATH
16956       ;;
16957     siemens)
16958       need_lib_prefix=no
16959       ;;
16960     motorola)
16961       need_lib_prefix=no
16962       need_version=no
16963       shlibpath_overrides_runpath=no
16964       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16965       ;;
16966   esac
16967   ;;
16968
16969 sysv4*MP*)
16970   if test -d /usr/nec ;then
16971     version_type=linux
16972     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16973     soname_spec='$libname${shared_ext}.$major'
16974     shlibpath_var=LD_LIBRARY_PATH
16975   fi
16976   ;;
16977
16978 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16979   version_type=freebsd-elf
16980   need_lib_prefix=no
16981   need_version=no
16982   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16983   soname_spec='${libname}${release}${shared_ext}$major'
16984   shlibpath_var=LD_LIBRARY_PATH
16985   hardcode_into_libs=yes
16986   if test "$with_gnu_ld" = yes; then
16987     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16988     shlibpath_overrides_runpath=no
16989   else
16990     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16991     shlibpath_overrides_runpath=yes
16992     case $host_os in
16993       sco3.2v5*)
16994         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16995         ;;
16996     esac
16997   fi
16998   sys_lib_dlsearch_path_spec='/usr/lib'
16999   ;;
17000
17001 uts4*)
17002   version_type=linux
17003   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17004   soname_spec='${libname}${release}${shared_ext}$major'
17005   shlibpath_var=LD_LIBRARY_PATH
17006   ;;
17007
17008 *)
17009   dynamic_linker=no
17010   ;;
17011 esac
17012 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17013 $as_echo "$dynamic_linker" >&6; }
17014 test "$dynamic_linker" = no && can_build_shared=no
17015
17016 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17017 if test "$GCC" = yes; then
17018   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17019 fi
17020
17021 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17022 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17023 hardcode_action_F77=
17024 if test -n "$hardcode_libdir_flag_spec_F77" || \
17025    test -n "$runpath_var_F77" || \
17026    test "X$hardcode_automatic_F77" = "Xyes" ; then
17027
17028   # We can hardcode non-existant directories.
17029   if test "$hardcode_direct_F77" != no &&
17030      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17031      # have to relink, otherwise we might link with an installed library
17032      # when we should be linking with a yet-to-be-installed one
17033      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17034      test "$hardcode_minus_L_F77" != no; then
17035     # Linking always hardcodes the temporary library directory.
17036     hardcode_action_F77=relink
17037   else
17038     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17039     hardcode_action_F77=immediate
17040   fi
17041 else
17042   # We cannot hardcode anything, or else we can only hardcode existing
17043   # directories.
17044   hardcode_action_F77=unsupported
17045 fi
17046 { $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17047 $as_echo "$hardcode_action_F77" >&6; }
17048
17049 if test "$hardcode_action_F77" = relink; then
17050   # Fast installation is not supported
17051   enable_fast_install=no
17052 elif test "$shlibpath_overrides_runpath" = yes ||
17053      test "$enable_shared" = no; then
17054   # Fast installation is not necessary
17055   enable_fast_install=needless
17056 fi
17057
17058
17059 # The else clause should only fire when bootstrapping the
17060 # libtool distribution, otherwise you forgot to ship ltmain.sh
17061 # with your package, and you will get complaints that there are
17062 # no rules to generate ltmain.sh.
17063 if test -f "$ltmain"; then
17064   # See if we are running on zsh, and set the options which allow our commands through
17065   # without removal of \ escapes.
17066   if test -n "${ZSH_VERSION+set}" ; then
17067     setopt NO_GLOB_SUBST
17068   fi
17069   # Now quote all the things that may contain metacharacters while being
17070   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17071   # variables and quote the copies for generation of the libtool script.
17072   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17073     SED SHELL STRIP \
17074     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17075     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17076     deplibs_check_method reload_flag reload_cmds need_locks \
17077     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17078     lt_cv_sys_global_symbol_to_c_name_address \
17079     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17080     old_postinstall_cmds old_postuninstall_cmds \
17081     compiler_F77 \
17082     CC_F77 \
17083     LD_F77 \
17084     lt_prog_compiler_wl_F77 \
17085     lt_prog_compiler_pic_F77 \
17086     lt_prog_compiler_static_F77 \
17087     lt_prog_compiler_no_builtin_flag_F77 \
17088     export_dynamic_flag_spec_F77 \
17089     thread_safe_flag_spec_F77 \
17090     whole_archive_flag_spec_F77 \
17091     enable_shared_with_static_runtimes_F77 \
17092     old_archive_cmds_F77 \
17093     old_archive_from_new_cmds_F77 \
17094     predep_objects_F77 \
17095     postdep_objects_F77 \
17096     predeps_F77 \
17097     postdeps_F77 \
17098     compiler_lib_search_path_F77 \
17099     archive_cmds_F77 \
17100     archive_expsym_cmds_F77 \
17101     postinstall_cmds_F77 \
17102     postuninstall_cmds_F77 \
17103     old_archive_from_expsyms_cmds_F77 \
17104     allow_undefined_flag_F77 \
17105     no_undefined_flag_F77 \
17106     export_symbols_cmds_F77 \
17107     hardcode_libdir_flag_spec_F77 \
17108     hardcode_libdir_flag_spec_ld_F77 \
17109     hardcode_libdir_separator_F77 \
17110     hardcode_automatic_F77 \
17111     module_cmds_F77 \
17112     module_expsym_cmds_F77 \
17113     lt_cv_prog_compiler_c_o_F77 \
17114     exclude_expsyms_F77 \
17115     include_expsyms_F77; do
17116
17117     case $var in
17118     old_archive_cmds_F77 | \
17119     old_archive_from_new_cmds_F77 | \
17120     archive_cmds_F77 | \
17121     archive_expsym_cmds_F77 | \
17122     module_cmds_F77 | \
17123     module_expsym_cmds_F77 | \
17124     old_archive_from_expsyms_cmds_F77 | \
17125     export_symbols_cmds_F77 | \
17126     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17127     postinstall_cmds | postuninstall_cmds | \
17128     old_postinstall_cmds | old_postuninstall_cmds | \
17129     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17130       # Double-quote double-evaled strings.
17131       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17132       ;;
17133     *)
17134       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17135       ;;
17136     esac
17137   done
17138
17139   case $lt_echo in
17140   *'\$0 --fallback-echo"')
17141     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17142     ;;
17143   esac
17144
17145 cfgfile="$ofile"
17146
17147   cat <<__EOF__ >> "$cfgfile"
17148 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17149
17150 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17151
17152 # Shell to use when invoking shell scripts.
17153 SHELL=$lt_SHELL
17154
17155 # Whether or not to build shared libraries.
17156 build_libtool_libs=$enable_shared
17157
17158 # Whether or not to build static libraries.
17159 build_old_libs=$enable_static
17160
17161 # Whether or not to add -lc for building shared libraries.
17162 build_libtool_need_lc=$archive_cmds_need_lc_F77
17163
17164 # Whether or not to disallow shared libs when runtime libs are static
17165 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17166
17167 # Whether or not to optimize for fast installation.
17168 fast_install=$enable_fast_install
17169
17170 # The host system.
17171 host_alias=$host_alias
17172 host=$host
17173 host_os=$host_os
17174
17175 # The build system.
17176 build_alias=$build_alias
17177 build=$build
17178 build_os=$build_os
17179
17180 # An echo program that does not interpret backslashes.
17181 echo=$lt_echo
17182
17183 # The archiver.
17184 AR=$lt_AR
17185 AR_FLAGS=$lt_AR_FLAGS
17186
17187 # A C compiler.
17188 LTCC=$lt_LTCC
17189
17190 # LTCC compiler flags.
17191 LTCFLAGS=$lt_LTCFLAGS
17192
17193 # A language-specific compiler.
17194 CC=$lt_compiler_F77
17195
17196 # Is the compiler the GNU C compiler?
17197 with_gcc=$GCC_F77
17198
17199 # An ERE matcher.
17200 EGREP=$lt_EGREP
17201
17202 # The linker used to build libraries.
17203 LD=$lt_LD_F77
17204
17205 # Whether we need hard or soft links.
17206 LN_S=$lt_LN_S
17207
17208 # A BSD-compatible nm program.
17209 NM=$lt_NM
17210
17211 # A symbol stripping program
17212 STRIP=$lt_STRIP
17213
17214 # Used to examine libraries when file_magic_cmd begins "file"
17215 MAGIC_CMD=$MAGIC_CMD
17216
17217 # Used on cygwin: DLL creation program.
17218 DLLTOOL="$DLLTOOL"
17219
17220 # Used on cygwin: object dumper.
17221 OBJDUMP="$OBJDUMP"
17222
17223 # Used on cygwin: assembler.
17224 AS="$AS"
17225
17226 # The name of the directory that contains temporary libtool files.
17227 objdir=$objdir
17228
17229 # How to create reloadable object files.
17230 reload_flag=$lt_reload_flag
17231 reload_cmds=$lt_reload_cmds
17232
17233 # How to pass a linker flag through the compiler.
17234 wl=$lt_lt_prog_compiler_wl_F77
17235
17236 # Object file suffix (normally "o").
17237 objext="$ac_objext"
17238
17239 # Old archive suffix (normally "a").
17240 libext="$libext"
17241
17242 # Shared library suffix (normally ".so").
17243 shrext_cmds='$shrext_cmds'
17244
17245 # Executable file suffix (normally "").
17246 exeext="$exeext"
17247
17248 # Additional compiler flags for building library objects.
17249 pic_flag=$lt_lt_prog_compiler_pic_F77
17250 pic_mode=$pic_mode
17251
17252 # What is the maximum length of a command?
17253 max_cmd_len=$lt_cv_sys_max_cmd_len
17254
17255 # Does compiler simultaneously support -c and -o options?
17256 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17257
17258 # Must we lock files when doing compilation?
17259 need_locks=$lt_need_locks
17260
17261 # Do we need the lib prefix for modules?
17262 need_lib_prefix=$need_lib_prefix
17263
17264 # Do we need a version for libraries?
17265 need_version=$need_version
17266
17267 # Whether dlopen is supported.
17268 dlopen_support=$enable_dlopen
17269
17270 # Whether dlopen of programs is supported.
17271 dlopen_self=$enable_dlopen_self
17272
17273 # Whether dlopen of statically linked programs is supported.
17274 dlopen_self_static=$enable_dlopen_self_static
17275
17276 # Compiler flag to prevent dynamic linking.
17277 link_static_flag=$lt_lt_prog_compiler_static_F77
17278
17279 # Compiler flag to turn off builtin functions.
17280 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17281
17282 # Compiler flag to allow reflexive dlopens.
17283 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17284
17285 # Compiler flag to generate shared objects directly from archives.
17286 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17287
17288 # Compiler flag to generate thread-safe objects.
17289 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17290
17291 # Library versioning type.
17292 version_type=$version_type
17293
17294 # Format of library name prefix.
17295 libname_spec=$lt_libname_spec
17296
17297 # List of archive names.  First name is the real one, the rest are links.
17298 # The last name is the one that the linker finds with -lNAME.
17299 library_names_spec=$lt_library_names_spec
17300
17301 # The coded name of the library, if different from the real name.
17302 soname_spec=$lt_soname_spec
17303
17304 # Commands used to build and install an old-style archive.
17305 RANLIB=$lt_RANLIB
17306 old_archive_cmds=$lt_old_archive_cmds_F77
17307 old_postinstall_cmds=$lt_old_postinstall_cmds
17308 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17309
17310 # Create an old-style archive from a shared archive.
17311 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17312
17313 # Create a temporary old-style archive to link instead of a shared archive.
17314 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17315
17316 # Commands used to build and install a shared archive.
17317 archive_cmds=$lt_archive_cmds_F77
17318 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17319 postinstall_cmds=$lt_postinstall_cmds
17320 postuninstall_cmds=$lt_postuninstall_cmds
17321
17322 # Commands used to build a loadable module (assumed same as above if empty)
17323 module_cmds=$lt_module_cmds_F77
17324 module_expsym_cmds=$lt_module_expsym_cmds_F77
17325
17326 # Commands to strip libraries.
17327 old_striplib=$lt_old_striplib
17328 striplib=$lt_striplib
17329
17330 # Dependencies to place before the objects being linked to create a
17331 # shared library.
17332 predep_objects=$lt_predep_objects_F77
17333
17334 # Dependencies to place after the objects being linked to create a
17335 # shared library.
17336 postdep_objects=$lt_postdep_objects_F77
17337
17338 # Dependencies to place before the objects being linked to create a
17339 # shared library.
17340 predeps=$lt_predeps_F77
17341
17342 # Dependencies to place after the objects being linked to create a
17343 # shared library.
17344 postdeps=$lt_postdeps_F77
17345
17346 # The library search path used internally by the compiler when linking
17347 # a shared library.
17348 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17349
17350 # Method to check whether dependent libraries are shared objects.
17351 deplibs_check_method=$lt_deplibs_check_method
17352
17353 # Command to use when deplibs_check_method == file_magic.
17354 file_magic_cmd=$lt_file_magic_cmd
17355
17356 # Flag that allows shared libraries with undefined symbols to be built.
17357 allow_undefined_flag=$lt_allow_undefined_flag_F77
17358
17359 # Flag that forces no undefined symbols.
17360 no_undefined_flag=$lt_no_undefined_flag_F77
17361
17362 # Commands used to finish a libtool library installation in a directory.
17363 finish_cmds=$lt_finish_cmds
17364
17365 # Same as above, but a single script fragment to be evaled but not shown.
17366 finish_eval=$lt_finish_eval
17367
17368 # Take the output of nm and produce a listing of raw symbols and C names.
17369 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17370
17371 # Transform the output of nm in a proper C declaration
17372 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17373
17374 # Transform the output of nm in a C name address pair
17375 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17376
17377 # This is the shared library runtime path variable.
17378 runpath_var=$runpath_var
17379
17380 # This is the shared library path variable.
17381 shlibpath_var=$shlibpath_var
17382
17383 # Is shlibpath searched before the hard-coded library search path?
17384 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17385
17386 # How to hardcode a shared library path into an executable.
17387 hardcode_action=$hardcode_action_F77
17388
17389 # Whether we should hardcode library paths into libraries.
17390 hardcode_into_libs=$hardcode_into_libs
17391
17392 # Flag to hardcode \$libdir into a binary during linking.
17393 # This must work even if \$libdir does not exist.
17394 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17395
17396 # If ld is used when linking, flag to hardcode \$libdir into
17397 # a binary during linking. This must work even if \$libdir does
17398 # not exist.
17399 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17400
17401 # Whether we need a single -rpath flag with a separated argument.
17402 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17403
17404 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17405 # resulting binary.
17406 hardcode_direct=$hardcode_direct_F77
17407
17408 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17409 # resulting binary.
17410 hardcode_minus_L=$hardcode_minus_L_F77
17411
17412 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17413 # the resulting binary.
17414 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17415
17416 # Set to yes if building a shared library automatically hardcodes DIR into the library
17417 # and all subsequent libraries and executables linked against it.
17418 hardcode_automatic=$hardcode_automatic_F77
17419
17420 # Variables whose values should be saved in libtool wrapper scripts and
17421 # restored at relink time.
17422 variables_saved_for_relink="$variables_saved_for_relink"
17423
17424 # Whether libtool must link a program against all its dependency libraries.
17425 link_all_deplibs=$link_all_deplibs_F77
17426
17427 # Compile-time system search path for libraries
17428 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17429
17430 # Run-time system search path for libraries
17431 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17432
17433 # Fix the shell variable \$srcfile for the compiler.
17434 fix_srcfile_path="$fix_srcfile_path_F77"
17435
17436 # Set to yes if exported symbols are required.
17437 always_export_symbols=$always_export_symbols_F77
17438
17439 # The commands to list exported symbols.
17440 export_symbols_cmds=$lt_export_symbols_cmds_F77
17441
17442 # The commands to extract the exported symbol list from a shared archive.
17443 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17444
17445 # Symbols that should not be listed in the preloaded symbols.
17446 exclude_expsyms=$lt_exclude_expsyms_F77
17447
17448 # Symbols that must always be exported.
17449 include_expsyms=$lt_include_expsyms_F77
17450
17451 # ### END LIBTOOL TAG CONFIG: $tagname
17452
17453 __EOF__
17454
17455
17456 else
17457   # If there is no Makefile yet, we rely on a make rule to execute
17458   # `config.status --recheck' to rerun these tests and create the
17459   # libtool script then.
17460   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17461   if test -f "$ltmain_in"; then
17462     test -f Makefile && make "$ltmain"
17463   fi
17464 fi
17465
17466
17467 ac_ext=c
17468 ac_cpp='$CPP $CPPFLAGS'
17469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17472
17473 CC="$lt_save_CC"
17474
17475         else
17476           tagname=""
17477         fi
17478         ;;
17479
17480       GCJ)
17481         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17482
17483
17484 # Source file extension for Java test sources.
17485 ac_ext=java
17486
17487 # Object file extension for compiled Java test sources.
17488 objext=o
17489 objext_GCJ=$objext
17490
17491 # Code to be used in simple compile tests
17492 lt_simple_compile_test_code="class foo {}\n"
17493
17494 # Code to be used in simple link tests
17495 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
17496
17497 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17498
17499 # If no C compiler was specified, use CC.
17500 LTCC=${LTCC-"$CC"}
17501
17502 # If no C compiler flags were specified, use CFLAGS.
17503 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17504
17505 # Allow CC to be a program name with arguments.
17506 compiler=$CC
17507
17508
17509 # save warnings/boilerplate of simple test code
17510 ac_outfile=conftest.$ac_objext
17511 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17512 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17513 _lt_compiler_boilerplate=`cat conftest.err`
17514 $rm conftest*
17515
17516 ac_outfile=conftest.$ac_objext
17517 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17518 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17519 _lt_linker_boilerplate=`cat conftest.err`
17520 $rm conftest*
17521
17522
17523 # Allow CC to be a program name with arguments.
17524 lt_save_CC="$CC"
17525 CC=${GCJ-"gcj"}
17526 compiler=$CC
17527 compiler_GCJ=$CC
17528 for cc_temp in $compiler""; do
17529   case $cc_temp in
17530     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17531     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17532     \-*) ;;
17533     *) break;;
17534   esac
17535 done
17536 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17537
17538
17539 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17540 archive_cmds_need_lc_GCJ=no
17541
17542 old_archive_cmds_GCJ=$old_archive_cmds
17543
17544
17545 lt_prog_compiler_no_builtin_flag_GCJ=
17546
17547 if test "$GCC" = yes; then
17548   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17549
17550
17551 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17552 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
17553 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17554   $as_echo_n "(cached) " >&6
17555 else
17556   lt_cv_prog_compiler_rtti_exceptions=no
17557   ac_outfile=conftest.$ac_objext
17558    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17559    lt_compiler_flag="-fno-rtti -fno-exceptions"
17560    # Insert the option either (1) after the last *FLAGS variable, or
17561    # (2) before a word containing "conftest.", or (3) at the end.
17562    # Note that $ac_compile itself does not contain backslashes and begins
17563    # with a dollar sign (not a hyphen), so the echo should work correctly.
17564    # The option is referenced via a variable to avoid confusing sed.
17565    lt_compile=`echo "$ac_compile" | $SED \
17566    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17567    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17568    -e 's:$: $lt_compiler_flag:'`
17569    (eval echo "\"\$as_me:17569: $lt_compile\"" >&5)
17570    (eval "$lt_compile" 2>conftest.err)
17571    ac_status=$?
17572    cat conftest.err >&5
17573    echo "$as_me:17573: \$? = $ac_status" >&5
17574    if (exit $ac_status) && test -s "$ac_outfile"; then
17575      # The compiler can only warn and ignore the option if not recognized
17576      # So say no if there are warnings other than the usual output.
17577      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17578      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17579      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17580        lt_cv_prog_compiler_rtti_exceptions=yes
17581      fi
17582    fi
17583    $rm conftest*
17584
17585 fi
17586 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17587 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17588
17589 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17590     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17591 else
17592     :
17593 fi
17594
17595 fi
17596
17597 lt_prog_compiler_wl_GCJ=
17598 lt_prog_compiler_pic_GCJ=
17599 lt_prog_compiler_static_GCJ=
17600
17601 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17602 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17603
17604   if test "$GCC" = yes; then
17605     lt_prog_compiler_wl_GCJ='-Wl,'
17606     lt_prog_compiler_static_GCJ='-static'
17607
17608     case $host_os in
17609       aix*)
17610       # All AIX code is PIC.
17611       if test "$host_cpu" = ia64; then
17612         # AIX 5 now supports IA64 processor
17613         lt_prog_compiler_static_GCJ='-Bstatic'
17614       fi
17615       ;;
17616
17617     amigaos*)
17618       # FIXME: we need at least 68020 code to build shared libraries, but
17619       # adding the `-m68020' flag to GCC prevents building anything better,
17620       # like `-m68040'.
17621       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17622       ;;
17623
17624     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17625       # PIC is the default for these OSes.
17626       ;;
17627
17628     mingw* | pw32* | os2*)
17629       # This hack is so that the source file can tell whether it is being
17630       # built for inclusion in a dll (and should export symbols for example).
17631       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17632       ;;
17633
17634     darwin* | rhapsody*)
17635       # PIC is the default on this platform
17636       # Common symbols not allowed in MH_DYLIB files
17637       lt_prog_compiler_pic_GCJ='-fno-common'
17638       ;;
17639
17640     interix3*)
17641       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17642       # Instead, we relocate shared libraries at runtime.
17643       ;;
17644
17645     msdosdjgpp*)
17646       # Just because we use GCC doesn't mean we suddenly get shared libraries
17647       # on systems that don't support them.
17648       lt_prog_compiler_can_build_shared_GCJ=no
17649       enable_shared=no
17650       ;;
17651
17652     sysv4*MP*)
17653       if test -d /usr/nec; then
17654         lt_prog_compiler_pic_GCJ=-Kconform_pic
17655       fi
17656       ;;
17657
17658     hpux*)
17659       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17660       # not for PA HP-UX.
17661       case $host_cpu in
17662       hppa*64*|ia64*)
17663         # +Z the default
17664         ;;
17665       *)
17666         lt_prog_compiler_pic_GCJ='-fPIC'
17667         ;;
17668       esac
17669       ;;
17670
17671     *)
17672       lt_prog_compiler_pic_GCJ='-fPIC'
17673       ;;
17674     esac
17675   else
17676     # PORTME Check for flag to pass linker flags through the system compiler.
17677     case $host_os in
17678     aix*)
17679       lt_prog_compiler_wl_GCJ='-Wl,'
17680       if test "$host_cpu" = ia64; then
17681         # AIX 5 now supports IA64 processor
17682         lt_prog_compiler_static_GCJ='-Bstatic'
17683       else
17684         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17685       fi
17686       ;;
17687       darwin*)
17688         # PIC is the default on this platform
17689         # Common symbols not allowed in MH_DYLIB files
17690        case $cc_basename in
17691          xlc*)
17692          lt_prog_compiler_pic_GCJ='-qnocommon'
17693          lt_prog_compiler_wl_GCJ='-Wl,'
17694          ;;
17695        esac
17696        ;;
17697
17698     mingw* | pw32* | os2*)
17699       # This hack is so that the source file can tell whether it is being
17700       # built for inclusion in a dll (and should export symbols for example).
17701       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17702       ;;
17703
17704     hpux9* | hpux10* | hpux11*)
17705       lt_prog_compiler_wl_GCJ='-Wl,'
17706       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17707       # not for PA HP-UX.
17708       case $host_cpu in
17709       hppa*64*|ia64*)
17710         # +Z the default
17711         ;;
17712       *)
17713         lt_prog_compiler_pic_GCJ='+Z'
17714         ;;
17715       esac
17716       # Is there a better lt_prog_compiler_static that works with the bundled CC?
17717       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17718       ;;
17719
17720     irix5* | irix6* | nonstopux*)
17721       lt_prog_compiler_wl_GCJ='-Wl,'
17722       # PIC (with -KPIC) is the default.
17723       lt_prog_compiler_static_GCJ='-non_shared'
17724       ;;
17725
17726     newsos6)
17727       lt_prog_compiler_pic_GCJ='-KPIC'
17728       lt_prog_compiler_static_GCJ='-Bstatic'
17729       ;;
17730
17731     linux*)
17732       case $cc_basename in
17733       icc* | ecc*)
17734         lt_prog_compiler_wl_GCJ='-Wl,'
17735         lt_prog_compiler_pic_GCJ='-KPIC'
17736         lt_prog_compiler_static_GCJ='-static'
17737         ;;
17738       pgcc* | pgf77* | pgf90* | pgf95*)
17739         # Portland Group compilers (*not* the Pentium gcc compiler,
17740         # which looks to be a dead project)
17741         lt_prog_compiler_wl_GCJ='-Wl,'
17742         lt_prog_compiler_pic_GCJ='-fpic'
17743         lt_prog_compiler_static_GCJ='-Bstatic'
17744         ;;
17745       ccc*)
17746         lt_prog_compiler_wl_GCJ='-Wl,'
17747         # All Alpha code is PIC.
17748         lt_prog_compiler_static_GCJ='-non_shared'
17749         ;;
17750       esac
17751       ;;
17752
17753     osf3* | osf4* | osf5*)
17754       lt_prog_compiler_wl_GCJ='-Wl,'
17755       # All OSF/1 code is PIC.
17756       lt_prog_compiler_static_GCJ='-non_shared'
17757       ;;
17758
17759     solaris*)
17760       lt_prog_compiler_pic_GCJ='-KPIC'
17761       lt_prog_compiler_static_GCJ='-Bstatic'
17762       case $cc_basename in
17763       f77* | f90* | f95*)
17764         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17765       *)
17766         lt_prog_compiler_wl_GCJ='-Wl,';;
17767       esac
17768       ;;
17769
17770     sunos4*)
17771       lt_prog_compiler_wl_GCJ='-Qoption ld '
17772       lt_prog_compiler_pic_GCJ='-PIC'
17773       lt_prog_compiler_static_GCJ='-Bstatic'
17774       ;;
17775
17776     sysv4 | sysv4.2uw2* | sysv4.3*)
17777       lt_prog_compiler_wl_GCJ='-Wl,'
17778       lt_prog_compiler_pic_GCJ='-KPIC'
17779       lt_prog_compiler_static_GCJ='-Bstatic'
17780       ;;
17781
17782     sysv4*MP*)
17783       if test -d /usr/nec ;then
17784         lt_prog_compiler_pic_GCJ='-Kconform_pic'
17785         lt_prog_compiler_static_GCJ='-Bstatic'
17786       fi
17787       ;;
17788
17789     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17790       lt_prog_compiler_wl_GCJ='-Wl,'
17791       lt_prog_compiler_pic_GCJ='-KPIC'
17792       lt_prog_compiler_static_GCJ='-Bstatic'
17793       ;;
17794
17795     unicos*)
17796       lt_prog_compiler_wl_GCJ='-Wl,'
17797       lt_prog_compiler_can_build_shared_GCJ=no
17798       ;;
17799
17800     uts4*)
17801       lt_prog_compiler_pic_GCJ='-pic'
17802       lt_prog_compiler_static_GCJ='-Bstatic'
17803       ;;
17804
17805     *)
17806       lt_prog_compiler_can_build_shared_GCJ=no
17807       ;;
17808     esac
17809   fi
17810
17811 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17812 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
17813
17814 #
17815 # Check to make sure the PIC flag actually works.
17816 #
17817 if test -n "$lt_prog_compiler_pic_GCJ"; then
17818
17819 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17820 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
17821 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17822   $as_echo_n "(cached) " >&6
17823 else
17824   lt_prog_compiler_pic_works_GCJ=no
17825   ac_outfile=conftest.$ac_objext
17826    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17827    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17828    # Insert the option either (1) after the last *FLAGS variable, or
17829    # (2) before a word containing "conftest.", or (3) at the end.
17830    # Note that $ac_compile itself does not contain backslashes and begins
17831    # with a dollar sign (not a hyphen), so the echo should work correctly.
17832    # The option is referenced via a variable to avoid confusing sed.
17833    lt_compile=`echo "$ac_compile" | $SED \
17834    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17835    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17836    -e 's:$: $lt_compiler_flag:'`
17837    (eval echo "\"\$as_me:17837: $lt_compile\"" >&5)
17838    (eval "$lt_compile" 2>conftest.err)
17839    ac_status=$?
17840    cat conftest.err >&5
17841    echo "$as_me:17841: \$? = $ac_status" >&5
17842    if (exit $ac_status) && test -s "$ac_outfile"; then
17843      # The compiler can only warn and ignore the option if not recognized
17844      # So say no if there are warnings other than the usual output.
17845      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17846      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17847      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17848        lt_prog_compiler_pic_works_GCJ=yes
17849      fi
17850    fi
17851    $rm conftest*
17852
17853 fi
17854 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17855 $as_echo "$lt_prog_compiler_pic_works_GCJ" >&6; }
17856
17857 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17858     case $lt_prog_compiler_pic_GCJ in
17859      "" | " "*) ;;
17860      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17861      esac
17862 else
17863     lt_prog_compiler_pic_GCJ=
17864      lt_prog_compiler_can_build_shared_GCJ=no
17865 fi
17866
17867 fi
17868 case $host_os in
17869   # For platforms which do not support PIC, -DPIC is meaningless:
17870   *djgpp*)
17871     lt_prog_compiler_pic_GCJ=
17872     ;;
17873   *)
17874     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17875     ;;
17876 esac
17877
17878 #
17879 # Check to make sure the static flag actually works.
17880 #
17881 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17882 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17883 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17884 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17885   $as_echo_n "(cached) " >&6
17886 else
17887   lt_prog_compiler_static_works_GCJ=no
17888    save_LDFLAGS="$LDFLAGS"
17889    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17890    printf "$lt_simple_link_test_code" > conftest.$ac_ext
17891    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17892      # The linker can only warn and ignore the option if not recognized
17893      # So say no if there are warnings
17894      if test -s conftest.err; then
17895        # Append any errors to the config.log.
17896        cat conftest.err 1>&5
17897        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17898        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17899        if diff conftest.exp conftest.er2 >/dev/null; then
17900          lt_prog_compiler_static_works_GCJ=yes
17901        fi
17902      else
17903        lt_prog_compiler_static_works_GCJ=yes
17904      fi
17905    fi
17906    $rm conftest*
17907    LDFLAGS="$save_LDFLAGS"
17908
17909 fi
17910 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17911 $as_echo "$lt_prog_compiler_static_works_GCJ" >&6; }
17912
17913 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17914     :
17915 else
17916     lt_prog_compiler_static_GCJ=
17917 fi
17918
17919
17920 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17921 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17922 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17923   $as_echo_n "(cached) " >&6
17924 else
17925   lt_cv_prog_compiler_c_o_GCJ=no
17926    $rm -r conftest 2>/dev/null
17927    mkdir conftest
17928    cd conftest
17929    mkdir out
17930    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17931
17932    lt_compiler_flag="-o out/conftest2.$ac_objext"
17933    # Insert the option either (1) after the last *FLAGS variable, or
17934    # (2) before a word containing "conftest.", or (3) at the end.
17935    # Note that $ac_compile itself does not contain backslashes and begins
17936    # with a dollar sign (not a hyphen), so the echo should work correctly.
17937    lt_compile=`echo "$ac_compile" | $SED \
17938    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17939    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17940    -e 's:$: $lt_compiler_flag:'`
17941    (eval echo "\"\$as_me:17941: $lt_compile\"" >&5)
17942    (eval "$lt_compile" 2>out/conftest.err)
17943    ac_status=$?
17944    cat out/conftest.err >&5
17945    echo "$as_me:17945: \$? = $ac_status" >&5
17946    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17947    then
17948      # The compiler can only warn and ignore the option if not recognized
17949      # So say no if there are warnings
17950      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17951      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17952      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17953        lt_cv_prog_compiler_c_o_GCJ=yes
17954      fi
17955    fi
17956    chmod u+w . 2>&5
17957    $rm conftest*
17958    # SGI C++ compiler will create directory out/ii_files/ for
17959    # template instantiation
17960    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17961    $rm out/* && rmdir out
17962    cd ..
17963    rmdir conftest
17964    $rm conftest*
17965
17966 fi
17967 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17968 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17969
17970
17971 hard_links="nottested"
17972 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17973   # do not overwrite the value of need_locks provided by the user
17974   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17975 $as_echo_n "checking if we can lock with hard links... " >&6; }
17976   hard_links=yes
17977   $rm conftest*
17978   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17979   touch conftest.a
17980   ln conftest.a conftest.b 2>&5 || hard_links=no
17981   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17982   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
17983 $as_echo "$hard_links" >&6; }
17984   if test "$hard_links" = no; then
17985     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17986 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17987     need_locks=warn
17988   fi
17989 else
17990   need_locks=no
17991 fi
17992
17993 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17994 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17995
17996   runpath_var=
17997   allow_undefined_flag_GCJ=
17998   enable_shared_with_static_runtimes_GCJ=no
17999   archive_cmds_GCJ=
18000   archive_expsym_cmds_GCJ=
18001   old_archive_From_new_cmds_GCJ=
18002   old_archive_from_expsyms_cmds_GCJ=
18003   export_dynamic_flag_spec_GCJ=
18004   whole_archive_flag_spec_GCJ=
18005   thread_safe_flag_spec_GCJ=
18006   hardcode_libdir_flag_spec_GCJ=
18007   hardcode_libdir_flag_spec_ld_GCJ=
18008   hardcode_libdir_separator_GCJ=
18009   hardcode_direct_GCJ=no
18010   hardcode_minus_L_GCJ=no
18011   hardcode_shlibpath_var_GCJ=unsupported
18012   link_all_deplibs_GCJ=unknown
18013   hardcode_automatic_GCJ=no
18014   module_cmds_GCJ=
18015   module_expsym_cmds_GCJ=
18016   always_export_symbols_GCJ=no
18017   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18018   # include_expsyms should be a list of space-separated symbols to be *always*
18019   # included in the symbol list
18020   include_expsyms_GCJ=
18021   # exclude_expsyms can be an extended regexp of symbols to exclude
18022   # it will be wrapped by ` (' and `)$', so one must not match beginning or
18023   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18024   # as well as any symbol that contains `d'.
18025   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
18026   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18027   # platforms (ab)use it in PIC code, but their linkers get confused if
18028   # the symbol is explicitly referenced.  Since portable code cannot
18029   # rely on this symbol name, it's probably fine to never include it in
18030   # preloaded symbol tables.
18031   extract_expsyms_cmds=
18032   # Just being paranoid about ensuring that cc_basename is set.
18033   for cc_temp in $compiler""; do
18034   case $cc_temp in
18035     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18036     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18037     \-*) ;;
18038     *) break;;
18039   esac
18040 done
18041 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18042
18043   case $host_os in
18044   cygwin* | mingw* | pw32*)
18045     # FIXME: the MSVC++ port hasn't been tested in a loooong time
18046     # When not using gcc, we currently assume that we are using
18047     # Microsoft Visual C++.
18048     if test "$GCC" != yes; then
18049       with_gnu_ld=no
18050     fi
18051     ;;
18052   interix*)
18053     # we just hope/assume this is gcc and not c89 (= MSVC++)
18054     with_gnu_ld=yes
18055     ;;
18056   openbsd*)
18057     with_gnu_ld=no
18058     ;;
18059   esac
18060
18061   ld_shlibs_GCJ=yes
18062   if test "$with_gnu_ld" = yes; then
18063     # If archive_cmds runs LD, not CC, wlarc should be empty
18064     wlarc='${wl}'
18065
18066     # Set some defaults for GNU ld with shared library support. These
18067     # are reset later if shared libraries are not supported. Putting them
18068     # here allows them to be overridden if necessary.
18069     runpath_var=LD_RUN_PATH
18070     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18071     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18072     # ancient GNU ld didn't support --whole-archive et. al.
18073     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18074         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18075       else
18076         whole_archive_flag_spec_GCJ=
18077     fi
18078     supports_anon_versioning=no
18079     case `$LD -v 2>/dev/null` in
18080       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18081       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18082       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18083       *\ 2.11.*) ;; # other 2.11 versions
18084       *) supports_anon_versioning=yes ;;
18085     esac
18086
18087     # See if GNU ld supports shared libraries.
18088     case $host_os in
18089     aix3* | aix4* | aix5*)
18090       # On AIX/PPC, the GNU linker is very broken
18091       if test "$host_cpu" != ia64; then
18092         ld_shlibs_GCJ=no
18093         cat <<EOF 1>&2
18094
18095 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
18096 *** to be unable to reliably create shared libraries on AIX.
18097 *** Therefore, libtool is disabling shared libraries support.  If you
18098 *** really care for shared libraries, you may want to modify your PATH
18099 *** so that a non-GNU linker is found, and then restart.
18100
18101 EOF
18102       fi
18103       ;;
18104
18105     amigaos*)
18106       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)'
18107       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18108       hardcode_minus_L_GCJ=yes
18109
18110       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18111       # that the semantics of dynamic libraries on AmigaOS, at least up
18112       # to version 4, is to share data among multiple programs linked
18113       # with the same dynamic library.  Since this doesn't match the
18114       # behavior of shared libraries on other platforms, we can't use
18115       # them.
18116       ld_shlibs_GCJ=no
18117       ;;
18118
18119     beos*)
18120       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18121         allow_undefined_flag_GCJ=unsupported
18122         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18123         # support --undefined.  This deserves some investigation.  FIXME
18124         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18125       else
18126         ld_shlibs_GCJ=no
18127       fi
18128       ;;
18129
18130     cygwin* | mingw* | pw32*)
18131       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18132       # as there is no search path for DLLs.
18133       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18134       allow_undefined_flag_GCJ=unsupported
18135       always_export_symbols_GCJ=no
18136       enable_shared_with_static_runtimes_GCJ=yes
18137       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
18138
18139       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18140         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18141         # If the export-symbols file already is a .def file (1st line
18142         # is EXPORTS), use it as is; otherwise, prepend...
18143         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18144           cp $export_symbols $output_objdir/$soname.def;
18145         else
18146           echo EXPORTS > $output_objdir/$soname.def;
18147           cat $export_symbols >> $output_objdir/$soname.def;
18148         fi~
18149         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18150       else
18151         ld_shlibs_GCJ=no
18152       fi
18153       ;;
18154
18155     interix3*)
18156       hardcode_direct_GCJ=no
18157       hardcode_shlibpath_var_GCJ=no
18158       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18159       export_dynamic_flag_spec_GCJ='${wl}-E'
18160       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18161       # Instead, shared libraries are loaded at an image base (0x10000000 by
18162       # default) and relocated if they conflict, which is a slow very memory
18163       # consuming and fragmenting process.  To avoid this, we pick a random,
18164       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18165       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18166       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'
18167       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'
18168       ;;
18169
18170     linux*)
18171       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18172         tmp_addflag=
18173         case $cc_basename,$host_cpu in
18174         pgcc*)                          # Portland Group C compiler
18175           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'
18176           tmp_addflag=' $pic_flag'
18177           ;;
18178         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
18179           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'
18180           tmp_addflag=' $pic_flag -Mnomain' ;;
18181         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
18182           tmp_addflag=' -i_dynamic' ;;
18183         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
18184           tmp_addflag=' -i_dynamic -nofor_main' ;;
18185         ifc* | ifort*)                  # Intel Fortran compiler
18186           tmp_addflag=' -nofor_main' ;;
18187         esac
18188         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18189
18190         if test $supports_anon_versioning = yes; then
18191           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18192   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18193   $echo "local: *; };" >> $output_objdir/$libname.ver~
18194           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18195         fi
18196       else
18197         ld_shlibs_GCJ=no
18198       fi
18199       ;;
18200
18201     netbsd*)
18202       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18203         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18204         wlarc=
18205       else
18206         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18207         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18208       fi
18209       ;;
18210
18211     solaris*)
18212       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18213         ld_shlibs_GCJ=no
18214         cat <<EOF 1>&2
18215
18216 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18217 *** create shared libraries on Solaris systems.  Therefore, libtool
18218 *** is disabling shared libraries support.  We urge you to upgrade GNU
18219 *** binutils to release 2.9.1 or newer.  Another option is to modify
18220 *** your PATH or compiler configuration so that the native linker is
18221 *** used, and then restart.
18222
18223 EOF
18224       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18225         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18226         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18227       else
18228         ld_shlibs_GCJ=no
18229       fi
18230       ;;
18231
18232     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18233       case `$LD -v 2>&1` in
18234         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18235         ld_shlibs_GCJ=no
18236         cat <<_LT_EOF 1>&2
18237
18238 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18239 *** reliably create shared libraries on SCO systems.  Therefore, libtool
18240 *** is disabling shared libraries support.  We urge you to upgrade GNU
18241 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
18242 *** your PATH or compiler configuration so that the native linker is
18243 *** used, and then restart.
18244
18245 _LT_EOF
18246         ;;
18247         *)
18248           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18249             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18250             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18251             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18252           else
18253             ld_shlibs_GCJ=no
18254           fi
18255         ;;
18256       esac
18257       ;;
18258
18259     sunos4*)
18260       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18261       wlarc=
18262       hardcode_direct_GCJ=yes
18263       hardcode_shlibpath_var_GCJ=no
18264       ;;
18265
18266     *)
18267       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18268         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18269         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18270       else
18271         ld_shlibs_GCJ=no
18272       fi
18273       ;;
18274     esac
18275
18276     if test "$ld_shlibs_GCJ" = no; then
18277       runpath_var=
18278       hardcode_libdir_flag_spec_GCJ=
18279       export_dynamic_flag_spec_GCJ=
18280       whole_archive_flag_spec_GCJ=
18281     fi
18282   else
18283     # PORTME fill in a description of your system's linker (not GNU ld)
18284     case $host_os in
18285     aix3*)
18286       allow_undefined_flag_GCJ=unsupported
18287       always_export_symbols_GCJ=yes
18288       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'
18289       # Note: this linker hardcodes the directories in LIBPATH if there
18290       # are no directories specified by -L.
18291       hardcode_minus_L_GCJ=yes
18292       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18293         # Neither direct hardcoding nor static linking is supported with a
18294         # broken collect2.
18295         hardcode_direct_GCJ=unsupported
18296       fi
18297       ;;
18298
18299     aix4* | aix5*)
18300       if test "$host_cpu" = ia64; then
18301         # On IA64, the linker does run time linking by default, so we don't
18302         # have to do anything special.
18303         aix_use_runtimelinking=no
18304         exp_sym_flag='-Bexport'
18305         no_entry_flag=""
18306       else
18307         # If we're using GNU nm, then we don't want the "-C" option.
18308         # -C means demangle to AIX nm, but means don't demangle with GNU nm
18309         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18310           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'
18311         else
18312           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'
18313         fi
18314         aix_use_runtimelinking=no
18315
18316         # Test if we are trying to use run time linking or normal
18317         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18318         # need to do runtime linking.
18319         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18320           for ld_flag in $LDFLAGS; do
18321           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18322             aix_use_runtimelinking=yes
18323             break
18324           fi
18325           done
18326           ;;
18327         esac
18328
18329         exp_sym_flag='-bexport'
18330         no_entry_flag='-bnoentry'
18331       fi
18332
18333       # When large executables or shared objects are built, AIX ld can
18334       # have problems creating the table of contents.  If linking a library
18335       # or program results in "error TOC overflow" add -mminimal-toc to
18336       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18337       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18338
18339       archive_cmds_GCJ=''
18340       hardcode_direct_GCJ=yes
18341       hardcode_libdir_separator_GCJ=':'
18342       link_all_deplibs_GCJ=yes
18343
18344       if test "$GCC" = yes; then
18345         case $host_os in aix4.[012]|aix4.[012].*)
18346         # We only want to do this on AIX 4.2 and lower, the check
18347         # below for broken collect2 doesn't work under 4.3+
18348           collect2name=`${CC} -print-prog-name=collect2`
18349           if test -f "$collect2name" && \
18350            strings "$collect2name" | grep resolve_lib_name >/dev/null
18351           then
18352           # We have reworked collect2
18353           hardcode_direct_GCJ=yes
18354           else
18355           # We have old collect2
18356           hardcode_direct_GCJ=unsupported
18357           # It fails to find uninstalled libraries when the uninstalled
18358           # path is not listed in the libpath.  Setting hardcode_minus_L
18359           # to unsupported forces relinking
18360           hardcode_minus_L_GCJ=yes
18361           hardcode_libdir_flag_spec_GCJ='-L$libdir'
18362           hardcode_libdir_separator_GCJ=
18363           fi
18364           ;;
18365         esac
18366         shared_flag='-shared'
18367         if test "$aix_use_runtimelinking" = yes; then
18368           shared_flag="$shared_flag "'${wl}-G'
18369         fi
18370       else
18371         # not using gcc
18372         if test "$host_cpu" = ia64; then
18373         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18374         # chokes on -Wl,-G. The following line is correct:
18375           shared_flag='-G'
18376         else
18377           if test "$aix_use_runtimelinking" = yes; then
18378             shared_flag='${wl}-G'
18379           else
18380             shared_flag='${wl}-bM:SRE'
18381           fi
18382         fi
18383       fi
18384
18385       # It seems that -bexpall does not export symbols beginning with
18386       # underscore (_), so it is better to generate a list of symbols to export.
18387       always_export_symbols_GCJ=yes
18388       if test "$aix_use_runtimelinking" = yes; then
18389         # Warning - without using the other runtime loading flags (-brtl),
18390         # -berok will link without error, but may produce a broken library.
18391         allow_undefined_flag_GCJ='-berok'
18392        # Determine the default libpath from the value encoded in an empty executable.
18393        cat >conftest.$ac_ext <<_ACEOF
18394 /* confdefs.h.  */
18395 _ACEOF
18396 cat confdefs.h >>conftest.$ac_ext
18397 cat >>conftest.$ac_ext <<_ACEOF
18398 /* end confdefs.h.  */
18399
18400 int
18401 main ()
18402 {
18403
18404   ;
18405   return 0;
18406 }
18407 _ACEOF
18408 rm -f conftest.$ac_objext conftest$ac_exeext
18409 if { (ac_try="$ac_link"
18410 case "(($ac_try" in
18411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18412   *) ac_try_echo=$ac_try;;
18413 esac
18414 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18415 $as_echo "$ac_try_echo") >&5
18416   (eval "$ac_link") 2>conftest.er1
18417   ac_status=$?
18418   grep -v '^ *+' conftest.er1 >conftest.err
18419   rm -f conftest.er1
18420   cat conftest.err >&5
18421   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18422   (exit $ac_status); } && {
18423          test -z "$ac_c_werror_flag" ||
18424          test ! -s conftest.err
18425        } && test -s conftest$ac_exeext && {
18426          test "$cross_compiling" = yes ||
18427          $as_test_x conftest$ac_exeext
18428        }; then
18429
18430 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18431 }'`
18432 # Check for a 64-bit object if we didn't find anything.
18433 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18434 }'`; fi
18435 else
18436   $as_echo "$as_me: failed program was:" >&5
18437 sed 's/^/| /' conftest.$ac_ext >&5
18438
18439
18440 fi
18441
18442 rm -rf conftest.dSYM
18443 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18444       conftest$ac_exeext conftest.$ac_ext
18445 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18446
18447        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18448         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"
18449        else
18450         if test "$host_cpu" = ia64; then
18451           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18452           allow_undefined_flag_GCJ="-z nodefs"
18453           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"
18454         else
18455          # Determine the default libpath from the value encoded in an empty executable.
18456          cat >conftest.$ac_ext <<_ACEOF
18457 /* confdefs.h.  */
18458 _ACEOF
18459 cat confdefs.h >>conftest.$ac_ext
18460 cat >>conftest.$ac_ext <<_ACEOF
18461 /* end confdefs.h.  */
18462
18463 int
18464 main ()
18465 {
18466
18467   ;
18468   return 0;
18469 }
18470 _ACEOF
18471 rm -f conftest.$ac_objext conftest$ac_exeext
18472 if { (ac_try="$ac_link"
18473 case "(($ac_try" in
18474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18475   *) ac_try_echo=$ac_try;;
18476 esac
18477 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18478 $as_echo "$ac_try_echo") >&5
18479   (eval "$ac_link") 2>conftest.er1
18480   ac_status=$?
18481   grep -v '^ *+' conftest.er1 >conftest.err
18482   rm -f conftest.er1
18483   cat conftest.err >&5
18484   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18485   (exit $ac_status); } && {
18486          test -z "$ac_c_werror_flag" ||
18487          test ! -s conftest.err
18488        } && test -s conftest$ac_exeext && {
18489          test "$cross_compiling" = yes ||
18490          $as_test_x conftest$ac_exeext
18491        }; then
18492
18493 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18494 }'`
18495 # Check for a 64-bit object if we didn't find anything.
18496 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18497 }'`; fi
18498 else
18499   $as_echo "$as_me: failed program was:" >&5
18500 sed 's/^/| /' conftest.$ac_ext >&5
18501
18502
18503 fi
18504
18505 rm -rf conftest.dSYM
18506 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18507       conftest$ac_exeext conftest.$ac_ext
18508 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18509
18510          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18511           # Warning - without using the other run time loading flags,
18512           # -berok will link without error, but may produce a broken library.
18513           no_undefined_flag_GCJ=' ${wl}-bernotok'
18514           allow_undefined_flag_GCJ=' ${wl}-berok'
18515           # Exported symbols can be pulled into shared objects from archives
18516           whole_archive_flag_spec_GCJ='$convenience'
18517           archive_cmds_need_lc_GCJ=yes
18518           # This is similar to how AIX traditionally builds its shared libraries.
18519           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'
18520         fi
18521       fi
18522       ;;
18523
18524     amigaos*)
18525       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)'
18526       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18527       hardcode_minus_L_GCJ=yes
18528       # see comment about different semantics on the GNU ld section
18529       ld_shlibs_GCJ=no
18530       ;;
18531
18532     bsdi[45]*)
18533       export_dynamic_flag_spec_GCJ=-rdynamic
18534       ;;
18535
18536     cygwin* | mingw* | pw32*)
18537       # When not using gcc, we currently assume that we are using
18538       # Microsoft Visual C++.
18539       # hardcode_libdir_flag_spec is actually meaningless, as there is
18540       # no search path for DLLs.
18541       hardcode_libdir_flag_spec_GCJ=' '
18542       allow_undefined_flag_GCJ=unsupported
18543       # Tell ltmain to make .lib files, not .a files.
18544       libext=lib
18545       # Tell ltmain to make .dll files, not .so files.
18546       shrext_cmds=".dll"
18547       # FIXME: Setting linknames here is a bad hack.
18548       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18549       # The linker will automatically build a .lib file if we build a DLL.
18550       old_archive_From_new_cmds_GCJ='true'
18551       # FIXME: Should let the user specify the lib program.
18552       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18553       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18554       enable_shared_with_static_runtimes_GCJ=yes
18555       ;;
18556
18557     darwin* | rhapsody*)
18558       case $host_os in
18559         rhapsody* | darwin1.[012])
18560          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18561          ;;
18562        *) # Darwin 1.3 on
18563          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18564            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18565          else
18566            case ${MACOSX_DEPLOYMENT_TARGET} in
18567              10.[012])
18568                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18569                ;;
18570              10.*)
18571                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18572                ;;
18573            esac
18574          fi
18575          ;;
18576       esac
18577       archive_cmds_need_lc_GCJ=no
18578       hardcode_direct_GCJ=no
18579       hardcode_automatic_GCJ=yes
18580       hardcode_shlibpath_var_GCJ=unsupported
18581       whole_archive_flag_spec_GCJ=''
18582       link_all_deplibs_GCJ=yes
18583     if test "$GCC" = yes ; then
18584         output_verbose_link_cmd='echo'
18585         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18586       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18587       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18588       archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18589       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}'
18590     else
18591       case $cc_basename in
18592         xlc*)
18593          output_verbose_link_cmd='echo'
18594          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18595          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18596           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18597          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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18598           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}'
18599           ;;
18600        *)
18601          ld_shlibs_GCJ=no
18602           ;;
18603       esac
18604     fi
18605       ;;
18606
18607     dgux*)
18608       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18609       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18610       hardcode_shlibpath_var_GCJ=no
18611       ;;
18612
18613     freebsd1*)
18614       ld_shlibs_GCJ=no
18615       ;;
18616
18617     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18618     # support.  Future versions do this automatically, but an explicit c++rt0.o
18619     # does not break anything, and helps significantly (at the cost of a little
18620     # extra space).
18621     freebsd2.2*)
18622       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18623       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18624       hardcode_direct_GCJ=yes
18625       hardcode_shlibpath_var_GCJ=no
18626       ;;
18627
18628     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18629     freebsd2*)
18630       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18631       hardcode_direct_GCJ=yes
18632       hardcode_minus_L_GCJ=yes
18633       hardcode_shlibpath_var_GCJ=no
18634       ;;
18635
18636     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18637     freebsd* | kfreebsd*-gnu | dragonfly*)
18638       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18639       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18640       hardcode_direct_GCJ=yes
18641       hardcode_shlibpath_var_GCJ=no
18642       ;;
18643
18644     hpux9*)
18645       if test "$GCC" = yes; then
18646         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'
18647       else
18648         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'
18649       fi
18650       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18651       hardcode_libdir_separator_GCJ=:
18652       hardcode_direct_GCJ=yes
18653
18654       # hardcode_minus_L: Not really in the search PATH,
18655       # but as the default location of the library.
18656       hardcode_minus_L_GCJ=yes
18657       export_dynamic_flag_spec_GCJ='${wl}-E'
18658       ;;
18659
18660     hpux10*)
18661       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18662         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18663       else
18664         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18665       fi
18666       if test "$with_gnu_ld" = no; then
18667         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18668         hardcode_libdir_separator_GCJ=:
18669
18670         hardcode_direct_GCJ=yes
18671         export_dynamic_flag_spec_GCJ='${wl}-E'
18672
18673         # hardcode_minus_L: Not really in the search PATH,
18674         # but as the default location of the library.
18675         hardcode_minus_L_GCJ=yes
18676       fi
18677       ;;
18678
18679     hpux11*)
18680       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18681         case $host_cpu in
18682         hppa*64*)
18683           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18684           ;;
18685         ia64*)
18686           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18687           ;;
18688         *)
18689           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18690           ;;
18691         esac
18692       else
18693         case $host_cpu in
18694         hppa*64*)
18695           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18696           ;;
18697         ia64*)
18698           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18699           ;;
18700         *)
18701           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18702           ;;
18703         esac
18704       fi
18705       if test "$with_gnu_ld" = no; then
18706         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18707         hardcode_libdir_separator_GCJ=:
18708
18709         case $host_cpu in
18710         hppa*64*|ia64*)
18711           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18712           hardcode_direct_GCJ=no
18713           hardcode_shlibpath_var_GCJ=no
18714           ;;
18715         *)
18716           hardcode_direct_GCJ=yes
18717           export_dynamic_flag_spec_GCJ='${wl}-E'
18718
18719           # hardcode_minus_L: Not really in the search PATH,
18720           # but as the default location of the library.
18721           hardcode_minus_L_GCJ=yes
18722           ;;
18723         esac
18724       fi
18725       ;;
18726
18727     irix5* | irix6* | nonstopux*)
18728       if test "$GCC" = yes; then
18729         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'
18730       else
18731         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'
18732         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18733       fi
18734       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18735       hardcode_libdir_separator_GCJ=:
18736       link_all_deplibs_GCJ=yes
18737       ;;
18738
18739     netbsd*)
18740       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18741         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18742       else
18743         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18744       fi
18745       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18746       hardcode_direct_GCJ=yes
18747       hardcode_shlibpath_var_GCJ=no
18748       ;;
18749
18750     newsos6)
18751       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18752       hardcode_direct_GCJ=yes
18753       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18754       hardcode_libdir_separator_GCJ=:
18755       hardcode_shlibpath_var_GCJ=no
18756       ;;
18757
18758     openbsd*)
18759       hardcode_direct_GCJ=yes
18760       hardcode_shlibpath_var_GCJ=no
18761       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18762         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18763         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18764         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18765         export_dynamic_flag_spec_GCJ='${wl}-E'
18766       else
18767        case $host_os in
18768          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18769            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18770            hardcode_libdir_flag_spec_GCJ='-R$libdir'
18771            ;;
18772          *)
18773            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18774            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18775            ;;
18776        esac
18777       fi
18778       ;;
18779
18780     os2*)
18781       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18782       hardcode_minus_L_GCJ=yes
18783       allow_undefined_flag_GCJ=unsupported
18784       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'
18785       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18786       ;;
18787
18788     osf3*)
18789       if test "$GCC" = yes; then
18790         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18791         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'
18792       else
18793         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18794         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'
18795       fi
18796       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18797       hardcode_libdir_separator_GCJ=:
18798       ;;
18799
18800     osf4* | osf5*)      # as osf3* with the addition of -msym flag
18801       if test "$GCC" = yes; then
18802         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18803         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'
18804         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18805       else
18806         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18807         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'
18808         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~
18809         $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'
18810
18811         # Both c and cxx compiler support -rpath directly
18812         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18813       fi
18814       hardcode_libdir_separator_GCJ=:
18815       ;;
18816
18817     solaris*)
18818       no_undefined_flag_GCJ=' -z text'
18819       if test "$GCC" = yes; then
18820         wlarc='${wl}'
18821         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18822         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18823           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18824       else
18825         wlarc=''
18826         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18827         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18828         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18829       fi
18830       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18831       hardcode_shlibpath_var_GCJ=no
18832       case $host_os in
18833       solaris2.[0-5] | solaris2.[0-5].*) ;;
18834       *)
18835         # The compiler driver will combine linker options so we
18836         # cannot just pass the convience library names through
18837         # without $wl, iff we do not link with $LD.
18838         # Luckily, gcc supports the same syntax we need for Sun Studio.
18839         # Supported since Solaris 2.6 (maybe 2.5.1?)
18840         case $wlarc in
18841         '')
18842           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18843         *)
18844           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
18845         esac ;;
18846       esac
18847       link_all_deplibs_GCJ=yes
18848       ;;
18849
18850     sunos4*)
18851       if test "x$host_vendor" = xsequent; then
18852         # Use $CC to link under sequent, because it throws in some extra .o
18853         # files that make .init and .fini sections work.
18854         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18855       else
18856         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18857       fi
18858       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18859       hardcode_direct_GCJ=yes
18860       hardcode_minus_L_GCJ=yes
18861       hardcode_shlibpath_var_GCJ=no
18862       ;;
18863
18864     sysv4)
18865       case $host_vendor in
18866         sni)
18867           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18868           hardcode_direct_GCJ=yes # is this really true???
18869         ;;
18870         siemens)
18871           ## LD is ld it makes a PLAMLIB
18872           ## CC just makes a GrossModule.
18873           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18874           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18875           hardcode_direct_GCJ=no
18876         ;;
18877         motorola)
18878           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18879           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18880         ;;
18881       esac
18882       runpath_var='LD_RUN_PATH'
18883       hardcode_shlibpath_var_GCJ=no
18884       ;;
18885
18886     sysv4.3*)
18887       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18888       hardcode_shlibpath_var_GCJ=no
18889       export_dynamic_flag_spec_GCJ='-Bexport'
18890       ;;
18891
18892     sysv4*MP*)
18893       if test -d /usr/nec; then
18894         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18895         hardcode_shlibpath_var_GCJ=no
18896         runpath_var=LD_RUN_PATH
18897         hardcode_runpath_var=yes
18898         ld_shlibs_GCJ=yes
18899       fi
18900       ;;
18901
18902     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18903       no_undefined_flag_GCJ='${wl}-z,text'
18904       archive_cmds_need_lc_GCJ=no
18905       hardcode_shlibpath_var_GCJ=no
18906       runpath_var='LD_RUN_PATH'
18907
18908       if test "$GCC" = yes; then
18909         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18910         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18911       else
18912         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18913         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18914       fi
18915       ;;
18916
18917     sysv5* | sco3.2v5* | sco5v6*)
18918       # Note: We can NOT use -z defs as we might desire, because we do not
18919       # link with -lc, and that would cause any symbols used from libc to
18920       # always be unresolved, which means just about no library would
18921       # ever link correctly.  If we're not using GNU ld we use -z text
18922       # though, which does catch some bad symbols but isn't as heavy-handed
18923       # as -z defs.
18924       no_undefined_flag_GCJ='${wl}-z,text'
18925       allow_undefined_flag_GCJ='${wl}-z,nodefs'
18926       archive_cmds_need_lc_GCJ=no
18927       hardcode_shlibpath_var_GCJ=no
18928       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18929       hardcode_libdir_separator_GCJ=':'
18930       link_all_deplibs_GCJ=yes
18931       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18932       runpath_var='LD_RUN_PATH'
18933
18934       if test "$GCC" = yes; then
18935         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18936         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18937       else
18938         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18939         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18940       fi
18941       ;;
18942
18943     uts4*)
18944       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18945       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18946       hardcode_shlibpath_var_GCJ=no
18947       ;;
18948
18949     *)
18950       ld_shlibs_GCJ=no
18951       ;;
18952     esac
18953   fi
18954
18955 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18956 $as_echo "$ld_shlibs_GCJ" >&6; }
18957 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18958
18959 #
18960 # Do we need to explicitly link libc?
18961 #
18962 case "x$archive_cmds_need_lc_GCJ" in
18963 x|xyes)
18964   # Assume -lc should be added
18965   archive_cmds_need_lc_GCJ=yes
18966
18967   if test "$enable_shared" = yes && test "$GCC" = yes; then
18968     case $archive_cmds_GCJ in
18969     *'~'*)
18970       # FIXME: we may have to deal with multi-command sequences.
18971       ;;
18972     '$CC '*)
18973       # Test whether the compiler implicitly links with -lc since on some
18974       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18975       # to ld, don't add -lc before -lgcc.
18976       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18977 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18978       $rm conftest*
18979       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18980
18981       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18982   (eval $ac_compile) 2>&5
18983   ac_status=$?
18984   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18985   (exit $ac_status); } 2>conftest.err; then
18986         soname=conftest
18987         lib=conftest
18988         libobjs=conftest.$ac_objext
18989         deplibs=
18990         wl=$lt_prog_compiler_wl_GCJ
18991         pic_flag=$lt_prog_compiler_pic_GCJ
18992         compiler_flags=-v
18993         linker_flags=-v
18994         verstring=
18995         output_objdir=.
18996         libname=conftest
18997         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18998         allow_undefined_flag_GCJ=
18999         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19000   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19001   ac_status=$?
19002   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19003   (exit $ac_status); }
19004         then
19005           archive_cmds_need_lc_GCJ=no
19006         else
19007           archive_cmds_need_lc_GCJ=yes
19008         fi
19009         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19010       else
19011         cat conftest.err 1>&5
19012       fi
19013       $rm conftest*
19014       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19015 $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
19016       ;;
19017     esac
19018   fi
19019   ;;
19020 esac
19021
19022 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19023 $as_echo_n "checking dynamic linker characteristics... " >&6; }
19024 library_names_spec=
19025 libname_spec='lib$name'
19026 soname_spec=
19027 shrext_cmds=".so"
19028 postinstall_cmds=
19029 postuninstall_cmds=
19030 finish_cmds=
19031 finish_eval=
19032 shlibpath_var=
19033 shlibpath_overrides_runpath=unknown
19034 version_type=none
19035 dynamic_linker="$host_os ld.so"
19036 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19037 if test "$GCC" = yes; then
19038   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19039   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19040     # if the path contains ";" then we assume it to be the separator
19041     # otherwise default to the standard path separator (i.e. ":") - it is
19042     # assumed that no part of a normal pathname contains ";" but that should
19043     # okay in the real world where ";" in dirpaths is itself problematic.
19044     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19045   else
19046     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19047   fi
19048 else
19049   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19050 fi
19051 need_lib_prefix=unknown
19052 hardcode_into_libs=no
19053
19054 # when you set need_version to no, make sure it does not cause -set_version
19055 # flags to be left without arguments
19056 need_version=unknown
19057
19058 case $host_os in
19059 aix3*)
19060   version_type=linux
19061   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19062   shlibpath_var=LIBPATH
19063
19064   # AIX 3 has no versioning support, so we append a major version to the name.
19065   soname_spec='${libname}${release}${shared_ext}$major'
19066   ;;
19067
19068 aix4* | aix5*)
19069   version_type=linux
19070   need_lib_prefix=no
19071   need_version=no
19072   hardcode_into_libs=yes
19073   if test "$host_cpu" = ia64; then
19074     # AIX 5 supports IA64
19075     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19076     shlibpath_var=LD_LIBRARY_PATH
19077   else
19078     # With GCC up to 2.95.x, collect2 would create an import file
19079     # for dependence libraries.  The import file would start with
19080     # the line `#! .'.  This would cause the generated library to
19081     # depend on `.', always an invalid library.  This was fixed in
19082     # development snapshots of GCC prior to 3.0.
19083     case $host_os in
19084       aix4 | aix4.[01] | aix4.[01].*)
19085       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19086            echo ' yes '
19087            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19088         :
19089       else
19090         can_build_shared=no
19091       fi
19092       ;;
19093     esac
19094     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19095     # soname into executable. Probably we can add versioning support to
19096     # collect2, so additional links can be useful in future.
19097     if test "$aix_use_runtimelinking" = yes; then
19098       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19099       # instead of lib<name>.a to let people know that these are not
19100       # typical AIX shared libraries.
19101       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19102     else
19103       # We preserve .a as extension for shared libraries through AIX4.2
19104       # and later when we are not doing run time linking.
19105       library_names_spec='${libname}${release}.a $libname.a'
19106       soname_spec='${libname}${release}${shared_ext}$major'
19107     fi
19108     shlibpath_var=LIBPATH
19109   fi
19110   ;;
19111
19112 amigaos*)
19113   library_names_spec='$libname.ixlibrary $libname.a'
19114   # Create ${libname}_ixlibrary.a entries in /sys/libs.
19115   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'
19116   ;;
19117
19118 beos*)
19119   library_names_spec='${libname}${shared_ext}'
19120   dynamic_linker="$host_os ld.so"
19121   shlibpath_var=LIBRARY_PATH
19122   ;;
19123
19124 bsdi[45]*)
19125   version_type=linux
19126   need_version=no
19127   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19128   soname_spec='${libname}${release}${shared_ext}$major'
19129   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19130   shlibpath_var=LD_LIBRARY_PATH
19131   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19132   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19133   # the default ld.so.conf also contains /usr/contrib/lib and
19134   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19135   # libtool to hard-code these into programs
19136   ;;
19137
19138 cygwin* | mingw* | pw32*)
19139   version_type=windows
19140   shrext_cmds=".dll"
19141   need_version=no
19142   need_lib_prefix=no
19143
19144   case $GCC,$host_os in
19145   yes,cygwin* | yes,mingw* | yes,pw32*)
19146     library_names_spec='$libname.dll.a'
19147     # DLL is installed to $(libdir)/../bin by postinstall_cmds
19148     postinstall_cmds='base_file=`basename \${file}`~
19149       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19150       dldir=$destdir/`dirname \$dlpath`~
19151       test -d \$dldir || mkdir -p \$dldir~
19152       $install_prog $dir/$dlname \$dldir/$dlname~
19153       chmod a+x \$dldir/$dlname'
19154     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19155       dlpath=$dir/\$dldll~
19156        $rm \$dlpath'
19157     shlibpath_overrides_runpath=yes
19158
19159     case $host_os in
19160     cygwin*)
19161       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19162       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19163       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19164       ;;
19165     mingw*)
19166       # MinGW DLLs use traditional 'lib' prefix
19167       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19168       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19169       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19170         # It is most probably a Windows format PATH printed by
19171         # mingw gcc, but we are running on Cygwin. Gcc prints its search
19172         # path with ; separators, and with drive letters. We can handle the
19173         # drive letters (cygwin fileutils understands them), so leave them,
19174         # especially as we might pass files found there to a mingw objdump,
19175         # which wouldn't understand a cygwinified path. Ahh.
19176         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19177       else
19178         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19179       fi
19180       ;;
19181     pw32*)
19182       # pw32 DLLs use 'pw' prefix rather than 'lib'
19183       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19184       ;;
19185     esac
19186     ;;
19187
19188   *)
19189     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19190     ;;
19191   esac
19192   dynamic_linker='Win32 ld.exe'
19193   # FIXME: first we should search . and the directory the executable is in
19194   shlibpath_var=PATH
19195   ;;
19196
19197 darwin* | rhapsody*)
19198   dynamic_linker="$host_os dyld"
19199   version_type=darwin
19200   need_lib_prefix=no
19201   need_version=no
19202   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19203   soname_spec='${libname}${release}${major}$shared_ext'
19204   shlibpath_overrides_runpath=yes
19205   shlibpath_var=DYLD_LIBRARY_PATH
19206   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19207   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19208   if test "$GCC" = yes; then
19209     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
19210   else
19211     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19212   fi
19213   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19214   ;;
19215
19216 dgux*)
19217   version_type=linux
19218   need_lib_prefix=no
19219   need_version=no
19220   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19221   soname_spec='${libname}${release}${shared_ext}$major'
19222   shlibpath_var=LD_LIBRARY_PATH
19223   ;;
19224
19225 freebsd1*)
19226   dynamic_linker=no
19227   ;;
19228
19229 kfreebsd*-gnu)
19230   version_type=linux
19231   need_lib_prefix=no
19232   need_version=no
19233   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19234   soname_spec='${libname}${release}${shared_ext}$major'
19235   shlibpath_var=LD_LIBRARY_PATH
19236   shlibpath_overrides_runpath=no
19237   hardcode_into_libs=yes
19238   dynamic_linker='GNU ld.so'
19239   ;;
19240
19241 freebsd* | dragonfly*)
19242   # DragonFly does not have aout.  When/if they implement a new
19243   # versioning mechanism, adjust this.
19244   if test -x /usr/bin/objformat; then
19245     objformat=`/usr/bin/objformat`
19246   else
19247     case $host_os in
19248     freebsd[123]*) objformat=aout ;;
19249     *) objformat=elf ;;
19250     esac
19251   fi
19252   version_type=freebsd-$objformat
19253   case $version_type in
19254     freebsd-elf*)
19255       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19256       need_version=no
19257       need_lib_prefix=no
19258       ;;
19259     freebsd-*)
19260       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19261       need_version=yes
19262       ;;
19263   esac
19264   shlibpath_var=LD_LIBRARY_PATH
19265   case $host_os in
19266   freebsd2*)
19267     shlibpath_overrides_runpath=yes
19268     ;;
19269   freebsd3.[01]* | freebsdelf3.[01]*)
19270     shlibpath_overrides_runpath=yes
19271     hardcode_into_libs=yes
19272     ;;
19273   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19274   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19275     shlibpath_overrides_runpath=no
19276     hardcode_into_libs=yes
19277     ;;
19278   freebsd*) # from 4.6 on
19279     shlibpath_overrides_runpath=yes
19280     hardcode_into_libs=yes
19281     ;;
19282   esac
19283   ;;
19284
19285 gnu*)
19286   version_type=linux
19287   need_lib_prefix=no
19288   need_version=no
19289   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19290   soname_spec='${libname}${release}${shared_ext}$major'
19291   shlibpath_var=LD_LIBRARY_PATH
19292   hardcode_into_libs=yes
19293   ;;
19294
19295 hpux9* | hpux10* | hpux11*)
19296   # Give a soname corresponding to the major version so that dld.sl refuses to
19297   # link against other versions.
19298   version_type=sunos
19299   need_lib_prefix=no
19300   need_version=no
19301   case $host_cpu in
19302   ia64*)
19303     shrext_cmds='.so'
19304     hardcode_into_libs=yes
19305     dynamic_linker="$host_os dld.so"
19306     shlibpath_var=LD_LIBRARY_PATH
19307     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19308     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19309     soname_spec='${libname}${release}${shared_ext}$major'
19310     if test "X$HPUX_IA64_MODE" = X32; then
19311       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19312     else
19313       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19314     fi
19315     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19316     ;;
19317    hppa*64*)
19318      shrext_cmds='.sl'
19319      hardcode_into_libs=yes
19320      dynamic_linker="$host_os dld.sl"
19321      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19322      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19323      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19324      soname_spec='${libname}${release}${shared_ext}$major'
19325      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19326      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19327      ;;
19328    *)
19329     shrext_cmds='.sl'
19330     dynamic_linker="$host_os dld.sl"
19331     shlibpath_var=SHLIB_PATH
19332     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19333     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19334     soname_spec='${libname}${release}${shared_ext}$major'
19335     ;;
19336   esac
19337   # HP-UX runs *really* slowly unless shared libraries are mode 555.
19338   postinstall_cmds='chmod 555 $lib'
19339   ;;
19340
19341 interix3*)
19342   version_type=linux
19343   need_lib_prefix=no
19344   need_version=no
19345   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19346   soname_spec='${libname}${release}${shared_ext}$major'
19347   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19348   shlibpath_var=LD_LIBRARY_PATH
19349   shlibpath_overrides_runpath=no
19350   hardcode_into_libs=yes
19351   ;;
19352
19353 irix5* | irix6* | nonstopux*)
19354   case $host_os in
19355     nonstopux*) version_type=nonstopux ;;
19356     *)
19357         if test "$lt_cv_prog_gnu_ld" = yes; then
19358                 version_type=linux
19359         else
19360                 version_type=irix
19361         fi ;;
19362   esac
19363   need_lib_prefix=no
19364   need_version=no
19365   soname_spec='${libname}${release}${shared_ext}$major'
19366   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19367   case $host_os in
19368   irix5* | nonstopux*)
19369     libsuff= shlibsuff=
19370     ;;
19371   *)
19372     case $LD in # libtool.m4 will add one of these switches to LD
19373     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19374       libsuff= shlibsuff= libmagic=32-bit;;
19375     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19376       libsuff=32 shlibsuff=N32 libmagic=N32;;
19377     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19378       libsuff=64 shlibsuff=64 libmagic=64-bit;;
19379     *) libsuff= shlibsuff= libmagic=never-match;;
19380     esac
19381     ;;
19382   esac
19383   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19384   shlibpath_overrides_runpath=no
19385   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19386   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19387   hardcode_into_libs=yes
19388   ;;
19389
19390 # No shared lib support for Linux oldld, aout, or coff.
19391 linux*oldld* | linux*aout* | linux*coff*)
19392   dynamic_linker=no
19393   ;;
19394
19395 # This must be Linux ELF.
19396 linux*)
19397   version_type=linux
19398   need_lib_prefix=no
19399   need_version=no
19400   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19401   soname_spec='${libname}${release}${shared_ext}$major'
19402   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19403   shlibpath_var=LD_LIBRARY_PATH
19404   shlibpath_overrides_runpath=no
19405   # This implies no fast_install, which is unacceptable.
19406   # Some rework will be needed to allow for fast_install
19407   # before this can be enabled.
19408   hardcode_into_libs=yes
19409
19410   # Append ld.so.conf contents to the search path
19411   if test -f /etc/ld.so.conf; then
19412     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
19413     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19414   fi
19415
19416   # We used to test for /lib/ld.so.1 and disable shared libraries on
19417   # powerpc, because MkLinux only supported shared libraries with the
19418   # GNU dynamic linker.  Since this was broken with cross compilers,
19419   # most powerpc-linux boxes support dynamic linking these days and
19420   # people can always --disable-shared, the test was removed, and we
19421   # assume the GNU/Linux dynamic linker is in use.
19422   dynamic_linker='GNU/Linux ld.so'
19423   ;;
19424
19425 knetbsd*-gnu)
19426   version_type=linux
19427   need_lib_prefix=no
19428   need_version=no
19429   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19430   soname_spec='${libname}${release}${shared_ext}$major'
19431   shlibpath_var=LD_LIBRARY_PATH
19432   shlibpath_overrides_runpath=no
19433   hardcode_into_libs=yes
19434   dynamic_linker='GNU ld.so'
19435   ;;
19436
19437 netbsd*)
19438   version_type=sunos
19439   need_lib_prefix=no
19440   need_version=no
19441   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19442     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19443     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19444     dynamic_linker='NetBSD (a.out) ld.so'
19445   else
19446     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19447     soname_spec='${libname}${release}${shared_ext}$major'
19448     dynamic_linker='NetBSD ld.elf_so'
19449   fi
19450   shlibpath_var=LD_LIBRARY_PATH
19451   shlibpath_overrides_runpath=yes
19452   hardcode_into_libs=yes
19453   ;;
19454
19455 newsos6)
19456   version_type=linux
19457   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19458   shlibpath_var=LD_LIBRARY_PATH
19459   shlibpath_overrides_runpath=yes
19460   ;;
19461
19462 nto-qnx*)
19463   version_type=linux
19464   need_lib_prefix=no
19465   need_version=no
19466   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19467   soname_spec='${libname}${release}${shared_ext}$major'
19468   shlibpath_var=LD_LIBRARY_PATH
19469   shlibpath_overrides_runpath=yes
19470   ;;
19471
19472 openbsd*)
19473   version_type=sunos
19474   sys_lib_dlsearch_path_spec="/usr/lib"
19475   need_lib_prefix=no
19476   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19477   case $host_os in
19478     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19479     *)                         need_version=no  ;;
19480   esac
19481   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19482   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19483   shlibpath_var=LD_LIBRARY_PATH
19484   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19485     case $host_os in
19486       openbsd2.[89] | openbsd2.[89].*)
19487         shlibpath_overrides_runpath=no
19488         ;;
19489       *)
19490         shlibpath_overrides_runpath=yes
19491         ;;
19492       esac
19493   else
19494     shlibpath_overrides_runpath=yes
19495   fi
19496   ;;
19497
19498 os2*)
19499   libname_spec='$name'
19500   shrext_cmds=".dll"
19501   need_lib_prefix=no
19502   library_names_spec='$libname${shared_ext} $libname.a'
19503   dynamic_linker='OS/2 ld.exe'
19504   shlibpath_var=LIBPATH
19505   ;;
19506
19507 osf3* | osf4* | osf5*)
19508   version_type=osf
19509   need_lib_prefix=no
19510   need_version=no
19511   soname_spec='${libname}${release}${shared_ext}$major'
19512   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19513   shlibpath_var=LD_LIBRARY_PATH
19514   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19515   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19516   ;;
19517
19518 solaris*)
19519   version_type=linux
19520   need_lib_prefix=no
19521   need_version=no
19522   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19523   soname_spec='${libname}${release}${shared_ext}$major'
19524   shlibpath_var=LD_LIBRARY_PATH
19525   shlibpath_overrides_runpath=yes
19526   hardcode_into_libs=yes
19527   # ldd complains unless libraries are executable
19528   postinstall_cmds='chmod +x $lib'
19529   ;;
19530
19531 sunos4*)
19532   version_type=sunos
19533   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19534   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19535   shlibpath_var=LD_LIBRARY_PATH
19536   shlibpath_overrides_runpath=yes
19537   if test "$with_gnu_ld" = yes; then
19538     need_lib_prefix=no
19539   fi
19540   need_version=yes
19541   ;;
19542
19543 sysv4 | sysv4.3*)
19544   version_type=linux
19545   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19546   soname_spec='${libname}${release}${shared_ext}$major'
19547   shlibpath_var=LD_LIBRARY_PATH
19548   case $host_vendor in
19549     sni)
19550       shlibpath_overrides_runpath=no
19551       need_lib_prefix=no
19552       export_dynamic_flag_spec='${wl}-Blargedynsym'
19553       runpath_var=LD_RUN_PATH
19554       ;;
19555     siemens)
19556       need_lib_prefix=no
19557       ;;
19558     motorola)
19559       need_lib_prefix=no
19560       need_version=no
19561       shlibpath_overrides_runpath=no
19562       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19563       ;;
19564   esac
19565   ;;
19566
19567 sysv4*MP*)
19568   if test -d /usr/nec ;then
19569     version_type=linux
19570     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19571     soname_spec='$libname${shared_ext}.$major'
19572     shlibpath_var=LD_LIBRARY_PATH
19573   fi
19574   ;;
19575
19576 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19577   version_type=freebsd-elf
19578   need_lib_prefix=no
19579   need_version=no
19580   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19581   soname_spec='${libname}${release}${shared_ext}$major'
19582   shlibpath_var=LD_LIBRARY_PATH
19583   hardcode_into_libs=yes
19584   if test "$with_gnu_ld" = yes; then
19585     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19586     shlibpath_overrides_runpath=no
19587   else
19588     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19589     shlibpath_overrides_runpath=yes
19590     case $host_os in
19591       sco3.2v5*)
19592         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19593         ;;
19594     esac
19595   fi
19596   sys_lib_dlsearch_path_spec='/usr/lib'
19597   ;;
19598
19599 uts4*)
19600   version_type=linux
19601   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19602   soname_spec='${libname}${release}${shared_ext}$major'
19603   shlibpath_var=LD_LIBRARY_PATH
19604   ;;
19605
19606 *)
19607   dynamic_linker=no
19608   ;;
19609 esac
19610 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19611 $as_echo "$dynamic_linker" >&6; }
19612 test "$dynamic_linker" = no && can_build_shared=no
19613
19614 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19615 if test "$GCC" = yes; then
19616   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19617 fi
19618
19619 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19620 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19621 hardcode_action_GCJ=
19622 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19623    test -n "$runpath_var_GCJ" || \
19624    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19625
19626   # We can hardcode non-existant directories.
19627   if test "$hardcode_direct_GCJ" != no &&
19628      # If the only mechanism to avoid hardcoding is shlibpath_var, we
19629      # have to relink, otherwise we might link with an installed library
19630      # when we should be linking with a yet-to-be-installed one
19631      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19632      test "$hardcode_minus_L_GCJ" != no; then
19633     # Linking always hardcodes the temporary library directory.
19634     hardcode_action_GCJ=relink
19635   else
19636     # We can link without hardcoding, and we can hardcode nonexisting dirs.
19637     hardcode_action_GCJ=immediate
19638   fi
19639 else
19640   # We cannot hardcode anything, or else we can only hardcode existing
19641   # directories.
19642   hardcode_action_GCJ=unsupported
19643 fi
19644 { $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19645 $as_echo "$hardcode_action_GCJ" >&6; }
19646
19647 if test "$hardcode_action_GCJ" = relink; then
19648   # Fast installation is not supported
19649   enable_fast_install=no
19650 elif test "$shlibpath_overrides_runpath" = yes ||
19651      test "$enable_shared" = no; then
19652   # Fast installation is not necessary
19653   enable_fast_install=needless
19654 fi
19655
19656
19657 # The else clause should only fire when bootstrapping the
19658 # libtool distribution, otherwise you forgot to ship ltmain.sh
19659 # with your package, and you will get complaints that there are
19660 # no rules to generate ltmain.sh.
19661 if test -f "$ltmain"; then
19662   # See if we are running on zsh, and set the options which allow our commands through
19663   # without removal of \ escapes.
19664   if test -n "${ZSH_VERSION+set}" ; then
19665     setopt NO_GLOB_SUBST
19666   fi
19667   # Now quote all the things that may contain metacharacters while being
19668   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19669   # variables and quote the copies for generation of the libtool script.
19670   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19671     SED SHELL STRIP \
19672     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19673     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19674     deplibs_check_method reload_flag reload_cmds need_locks \
19675     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19676     lt_cv_sys_global_symbol_to_c_name_address \
19677     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19678     old_postinstall_cmds old_postuninstall_cmds \
19679     compiler_GCJ \
19680     CC_GCJ \
19681     LD_GCJ \
19682     lt_prog_compiler_wl_GCJ \
19683     lt_prog_compiler_pic_GCJ \
19684     lt_prog_compiler_static_GCJ \
19685     lt_prog_compiler_no_builtin_flag_GCJ \
19686     export_dynamic_flag_spec_GCJ \
19687     thread_safe_flag_spec_GCJ \
19688     whole_archive_flag_spec_GCJ \
19689     enable_shared_with_static_runtimes_GCJ \
19690     old_archive_cmds_GCJ \
19691     old_archive_from_new_cmds_GCJ \
19692     predep_objects_GCJ \
19693     postdep_objects_GCJ \
19694     predeps_GCJ \
19695     postdeps_GCJ \
19696     compiler_lib_search_path_GCJ \
19697     archive_cmds_GCJ \
19698     archive_expsym_cmds_GCJ \
19699     postinstall_cmds_GCJ \
19700     postuninstall_cmds_GCJ \
19701     old_archive_from_expsyms_cmds_GCJ \
19702     allow_undefined_flag_GCJ \
19703     no_undefined_flag_GCJ \
19704     export_symbols_cmds_GCJ \
19705     hardcode_libdir_flag_spec_GCJ \
19706     hardcode_libdir_flag_spec_ld_GCJ \
19707     hardcode_libdir_separator_GCJ \
19708     hardcode_automatic_GCJ \
19709     module_cmds_GCJ \
19710     module_expsym_cmds_GCJ \
19711     lt_cv_prog_compiler_c_o_GCJ \
19712     exclude_expsyms_GCJ \
19713     include_expsyms_GCJ; do
19714
19715     case $var in
19716     old_archive_cmds_GCJ | \
19717     old_archive_from_new_cmds_GCJ | \
19718     archive_cmds_GCJ | \
19719     archive_expsym_cmds_GCJ | \
19720     module_cmds_GCJ | \
19721     module_expsym_cmds_GCJ | \
19722     old_archive_from_expsyms_cmds_GCJ | \
19723     export_symbols_cmds_GCJ | \
19724     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19725     postinstall_cmds | postuninstall_cmds | \
19726     old_postinstall_cmds | old_postuninstall_cmds | \
19727     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19728       # Double-quote double-evaled strings.
19729       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19730       ;;
19731     *)
19732       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19733       ;;
19734     esac
19735   done
19736
19737   case $lt_echo in
19738   *'\$0 --fallback-echo"')
19739     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19740     ;;
19741   esac
19742
19743 cfgfile="$ofile"
19744
19745   cat <<__EOF__ >> "$cfgfile"
19746 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19747
19748 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19749
19750 # Shell to use when invoking shell scripts.
19751 SHELL=$lt_SHELL
19752
19753 # Whether or not to build shared libraries.
19754 build_libtool_libs=$enable_shared
19755
19756 # Whether or not to build static libraries.
19757 build_old_libs=$enable_static
19758
19759 # Whether or not to add -lc for building shared libraries.
19760 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19761
19762 # Whether or not to disallow shared libs when runtime libs are static
19763 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19764
19765 # Whether or not to optimize for fast installation.
19766 fast_install=$enable_fast_install
19767
19768 # The host system.
19769 host_alias=$host_alias
19770 host=$host
19771 host_os=$host_os
19772
19773 # The build system.
19774 build_alias=$build_alias
19775 build=$build
19776 build_os=$build_os
19777
19778 # An echo program that does not interpret backslashes.
19779 echo=$lt_echo
19780
19781 # The archiver.
19782 AR=$lt_AR
19783 AR_FLAGS=$lt_AR_FLAGS
19784
19785 # A C compiler.
19786 LTCC=$lt_LTCC
19787
19788 # LTCC compiler flags.
19789 LTCFLAGS=$lt_LTCFLAGS
19790
19791 # A language-specific compiler.
19792 CC=$lt_compiler_GCJ
19793
19794 # Is the compiler the GNU C compiler?
19795 with_gcc=$GCC_GCJ
19796
19797 # An ERE matcher.
19798 EGREP=$lt_EGREP
19799
19800 # The linker used to build libraries.
19801 LD=$lt_LD_GCJ
19802
19803 # Whether we need hard or soft links.
19804 LN_S=$lt_LN_S
19805
19806 # A BSD-compatible nm program.
19807 NM=$lt_NM
19808
19809 # A symbol stripping program
19810 STRIP=$lt_STRIP
19811
19812 # Used to examine libraries when file_magic_cmd begins "file"
19813 MAGIC_CMD=$MAGIC_CMD
19814
19815 # Used on cygwin: DLL creation program.
19816 DLLTOOL="$DLLTOOL"
19817
19818 # Used on cygwin: object dumper.
19819 OBJDUMP="$OBJDUMP"
19820
19821 # Used on cygwin: assembler.
19822 AS="$AS"
19823
19824 # The name of the directory that contains temporary libtool files.
19825 objdir=$objdir
19826
19827 # How to create reloadable object files.
19828 reload_flag=$lt_reload_flag
19829 reload_cmds=$lt_reload_cmds
19830
19831 # How to pass a linker flag through the compiler.
19832 wl=$lt_lt_prog_compiler_wl_GCJ
19833
19834 # Object file suffix (normally "o").
19835 objext="$ac_objext"
19836
19837 # Old archive suffix (normally "a").
19838 libext="$libext"
19839
19840 # Shared library suffix (normally ".so").
19841 shrext_cmds='$shrext_cmds'
19842
19843 # Executable file suffix (normally "").
19844 exeext="$exeext"
19845
19846 # Additional compiler flags for building library objects.
19847 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19848 pic_mode=$pic_mode
19849
19850 # What is the maximum length of a command?
19851 max_cmd_len=$lt_cv_sys_max_cmd_len
19852
19853 # Does compiler simultaneously support -c and -o options?
19854 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19855
19856 # Must we lock files when doing compilation?
19857 need_locks=$lt_need_locks
19858
19859 # Do we need the lib prefix for modules?
19860 need_lib_prefix=$need_lib_prefix
19861
19862 # Do we need a version for libraries?
19863 need_version=$need_version
19864
19865 # Whether dlopen is supported.
19866 dlopen_support=$enable_dlopen
19867
19868 # Whether dlopen of programs is supported.
19869 dlopen_self=$enable_dlopen_self
19870
19871 # Whether dlopen of statically linked programs is supported.
19872 dlopen_self_static=$enable_dlopen_self_static
19873
19874 # Compiler flag to prevent dynamic linking.
19875 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19876
19877 # Compiler flag to turn off builtin functions.
19878 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19879
19880 # Compiler flag to allow reflexive dlopens.
19881 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19882
19883 # Compiler flag to generate shared objects directly from archives.
19884 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19885
19886 # Compiler flag to generate thread-safe objects.
19887 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19888
19889 # Library versioning type.
19890 version_type=$version_type
19891
19892 # Format of library name prefix.
19893 libname_spec=$lt_libname_spec
19894
19895 # List of archive names.  First name is the real one, the rest are links.
19896 # The last name is the one that the linker finds with -lNAME.
19897 library_names_spec=$lt_library_names_spec
19898
19899 # The coded name of the library, if different from the real name.
19900 soname_spec=$lt_soname_spec
19901
19902 # Commands used to build and install an old-style archive.
19903 RANLIB=$lt_RANLIB
19904 old_archive_cmds=$lt_old_archive_cmds_GCJ
19905 old_postinstall_cmds=$lt_old_postinstall_cmds
19906 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19907
19908 # Create an old-style archive from a shared archive.
19909 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19910
19911 # Create a temporary old-style archive to link instead of a shared archive.
19912 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19913
19914 # Commands used to build and install a shared archive.
19915 archive_cmds=$lt_archive_cmds_GCJ
19916 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19917 postinstall_cmds=$lt_postinstall_cmds
19918 postuninstall_cmds=$lt_postuninstall_cmds
19919
19920 # Commands used to build a loadable module (assumed same as above if empty)
19921 module_cmds=$lt_module_cmds_GCJ
19922 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19923
19924 # Commands to strip libraries.
19925 old_striplib=$lt_old_striplib
19926 striplib=$lt_striplib
19927
19928 # Dependencies to place before the objects being linked to create a
19929 # shared library.
19930 predep_objects=$lt_predep_objects_GCJ
19931
19932 # Dependencies to place after the objects being linked to create a
19933 # shared library.
19934 postdep_objects=$lt_postdep_objects_GCJ
19935
19936 # Dependencies to place before the objects being linked to create a
19937 # shared library.
19938 predeps=$lt_predeps_GCJ
19939
19940 # Dependencies to place after the objects being linked to create a
19941 # shared library.
19942 postdeps=$lt_postdeps_GCJ
19943
19944 # The library search path used internally by the compiler when linking
19945 # a shared library.
19946 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19947
19948 # Method to check whether dependent libraries are shared objects.
19949 deplibs_check_method=$lt_deplibs_check_method
19950
19951 # Command to use when deplibs_check_method == file_magic.
19952 file_magic_cmd=$lt_file_magic_cmd
19953
19954 # Flag that allows shared libraries with undefined symbols to be built.
19955 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19956
19957 # Flag that forces no undefined symbols.
19958 no_undefined_flag=$lt_no_undefined_flag_GCJ
19959
19960 # Commands used to finish a libtool library installation in a directory.
19961 finish_cmds=$lt_finish_cmds
19962
19963 # Same as above, but a single script fragment to be evaled but not shown.
19964 finish_eval=$lt_finish_eval
19965
19966 # Take the output of nm and produce a listing of raw symbols and C names.
19967 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19968
19969 # Transform the output of nm in a proper C declaration
19970 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19971
19972 # Transform the output of nm in a C name address pair
19973 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19974
19975 # This is the shared library runtime path variable.
19976 runpath_var=$runpath_var
19977
19978 # This is the shared library path variable.
19979 shlibpath_var=$shlibpath_var
19980
19981 # Is shlibpath searched before the hard-coded library search path?
19982 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19983
19984 # How to hardcode a shared library path into an executable.
19985 hardcode_action=$hardcode_action_GCJ
19986
19987 # Whether we should hardcode library paths into libraries.
19988 hardcode_into_libs=$hardcode_into_libs
19989
19990 # Flag to hardcode \$libdir into a binary during linking.
19991 # This must work even if \$libdir does not exist.
19992 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19993
19994 # If ld is used when linking, flag to hardcode \$libdir into
19995 # a binary during linking. This must work even if \$libdir does
19996 # not exist.
19997 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19998
19999 # Whether we need a single -rpath flag with a separated argument.
20000 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20001
20002 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20003 # resulting binary.
20004 hardcode_direct=$hardcode_direct_GCJ
20005
20006 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20007 # resulting binary.
20008 hardcode_minus_L=$hardcode_minus_L_GCJ
20009
20010 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20011 # the resulting binary.
20012 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20013
20014 # Set to yes if building a shared library automatically hardcodes DIR into the library
20015 # and all subsequent libraries and executables linked against it.
20016 hardcode_automatic=$hardcode_automatic_GCJ
20017
20018 # Variables whose values should be saved in libtool wrapper scripts and
20019 # restored at relink time.
20020 variables_saved_for_relink="$variables_saved_for_relink"
20021
20022 # Whether libtool must link a program against all its dependency libraries.
20023 link_all_deplibs=$link_all_deplibs_GCJ
20024
20025 # Compile-time system search path for libraries
20026 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20027
20028 # Run-time system search path for libraries
20029 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20030
20031 # Fix the shell variable \$srcfile for the compiler.
20032 fix_srcfile_path="$fix_srcfile_path_GCJ"
20033
20034 # Set to yes if exported symbols are required.
20035 always_export_symbols=$always_export_symbols_GCJ
20036
20037 # The commands to list exported symbols.
20038 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20039
20040 # The commands to extract the exported symbol list from a shared archive.
20041 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20042
20043 # Symbols that should not be listed in the preloaded symbols.
20044 exclude_expsyms=$lt_exclude_expsyms_GCJ
20045
20046 # Symbols that must always be exported.
20047 include_expsyms=$lt_include_expsyms_GCJ
20048
20049 # ### END LIBTOOL TAG CONFIG: $tagname
20050
20051 __EOF__
20052
20053
20054 else
20055   # If there is no Makefile yet, we rely on a make rule to execute
20056   # `config.status --recheck' to rerun these tests and create the
20057   # libtool script then.
20058   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20059   if test -f "$ltmain_in"; then
20060     test -f Makefile && make "$ltmain"
20061   fi
20062 fi
20063
20064
20065 ac_ext=c
20066 ac_cpp='$CPP $CPPFLAGS'
20067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20070
20071 CC="$lt_save_CC"
20072
20073         else
20074           tagname=""
20075         fi
20076         ;;
20077
20078       RC)
20079
20080
20081 # Source file extension for RC test sources.
20082 ac_ext=rc
20083
20084 # Object file extension for compiled RC test sources.
20085 objext=o
20086 objext_RC=$objext
20087
20088 # Code to be used in simple compile tests
20089 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
20090
20091 # Code to be used in simple link tests
20092 lt_simple_link_test_code="$lt_simple_compile_test_code"
20093
20094 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20095
20096 # If no C compiler was specified, use CC.
20097 LTCC=${LTCC-"$CC"}
20098
20099 # If no C compiler flags were specified, use CFLAGS.
20100 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20101
20102 # Allow CC to be a program name with arguments.
20103 compiler=$CC
20104
20105
20106 # save warnings/boilerplate of simple test code
20107 ac_outfile=conftest.$ac_objext
20108 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20109 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20110 _lt_compiler_boilerplate=`cat conftest.err`
20111 $rm conftest*
20112
20113 ac_outfile=conftest.$ac_objext
20114 printf "$lt_simple_link_test_code" >conftest.$ac_ext
20115 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20116 _lt_linker_boilerplate=`cat conftest.err`
20117 $rm conftest*
20118
20119
20120 # Allow CC to be a program name with arguments.
20121 lt_save_CC="$CC"
20122 CC=${RC-"windres"}
20123 compiler=$CC
20124 compiler_RC=$CC
20125 for cc_temp in $compiler""; do
20126   case $cc_temp in
20127     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20128     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20129     \-*) ;;
20130     *) break;;
20131   esac
20132 done
20133 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20134
20135 lt_cv_prog_compiler_c_o_RC=yes
20136
20137 # The else clause should only fire when bootstrapping the
20138 # libtool distribution, otherwise you forgot to ship ltmain.sh
20139 # with your package, and you will get complaints that there are
20140 # no rules to generate ltmain.sh.
20141 if test -f "$ltmain"; then
20142   # See if we are running on zsh, and set the options which allow our commands through
20143   # without removal of \ escapes.
20144   if test -n "${ZSH_VERSION+set}" ; then
20145     setopt NO_GLOB_SUBST
20146   fi
20147   # Now quote all the things that may contain metacharacters while being
20148   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20149   # variables and quote the copies for generation of the libtool script.
20150   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20151     SED SHELL STRIP \
20152     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20153     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20154     deplibs_check_method reload_flag reload_cmds need_locks \
20155     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20156     lt_cv_sys_global_symbol_to_c_name_address \
20157     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20158     old_postinstall_cmds old_postuninstall_cmds \
20159     compiler_RC \
20160     CC_RC \
20161     LD_RC \
20162     lt_prog_compiler_wl_RC \
20163     lt_prog_compiler_pic_RC \
20164     lt_prog_compiler_static_RC \
20165     lt_prog_compiler_no_builtin_flag_RC \
20166     export_dynamic_flag_spec_RC \
20167     thread_safe_flag_spec_RC \
20168     whole_archive_flag_spec_RC \
20169     enable_shared_with_static_runtimes_RC \
20170     old_archive_cmds_RC \
20171     old_archive_from_new_cmds_RC \
20172     predep_objects_RC \
20173     postdep_objects_RC \
20174     predeps_RC \
20175     postdeps_RC \
20176     compiler_lib_search_path_RC \
20177     archive_cmds_RC \
20178     archive_expsym_cmds_RC \
20179     postinstall_cmds_RC \
20180     postuninstall_cmds_RC \
20181     old_archive_from_expsyms_cmds_RC \
20182     allow_undefined_flag_RC \
20183     no_undefined_flag_RC \
20184     export_symbols_cmds_RC \
20185     hardcode_libdir_flag_spec_RC \
20186     hardcode_libdir_flag_spec_ld_RC \
20187     hardcode_libdir_separator_RC \
20188     hardcode_automatic_RC \
20189     module_cmds_RC \
20190     module_expsym_cmds_RC \
20191     lt_cv_prog_compiler_c_o_RC \
20192     exclude_expsyms_RC \
20193     include_expsyms_RC; do
20194
20195     case $var in
20196     old_archive_cmds_RC | \
20197     old_archive_from_new_cmds_RC | \
20198     archive_cmds_RC | \
20199     archive_expsym_cmds_RC | \
20200     module_cmds_RC | \
20201     module_expsym_cmds_RC | \
20202     old_archive_from_expsyms_cmds_RC | \
20203     export_symbols_cmds_RC | \
20204     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20205     postinstall_cmds | postuninstall_cmds | \
20206     old_postinstall_cmds | old_postuninstall_cmds | \
20207     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20208       # Double-quote double-evaled strings.
20209       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20210       ;;
20211     *)
20212       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20213       ;;
20214     esac
20215   done
20216
20217   case $lt_echo in
20218   *'\$0 --fallback-echo"')
20219     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20220     ;;
20221   esac
20222
20223 cfgfile="$ofile"
20224
20225   cat <<__EOF__ >> "$cfgfile"
20226 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20227
20228 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20229
20230 # Shell to use when invoking shell scripts.
20231 SHELL=$lt_SHELL
20232
20233 # Whether or not to build shared libraries.
20234 build_libtool_libs=$enable_shared
20235
20236 # Whether or not to build static libraries.
20237 build_old_libs=$enable_static
20238
20239 # Whether or not to add -lc for building shared libraries.
20240 build_libtool_need_lc=$archive_cmds_need_lc_RC
20241
20242 # Whether or not to disallow shared libs when runtime libs are static
20243 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20244
20245 # Whether or not to optimize for fast installation.
20246 fast_install=$enable_fast_install
20247
20248 # The host system.
20249 host_alias=$host_alias
20250 host=$host
20251 host_os=$host_os
20252
20253 # The build system.
20254 build_alias=$build_alias
20255 build=$build
20256 build_os=$build_os
20257
20258 # An echo program that does not interpret backslashes.
20259 echo=$lt_echo
20260
20261 # The archiver.
20262 AR=$lt_AR
20263 AR_FLAGS=$lt_AR_FLAGS
20264
20265 # A C compiler.
20266 LTCC=$lt_LTCC
20267
20268 # LTCC compiler flags.
20269 LTCFLAGS=$lt_LTCFLAGS
20270
20271 # A language-specific compiler.
20272 CC=$lt_compiler_RC
20273
20274 # Is the compiler the GNU C compiler?
20275 with_gcc=$GCC_RC
20276
20277 # An ERE matcher.
20278 EGREP=$lt_EGREP
20279
20280 # The linker used to build libraries.
20281 LD=$lt_LD_RC
20282
20283 # Whether we need hard or soft links.
20284 LN_S=$lt_LN_S
20285
20286 # A BSD-compatible nm program.
20287 NM=$lt_NM
20288
20289 # A symbol stripping program
20290 STRIP=$lt_STRIP
20291
20292 # Used to examine libraries when file_magic_cmd begins "file"
20293 MAGIC_CMD=$MAGIC_CMD
20294
20295 # Used on cygwin: DLL creation program.
20296 DLLTOOL="$DLLTOOL"
20297
20298 # Used on cygwin: object dumper.
20299 OBJDUMP="$OBJDUMP"
20300
20301 # Used on cygwin: assembler.
20302 AS="$AS"
20303
20304 # The name of the directory that contains temporary libtool files.
20305 objdir=$objdir
20306
20307 # How to create reloadable object files.
20308 reload_flag=$lt_reload_flag
20309 reload_cmds=$lt_reload_cmds
20310
20311 # How to pass a linker flag through the compiler.
20312 wl=$lt_lt_prog_compiler_wl_RC
20313
20314 # Object file suffix (normally "o").
20315 objext="$ac_objext"
20316
20317 # Old archive suffix (normally "a").
20318 libext="$libext"
20319
20320 # Shared library suffix (normally ".so").
20321 shrext_cmds='$shrext_cmds'
20322
20323 # Executable file suffix (normally "").
20324 exeext="$exeext"
20325
20326 # Additional compiler flags for building library objects.
20327 pic_flag=$lt_lt_prog_compiler_pic_RC
20328 pic_mode=$pic_mode
20329
20330 # What is the maximum length of a command?
20331 max_cmd_len=$lt_cv_sys_max_cmd_len
20332
20333 # Does compiler simultaneously support -c and -o options?
20334 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20335
20336 # Must we lock files when doing compilation?
20337 need_locks=$lt_need_locks
20338
20339 # Do we need the lib prefix for modules?
20340 need_lib_prefix=$need_lib_prefix
20341
20342 # Do we need a version for libraries?
20343 need_version=$need_version
20344
20345 # Whether dlopen is supported.
20346 dlopen_support=$enable_dlopen
20347
20348 # Whether dlopen of programs is supported.
20349 dlopen_self=$enable_dlopen_self
20350
20351 # Whether dlopen of statically linked programs is supported.
20352 dlopen_self_static=$enable_dlopen_self_static
20353
20354 # Compiler flag to prevent dynamic linking.
20355 link_static_flag=$lt_lt_prog_compiler_static_RC
20356
20357 # Compiler flag to turn off builtin functions.
20358 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20359
20360 # Compiler flag to allow reflexive dlopens.
20361 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20362
20363 # Compiler flag to generate shared objects directly from archives.
20364 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20365
20366 # Compiler flag to generate thread-safe objects.
20367 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20368
20369 # Library versioning type.
20370 version_type=$version_type
20371
20372 # Format of library name prefix.
20373 libname_spec=$lt_libname_spec
20374
20375 # List of archive names.  First name is the real one, the rest are links.
20376 # The last name is the one that the linker finds with -lNAME.
20377 library_names_spec=$lt_library_names_spec
20378
20379 # The coded name of the library, if different from the real name.
20380 soname_spec=$lt_soname_spec
20381
20382 # Commands used to build and install an old-style archive.
20383 RANLIB=$lt_RANLIB
20384 old_archive_cmds=$lt_old_archive_cmds_RC
20385 old_postinstall_cmds=$lt_old_postinstall_cmds
20386 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20387
20388 # Create an old-style archive from a shared archive.
20389 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20390
20391 # Create a temporary old-style archive to link instead of a shared archive.
20392 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20393
20394 # Commands used to build and install a shared archive.
20395 archive_cmds=$lt_archive_cmds_RC
20396 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20397 postinstall_cmds=$lt_postinstall_cmds
20398 postuninstall_cmds=$lt_postuninstall_cmds
20399
20400 # Commands used to build a loadable module (assumed same as above if empty)
20401 module_cmds=$lt_module_cmds_RC
20402 module_expsym_cmds=$lt_module_expsym_cmds_RC
20403
20404 # Commands to strip libraries.
20405 old_striplib=$lt_old_striplib
20406 striplib=$lt_striplib
20407
20408 # Dependencies to place before the objects being linked to create a
20409 # shared library.
20410 predep_objects=$lt_predep_objects_RC
20411
20412 # Dependencies to place after the objects being linked to create a
20413 # shared library.
20414 postdep_objects=$lt_postdep_objects_RC
20415
20416 # Dependencies to place before the objects being linked to create a
20417 # shared library.
20418 predeps=$lt_predeps_RC
20419
20420 # Dependencies to place after the objects being linked to create a
20421 # shared library.
20422 postdeps=$lt_postdeps_RC
20423
20424 # The library search path used internally by the compiler when linking
20425 # a shared library.
20426 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20427
20428 # Method to check whether dependent libraries are shared objects.
20429 deplibs_check_method=$lt_deplibs_check_method
20430
20431 # Command to use when deplibs_check_method == file_magic.
20432 file_magic_cmd=$lt_file_magic_cmd
20433
20434 # Flag that allows shared libraries with undefined symbols to be built.
20435 allow_undefined_flag=$lt_allow_undefined_flag_RC
20436
20437 # Flag that forces no undefined symbols.
20438 no_undefined_flag=$lt_no_undefined_flag_RC
20439
20440 # Commands used to finish a libtool library installation in a directory.
20441 finish_cmds=$lt_finish_cmds
20442
20443 # Same as above, but a single script fragment to be evaled but not shown.
20444 finish_eval=$lt_finish_eval
20445
20446 # Take the output of nm and produce a listing of raw symbols and C names.
20447 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20448
20449 # Transform the output of nm in a proper C declaration
20450 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20451
20452 # Transform the output of nm in a C name address pair
20453 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20454
20455 # This is the shared library runtime path variable.
20456 runpath_var=$runpath_var
20457
20458 # This is the shared library path variable.
20459 shlibpath_var=$shlibpath_var
20460
20461 # Is shlibpath searched before the hard-coded library search path?
20462 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20463
20464 # How to hardcode a shared library path into an executable.
20465 hardcode_action=$hardcode_action_RC
20466
20467 # Whether we should hardcode library paths into libraries.
20468 hardcode_into_libs=$hardcode_into_libs
20469
20470 # Flag to hardcode \$libdir into a binary during linking.
20471 # This must work even if \$libdir does not exist.
20472 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20473
20474 # If ld is used when linking, flag to hardcode \$libdir into
20475 # a binary during linking. This must work even if \$libdir does
20476 # not exist.
20477 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20478
20479 # Whether we need a single -rpath flag with a separated argument.
20480 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20481
20482 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20483 # resulting binary.
20484 hardcode_direct=$hardcode_direct_RC
20485
20486 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20487 # resulting binary.
20488 hardcode_minus_L=$hardcode_minus_L_RC
20489
20490 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20491 # the resulting binary.
20492 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20493
20494 # Set to yes if building a shared library automatically hardcodes DIR into the library
20495 # and all subsequent libraries and executables linked against it.
20496 hardcode_automatic=$hardcode_automatic_RC
20497
20498 # Variables whose values should be saved in libtool wrapper scripts and
20499 # restored at relink time.
20500 variables_saved_for_relink="$variables_saved_for_relink"
20501
20502 # Whether libtool must link a program against all its dependency libraries.
20503 link_all_deplibs=$link_all_deplibs_RC
20504
20505 # Compile-time system search path for libraries
20506 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20507
20508 # Run-time system search path for libraries
20509 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20510
20511 # Fix the shell variable \$srcfile for the compiler.
20512 fix_srcfile_path="$fix_srcfile_path_RC"
20513
20514 # Set to yes if exported symbols are required.
20515 always_export_symbols=$always_export_symbols_RC
20516
20517 # The commands to list exported symbols.
20518 export_symbols_cmds=$lt_export_symbols_cmds_RC
20519
20520 # The commands to extract the exported symbol list from a shared archive.
20521 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20522
20523 # Symbols that should not be listed in the preloaded symbols.
20524 exclude_expsyms=$lt_exclude_expsyms_RC
20525
20526 # Symbols that must always be exported.
20527 include_expsyms=$lt_include_expsyms_RC
20528
20529 # ### END LIBTOOL TAG CONFIG: $tagname
20530
20531 __EOF__
20532
20533
20534 else
20535   # If there is no Makefile yet, we rely on a make rule to execute
20536   # `config.status --recheck' to rerun these tests and create the
20537   # libtool script then.
20538   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20539   if test -f "$ltmain_in"; then
20540     test -f Makefile && make "$ltmain"
20541   fi
20542 fi
20543
20544
20545 ac_ext=c
20546 ac_cpp='$CPP $CPPFLAGS'
20547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20550
20551 CC="$lt_save_CC"
20552
20553         ;;
20554
20555       *)
20556         { { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20557 $as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20558    { (exit 1); exit 1; }; }
20559         ;;
20560       esac
20561
20562       # Append the new tag name to the list of available tags.
20563       if test -n "$tagname" ; then
20564       available_tags="$available_tags $tagname"
20565     fi
20566     fi
20567   done
20568   IFS="$lt_save_ifs"
20569
20570   # Now substitute the updated list of available tags.
20571   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20572     mv "${ofile}T" "$ofile"
20573     chmod +x "$ofile"
20574   else
20575     rm -f "${ofile}T"
20576     { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20577 $as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20578    { (exit 1); exit 1; }; }
20579   fi
20580 fi
20581
20582
20583
20584 # This can be used to rebuild libtool when needed
20585 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20586
20587 # Always use our own libtool.
20588 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20589
20590 # Prevent multiple expansion
20591
20592
20593
20594
20595
20596
20597
20598
20599
20600
20601
20602
20603
20604
20605
20606
20607
20608
20609
20610
20611 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
20612 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
20613 if test -z "$MKDIR_P"; then
20614   if test "${ac_cv_path_mkdir+set}" = set; then
20615   $as_echo_n "(cached) " >&6
20616 else
20617   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20618 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
20619 do
20620   IFS=$as_save_IFS
20621   test -z "$as_dir" && as_dir=.
20622   for ac_prog in mkdir gmkdir; do
20623          for ac_exec_ext in '' $ac_executable_extensions; do
20624            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
20625            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
20626              'mkdir (GNU coreutils) '* | \
20627              'mkdir (coreutils) '* | \
20628              'mkdir (fileutils) '4.1*)
20629                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
20630                break 3;;
20631            esac
20632          done
20633        done
20634 done
20635 IFS=$as_save_IFS
20636
20637 fi
20638
20639   if test "${ac_cv_path_mkdir+set}" = set; then
20640     MKDIR_P="$ac_cv_path_mkdir -p"
20641   else
20642     # As a last resort, use the slow shell script.  Don't cache a
20643     # value for MKDIR_P within a source directory, because that will
20644     # break other packages using the cache if that directory is
20645     # removed, or if the value is a relative name.
20646     test -d ./--version && rmdir ./--version
20647     MKDIR_P="$ac_install_sh -d"
20648   fi
20649 fi
20650 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
20651 $as_echo "$MKDIR_P" >&6; }
20652
20653
20654 # Check for library functions that SQLite can optionally use.
20655
20656
20657
20658
20659
20660 for ac_func in fdatasync usleep fullfsync localtime_r gmtime_r
20661 do
20662 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20663 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20664 $as_echo_n "checking for $ac_func... " >&6; }
20665 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20666   $as_echo_n "(cached) " >&6
20667 else
20668   cat >conftest.$ac_ext <<_ACEOF
20669 /* confdefs.h.  */
20670 _ACEOF
20671 cat confdefs.h >>conftest.$ac_ext
20672 cat >>conftest.$ac_ext <<_ACEOF
20673 /* end confdefs.h.  */
20674 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20675    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20676 #define $ac_func innocuous_$ac_func
20677
20678 /* System header to define __stub macros and hopefully few prototypes,
20679     which can conflict with char $ac_func (); below.
20680     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20681     <limits.h> exists even on freestanding compilers.  */
20682
20683 #ifdef __STDC__
20684 # include <limits.h>
20685 #else
20686 # include <assert.h>
20687 #endif
20688
20689 #undef $ac_func
20690
20691 /* Override any GCC internal prototype to avoid an error.
20692    Use char because int might match the return type of a GCC
20693    builtin and then its argument prototype would still apply.  */
20694 #ifdef __cplusplus
20695 extern "C"
20696 #endif
20697 char $ac_func ();
20698 /* The GNU C library defines this for functions which it implements
20699     to always fail with ENOSYS.  Some functions are actually named
20700     something starting with __ and the normal name is an alias.  */
20701 #if defined __stub_$ac_func || defined __stub___$ac_func
20702 choke me
20703 #endif
20704
20705 int
20706 main ()
20707 {
20708 return $ac_func ();
20709   ;
20710   return 0;
20711 }
20712 _ACEOF
20713 rm -f conftest.$ac_objext conftest$ac_exeext
20714 if { (ac_try="$ac_link"
20715 case "(($ac_try" in
20716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20717   *) ac_try_echo=$ac_try;;
20718 esac
20719 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20720 $as_echo "$ac_try_echo") >&5
20721   (eval "$ac_link") 2>conftest.er1
20722   ac_status=$?
20723   grep -v '^ *+' conftest.er1 >conftest.err
20724   rm -f conftest.er1
20725   cat conftest.err >&5
20726   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20727   (exit $ac_status); } && {
20728          test -z "$ac_c_werror_flag" ||
20729          test ! -s conftest.err
20730        } && test -s conftest$ac_exeext && {
20731          test "$cross_compiling" = yes ||
20732          $as_test_x conftest$ac_exeext
20733        }; then
20734   eval "$as_ac_var=yes"
20735 else
20736   $as_echo "$as_me: failed program was:" >&5
20737 sed 's/^/| /' conftest.$ac_ext >&5
20738
20739         eval "$as_ac_var=no"
20740 fi
20741
20742 rm -rf conftest.dSYM
20743 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20744       conftest$ac_exeext conftest.$ac_ext
20745 fi
20746 ac_res=`eval 'as_val=${'$as_ac_var'}
20747                  $as_echo "$as_val"'`
20748                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20749 $as_echo "$ac_res" >&6; }
20750 if test `eval 'as_val=${'$as_ac_var'}
20751                  $as_echo "$as_val"'` = yes; then
20752   cat >>confdefs.h <<_ACEOF
20753 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20754 _ACEOF
20755
20756 fi
20757 done
20758
20759 { $as_echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
20760 $as_echo_n "checking whether strerror_r is declared... " >&6; }
20761 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
20762   $as_echo_n "(cached) " >&6
20763 else
20764   cat >conftest.$ac_ext <<_ACEOF
20765 /* confdefs.h.  */
20766 _ACEOF
20767 cat confdefs.h >>conftest.$ac_ext
20768 cat >>conftest.$ac_ext <<_ACEOF
20769 /* end confdefs.h.  */
20770 $ac_includes_default
20771 int
20772 main ()
20773 {
20774 #ifndef strerror_r
20775   (void) strerror_r;
20776 #endif
20777
20778   ;
20779   return 0;
20780 }
20781 _ACEOF
20782 rm -f conftest.$ac_objext
20783 if { (ac_try="$ac_compile"
20784 case "(($ac_try" in
20785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20786   *) ac_try_echo=$ac_try;;
20787 esac
20788 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20789 $as_echo "$ac_try_echo") >&5
20790   (eval "$ac_compile") 2>conftest.er1
20791   ac_status=$?
20792   grep -v '^ *+' conftest.er1 >conftest.err
20793   rm -f conftest.er1
20794   cat conftest.err >&5
20795   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20796   (exit $ac_status); } && {
20797          test -z "$ac_c_werror_flag" ||
20798          test ! -s conftest.err
20799        } && test -s conftest.$ac_objext; then
20800   ac_cv_have_decl_strerror_r=yes
20801 else
20802   $as_echo "$as_me: failed program was:" >&5
20803 sed 's/^/| /' conftest.$ac_ext >&5
20804
20805         ac_cv_have_decl_strerror_r=no
20806 fi
20807
20808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20809 fi
20810 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
20811 $as_echo "$ac_cv_have_decl_strerror_r" >&6; }
20812 if test $ac_cv_have_decl_strerror_r = yes; then
20813
20814 cat >>confdefs.h <<_ACEOF
20815 #define HAVE_DECL_STRERROR_R 1
20816 _ACEOF
20817
20818
20819 else
20820   cat >>confdefs.h <<_ACEOF
20821 #define HAVE_DECL_STRERROR_R 0
20822 _ACEOF
20823
20824
20825 fi
20826
20827
20828
20829 for ac_func in strerror_r
20830 do
20831 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20832 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20833 $as_echo_n "checking for $ac_func... " >&6; }
20834 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20835   $as_echo_n "(cached) " >&6
20836 else
20837   cat >conftest.$ac_ext <<_ACEOF
20838 /* confdefs.h.  */
20839 _ACEOF
20840 cat confdefs.h >>conftest.$ac_ext
20841 cat >>conftest.$ac_ext <<_ACEOF
20842 /* end confdefs.h.  */
20843 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20844    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20845 #define $ac_func innocuous_$ac_func
20846
20847 /* System header to define __stub macros and hopefully few prototypes,
20848     which can conflict with char $ac_func (); below.
20849     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20850     <limits.h> exists even on freestanding compilers.  */
20851
20852 #ifdef __STDC__
20853 # include <limits.h>
20854 #else
20855 # include <assert.h>
20856 #endif
20857
20858 #undef $ac_func
20859
20860 /* Override any GCC internal prototype to avoid an error.
20861    Use char because int might match the return type of a GCC
20862    builtin and then its argument prototype would still apply.  */
20863 #ifdef __cplusplus
20864 extern "C"
20865 #endif
20866 char $ac_func ();
20867 /* The GNU C library defines this for functions which it implements
20868     to always fail with ENOSYS.  Some functions are actually named
20869     something starting with __ and the normal name is an alias.  */
20870 #if defined __stub_$ac_func || defined __stub___$ac_func
20871 choke me
20872 #endif
20873
20874 int
20875 main ()
20876 {
20877 return $ac_func ();
20878   ;
20879   return 0;
20880 }
20881 _ACEOF
20882 rm -f conftest.$ac_objext conftest$ac_exeext
20883 if { (ac_try="$ac_link"
20884 case "(($ac_try" in
20885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20886   *) ac_try_echo=$ac_try;;
20887 esac
20888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20889 $as_echo "$ac_try_echo") >&5
20890   (eval "$ac_link") 2>conftest.er1
20891   ac_status=$?
20892   grep -v '^ *+' conftest.er1 >conftest.err
20893   rm -f conftest.er1
20894   cat conftest.err >&5
20895   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20896   (exit $ac_status); } && {
20897          test -z "$ac_c_werror_flag" ||
20898          test ! -s conftest.err
20899        } && test -s conftest$ac_exeext && {
20900          test "$cross_compiling" = yes ||
20901          $as_test_x conftest$ac_exeext
20902        }; then
20903   eval "$as_ac_var=yes"
20904 else
20905   $as_echo "$as_me: failed program was:" >&5
20906 sed 's/^/| /' conftest.$ac_ext >&5
20907
20908         eval "$as_ac_var=no"
20909 fi
20910
20911 rm -rf conftest.dSYM
20912 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20913       conftest$ac_exeext conftest.$ac_ext
20914 fi
20915 ac_res=`eval 'as_val=${'$as_ac_var'}
20916                  $as_echo "$as_val"'`
20917                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20918 $as_echo "$ac_res" >&6; }
20919 if test `eval 'as_val=${'$as_ac_var'}
20920                  $as_echo "$as_val"'` = yes; then
20921   cat >>confdefs.h <<_ACEOF
20922 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20923 _ACEOF
20924
20925 fi
20926 done
20927
20928 { $as_echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
20929 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
20930 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
20931   $as_echo_n "(cached) " >&6
20932 else
20933
20934     ac_cv_func_strerror_r_char_p=no
20935     if test $ac_cv_have_decl_strerror_r = yes; then
20936       cat >conftest.$ac_ext <<_ACEOF
20937 /* confdefs.h.  */
20938 _ACEOF
20939 cat confdefs.h >>conftest.$ac_ext
20940 cat >>conftest.$ac_ext <<_ACEOF
20941 /* end confdefs.h.  */
20942 $ac_includes_default
20943 int
20944 main ()
20945 {
20946
20947           char buf[100];
20948           char x = *strerror_r (0, buf, sizeof buf);
20949           char *p = strerror_r (0, buf, sizeof buf);
20950           return !p || x;
20951
20952   ;
20953   return 0;
20954 }
20955 _ACEOF
20956 rm -f conftest.$ac_objext
20957 if { (ac_try="$ac_compile"
20958 case "(($ac_try" in
20959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20960   *) ac_try_echo=$ac_try;;
20961 esac
20962 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20963 $as_echo "$ac_try_echo") >&5
20964   (eval "$ac_compile") 2>conftest.er1
20965   ac_status=$?
20966   grep -v '^ *+' conftest.er1 >conftest.err
20967   rm -f conftest.er1
20968   cat conftest.err >&5
20969   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20970   (exit $ac_status); } && {
20971          test -z "$ac_c_werror_flag" ||
20972          test ! -s conftest.err
20973        } && test -s conftest.$ac_objext; then
20974   ac_cv_func_strerror_r_char_p=yes
20975 else
20976   $as_echo "$as_me: failed program was:" >&5
20977 sed 's/^/| /' conftest.$ac_ext >&5
20978
20979
20980 fi
20981
20982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20983     else
20984       # strerror_r is not declared.  Choose between
20985       # systems that have relatively inaccessible declarations for the
20986       # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
20987       # former has a strerror_r that returns char*, while the latter
20988       # has a strerror_r that returns `int'.
20989       # This test should segfault on the DEC system.
20990       if test "$cross_compiling" = yes; then
20991   :
20992 else
20993   cat >conftest.$ac_ext <<_ACEOF
20994 /* confdefs.h.  */
20995 _ACEOF
20996 cat confdefs.h >>conftest.$ac_ext
20997 cat >>conftest.$ac_ext <<_ACEOF
20998 /* end confdefs.h.  */
20999 $ac_includes_default
21000         extern char *strerror_r ();
21001 int
21002 main ()
21003 {
21004 char buf[100];
21005           char x = *strerror_r (0, buf, sizeof buf);
21006           return ! isalpha (x);
21007   ;
21008   return 0;
21009 }
21010 _ACEOF
21011 rm -f conftest$ac_exeext
21012 if { (ac_try="$ac_link"
21013 case "(($ac_try" in
21014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21015   *) ac_try_echo=$ac_try;;
21016 esac
21017 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21018 $as_echo "$ac_try_echo") >&5
21019   (eval "$ac_link") 2>&5
21020   ac_status=$?
21021   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21022   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21023   { (case "(($ac_try" in
21024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21025   *) ac_try_echo=$ac_try;;
21026 esac
21027 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21028 $as_echo "$ac_try_echo") >&5
21029   (eval "$ac_try") 2>&5
21030   ac_status=$?
21031   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21032   (exit $ac_status); }; }; then
21033   ac_cv_func_strerror_r_char_p=yes
21034 else
21035   $as_echo "$as_me: program exited with status $ac_status" >&5
21036 $as_echo "$as_me: failed program was:" >&5
21037 sed 's/^/| /' conftest.$ac_ext >&5
21038
21039 fi
21040 rm -rf conftest.dSYM
21041 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21042 fi
21043
21044
21045     fi
21046
21047 fi
21048 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
21049 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
21050 if test $ac_cv_func_strerror_r_char_p = yes; then
21051
21052 cat >>confdefs.h <<\_ACEOF
21053 #define STRERROR_R_CHAR_P 1
21054 _ACEOF
21055
21056 fi
21057
21058
21059 ac_config_files="$ac_config_files Makefile sqlite3.pc"
21060
21061
21062
21063 #-----------------------------------------------------------------------
21064 #   --enable-readline
21065 #
21066 # Check whether --enable-readline was given.
21067 if test "${enable_readline+set}" = set; then
21068   enableval=$enable_readline;
21069 else
21070   enable_readline=yes
21071 fi
21072
21073 if test x"$enable_readline" != xno ; then
21074   sLIBS=$LIBS
21075   LIBS=""
21076   { $as_echo "$as_me:$LINENO: checking for library containing tgetent" >&5
21077 $as_echo_n "checking for library containing tgetent... " >&6; }
21078 if test "${ac_cv_search_tgetent+set}" = set; then
21079   $as_echo_n "(cached) " >&6
21080 else
21081   ac_func_search_save_LIBS=$LIBS
21082 cat >conftest.$ac_ext <<_ACEOF
21083 /* confdefs.h.  */
21084 _ACEOF
21085 cat confdefs.h >>conftest.$ac_ext
21086 cat >>conftest.$ac_ext <<_ACEOF
21087 /* end confdefs.h.  */
21088
21089 /* Override any GCC internal prototype to avoid an error.
21090    Use char because int might match the return type of a GCC
21091    builtin and then its argument prototype would still apply.  */
21092 #ifdef __cplusplus
21093 extern "C"
21094 #endif
21095 char tgetent ();
21096 int
21097 main ()
21098 {
21099 return tgetent ();
21100   ;
21101   return 0;
21102 }
21103 _ACEOF
21104 for ac_lib in '' curses ncurses ncursesw; do
21105   if test -z "$ac_lib"; then
21106     ac_res="none required"
21107   else
21108     ac_res=-l$ac_lib
21109     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21110   fi
21111   rm -f conftest.$ac_objext conftest$ac_exeext
21112 if { (ac_try="$ac_link"
21113 case "(($ac_try" in
21114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21115   *) ac_try_echo=$ac_try;;
21116 esac
21117 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21118 $as_echo "$ac_try_echo") >&5
21119   (eval "$ac_link") 2>conftest.er1
21120   ac_status=$?
21121   grep -v '^ *+' conftest.er1 >conftest.err
21122   rm -f conftest.er1
21123   cat conftest.err >&5
21124   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21125   (exit $ac_status); } && {
21126          test -z "$ac_c_werror_flag" ||
21127          test ! -s conftest.err
21128        } && test -s conftest$ac_exeext && {
21129          test "$cross_compiling" = yes ||
21130          $as_test_x conftest$ac_exeext
21131        }; then
21132   ac_cv_search_tgetent=$ac_res
21133 else
21134   $as_echo "$as_me: failed program was:" >&5
21135 sed 's/^/| /' conftest.$ac_ext >&5
21136
21137
21138 fi
21139
21140 rm -rf conftest.dSYM
21141 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21142       conftest$ac_exeext
21143   if test "${ac_cv_search_tgetent+set}" = set; then
21144   break
21145 fi
21146 done
21147 if test "${ac_cv_search_tgetent+set}" = set; then
21148   :
21149 else
21150   ac_cv_search_tgetent=no
21151 fi
21152 rm conftest.$ac_ext
21153 LIBS=$ac_func_search_save_LIBS
21154 fi
21155 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
21156 $as_echo "$ac_cv_search_tgetent" >&6; }
21157 ac_res=$ac_cv_search_tgetent
21158 if test "$ac_res" != no; then
21159   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21160
21161 fi
21162
21163   { $as_echo "$as_me:$LINENO: checking for library containing readline" >&5
21164 $as_echo_n "checking for library containing readline... " >&6; }
21165 if test "${ac_cv_search_readline+set}" = set; then
21166   $as_echo_n "(cached) " >&6
21167 else
21168   ac_func_search_save_LIBS=$LIBS
21169 cat >conftest.$ac_ext <<_ACEOF
21170 /* confdefs.h.  */
21171 _ACEOF
21172 cat confdefs.h >>conftest.$ac_ext
21173 cat >>conftest.$ac_ext <<_ACEOF
21174 /* end confdefs.h.  */
21175
21176 /* Override any GCC internal prototype to avoid an error.
21177    Use char because int might match the return type of a GCC
21178    builtin and then its argument prototype would still apply.  */
21179 #ifdef __cplusplus
21180 extern "C"
21181 #endif
21182 char readline ();
21183 int
21184 main ()
21185 {
21186 return readline ();
21187   ;
21188   return 0;
21189 }
21190 _ACEOF
21191 for ac_lib in '' readline; do
21192   if test -z "$ac_lib"; then
21193     ac_res="none required"
21194   else
21195     ac_res=-l$ac_lib
21196     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21197   fi
21198   rm -f conftest.$ac_objext conftest$ac_exeext
21199 if { (ac_try="$ac_link"
21200 case "(($ac_try" in
21201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21202   *) ac_try_echo=$ac_try;;
21203 esac
21204 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21205 $as_echo "$ac_try_echo") >&5
21206   (eval "$ac_link") 2>conftest.er1
21207   ac_status=$?
21208   grep -v '^ *+' conftest.er1 >conftest.err
21209   rm -f conftest.er1
21210   cat conftest.err >&5
21211   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21212   (exit $ac_status); } && {
21213          test -z "$ac_c_werror_flag" ||
21214          test ! -s conftest.err
21215        } && test -s conftest$ac_exeext && {
21216          test "$cross_compiling" = yes ||
21217          $as_test_x conftest$ac_exeext
21218        }; then
21219   ac_cv_search_readline=$ac_res
21220 else
21221   $as_echo "$as_me: failed program was:" >&5
21222 sed 's/^/| /' conftest.$ac_ext >&5
21223
21224
21225 fi
21226
21227 rm -rf conftest.dSYM
21228 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21229       conftest$ac_exeext
21230   if test "${ac_cv_search_readline+set}" = set; then
21231   break
21232 fi
21233 done
21234 if test "${ac_cv_search_readline+set}" = set; then
21235   :
21236 else
21237   ac_cv_search_readline=no
21238 fi
21239 rm conftest.$ac_ext
21240 LIBS=$ac_func_search_save_LIBS
21241 fi
21242 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_readline" >&5
21243 $as_echo "$ac_cv_search_readline" >&6; }
21244 ac_res=$ac_cv_search_readline
21245 if test "$ac_res" != no; then
21246   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21247
21248 else
21249   enable_readline=no
21250 fi
21251
21252
21253 for ac_func in readline
21254 do
21255 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21256 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21257 $as_echo_n "checking for $ac_func... " >&6; }
21258 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21259   $as_echo_n "(cached) " >&6
21260 else
21261   cat >conftest.$ac_ext <<_ACEOF
21262 /* confdefs.h.  */
21263 _ACEOF
21264 cat confdefs.h >>conftest.$ac_ext
21265 cat >>conftest.$ac_ext <<_ACEOF
21266 /* end confdefs.h.  */
21267 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21268    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21269 #define $ac_func innocuous_$ac_func
21270
21271 /* System header to define __stub macros and hopefully few prototypes,
21272     which can conflict with char $ac_func (); below.
21273     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21274     <limits.h> exists even on freestanding compilers.  */
21275
21276 #ifdef __STDC__
21277 # include <limits.h>
21278 #else
21279 # include <assert.h>
21280 #endif
21281
21282 #undef $ac_func
21283
21284 /* Override any GCC internal prototype to avoid an error.
21285    Use char because int might match the return type of a GCC
21286    builtin and then its argument prototype would still apply.  */
21287 #ifdef __cplusplus
21288 extern "C"
21289 #endif
21290 char $ac_func ();
21291 /* The GNU C library defines this for functions which it implements
21292     to always fail with ENOSYS.  Some functions are actually named
21293     something starting with __ and the normal name is an alias.  */
21294 #if defined __stub_$ac_func || defined __stub___$ac_func
21295 choke me
21296 #endif
21297
21298 int
21299 main ()
21300 {
21301 return $ac_func ();
21302   ;
21303   return 0;
21304 }
21305 _ACEOF
21306 rm -f conftest.$ac_objext conftest$ac_exeext
21307 if { (ac_try="$ac_link"
21308 case "(($ac_try" in
21309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21310   *) ac_try_echo=$ac_try;;
21311 esac
21312 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21313 $as_echo "$ac_try_echo") >&5
21314   (eval "$ac_link") 2>conftest.er1
21315   ac_status=$?
21316   grep -v '^ *+' conftest.er1 >conftest.err
21317   rm -f conftest.er1
21318   cat conftest.err >&5
21319   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21320   (exit $ac_status); } && {
21321          test -z "$ac_c_werror_flag" ||
21322          test ! -s conftest.err
21323        } && test -s conftest$ac_exeext && {
21324          test "$cross_compiling" = yes ||
21325          $as_test_x conftest$ac_exeext
21326        }; then
21327   eval "$as_ac_var=yes"
21328 else
21329   $as_echo "$as_me: failed program was:" >&5
21330 sed 's/^/| /' conftest.$ac_ext >&5
21331
21332         eval "$as_ac_var=no"
21333 fi
21334
21335 rm -rf conftest.dSYM
21336 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21337       conftest$ac_exeext conftest.$ac_ext
21338 fi
21339 ac_res=`eval 'as_val=${'$as_ac_var'}
21340                  $as_echo "$as_val"'`
21341                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21342 $as_echo "$ac_res" >&6; }
21343 if test `eval 'as_val=${'$as_ac_var'}
21344                  $as_echo "$as_val"'` = yes; then
21345   cat >>confdefs.h <<_ACEOF
21346 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21347 _ACEOF
21348
21349 fi
21350 done
21351
21352   READLINE_LIBS=$LIBS
21353   LIBS=$sLIBS
21354 fi
21355
21356 #-----------------------------------------------------------------------
21357
21358 #-----------------------------------------------------------------------
21359 #   --enable-threadsafe
21360 #
21361 # Check whether --enable-threadsafe was given.
21362 if test "${enable_threadsafe+set}" = set; then
21363   enableval=$enable_threadsafe;
21364 else
21365   enable_threadsafe=yes
21366 fi
21367
21368 THREADSAFE_FLAGS=-DSQLITE_THREADSAFE=0
21369 if test x"$enable_threadsafe" != "xno"; then
21370   THREADSAFE_FLAGS="-D_REENTRANT=1 -DSQLITE_THREADSAFE=1"
21371   { $as_echo "$as_me:$LINENO: checking for library containing pthread_create" >&5
21372 $as_echo_n "checking for library containing pthread_create... " >&6; }
21373 if test "${ac_cv_search_pthread_create+set}" = set; then
21374   $as_echo_n "(cached) " >&6
21375 else
21376   ac_func_search_save_LIBS=$LIBS
21377 cat >conftest.$ac_ext <<_ACEOF
21378 /* confdefs.h.  */
21379 _ACEOF
21380 cat confdefs.h >>conftest.$ac_ext
21381 cat >>conftest.$ac_ext <<_ACEOF
21382 /* end confdefs.h.  */
21383
21384 /* Override any GCC internal prototype to avoid an error.
21385    Use char because int might match the return type of a GCC
21386    builtin and then its argument prototype would still apply.  */
21387 #ifdef __cplusplus
21388 extern "C"
21389 #endif
21390 char pthread_create ();
21391 int
21392 main ()
21393 {
21394 return pthread_create ();
21395   ;
21396   return 0;
21397 }
21398 _ACEOF
21399 for ac_lib in '' pthread; do
21400   if test -z "$ac_lib"; then
21401     ac_res="none required"
21402   else
21403     ac_res=-l$ac_lib
21404     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21405   fi
21406   rm -f conftest.$ac_objext conftest$ac_exeext
21407 if { (ac_try="$ac_link"
21408 case "(($ac_try" in
21409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21410   *) ac_try_echo=$ac_try;;
21411 esac
21412 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21413 $as_echo "$ac_try_echo") >&5
21414   (eval "$ac_link") 2>conftest.er1
21415   ac_status=$?
21416   grep -v '^ *+' conftest.er1 >conftest.err
21417   rm -f conftest.er1
21418   cat conftest.err >&5
21419   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21420   (exit $ac_status); } && {
21421          test -z "$ac_c_werror_flag" ||
21422          test ! -s conftest.err
21423        } && test -s conftest$ac_exeext && {
21424          test "$cross_compiling" = yes ||
21425          $as_test_x conftest$ac_exeext
21426        }; then
21427   ac_cv_search_pthread_create=$ac_res
21428 else
21429   $as_echo "$as_me: failed program was:" >&5
21430 sed 's/^/| /' conftest.$ac_ext >&5
21431
21432
21433 fi
21434
21435 rm -rf conftest.dSYM
21436 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21437       conftest$ac_exeext
21438   if test "${ac_cv_search_pthread_create+set}" = set; then
21439   break
21440 fi
21441 done
21442 if test "${ac_cv_search_pthread_create+set}" = set; then
21443   :
21444 else
21445   ac_cv_search_pthread_create=no
21446 fi
21447 rm conftest.$ac_ext
21448 LIBS=$ac_func_search_save_LIBS
21449 fi
21450 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_pthread_create" >&5
21451 $as_echo "$ac_cv_search_pthread_create" >&6; }
21452 ac_res=$ac_cv_search_pthread_create
21453 if test "$ac_res" != no; then
21454   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21455
21456 fi
21457
21458 fi
21459
21460 #-----------------------------------------------------------------------
21461
21462 #-----------------------------------------------------------------------
21463 #   --enable-dynamic-extensions
21464 #
21465 # Check whether --enable-dynamic-extensions was given.
21466 if test "${enable_dynamic_extensions+set}" = set; then
21467   enableval=$enable_dynamic_extensions;
21468 else
21469   enable_dynamic_extensions=yes
21470 fi
21471
21472 if test x"$enable_dynamic_extensions" != "xno"; then
21473   { $as_echo "$as_me:$LINENO: checking for library containing dlopen" >&5
21474 $as_echo_n "checking for library containing dlopen... " >&6; }
21475 if test "${ac_cv_search_dlopen+set}" = set; then
21476   $as_echo_n "(cached) " >&6
21477 else
21478   ac_func_search_save_LIBS=$LIBS
21479 cat >conftest.$ac_ext <<_ACEOF
21480 /* confdefs.h.  */
21481 _ACEOF
21482 cat confdefs.h >>conftest.$ac_ext
21483 cat >>conftest.$ac_ext <<_ACEOF
21484 /* end confdefs.h.  */
21485
21486 /* Override any GCC internal prototype to avoid an error.
21487    Use char because int might match the return type of a GCC
21488    builtin and then its argument prototype would still apply.  */
21489 #ifdef __cplusplus
21490 extern "C"
21491 #endif
21492 char dlopen ();
21493 int
21494 main ()
21495 {
21496 return dlopen ();
21497   ;
21498   return 0;
21499 }
21500 _ACEOF
21501 for ac_lib in '' dl; do
21502   if test -z "$ac_lib"; then
21503     ac_res="none required"
21504   else
21505     ac_res=-l$ac_lib
21506     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21507   fi
21508   rm -f conftest.$ac_objext conftest$ac_exeext
21509 if { (ac_try="$ac_link"
21510 case "(($ac_try" in
21511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21512   *) ac_try_echo=$ac_try;;
21513 esac
21514 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21515 $as_echo "$ac_try_echo") >&5
21516   (eval "$ac_link") 2>conftest.er1
21517   ac_status=$?
21518   grep -v '^ *+' conftest.er1 >conftest.err
21519   rm -f conftest.er1
21520   cat conftest.err >&5
21521   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21522   (exit $ac_status); } && {
21523          test -z "$ac_c_werror_flag" ||
21524          test ! -s conftest.err
21525        } && test -s conftest$ac_exeext && {
21526          test "$cross_compiling" = yes ||
21527          $as_test_x conftest$ac_exeext
21528        }; then
21529   ac_cv_search_dlopen=$ac_res
21530 else
21531   $as_echo "$as_me: failed program was:" >&5
21532 sed 's/^/| /' conftest.$ac_ext >&5
21533
21534
21535 fi
21536
21537 rm -rf conftest.dSYM
21538 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21539       conftest$ac_exeext
21540   if test "${ac_cv_search_dlopen+set}" = set; then
21541   break
21542 fi
21543 done
21544 if test "${ac_cv_search_dlopen+set}" = set; then
21545   :
21546 else
21547   ac_cv_search_dlopen=no
21548 fi
21549 rm conftest.$ac_ext
21550 LIBS=$ac_func_search_save_LIBS
21551 fi
21552 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
21553 $as_echo "$ac_cv_search_dlopen" >&6; }
21554 ac_res=$ac_cv_search_dlopen
21555 if test "$ac_res" != no; then
21556   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21557
21558 fi
21559
21560 else
21561   DYNAMIC_EXTENSION_FLAGS=-DSQLITE_OMIT_LOAD_EXTENSION=1
21562 fi
21563 { $as_echo "$as_me:$LINENO: checking for whether to support dynamic extensions" >&5
21564 $as_echo_n "checking for whether to support dynamic extensions... " >&6; }
21565 { $as_echo "$as_me:$LINENO: result: $enable_dynamic_extensions" >&5
21566 $as_echo "$enable_dynamic_extensions" >&6; }
21567
21568 #-----------------------------------------------------------------------
21569
21570
21571 for ac_func in posix_fallocate
21572 do
21573 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21574 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21575 $as_echo_n "checking for $ac_func... " >&6; }
21576 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21577   $as_echo_n "(cached) " >&6
21578 else
21579   cat >conftest.$ac_ext <<_ACEOF
21580 /* confdefs.h.  */
21581 _ACEOF
21582 cat confdefs.h >>conftest.$ac_ext
21583 cat >>conftest.$ac_ext <<_ACEOF
21584 /* end confdefs.h.  */
21585 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21586    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21587 #define $ac_func innocuous_$ac_func
21588
21589 /* System header to define __stub macros and hopefully few prototypes,
21590     which can conflict with char $ac_func (); below.
21591     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21592     <limits.h> exists even on freestanding compilers.  */
21593
21594 #ifdef __STDC__
21595 # include <limits.h>
21596 #else
21597 # include <assert.h>
21598 #endif
21599
21600 #undef $ac_func
21601
21602 /* Override any GCC internal prototype to avoid an error.
21603    Use char because int might match the return type of a GCC
21604    builtin and then its argument prototype would still apply.  */
21605 #ifdef __cplusplus
21606 extern "C"
21607 #endif
21608 char $ac_func ();
21609 /* The GNU C library defines this for functions which it implements
21610     to always fail with ENOSYS.  Some functions are actually named
21611     something starting with __ and the normal name is an alias.  */
21612 #if defined __stub_$ac_func || defined __stub___$ac_func
21613 choke me
21614 #endif
21615
21616 int
21617 main ()
21618 {
21619 return $ac_func ();
21620   ;
21621   return 0;
21622 }
21623 _ACEOF
21624 rm -f conftest.$ac_objext conftest$ac_exeext
21625 if { (ac_try="$ac_link"
21626 case "(($ac_try" in
21627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21628   *) ac_try_echo=$ac_try;;
21629 esac
21630 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21631 $as_echo "$ac_try_echo") >&5
21632   (eval "$ac_link") 2>conftest.er1
21633   ac_status=$?
21634   grep -v '^ *+' conftest.er1 >conftest.err
21635   rm -f conftest.er1
21636   cat conftest.err >&5
21637   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21638   (exit $ac_status); } && {
21639          test -z "$ac_c_werror_flag" ||
21640          test ! -s conftest.err
21641        } && test -s conftest$ac_exeext && {
21642          test "$cross_compiling" = yes ||
21643          $as_test_x conftest$ac_exeext
21644        }; then
21645   eval "$as_ac_var=yes"
21646 else
21647   $as_echo "$as_me: failed program was:" >&5
21648 sed 's/^/| /' conftest.$ac_ext >&5
21649
21650         eval "$as_ac_var=no"
21651 fi
21652
21653 rm -rf conftest.dSYM
21654 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21655       conftest$ac_exeext conftest.$ac_ext
21656 fi
21657 ac_res=`eval 'as_val=${'$as_ac_var'}
21658                  $as_echo "$as_val"'`
21659                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21660 $as_echo "$ac_res" >&6; }
21661 if test `eval 'as_val=${'$as_ac_var'}
21662                  $as_echo "$as_val"'` = yes; then
21663   cat >>confdefs.h <<_ACEOF
21664 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21665 _ACEOF
21666
21667 fi
21668 done
21669
21670
21671 #-----------------------------------------------------------------------
21672 # UPDATE: Maybe it's better if users just set CFLAGS before invoking
21673 # configure. This option doesn't really add much...
21674 #
21675 #   --enable-tempstore
21676 #
21677 # AC_ARG_ENABLE(tempstore, [AS_HELP_STRING(
21678 #   [--enable-tempstore],
21679 #   [in-memory temporary tables (never, no, yes, always) [default=no]])],
21680 #   [], [enable_tempstore=no])
21681 # AC_MSG_CHECKING([for whether or not to store temp tables in-memory])
21682 # case "$enable_tempstore" in
21683 #   never )  TEMP_STORE=0 ;;
21684 #   no )     TEMP_STORE=1 ;;
21685 #   always ) TEMP_STORE=3 ;;
21686 #   yes )    TEMP_STORE=3 ;;
21687 #   * )
21688 #     TEMP_STORE=1
21689 #     enable_tempstore=yes
21690 #   ;;
21691 # esac
21692 # AC_MSG_RESULT($enable_tempstore)
21693 # AC_SUBST(TEMP_STORE)
21694 #-----------------------------------------------------------------------
21695
21696 cat >confcache <<\_ACEOF
21697 # This file is a shell script that caches the results of configure
21698 # tests run on this system so they can be shared between configure
21699 # scripts and configure runs, see configure's option --config-cache.
21700 # It is not useful on other systems.  If it contains results you don't
21701 # want to keep, you may remove or edit it.
21702 #
21703 # config.status only pays attention to the cache file if you give it
21704 # the --recheck option to rerun configure.
21705 #
21706 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21707 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21708 # following values.
21709
21710 _ACEOF
21711
21712 # The following way of writing the cache mishandles newlines in values,
21713 # but we know of no workaround that is simple, portable, and efficient.
21714 # So, we kill variables containing newlines.
21715 # Ultrix sh set writes to stderr and can't be redirected directly,
21716 # and sets the high bit in the cache file unless we assign to the vars.
21717 (
21718   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21719     eval ac_val=\$$ac_var
21720     case $ac_val in #(
21721     *${as_nl}*)
21722       case $ac_var in #(
21723       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21724 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21725       esac
21726       case $ac_var in #(
21727       _ | IFS | as_nl) ;; #(
21728       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21729       *) $as_unset $ac_var ;;
21730       esac ;;
21731     esac
21732   done
21733
21734   (set) 2>&1 |
21735     case $as_nl`(ac_space=' '; set) 2>&1` in #(
21736     *${as_nl}ac_space=\ *)
21737       # `set' does not quote correctly, so add quotes (double-quote
21738       # substitution turns \\\\ into \\, and sed turns \\ into \).
21739       sed -n \
21740         "s/'/'\\\\''/g;
21741           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21742       ;; #(
21743     *)
21744       # `set' quotes correctly as required by POSIX, so do not add quotes.
21745       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21746       ;;
21747     esac |
21748     sort
21749 ) |
21750   sed '
21751      /^ac_cv_env_/b end
21752      t clear
21753      :clear
21754      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21755      t end
21756      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21757      :end' >>confcache
21758 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21759   if test -w "$cache_file"; then
21760     test "x$cache_file" != "x/dev/null" &&
21761       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
21762 $as_echo "$as_me: updating cache $cache_file" >&6;}
21763     cat confcache >$cache_file
21764   else
21765     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21766 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21767   fi
21768 fi
21769 rm -f confcache
21770
21771 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21772 # Let make expand exec_prefix.
21773 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21774
21775 # Transform confdefs.h into DEFS.
21776 # Protect against shell expansion while executing Makefile rules.
21777 # Protect against Makefile macro expansion.
21778 #
21779 # If the first sed substitution is executed (which looks for macros that
21780 # take arguments), then branch to the quote section.  Otherwise,
21781 # look for a macro that doesn't take arguments.
21782 ac_script='
21783 :mline
21784 /\\$/{
21785  N
21786  s,\\\n,,
21787  b mline
21788 }
21789 t clear
21790 :clear
21791 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
21792 t quote
21793 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
21794 t quote
21795 b any
21796 :quote
21797 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
21798 s/\[/\\&/g
21799 s/\]/\\&/g
21800 s/\$/$$/g
21801 H
21802 :any
21803 ${
21804         g
21805         s/^\n//
21806         s/\n/ /g
21807         p
21808 }
21809 '
21810 DEFS=`sed -n "$ac_script" confdefs.h`
21811
21812
21813 ac_libobjs=
21814 ac_ltlibobjs=
21815 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21816   # 1. Remove the extension, and $U if already installed.
21817   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21818   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21819   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21820   #    will be set to the directory where LIBOBJS objects are built.
21821   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21822   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21823 done
21824 LIBOBJS=$ac_libobjs
21825
21826 LTLIBOBJS=$ac_ltlibobjs
21827
21828
21829 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21830   { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21831 Usually this means the macro was only invoked conditionally." >&5
21832 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
21833 Usually this means the macro was only invoked conditionally." >&2;}
21834    { (exit 1); exit 1; }; }
21835 fi
21836 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21837   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21838 Usually this means the macro was only invoked conditionally." >&5
21839 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21840 Usually this means the macro was only invoked conditionally." >&2;}
21841    { (exit 1); exit 1; }; }
21842 fi
21843 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21844   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21845 Usually this means the macro was only invoked conditionally." >&5
21846 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21847 Usually this means the macro was only invoked conditionally." >&2;}
21848    { (exit 1); exit 1; }; }
21849 fi
21850 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21851   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21852 Usually this means the macro was only invoked conditionally." >&5
21853 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21854 Usually this means the macro was only invoked conditionally." >&2;}
21855    { (exit 1); exit 1; }; }
21856 fi
21857
21858 : ${CONFIG_STATUS=./config.status}
21859 ac_write_fail=0
21860 ac_clean_files_save=$ac_clean_files
21861 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21862 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21863 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21864 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21865 #! $SHELL
21866 # Generated by $as_me.
21867 # Run this file to recreate the current configuration.
21868 # Compiler output produced by configure, useful for debugging
21869 # configure, is in config.log if it exists.
21870
21871 debug=false
21872 ac_cs_recheck=false
21873 ac_cs_silent=false
21874 SHELL=\${CONFIG_SHELL-$SHELL}
21875 _ACEOF
21876
21877 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21878 ## --------------------- ##
21879 ## M4sh Initialization.  ##
21880 ## --------------------- ##
21881
21882 # Be more Bourne compatible
21883 DUALCASE=1; export DUALCASE # for MKS sh
21884 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21885   emulate sh
21886   NULLCMD=:
21887   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21888   # is contrary to our usage.  Disable this feature.
21889   alias -g '${1+"$@"}'='"$@"'
21890   setopt NO_GLOB_SUBST
21891 else
21892   case `(set -o) 2>/dev/null` in
21893   *posix*) set -o posix ;;
21894 esac
21895
21896 fi
21897
21898
21899
21900
21901 # PATH needs CR
21902 # Avoid depending upon Character Ranges.
21903 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21904 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21905 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21906 as_cr_digits='0123456789'
21907 as_cr_alnum=$as_cr_Letters$as_cr_digits
21908
21909 as_nl='
21910 '
21911 export as_nl
21912 # Printing a long string crashes Solaris 7 /usr/bin/printf.
21913 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21914 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21915 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21916 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21917   as_echo='printf %s\n'
21918   as_echo_n='printf %s'
21919 else
21920   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21921     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21922     as_echo_n='/usr/ucb/echo -n'
21923   else
21924     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21925     as_echo_n_body='eval
21926       arg=$1;
21927       case $arg in
21928       *"$as_nl"*)
21929         expr "X$arg" : "X\\(.*\\)$as_nl";
21930         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21931       esac;
21932       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21933     '
21934     export as_echo_n_body
21935     as_echo_n='sh -c $as_echo_n_body as_echo'
21936   fi
21937   export as_echo_body
21938   as_echo='sh -c $as_echo_body as_echo'
21939 fi
21940
21941 # The user is always right.
21942 if test "${PATH_SEPARATOR+set}" != set; then
21943   PATH_SEPARATOR=:
21944   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21945     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21946       PATH_SEPARATOR=';'
21947   }
21948 fi
21949
21950 # Support unset when possible.
21951 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21952   as_unset=unset
21953 else
21954   as_unset=false
21955 fi
21956
21957
21958 # IFS
21959 # We need space, tab and new line, in precisely that order.  Quoting is
21960 # there to prevent editors from complaining about space-tab.
21961 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21962 # splitting by setting IFS to empty value.)
21963 IFS=" ""        $as_nl"
21964
21965 # Find who we are.  Look in the path if we contain no directory separator.
21966 case $0 in
21967   *[\\/]* ) as_myself=$0 ;;
21968   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21969 for as_dir in $PATH
21970 do
21971   IFS=$as_save_IFS
21972   test -z "$as_dir" && as_dir=.
21973   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21974 done
21975 IFS=$as_save_IFS
21976
21977      ;;
21978 esac
21979 # We did not find ourselves, most probably we were run as `sh COMMAND'
21980 # in which case we are not to be found in the path.
21981 if test "x$as_myself" = x; then
21982   as_myself=$0
21983 fi
21984 if test ! -f "$as_myself"; then
21985   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21986   { (exit 1); exit 1; }
21987 fi
21988
21989 # Work around bugs in pre-3.0 UWIN ksh.
21990 for as_var in ENV MAIL MAILPATH
21991 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21992 done
21993 PS1='$ '
21994 PS2='> '
21995 PS4='+ '
21996
21997 # NLS nuisances.
21998 LC_ALL=C
21999 export LC_ALL
22000 LANGUAGE=C
22001 export LANGUAGE
22002
22003 # Required to use basename.
22004 if expr a : '\(a\)' >/dev/null 2>&1 &&
22005    test "X`expr 00001 : '.*\(...\)'`" = X001; then
22006   as_expr=expr
22007 else
22008   as_expr=false
22009 fi
22010
22011 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22012   as_basename=basename
22013 else
22014   as_basename=false
22015 fi
22016
22017
22018 # Name of the executable.
22019 as_me=`$as_basename -- "$0" ||
22020 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22021          X"$0" : 'X\(//\)$' \| \
22022          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22023 $as_echo X/"$0" |
22024     sed '/^.*\/\([^/][^/]*\)\/*$/{
22025             s//\1/
22026             q
22027           }
22028           /^X\/\(\/\/\)$/{
22029             s//\1/
22030             q
22031           }
22032           /^X\/\(\/\).*/{
22033             s//\1/
22034             q
22035           }
22036           s/.*/./; q'`
22037
22038 # CDPATH.
22039 $as_unset CDPATH
22040
22041
22042
22043   as_lineno_1=$LINENO
22044   as_lineno_2=$LINENO
22045   test "x$as_lineno_1" != "x$as_lineno_2" &&
22046   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22047
22048   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22049   # uniformly replaced by the line number.  The first 'sed' inserts a
22050   # line-number line after each line using $LINENO; the second 'sed'
22051   # does the real work.  The second script uses 'N' to pair each
22052   # line-number line with the line containing $LINENO, and appends
22053   # trailing '-' during substitution so that $LINENO is not a special
22054   # case at line end.
22055   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22056   # scripts with optimization help from Paolo Bonzini.  Blame Lee
22057   # E. McMahon (1931-1989) for sed's syntax.  :-)
22058   sed -n '
22059     p
22060     /[$]LINENO/=
22061   ' <$as_myself |
22062     sed '
22063       s/[$]LINENO.*/&-/
22064       t lineno
22065       b
22066       :lineno
22067       N
22068       :loop
22069       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22070       t loop
22071       s/-\n.*//
22072     ' >$as_me.lineno &&
22073   chmod +x "$as_me.lineno" ||
22074     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22075    { (exit 1); exit 1; }; }
22076
22077   # Don't try to exec as it changes $[0], causing all sort of problems
22078   # (the dirname of $[0] is not the place where we might find the
22079   # original and so on.  Autoconf is especially sensitive to this).
22080   . "./$as_me.lineno"
22081   # Exit status is that of the last command.
22082   exit
22083 }
22084
22085
22086 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22087   as_dirname=dirname
22088 else
22089   as_dirname=false
22090 fi
22091
22092 ECHO_C= ECHO_N= ECHO_T=
22093 case `echo -n x` in
22094 -n*)
22095   case `echo 'x\c'` in
22096   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
22097   *)   ECHO_C='\c';;
22098   esac;;
22099 *)
22100   ECHO_N='-n';;
22101 esac
22102 if expr a : '\(a\)' >/dev/null 2>&1 &&
22103    test "X`expr 00001 : '.*\(...\)'`" = X001; then
22104   as_expr=expr
22105 else
22106   as_expr=false
22107 fi
22108
22109 rm -f conf$$ conf$$.exe conf$$.file
22110 if test -d conf$$.dir; then
22111   rm -f conf$$.dir/conf$$.file
22112 else
22113   rm -f conf$$.dir
22114   mkdir conf$$.dir 2>/dev/null
22115 fi
22116 if (echo >conf$$.file) 2>/dev/null; then
22117   if ln -s conf$$.file conf$$ 2>/dev/null; then
22118     as_ln_s='ln -s'
22119     # ... but there are two gotchas:
22120     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22121     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22122     # In both cases, we have to default to `cp -p'.
22123     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22124       as_ln_s='cp -p'
22125   elif ln conf$$.file conf$$ 2>/dev/null; then
22126     as_ln_s=ln
22127   else
22128     as_ln_s='cp -p'
22129   fi
22130 else
22131   as_ln_s='cp -p'
22132 fi
22133 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22134 rmdir conf$$.dir 2>/dev/null
22135
22136 if mkdir -p . 2>/dev/null; then
22137   as_mkdir_p=:
22138 else
22139   test -d ./-p && rmdir ./-p
22140   as_mkdir_p=false
22141 fi
22142
22143 if test -x / >/dev/null 2>&1; then
22144   as_test_x='test -x'
22145 else
22146   if ls -dL / >/dev/null 2>&1; then
22147     as_ls_L_option=L
22148   else
22149     as_ls_L_option=
22150   fi
22151   as_test_x='
22152     eval sh -c '\''
22153       if test -d "$1"; then
22154         test -d "$1/.";
22155       else
22156         case $1 in
22157         -*)set "./$1";;
22158         esac;
22159         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
22160         ???[sx]*):;;*)false;;esac;fi
22161     '\'' sh
22162   '
22163 fi
22164 as_executable_p=$as_test_x
22165
22166 # Sed expression to map a string onto a valid CPP name.
22167 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22168
22169 # Sed expression to map a string onto a valid variable name.
22170 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22171
22172
22173 exec 6>&1
22174
22175 # Save the log message, to keep $[0] and so on meaningful, and to
22176 # report actual input values of CONFIG_FILES etc. instead of their
22177 # values after options handling.
22178 ac_log="
22179 This file was extended by sqlite $as_me 3.7.6.2, which was
22180 generated by GNU Autoconf 2.62.  Invocation command line was
22181
22182   CONFIG_FILES    = $CONFIG_FILES
22183   CONFIG_HEADERS  = $CONFIG_HEADERS
22184   CONFIG_LINKS    = $CONFIG_LINKS
22185   CONFIG_COMMANDS = $CONFIG_COMMANDS
22186   $ $0 $@
22187
22188 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22189 "
22190
22191 _ACEOF
22192
22193 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22194 # Files that config.status was made for.
22195 config_files="$ac_config_files"
22196 config_commands="$ac_config_commands"
22197
22198 _ACEOF
22199
22200 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22201 ac_cs_usage="\
22202 \`$as_me' instantiates files from templates according to the
22203 current configuration.
22204
22205 Usage: $0 [OPTIONS] [FILE]...
22206
22207   -h, --help       print this help, then exit
22208   -V, --version    print version number and configuration settings, then exit
22209   -q, --quiet      do not print progress messages
22210   -d, --debug      don't remove temporary files
22211       --recheck    update $as_me by reconfiguring in the same conditions
22212   --file=FILE[:TEMPLATE]
22213                    instantiate the configuration file FILE
22214
22215 Configuration files:
22216 $config_files
22217
22218 Configuration commands:
22219 $config_commands
22220
22221 Report bugs to <bug-autoconf@gnu.org>."
22222
22223 _ACEOF
22224 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22225 ac_cs_version="\\
22226 sqlite config.status 3.7.6.2
22227 configured by $0, generated by GNU Autoconf 2.62,
22228   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22229
22230 Copyright (C) 2008 Free Software Foundation, Inc.
22231 This config.status script is free software; the Free Software Foundation
22232 gives unlimited permission to copy, distribute and modify it."
22233
22234 ac_pwd='$ac_pwd'
22235 srcdir='$srcdir'
22236 INSTALL='$INSTALL'
22237 MKDIR_P='$MKDIR_P'
22238 AWK='$AWK'
22239 test -n "\$AWK" || AWK=awk
22240 _ACEOF
22241
22242 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22243 # The default lists apply if the user does not specify any file.
22244 ac_need_defaults=:
22245 while test $# != 0
22246 do
22247   case $1 in
22248   --*=*)
22249     ac_option=`expr "X$1" : 'X\([^=]*\)='`
22250     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22251     ac_shift=:
22252     ;;
22253   *)
22254     ac_option=$1
22255     ac_optarg=$2
22256     ac_shift=shift
22257     ;;
22258   esac
22259
22260   case $ac_option in
22261   # Handling of the options.
22262   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22263     ac_cs_recheck=: ;;
22264   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22265     $as_echo "$ac_cs_version"; exit ;;
22266   --debug | --debu | --deb | --de | --d | -d )
22267     debug=: ;;
22268   --file | --fil | --fi | --f )
22269     $ac_shift
22270     case $ac_optarg in
22271     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22272     esac
22273     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
22274     ac_need_defaults=false;;
22275   --he | --h |  --help | --hel | -h )
22276     $as_echo "$ac_cs_usage"; exit ;;
22277   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22278   | -silent | --silent | --silen | --sile | --sil | --si | --s)
22279     ac_cs_silent=: ;;
22280
22281   # This is an error.
22282   -*) { $as_echo "$as_me: error: unrecognized option: $1
22283 Try \`$0 --help' for more information." >&2
22284    { (exit 1); exit 1; }; } ;;
22285
22286   *) ac_config_targets="$ac_config_targets $1"
22287      ac_need_defaults=false ;;
22288
22289   esac
22290   shift
22291 done
22292
22293 ac_configure_extra_args=
22294
22295 if $ac_cs_silent; then
22296   exec 6>/dev/null
22297   ac_configure_extra_args="$ac_configure_extra_args --silent"
22298 fi
22299
22300 _ACEOF
22301 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22302 if \$ac_cs_recheck; then
22303   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22304   shift
22305   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22306   CONFIG_SHELL='$SHELL'
22307   export CONFIG_SHELL
22308   exec "\$@"
22309 fi
22310
22311 _ACEOF
22312 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22313 exec 5>>config.log
22314 {
22315   echo
22316   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22317 ## Running $as_me. ##
22318 _ASBOX
22319   $as_echo "$ac_log"
22320 } >&5
22321
22322 _ACEOF
22323 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22324 #
22325 # INIT-COMMANDS
22326 #
22327 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22328
22329 _ACEOF
22330
22331 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22332
22333 # Handling of arguments.
22334 for ac_config_target in $ac_config_targets
22335 do
22336   case $ac_config_target in
22337     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22338     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22339     "sqlite3.pc") CONFIG_FILES="$CONFIG_FILES sqlite3.pc" ;;
22340
22341   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22342 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22343    { (exit 1); exit 1; }; };;
22344   esac
22345 done
22346
22347
22348 # If the user did not use the arguments to specify the items to instantiate,
22349 # then the envvar interface is used.  Set only those that are not.
22350 # We use the long form for the default assignment because of an extremely
22351 # bizarre bug on SunOS 4.1.3.
22352 if $ac_need_defaults; then
22353   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22354   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22355 fi
22356
22357 # Have a temporary directory for convenience.  Make it in the build tree
22358 # simply because there is no reason against having it here, and in addition,
22359 # creating and moving files from /tmp can sometimes cause problems.
22360 # Hook for its removal unless debugging.
22361 # Note that there is a small window in which the directory will not be cleaned:
22362 # after its creation but before its name has been assigned to `$tmp'.
22363 $debug ||
22364 {
22365   tmp=
22366   trap 'exit_status=$?
22367   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22368 ' 0
22369   trap '{ (exit 1); exit 1; }' 1 2 13 15
22370 }
22371 # Create a (secure) tmp directory for tmp files.
22372
22373 {
22374   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22375   test -n "$tmp" && test -d "$tmp"
22376 }  ||
22377 {
22378   tmp=./conf$$-$RANDOM
22379   (umask 077 && mkdir "$tmp")
22380 } ||
22381 {
22382    $as_echo "$as_me: cannot create a temporary directory in ." >&2
22383    { (exit 1); exit 1; }
22384 }
22385
22386 # Set up the scripts for CONFIG_FILES section.
22387 # No need to generate them if there are no CONFIG_FILES.
22388 # This happens for instance with `./config.status config.h'.
22389 if test -n "$CONFIG_FILES"; then
22390
22391
22392 ac_cr='\r'
22393 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22394 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22395   ac_cs_awk_cr='\\r'
22396 else
22397   ac_cs_awk_cr=$ac_cr
22398 fi
22399
22400 echo 'BEGIN {' >"$tmp/subs1.awk" &&
22401 _ACEOF
22402
22403
22404 {
22405   echo "cat >conf$$subs.awk <<_ACEOF" &&
22406   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22407   echo "_ACEOF"
22408 } >conf$$subs.sh ||
22409   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22410 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22411    { (exit 1); exit 1; }; }
22412 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
22413 ac_delim='%!_!# '
22414 for ac_last_try in false false false false false :; do
22415   . ./conf$$subs.sh ||
22416     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22417 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22418    { (exit 1); exit 1; }; }
22419
22420   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
22421     break
22422   elif $ac_last_try; then
22423     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22424 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22425    { (exit 1); exit 1; }; }
22426   else
22427     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22428   fi
22429 done
22430 rm -f conf$$subs.sh
22431
22432 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22433 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
22434 _ACEOF
22435 sed -n '
22436 h
22437 s/^/S["/; s/!.*/"]=/
22438 p
22439 g
22440 s/^[^!]*!//
22441 :repl
22442 t repl
22443 s/'"$ac_delim"'$//
22444 t delim
22445 :nl
22446 h
22447 s/\(.\{148\}\).*/\1/
22448 t more1
22449 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22450 p
22451 n
22452 b repl
22453 :more1
22454 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22455 p
22456 g
22457 s/.\{148\}//
22458 t nl
22459 :delim
22460 h
22461 s/\(.\{148\}\).*/\1/
22462 t more2
22463 s/["\\]/\\&/g; s/^/"/; s/$/"/
22464 p
22465 b
22466 :more2
22467 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22468 p
22469 g
22470 s/.\{148\}//
22471 t delim
22472 ' <conf$$subs.awk | sed '
22473 /^[^""]/{
22474   N
22475   s/\n//
22476 }
22477 ' >>$CONFIG_STATUS || ac_write_fail=1
22478 rm -f conf$$subs.awk
22479 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22480 _ACAWK
22481 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
22482   for (key in S) S_is_set[key] = 1
22483   FS = "\a"
22484
22485 }
22486 {
22487   line = $ 0
22488   nfields = split(line, field, "@")
22489   substed = 0
22490   len = length(field[1])
22491   for (i = 2; i < nfields; i++) {
22492     key = field[i]
22493     keylen = length(key)
22494     if (S_is_set[key]) {
22495       value = S[key]
22496       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22497       len += length(value) + length(field[++i])
22498       substed = 1
22499     } else
22500       len += 1 + keylen
22501   }
22502
22503   print line
22504 }
22505
22506 _ACAWK
22507 _ACEOF
22508 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22509 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22510   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22511 else
22512   cat
22513 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
22514   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
22515 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
22516    { (exit 1); exit 1; }; }
22517 _ACEOF
22518
22519 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22520 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22521 # trailing colons and then remove the whole line if VPATH becomes empty
22522 # (actually we leave an empty line to preserve line numbers).
22523 if test "x$srcdir" = x.; then
22524   ac_vpsub='/^[  ]*VPATH[        ]*=/{
22525 s/:*\$(srcdir):*/:/
22526 s/:*\${srcdir}:*/:/
22527 s/:*@srcdir@:*/:/
22528 s/^\([^=]*=[     ]*\):*/\1/
22529 s/:*$//
22530 s/^[^=]*=[       ]*$//
22531 }'
22532 fi
22533
22534 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22535 fi # test -n "$CONFIG_FILES"
22536
22537
22538 eval set X "  :F $CONFIG_FILES      :C $CONFIG_COMMANDS"
22539 shift
22540 for ac_tag
22541 do
22542   case $ac_tag in
22543   :[FHLC]) ac_mode=$ac_tag; continue;;
22544   esac
22545   case $ac_mode$ac_tag in
22546   :[FHL]*:*);;
22547   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22548 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22549    { (exit 1); exit 1; }; };;
22550   :[FH]-) ac_tag=-:-;;
22551   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22552   esac
22553   ac_save_IFS=$IFS
22554   IFS=:
22555   set x $ac_tag
22556   IFS=$ac_save_IFS
22557   shift
22558   ac_file=$1
22559   shift
22560
22561   case $ac_mode in
22562   :L) ac_source=$1;;
22563   :[FH])
22564     ac_file_inputs=
22565     for ac_f
22566     do
22567       case $ac_f in
22568       -) ac_f="$tmp/stdin";;
22569       *) # Look for the file first in the build tree, then in the source tree
22570          # (if the path is not absolute).  The absolute path cannot be DOS-style,
22571          # because $ac_f cannot contain `:'.
22572          test -f "$ac_f" ||
22573            case $ac_f in
22574            [\\/$]*) false;;
22575            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22576            esac ||
22577            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22578 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22579    { (exit 1); exit 1; }; };;
22580       esac
22581       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22582       ac_file_inputs="$ac_file_inputs '$ac_f'"
22583     done
22584
22585     # Let's still pretend it is `configure' which instantiates (i.e., don't
22586     # use $as_me), people would be surprised to read:
22587     #    /* config.h.  Generated by config.status.  */
22588     configure_input='Generated from '`
22589           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22590         `' by configure.'
22591     if test x"$ac_file" != x-; then
22592       configure_input="$ac_file.  $configure_input"
22593       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
22594 $as_echo "$as_me: creating $ac_file" >&6;}
22595     fi
22596     # Neutralize special characters interpreted by sed in replacement strings.
22597     case $configure_input in #(
22598     *\&* | *\|* | *\\* )
22599        ac_sed_conf_input=`$as_echo "$configure_input" |
22600        sed 's/[\\\\&|]/\\\\&/g'`;; #(
22601     *) ac_sed_conf_input=$configure_input;;
22602     esac
22603
22604     case $ac_tag in
22605     *:-:* | *:-) cat >"$tmp/stdin" \
22606       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22607 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22608    { (exit 1); exit 1; }; } ;;
22609     esac
22610     ;;
22611   esac
22612
22613   ac_dir=`$as_dirname -- "$ac_file" ||
22614 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22615          X"$ac_file" : 'X\(//\)[^/]' \| \
22616          X"$ac_file" : 'X\(//\)$' \| \
22617          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22618 $as_echo X"$ac_file" |
22619     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22620             s//\1/
22621             q
22622           }
22623           /^X\(\/\/\)[^/].*/{
22624             s//\1/
22625             q
22626           }
22627           /^X\(\/\/\)$/{
22628             s//\1/
22629             q
22630           }
22631           /^X\(\/\).*/{
22632             s//\1/
22633             q
22634           }
22635           s/.*/./; q'`
22636   { as_dir="$ac_dir"
22637   case $as_dir in #(
22638   -*) as_dir=./$as_dir;;
22639   esac
22640   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22641     as_dirs=
22642     while :; do
22643       case $as_dir in #(
22644       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22645       *) as_qdir=$as_dir;;
22646       esac
22647       as_dirs="'$as_qdir' $as_dirs"
22648       as_dir=`$as_dirname -- "$as_dir" ||
22649 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22650          X"$as_dir" : 'X\(//\)[^/]' \| \
22651          X"$as_dir" : 'X\(//\)$' \| \
22652          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22653 $as_echo X"$as_dir" |
22654     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22655             s//\1/
22656             q
22657           }
22658           /^X\(\/\/\)[^/].*/{
22659             s//\1/
22660             q
22661           }
22662           /^X\(\/\/\)$/{
22663             s//\1/
22664             q
22665           }
22666           /^X\(\/\).*/{
22667             s//\1/
22668             q
22669           }
22670           s/.*/./; q'`
22671       test -d "$as_dir" && break
22672     done
22673     test -z "$as_dirs" || eval "mkdir $as_dirs"
22674   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22675 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
22676    { (exit 1); exit 1; }; }; }
22677   ac_builddir=.
22678
22679 case "$ac_dir" in
22680 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22681 *)
22682   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22683   # A ".." for each directory in $ac_dir_suffix.
22684   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22685   case $ac_top_builddir_sub in
22686   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22687   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22688   esac ;;
22689 esac
22690 ac_abs_top_builddir=$ac_pwd
22691 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22692 # for backward compatibility:
22693 ac_top_builddir=$ac_top_build_prefix
22694
22695 case $srcdir in
22696   .)  # We are building in place.
22697     ac_srcdir=.
22698     ac_top_srcdir=$ac_top_builddir_sub
22699     ac_abs_top_srcdir=$ac_pwd ;;
22700   [\\/]* | ?:[\\/]* )  # Absolute name.
22701     ac_srcdir=$srcdir$ac_dir_suffix;
22702     ac_top_srcdir=$srcdir
22703     ac_abs_top_srcdir=$srcdir ;;
22704   *) # Relative name.
22705     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22706     ac_top_srcdir=$ac_top_build_prefix$srcdir
22707     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22708 esac
22709 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22710
22711
22712   case $ac_mode in
22713   :F)
22714   #
22715   # CONFIG_FILE
22716   #
22717
22718   case $INSTALL in
22719   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22720   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22721   esac
22722   ac_MKDIR_P=$MKDIR_P
22723   case $MKDIR_P in
22724   [\\/$]* | ?:[\\/]* ) ;;
22725   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22726   esac
22727 _ACEOF
22728
22729 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22730 # If the template does not know about datarootdir, expand it.
22731 # FIXME: This hack should be removed a few years after 2.60.
22732 ac_datarootdir_hack=; ac_datarootdir_seen=
22733
22734 ac_sed_dataroot='
22735 /datarootdir/ {
22736   p
22737   q
22738 }
22739 /@datadir@/p
22740 /@docdir@/p
22741 /@infodir@/p
22742 /@localedir@/p
22743 /@mandir@/p
22744 '
22745 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22746 *datarootdir*) ac_datarootdir_seen=yes;;
22747 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22748   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22749 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22750 _ACEOF
22751 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22752   ac_datarootdir_hack='
22753   s&@datadir@&$datadir&g
22754   s&@docdir@&$docdir&g
22755   s&@infodir@&$infodir&g
22756   s&@localedir@&$localedir&g
22757   s&@mandir@&$mandir&g
22758     s&\\\${datarootdir}&$datarootdir&g' ;;
22759 esac
22760 _ACEOF
22761
22762 # Neutralize VPATH when `$srcdir' = `.'.
22763 # Shell code in configure.ac might set extrasub.
22764 # FIXME: do we really want to maintain this feature?
22765 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22766 ac_sed_extra="$ac_vpsub
22767 $extrasub
22768 _ACEOF
22769 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22770 :t
22771 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22772 s|@configure_input@|$ac_sed_conf_input|;t t
22773 s&@top_builddir@&$ac_top_builddir_sub&;t t
22774 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22775 s&@srcdir@&$ac_srcdir&;t t
22776 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22777 s&@top_srcdir@&$ac_top_srcdir&;t t
22778 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22779 s&@builddir@&$ac_builddir&;t t
22780 s&@abs_builddir@&$ac_abs_builddir&;t t
22781 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22782 s&@INSTALL@&$ac_INSTALL&;t t
22783 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22784 $ac_datarootdir_hack
22785 "
22786 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
22787   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22788 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22789    { (exit 1); exit 1; }; }
22790
22791 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22792   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22793   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22794   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22795 which seems to be undefined.  Please make sure it is defined." >&5
22796 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22797 which seems to be undefined.  Please make sure it is defined." >&2;}
22798
22799   rm -f "$tmp/stdin"
22800   case $ac_file in
22801   -) cat "$tmp/out" && rm -f "$tmp/out";;
22802   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
22803   esac \
22804   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22805 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22806    { (exit 1); exit 1; }; }
22807  ;;
22808
22809
22810   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
22811 $as_echo "$as_me: executing $ac_file commands" >&6;}
22812  ;;
22813   esac
22814
22815
22816   case $ac_file$ac_mode in
22817     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22818   # Strip MF so we end up with the name of the file.
22819   mf=`echo "$mf" | sed -e 's/:.*$//'`
22820   # Check whether this is an Automake generated Makefile or not.
22821   # We used to match only the files named `Makefile.in', but
22822   # some people rename them; so instead we look at the file content.
22823   # Grep'ing the first line is not enough: some people post-process
22824   # each Makefile.in and add a new line on top of each file to say so.
22825   # So let's grep whole file.
22826   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22827     dirpart=`$as_dirname -- "$mf" ||
22828 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22829          X"$mf" : 'X\(//\)[^/]' \| \
22830          X"$mf" : 'X\(//\)$' \| \
22831          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22832 $as_echo X"$mf" |
22833     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22834             s//\1/
22835             q
22836           }
22837           /^X\(\/\/\)[^/].*/{
22838             s//\1/
22839             q
22840           }
22841           /^X\(\/\/\)$/{
22842             s//\1/
22843             q
22844           }
22845           /^X\(\/\).*/{
22846             s//\1/
22847             q
22848           }
22849           s/.*/./; q'`
22850   else
22851     continue
22852   fi
22853   # Extract the definition of DEPDIR, am__include, and am__quote
22854   # from the Makefile without running `make'.
22855   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22856   test -z "$DEPDIR" && continue
22857   am__include=`sed -n 's/^am__include = //p' < "$mf"`
22858   test -z "am__include" && continue
22859   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22860   # When using ansi2knr, U may be empty or an underscore; expand it
22861   U=`sed -n 's/^U = //p' < "$mf"`
22862   # Find all dependency output files, they are included files with
22863   # $(DEPDIR) in their names.  We invoke sed twice because it is the
22864   # simplest approach to changing $(DEPDIR) to its actual value in the
22865   # expansion.
22866   for file in `sed -n "
22867     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22868        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22869     # Make sure the directory exists.
22870     test -f "$dirpart/$file" && continue
22871     fdir=`$as_dirname -- "$file" ||
22872 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22873          X"$file" : 'X\(//\)[^/]' \| \
22874          X"$file" : 'X\(//\)$' \| \
22875          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22876 $as_echo X"$file" |
22877     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22878             s//\1/
22879             q
22880           }
22881           /^X\(\/\/\)[^/].*/{
22882             s//\1/
22883             q
22884           }
22885           /^X\(\/\/\)$/{
22886             s//\1/
22887             q
22888           }
22889           /^X\(\/\).*/{
22890             s//\1/
22891             q
22892           }
22893           s/.*/./; q'`
22894     { as_dir=$dirpart/$fdir
22895   case $as_dir in #(
22896   -*) as_dir=./$as_dir;;
22897   esac
22898   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22899     as_dirs=
22900     while :; do
22901       case $as_dir in #(
22902       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22903       *) as_qdir=$as_dir;;
22904       esac
22905       as_dirs="'$as_qdir' $as_dirs"
22906       as_dir=`$as_dirname -- "$as_dir" ||
22907 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22908          X"$as_dir" : 'X\(//\)[^/]' \| \
22909          X"$as_dir" : 'X\(//\)$' \| \
22910          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22911 $as_echo X"$as_dir" |
22912     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22913             s//\1/
22914             q
22915           }
22916           /^X\(\/\/\)[^/].*/{
22917             s//\1/
22918             q
22919           }
22920           /^X\(\/\/\)$/{
22921             s//\1/
22922             q
22923           }
22924           /^X\(\/\).*/{
22925             s//\1/
22926             q
22927           }
22928           s/.*/./; q'`
22929       test -d "$as_dir" && break
22930     done
22931     test -z "$as_dirs" || eval "mkdir $as_dirs"
22932   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22933 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
22934    { (exit 1); exit 1; }; }; }
22935     # echo "creating $dirpart/$file"
22936     echo '# dummy' > "$dirpart/$file"
22937   done
22938 done
22939  ;;
22940
22941   esac
22942 done # for ac_tag
22943
22944
22945 { (exit 0); exit 0; }
22946 _ACEOF
22947 chmod +x $CONFIG_STATUS
22948 ac_clean_files=$ac_clean_files_save
22949
22950 test $ac_write_fail = 0 ||
22951   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
22952 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
22953    { (exit 1); exit 1; }; }
22954
22955
22956 # configure is writing to config.log, and then calls config.status.
22957 # config.status does its own redirection, appending to config.log.
22958 # Unfortunately, on DOS this fails, as config.log is still kept open
22959 # by configure, so config.status won't be able to write to it; its
22960 # output is simply discarded.  So we exec the FD to /dev/null,
22961 # effectively closing config.log, so it can be properly (re)opened and
22962 # appended to by config.status.  When coming back to configure, we
22963 # need to make the FD available again.
22964 if test "$no_create" != yes; then
22965   ac_cs_success=:
22966   ac_config_status_args=
22967   test "$silent" = yes &&
22968     ac_config_status_args="$ac_config_status_args --quiet"
22969   exec 5>/dev/null
22970   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22971   exec 5>>config.log
22972   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22973   # would make configure fail if this is the last instruction.
22974   $ac_cs_success || { (exit 1); exit 1; }
22975 fi
22976 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22977   { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
22978 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}
22979 fi
22980