update.
[chise/libchise.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for libchise 0.5.0.
4 #
5 # Report bugs to <chise-en@m17n.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 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
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='libchise'
752 PACKAGE_TARNAME='libchise'
753 PACKAGE_VERSION='0.5.0'
754 PACKAGE_STRING='libchise 0.5.0'
755 PACKAGE_BUGREPORT='chise-en@m17n.org'
756
757 ac_unique_file="chise.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='LTLIBOBJS
795 LIBOBJS
796 ALLOCA
797 LIBTOOL
798 ac_ct_F77
799 FFLAGS
800 F77
801 CXXCPP
802 ac_ct_CXX
803 CXXFLAGS
804 CXX
805 CPP
806 STRIP
807 RANLIB
808 AR
809 ECHO
810 LN_S
811 EGREP
812 GREP
813 OBJEXT
814 EXEEXT
815 ac_ct_CC
816 CPPFLAGS
817 LDFLAGS
818 CFLAGS
819 CC
820 target_os
821 target_vendor
822 target_cpu
823 target
824 host_os
825 host_vendor
826 host_cpu
827 host
828 build_os
829 build_vendor
830 build_cpu
831 build
832 target_alias
833 host_alias
834 build_alias
835 LIBS
836 ECHO_T
837 ECHO_N
838 ECHO_C
839 DEFS
840 mandir
841 localedir
842 libdir
843 psdir
844 pdfdir
845 dvidir
846 htmldir
847 infodir
848 docdir
849 oldincludedir
850 includedir
851 localstatedir
852 sharedstatedir
853 sysconfdir
854 datadir
855 datarootdir
856 libexecdir
857 sbindir
858 bindir
859 program_transform_name
860 prefix
861 exec_prefix
862 PACKAGE_BUGREPORT
863 PACKAGE_STRING
864 PACKAGE_VERSION
865 PACKAGE_TARNAME
866 PACKAGE_NAME
867 PATH_SEPARATOR
868 SHELL'
869 ac_subst_files=''
870 ac_user_opts='
871 enable_option_checking
872 enable_shared
873 enable_static
874 enable_fast_install
875 with_gnu_ld
876 enable_libtool_lock
877 with_pic
878 with_tags
879 with_site_includes
880 with_site_libraries
881 '
882       ac_precious_vars='build_alias
883 host_alias
884 target_alias
885 CC
886 CFLAGS
887 LDFLAGS
888 LIBS
889 CPPFLAGS
890 CPP
891 CXX
892 CXXFLAGS
893 CCC
894 CXXCPP
895 F77
896 FFLAGS'
897
898
899 # Initialize some variables set by options.
900 ac_init_help=
901 ac_init_version=false
902 ac_unrecognized_opts=
903 ac_unrecognized_sep=
904 # The variables have the same names as the options, with
905 # dashes changed to underlines.
906 cache_file=/dev/null
907 exec_prefix=NONE
908 no_create=
909 no_recursion=
910 prefix=NONE
911 program_prefix=NONE
912 program_suffix=NONE
913 program_transform_name=s,x,x,
914 silent=
915 site=
916 srcdir=
917 verbose=
918 x_includes=NONE
919 x_libraries=NONE
920
921 # Installation directory options.
922 # These are left unexpanded so users can "make install exec_prefix=/foo"
923 # and all the variables that are supposed to be based on exec_prefix
924 # by default will actually change.
925 # Use braces instead of parens because sh, perl, etc. also accept them.
926 # (The list follows the same order as the GNU Coding Standards.)
927 bindir='${exec_prefix}/bin'
928 sbindir='${exec_prefix}/sbin'
929 libexecdir='${exec_prefix}/libexec'
930 datarootdir='${prefix}/share'
931 datadir='${datarootdir}'
932 sysconfdir='${prefix}/etc'
933 sharedstatedir='${prefix}/com'
934 localstatedir='${prefix}/var'
935 includedir='${prefix}/include'
936 oldincludedir='/usr/include'
937 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
938 infodir='${datarootdir}/info'
939 htmldir='${docdir}'
940 dvidir='${docdir}'
941 pdfdir='${docdir}'
942 psdir='${docdir}'
943 libdir='${exec_prefix}/lib'
944 localedir='${datarootdir}/locale'
945 mandir='${datarootdir}/man'
946
947 ac_prev=
948 ac_dashdash=
949 for ac_option
950 do
951   # If the previous option needs an argument, assign it.
952   if test -n "$ac_prev"; then
953     eval $ac_prev=\$ac_option
954     ac_prev=
955     continue
956   fi
957
958   case $ac_option in
959   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
960   *)    ac_optarg=yes ;;
961   esac
962
963   # Accept the important Cygnus configure options, so we can diagnose typos.
964
965   case $ac_dashdash$ac_option in
966   --)
967     ac_dashdash=yes ;;
968
969   -bindir | --bindir | --bindi | --bind | --bin | --bi)
970     ac_prev=bindir ;;
971   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
972     bindir=$ac_optarg ;;
973
974   -build | --build | --buil | --bui | --bu)
975     ac_prev=build_alias ;;
976   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
977     build_alias=$ac_optarg ;;
978
979   -cache-file | --cache-file | --cache-fil | --cache-fi \
980   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
981     ac_prev=cache_file ;;
982   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
983   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
984     cache_file=$ac_optarg ;;
985
986   --config-cache | -C)
987     cache_file=config.cache ;;
988
989   -datadir | --datadir | --datadi | --datad)
990     ac_prev=datadir ;;
991   -datadir=* | --datadir=* | --datadi=* | --datad=*)
992     datadir=$ac_optarg ;;
993
994   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
995   | --dataroo | --dataro | --datar)
996     ac_prev=datarootdir ;;
997   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
998   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
999     datarootdir=$ac_optarg ;;
1000
1001   -disable-* | --disable-*)
1002     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1003     # Reject names that are not valid shell variable names.
1004     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1005       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1006    { (exit 1); exit 1; }; }
1007     ac_useropt_orig=$ac_useropt
1008     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1009     case $ac_user_opts in
1010       *"
1011 "enable_$ac_useropt"
1012 "*) ;;
1013       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1014          ac_unrecognized_sep=', ';;
1015     esac
1016     eval enable_$ac_useropt=no ;;
1017
1018   -docdir | --docdir | --docdi | --doc | --do)
1019     ac_prev=docdir ;;
1020   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1021     docdir=$ac_optarg ;;
1022
1023   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1024     ac_prev=dvidir ;;
1025   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1026     dvidir=$ac_optarg ;;
1027
1028   -enable-* | --enable-*)
1029     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1030     # Reject names that are not valid shell variable names.
1031     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1032       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1033    { (exit 1); exit 1; }; }
1034     ac_useropt_orig=$ac_useropt
1035     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1036     case $ac_user_opts in
1037       *"
1038 "enable_$ac_useropt"
1039 "*) ;;
1040       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1041          ac_unrecognized_sep=', ';;
1042     esac
1043     eval enable_$ac_useropt=\$ac_optarg ;;
1044
1045   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1046   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1047   | --exec | --exe | --ex)
1048     ac_prev=exec_prefix ;;
1049   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1050   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1051   | --exec=* | --exe=* | --ex=*)
1052     exec_prefix=$ac_optarg ;;
1053
1054   -gas | --gas | --ga | --g)
1055     # Obsolete; use --with-gas.
1056     with_gas=yes ;;
1057
1058   -help | --help | --hel | --he | -h)
1059     ac_init_help=long ;;
1060   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1061     ac_init_help=recursive ;;
1062   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1063     ac_init_help=short ;;
1064
1065   -host | --host | --hos | --ho)
1066     ac_prev=host_alias ;;
1067   -host=* | --host=* | --hos=* | --ho=*)
1068     host_alias=$ac_optarg ;;
1069
1070   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1071     ac_prev=htmldir ;;
1072   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1073   | --ht=*)
1074     htmldir=$ac_optarg ;;
1075
1076   -includedir | --includedir | --includedi | --included | --include \
1077   | --includ | --inclu | --incl | --inc)
1078     ac_prev=includedir ;;
1079   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1080   | --includ=* | --inclu=* | --incl=* | --inc=*)
1081     includedir=$ac_optarg ;;
1082
1083   -infodir | --infodir | --infodi | --infod | --info | --inf)
1084     ac_prev=infodir ;;
1085   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1086     infodir=$ac_optarg ;;
1087
1088   -libdir | --libdir | --libdi | --libd)
1089     ac_prev=libdir ;;
1090   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1091     libdir=$ac_optarg ;;
1092
1093   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1094   | --libexe | --libex | --libe)
1095     ac_prev=libexecdir ;;
1096   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1097   | --libexe=* | --libex=* | --libe=*)
1098     libexecdir=$ac_optarg ;;
1099
1100   -localedir | --localedir | --localedi | --localed | --locale)
1101     ac_prev=localedir ;;
1102   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1103     localedir=$ac_optarg ;;
1104
1105   -localstatedir | --localstatedir | --localstatedi | --localstated \
1106   | --localstate | --localstat | --localsta | --localst | --locals)
1107     ac_prev=localstatedir ;;
1108   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1109   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1110     localstatedir=$ac_optarg ;;
1111
1112   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1113     ac_prev=mandir ;;
1114   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1115     mandir=$ac_optarg ;;
1116
1117   -nfp | --nfp | --nf)
1118     # Obsolete; use --without-fp.
1119     with_fp=no ;;
1120
1121   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1122   | --no-cr | --no-c | -n)
1123     no_create=yes ;;
1124
1125   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1126   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1127     no_recursion=yes ;;
1128
1129   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1130   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1131   | --oldin | --oldi | --old | --ol | --o)
1132     ac_prev=oldincludedir ;;
1133   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1134   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1135   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1136     oldincludedir=$ac_optarg ;;
1137
1138   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1139     ac_prev=prefix ;;
1140   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1141     prefix=$ac_optarg ;;
1142
1143   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1144   | --program-pre | --program-pr | --program-p)
1145     ac_prev=program_prefix ;;
1146   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1147   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1148     program_prefix=$ac_optarg ;;
1149
1150   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1151   | --program-suf | --program-su | --program-s)
1152     ac_prev=program_suffix ;;
1153   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1154   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1155     program_suffix=$ac_optarg ;;
1156
1157   -program-transform-name | --program-transform-name \
1158   | --program-transform-nam | --program-transform-na \
1159   | --program-transform-n | --program-transform- \
1160   | --program-transform | --program-transfor \
1161   | --program-transfo | --program-transf \
1162   | --program-trans | --program-tran \
1163   | --progr-tra | --program-tr | --program-t)
1164     ac_prev=program_transform_name ;;
1165   -program-transform-name=* | --program-transform-name=* \
1166   | --program-transform-nam=* | --program-transform-na=* \
1167   | --program-transform-n=* | --program-transform-=* \
1168   | --program-transform=* | --program-transfor=* \
1169   | --program-transfo=* | --program-transf=* \
1170   | --program-trans=* | --program-tran=* \
1171   | --progr-tra=* | --program-tr=* | --program-t=*)
1172     program_transform_name=$ac_optarg ;;
1173
1174   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1175     ac_prev=pdfdir ;;
1176   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1177     pdfdir=$ac_optarg ;;
1178
1179   -psdir | --psdir | --psdi | --psd | --ps)
1180     ac_prev=psdir ;;
1181   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1182     psdir=$ac_optarg ;;
1183
1184   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1185   | -silent | --silent | --silen | --sile | --sil)
1186     silent=yes ;;
1187
1188   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1189     ac_prev=sbindir ;;
1190   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1191   | --sbi=* | --sb=*)
1192     sbindir=$ac_optarg ;;
1193
1194   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1195   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1196   | --sharedst | --shareds | --shared | --share | --shar \
1197   | --sha | --sh)
1198     ac_prev=sharedstatedir ;;
1199   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1200   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1201   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1202   | --sha=* | --sh=*)
1203     sharedstatedir=$ac_optarg ;;
1204
1205   -site | --site | --sit)
1206     ac_prev=site ;;
1207   -site=* | --site=* | --sit=*)
1208     site=$ac_optarg ;;
1209
1210   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1211     ac_prev=srcdir ;;
1212   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1213     srcdir=$ac_optarg ;;
1214
1215   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1216   | --syscon | --sysco | --sysc | --sys | --sy)
1217     ac_prev=sysconfdir ;;
1218   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1219   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1220     sysconfdir=$ac_optarg ;;
1221
1222   -target | --target | --targe | --targ | --tar | --ta | --t)
1223     ac_prev=target_alias ;;
1224   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1225     target_alias=$ac_optarg ;;
1226
1227   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1228     verbose=yes ;;
1229
1230   -version | --version | --versio | --versi | --vers | -V)
1231     ac_init_version=: ;;
1232
1233   -with-* | --with-*)
1234     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1235     # Reject names that are not valid shell variable names.
1236     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1237       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1238    { (exit 1); exit 1; }; }
1239     ac_useropt_orig=$ac_useropt
1240     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1241     case $ac_user_opts in
1242       *"
1243 "with_$ac_useropt"
1244 "*) ;;
1245       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1246          ac_unrecognized_sep=', ';;
1247     esac
1248     eval with_$ac_useropt=\$ac_optarg ;;
1249
1250   -without-* | --without-*)
1251     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1252     # Reject names that are not valid shell variable names.
1253     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1254       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1255    { (exit 1); exit 1; }; }
1256     ac_useropt_orig=$ac_useropt
1257     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1258     case $ac_user_opts in
1259       *"
1260 "with_$ac_useropt"
1261 "*) ;;
1262       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1263          ac_unrecognized_sep=', ';;
1264     esac
1265     eval with_$ac_useropt=no ;;
1266
1267   --x)
1268     # Obsolete; use --with-x.
1269     with_x=yes ;;
1270
1271   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1272   | --x-incl | --x-inc | --x-in | --x-i)
1273     ac_prev=x_includes ;;
1274   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1275   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1276     x_includes=$ac_optarg ;;
1277
1278   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1279   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1280     ac_prev=x_libraries ;;
1281   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1282   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1283     x_libraries=$ac_optarg ;;
1284
1285   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1286 Try \`$0 --help' for more information." >&2
1287    { (exit 1); exit 1; }; }
1288     ;;
1289
1290   *=*)
1291     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1292     # Reject names that are not valid shell variable names.
1293     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1294       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1295    { (exit 1); exit 1; }; }
1296     eval $ac_envvar=\$ac_optarg
1297     export $ac_envvar ;;
1298
1299   *)
1300     # FIXME: should be removed in autoconf 3.0.
1301     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1302     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1303       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1304     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1305     ;;
1306
1307   esac
1308 done
1309
1310 if test -n "$ac_prev"; then
1311   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1312   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1313    { (exit 1); exit 1; }; }
1314 fi
1315
1316 if test -n "$ac_unrecognized_opts"; then
1317   case $enable_option_checking in
1318     no) ;;
1319     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1320    { (exit 1); exit 1; }; } ;;
1321     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1322   esac
1323 fi
1324
1325 # Check all directory arguments for consistency.
1326 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1327                 datadir sysconfdir sharedstatedir localstatedir includedir \
1328                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1329                 libdir localedir mandir
1330 do
1331   eval ac_val=\$$ac_var
1332   # Remove trailing slashes.
1333   case $ac_val in
1334     */ )
1335       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1336       eval $ac_var=\$ac_val;;
1337   esac
1338   # Be sure to have absolute directory names.
1339   case $ac_val in
1340     [\\/$]* | ?:[\\/]* )  continue;;
1341     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1342   esac
1343   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1344    { (exit 1); exit 1; }; }
1345 done
1346
1347 # There might be people who depend on the old broken behavior: `$host'
1348 # used to hold the argument of --host etc.
1349 # FIXME: To remove some day.
1350 build=$build_alias
1351 host=$host_alias
1352 target=$target_alias
1353
1354 # FIXME: To remove some day.
1355 if test "x$host_alias" != x; then
1356   if test "x$build_alias" = x; then
1357     cross_compiling=maybe
1358     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1359     If a cross compiler is detected then cross compile mode will be used." >&2
1360   elif test "x$build_alias" != "x$host_alias"; then
1361     cross_compiling=yes
1362   fi
1363 fi
1364
1365 ac_tool_prefix=
1366 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1367
1368 test "$silent" = yes && exec 6>/dev/null
1369
1370
1371 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1372 ac_ls_di=`ls -di .` &&
1373 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1374   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1375    { (exit 1); exit 1; }; }
1376 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1377   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1378    { (exit 1); exit 1; }; }
1379
1380
1381 # Find the source files, if location was not specified.
1382 if test -z "$srcdir"; then
1383   ac_srcdir_defaulted=yes
1384   # Try the directory containing this script, then the parent directory.
1385   ac_confdir=`$as_dirname -- "$as_myself" ||
1386 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1387          X"$as_myself" : 'X\(//\)[^/]' \| \
1388          X"$as_myself" : 'X\(//\)$' \| \
1389          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1390 $as_echo X"$as_myself" |
1391     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1392             s//\1/
1393             q
1394           }
1395           /^X\(\/\/\)[^/].*/{
1396             s//\1/
1397             q
1398           }
1399           /^X\(\/\/\)$/{
1400             s//\1/
1401             q
1402           }
1403           /^X\(\/\).*/{
1404             s//\1/
1405             q
1406           }
1407           s/.*/./; q'`
1408   srcdir=$ac_confdir
1409   if test ! -r "$srcdir/$ac_unique_file"; then
1410     srcdir=..
1411   fi
1412 else
1413   ac_srcdir_defaulted=no
1414 fi
1415 if test ! -r "$srcdir/$ac_unique_file"; then
1416   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1417   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1418    { (exit 1); exit 1; }; }
1419 fi
1420 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1421 ac_abs_confdir=`(
1422         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1423    { (exit 1); exit 1; }; }
1424         pwd)`
1425 # When building in place, set srcdir=.
1426 if test "$ac_abs_confdir" = "$ac_pwd"; then
1427   srcdir=.
1428 fi
1429 # Remove unnecessary trailing slashes from srcdir.
1430 # Double slashes in file names in object file debugging info
1431 # mess up M-x gdb in Emacs.
1432 case $srcdir in
1433 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1434 esac
1435 for ac_var in $ac_precious_vars; do
1436   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1437   eval ac_env_${ac_var}_value=\$${ac_var}
1438   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1439   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1440 done
1441
1442 #
1443 # Report the --help message.
1444 #
1445 if test "$ac_init_help" = "long"; then
1446   # Omit some internal or obsolete options to make the list less imposing.
1447   # This message is too long to be a string in the A/UX 3.1 sh.
1448   cat <<_ACEOF
1449 \`configure' configures libchise 0.5.0 to adapt to many kinds of systems.
1450
1451 Usage: $0 [OPTION]... [VAR=VALUE]...
1452
1453 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1454 VAR=VALUE.  See below for descriptions of some of the useful variables.
1455
1456 Defaults for the options are specified in brackets.
1457
1458 Configuration:
1459   -h, --help              display this help and exit
1460       --help=short        display options specific to this package
1461       --help=recursive    display the short help of all the included packages
1462   -V, --version           display version information and exit
1463   -q, --quiet, --silent   do not print \`checking...' messages
1464       --cache-file=FILE   cache test results in FILE [disabled]
1465   -C, --config-cache      alias for \`--cache-file=config.cache'
1466   -n, --no-create         do not create output files
1467       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1468
1469 Installation directories:
1470   --prefix=PREFIX         install architecture-independent files in PREFIX
1471                           [$ac_default_prefix]
1472   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1473                           [PREFIX]
1474
1475 By default, \`make install' will install all the files in
1476 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1477 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1478 for instance \`--prefix=\$HOME'.
1479
1480 For better control, use the options below.
1481
1482 Fine tuning of the installation directories:
1483   --bindir=DIR            user executables [EPREFIX/bin]
1484   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1485   --libexecdir=DIR        program executables [EPREFIX/libexec]
1486   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1487   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1488   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1489   --libdir=DIR            object code libraries [EPREFIX/lib]
1490   --includedir=DIR        C header files [PREFIX/include]
1491   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1492   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1493   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1494   --infodir=DIR           info documentation [DATAROOTDIR/info]
1495   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1496   --mandir=DIR            man documentation [DATAROOTDIR/man]
1497   --docdir=DIR            documentation root [DATAROOTDIR/doc/libchise]
1498   --htmldir=DIR           html documentation [DOCDIR]
1499   --dvidir=DIR            dvi documentation [DOCDIR]
1500   --pdfdir=DIR            pdf documentation [DOCDIR]
1501   --psdir=DIR             ps documentation [DOCDIR]
1502 _ACEOF
1503
1504   cat <<\_ACEOF
1505
1506 System types:
1507   --build=BUILD     configure for building on BUILD [guessed]
1508   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1509   --target=TARGET   configure for building compilers for TARGET [HOST]
1510 _ACEOF
1511 fi
1512
1513 if test -n "$ac_init_help"; then
1514   case $ac_init_help in
1515      short | recursive ) echo "Configuration of libchise 0.5.0:";;
1516    esac
1517   cat <<\_ACEOF
1518
1519 Optional Features:
1520   --disable-option-checking  ignore unrecognized --enable/--with options
1521   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1522   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1523   --enable-shared[=PKGS]  build shared libraries [default=yes]
1524   --enable-static[=PKGS]  build static libraries [default=yes]
1525   --enable-fast-install[=PKGS]
1526                           optimize for fast installation [default=yes]
1527   --disable-libtool-lock  avoid locking (might break parallel builds)
1528
1529 Optional Packages:
1530   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1531   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1532   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1533   --with-pic              try to use only PIC/non-PIC objects [default=use
1534                           both]
1535   --with-tags[=TAGS]      include additional configurations [automatic]
1536 --with-site-includes=PATH List of directories to search first for header files
1537
1538 --with-site-libraries=PATH List of directories to search first for libraries
1539
1540
1541 Some influential environment variables:
1542   CC          C compiler command
1543   CFLAGS      C compiler flags
1544   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1545               nonstandard directory <lib dir>
1546   LIBS        libraries to pass to the linker, e.g. -l<library>
1547   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1548               you have headers in a nonstandard directory <include dir>
1549   CPP         C preprocessor
1550   CXX         C++ compiler command
1551   CXXFLAGS    C++ compiler flags
1552   CXXCPP      C++ preprocessor
1553   F77         Fortran 77 compiler command
1554   FFLAGS      Fortran 77 compiler flags
1555
1556 Use these variables to override the choices made by `configure' or to help
1557 it to find libraries and programs with nonstandard names/locations.
1558
1559 Report bugs to <chise-en@m17n.org>.
1560 _ACEOF
1561 ac_status=$?
1562 fi
1563
1564 if test "$ac_init_help" = "recursive"; then
1565   # If there are subdirs, report their specific --help.
1566   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1567     test -d "$ac_dir" ||
1568       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1569       continue
1570     ac_builddir=.
1571
1572 case "$ac_dir" in
1573 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1574 *)
1575   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1576   # A ".." for each directory in $ac_dir_suffix.
1577   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1578   case $ac_top_builddir_sub in
1579   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1580   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1581   esac ;;
1582 esac
1583 ac_abs_top_builddir=$ac_pwd
1584 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1585 # for backward compatibility:
1586 ac_top_builddir=$ac_top_build_prefix
1587
1588 case $srcdir in
1589   .)  # We are building in place.
1590     ac_srcdir=.
1591     ac_top_srcdir=$ac_top_builddir_sub
1592     ac_abs_top_srcdir=$ac_pwd ;;
1593   [\\/]* | ?:[\\/]* )  # Absolute name.
1594     ac_srcdir=$srcdir$ac_dir_suffix;
1595     ac_top_srcdir=$srcdir
1596     ac_abs_top_srcdir=$srcdir ;;
1597   *) # Relative name.
1598     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1599     ac_top_srcdir=$ac_top_build_prefix$srcdir
1600     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1601 esac
1602 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1603
1604     cd "$ac_dir" || { ac_status=$?; continue; }
1605     # Check for guested configure.
1606     if test -f "$ac_srcdir/configure.gnu"; then
1607       echo &&
1608       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1609     elif test -f "$ac_srcdir/configure"; then
1610       echo &&
1611       $SHELL "$ac_srcdir/configure" --help=recursive
1612     else
1613       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1614     fi || ac_status=$?
1615     cd "$ac_pwd" || { ac_status=$?; break; }
1616   done
1617 fi
1618
1619 test -n "$ac_init_help" && exit $ac_status
1620 if $ac_init_version; then
1621   cat <<\_ACEOF
1622 libchise configure 0.5.0
1623 generated by GNU Autoconf 2.63
1624
1625 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1626 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1627 This configure script is free software; the Free Software Foundation
1628 gives unlimited permission to copy, distribute and modify it.
1629 _ACEOF
1630   exit
1631 fi
1632 cat >config.log <<_ACEOF
1633 This file contains any messages produced by compilers while
1634 running configure, to aid debugging if configure makes a mistake.
1635
1636 It was created by libchise $as_me 0.5.0, which was
1637 generated by GNU Autoconf 2.63.  Invocation command line was
1638
1639   $ $0 $@
1640
1641 _ACEOF
1642 exec 5>>config.log
1643 {
1644 cat <<_ASUNAME
1645 ## --------- ##
1646 ## Platform. ##
1647 ## --------- ##
1648
1649 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1650 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1651 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1652 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1653 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1654
1655 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1656 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1657
1658 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1659 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1660 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1661 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1662 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1663 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1664 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1665
1666 _ASUNAME
1667
1668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1669 for as_dir in $PATH
1670 do
1671   IFS=$as_save_IFS
1672   test -z "$as_dir" && as_dir=.
1673   $as_echo "PATH: $as_dir"
1674 done
1675 IFS=$as_save_IFS
1676
1677 } >&5
1678
1679 cat >&5 <<_ACEOF
1680
1681
1682 ## ----------- ##
1683 ## Core tests. ##
1684 ## ----------- ##
1685
1686 _ACEOF
1687
1688
1689 # Keep a trace of the command line.
1690 # Strip out --no-create and --no-recursion so they do not pile up.
1691 # Strip out --silent because we don't want to record it for future runs.
1692 # Also quote any args containing shell meta-characters.
1693 # Make two passes to allow for proper duplicate-argument suppression.
1694 ac_configure_args=
1695 ac_configure_args0=
1696 ac_configure_args1=
1697 ac_must_keep_next=false
1698 for ac_pass in 1 2
1699 do
1700   for ac_arg
1701   do
1702     case $ac_arg in
1703     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1704     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1705     | -silent | --silent | --silen | --sile | --sil)
1706       continue ;;
1707     *\'*)
1708       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1709     esac
1710     case $ac_pass in
1711     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1712     2)
1713       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1714       if test $ac_must_keep_next = true; then
1715         ac_must_keep_next=false # Got value, back to normal.
1716       else
1717         case $ac_arg in
1718           *=* | --config-cache | -C | -disable-* | --disable-* \
1719           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1720           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1721           | -with-* | --with-* | -without-* | --without-* | --x)
1722             case "$ac_configure_args0 " in
1723               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1724             esac
1725             ;;
1726           -* ) ac_must_keep_next=true ;;
1727         esac
1728       fi
1729       ac_configure_args="$ac_configure_args '$ac_arg'"
1730       ;;
1731     esac
1732   done
1733 done
1734 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1735 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1736
1737 # When interrupted or exit'd, cleanup temporary files, and complete
1738 # config.log.  We remove comments because anyway the quotes in there
1739 # would cause problems or look ugly.
1740 # WARNING: Use '\'' to represent an apostrophe within the trap.
1741 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1742 trap 'exit_status=$?
1743   # Save into config.log some information that might help in debugging.
1744   {
1745     echo
1746
1747     cat <<\_ASBOX
1748 ## ---------------- ##
1749 ## Cache variables. ##
1750 ## ---------------- ##
1751 _ASBOX
1752     echo
1753     # The following way of writing the cache mishandles newlines in values,
1754 (
1755   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1756     eval ac_val=\$$ac_var
1757     case $ac_val in #(
1758     *${as_nl}*)
1759       case $ac_var in #(
1760       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1761 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1762       esac
1763       case $ac_var in #(
1764       _ | IFS | as_nl) ;; #(
1765       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1766       *) $as_unset $ac_var ;;
1767       esac ;;
1768     esac
1769   done
1770   (set) 2>&1 |
1771     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1772     *${as_nl}ac_space=\ *)
1773       sed -n \
1774         "s/'\''/'\''\\\\'\'''\''/g;
1775           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1776       ;; #(
1777     *)
1778       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1779       ;;
1780     esac |
1781     sort
1782 )
1783     echo
1784
1785     cat <<\_ASBOX
1786 ## ----------------- ##
1787 ## Output variables. ##
1788 ## ----------------- ##
1789 _ASBOX
1790     echo
1791     for ac_var in $ac_subst_vars
1792     do
1793       eval ac_val=\$$ac_var
1794       case $ac_val in
1795       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1796       esac
1797       $as_echo "$ac_var='\''$ac_val'\''"
1798     done | sort
1799     echo
1800
1801     if test -n "$ac_subst_files"; then
1802       cat <<\_ASBOX
1803 ## ------------------- ##
1804 ## File substitutions. ##
1805 ## ------------------- ##
1806 _ASBOX
1807       echo
1808       for ac_var in $ac_subst_files
1809       do
1810         eval ac_val=\$$ac_var
1811         case $ac_val in
1812         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1813         esac
1814         $as_echo "$ac_var='\''$ac_val'\''"
1815       done | sort
1816       echo
1817     fi
1818
1819     if test -s confdefs.h; then
1820       cat <<\_ASBOX
1821 ## ----------- ##
1822 ## confdefs.h. ##
1823 ## ----------- ##
1824 _ASBOX
1825       echo
1826       cat confdefs.h
1827       echo
1828     fi
1829     test "$ac_signal" != 0 &&
1830       $as_echo "$as_me: caught signal $ac_signal"
1831     $as_echo "$as_me: exit $exit_status"
1832   } >&5
1833   rm -f core *.core core.conftest.* &&
1834     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1835     exit $exit_status
1836 ' 0
1837 for ac_signal in 1 2 13 15; do
1838   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1839 done
1840 ac_signal=0
1841
1842 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1843 rm -f -r conftest* confdefs.h
1844
1845 # Predefined preprocessor variables.
1846
1847 cat >>confdefs.h <<_ACEOF
1848 #define PACKAGE_NAME "$PACKAGE_NAME"
1849 _ACEOF
1850
1851
1852 cat >>confdefs.h <<_ACEOF
1853 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1854 _ACEOF
1855
1856
1857 cat >>confdefs.h <<_ACEOF
1858 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1859 _ACEOF
1860
1861
1862 cat >>confdefs.h <<_ACEOF
1863 #define PACKAGE_STRING "$PACKAGE_STRING"
1864 _ACEOF
1865
1866
1867 cat >>confdefs.h <<_ACEOF
1868 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1869 _ACEOF
1870
1871
1872 # Let the site file select an alternate cache file if it wants to.
1873 # Prefer an explicitly selected file to automatically selected ones.
1874 ac_site_file1=NONE
1875 ac_site_file2=NONE
1876 if test -n "$CONFIG_SITE"; then
1877   ac_site_file1=$CONFIG_SITE
1878 elif test "x$prefix" != xNONE; then
1879   ac_site_file1=$prefix/share/config.site
1880   ac_site_file2=$prefix/etc/config.site
1881 else
1882   ac_site_file1=$ac_default_prefix/share/config.site
1883   ac_site_file2=$ac_default_prefix/etc/config.site
1884 fi
1885 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1886 do
1887   test "x$ac_site_file" = xNONE && continue
1888   if test -r "$ac_site_file"; then
1889     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1890 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1891     sed 's/^/| /' "$ac_site_file" >&5
1892     . "$ac_site_file"
1893   fi
1894 done
1895
1896 if test -r "$cache_file"; then
1897   # Some versions of bash will fail to source /dev/null (special
1898   # files actually), so we avoid doing that.
1899   if test -f "$cache_file"; then
1900     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1901 $as_echo "$as_me: loading cache $cache_file" >&6;}
1902     case $cache_file in
1903       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1904       *)                      . "./$cache_file";;
1905     esac
1906   fi
1907 else
1908   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1909 $as_echo "$as_me: creating cache $cache_file" >&6;}
1910   >$cache_file
1911 fi
1912
1913 # Check that the precious variables saved in the cache have kept the same
1914 # value.
1915 ac_cache_corrupted=false
1916 for ac_var in $ac_precious_vars; do
1917   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1918   eval ac_new_set=\$ac_env_${ac_var}_set
1919   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1920   eval ac_new_val=\$ac_env_${ac_var}_value
1921   case $ac_old_set,$ac_new_set in
1922     set,)
1923       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1924 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1925       ac_cache_corrupted=: ;;
1926     ,set)
1927       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1928 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1929       ac_cache_corrupted=: ;;
1930     ,);;
1931     *)
1932       if test "x$ac_old_val" != "x$ac_new_val"; then
1933         # differences in whitespace do not lead to failure.
1934         ac_old_val_w=`echo x $ac_old_val`
1935         ac_new_val_w=`echo x $ac_new_val`
1936         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1937           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1938 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1939           ac_cache_corrupted=:
1940         else
1941           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1942 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1943           eval $ac_var=\$ac_old_val
1944         fi
1945         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1946 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1947         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1948 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1949       fi;;
1950   esac
1951   # Pass precious variables to config.status.
1952   if test "$ac_new_set" = set; then
1953     case $ac_new_val in
1954     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1955     *) ac_arg=$ac_var=$ac_new_val ;;
1956     esac
1957     case " $ac_configure_args " in
1958       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1959       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1960     esac
1961   fi
1962 done
1963 if $ac_cache_corrupted; then
1964   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1965 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1966   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1967 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1968   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1969 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1970    { (exit 1); exit 1; }; }
1971 fi
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997 ac_ext=c
1998 ac_cpp='$CPP $CPPFLAGS'
1999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2002
2003
2004
2005 ac_config_headers="$ac_config_headers config.h"
2006
2007
2008 ac_aux_dir=
2009 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2010   if test -f "$ac_dir/install-sh"; then
2011     ac_aux_dir=$ac_dir
2012     ac_install_sh="$ac_aux_dir/install-sh -c"
2013     break
2014   elif test -f "$ac_dir/install.sh"; then
2015     ac_aux_dir=$ac_dir
2016     ac_install_sh="$ac_aux_dir/install.sh -c"
2017     break
2018   elif test -f "$ac_dir/shtool"; then
2019     ac_aux_dir=$ac_dir
2020     ac_install_sh="$ac_aux_dir/shtool install -c"
2021     break
2022   fi
2023 done
2024 if test -z "$ac_aux_dir"; then
2025   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2026 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2027    { (exit 1); exit 1; }; }
2028 fi
2029
2030 # These three variables are undocumented and unsupported,
2031 # and are intended to be withdrawn in a future Autoconf release.
2032 # They can cause serious problems if a builder's source tree is in a directory
2033 # whose full name contains unusual characters.
2034 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2035 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2036 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2037
2038
2039 # Make sure we can run config.sub.
2040 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2041   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2042 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2043    { (exit 1); exit 1; }; }
2044
2045 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2046 $as_echo_n "checking build system type... " >&6; }
2047 if test "${ac_cv_build+set}" = set; then
2048   $as_echo_n "(cached) " >&6
2049 else
2050   ac_build_alias=$build_alias
2051 test "x$ac_build_alias" = x &&
2052   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2053 test "x$ac_build_alias" = x &&
2054   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2055 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2056    { (exit 1); exit 1; }; }
2057 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2058   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2059 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2060    { (exit 1); exit 1; }; }
2061
2062 fi
2063 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2064 $as_echo "$ac_cv_build" >&6; }
2065 case $ac_cv_build in
2066 *-*-*) ;;
2067 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2068 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2069    { (exit 1); exit 1; }; };;
2070 esac
2071 build=$ac_cv_build
2072 ac_save_IFS=$IFS; IFS='-'
2073 set x $ac_cv_build
2074 shift
2075 build_cpu=$1
2076 build_vendor=$2
2077 shift; shift
2078 # Remember, the first character of IFS is used to create $*,
2079 # except with old shells:
2080 build_os=$*
2081 IFS=$ac_save_IFS
2082 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2083
2084
2085 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2086 $as_echo_n "checking host system type... " >&6; }
2087 if test "${ac_cv_host+set}" = set; then
2088   $as_echo_n "(cached) " >&6
2089 else
2090   if test "x$host_alias" = x; then
2091   ac_cv_host=$ac_cv_build
2092 else
2093   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2094     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2095 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2096    { (exit 1); exit 1; }; }
2097 fi
2098
2099 fi
2100 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2101 $as_echo "$ac_cv_host" >&6; }
2102 case $ac_cv_host in
2103 *-*-*) ;;
2104 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2105 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2106    { (exit 1); exit 1; }; };;
2107 esac
2108 host=$ac_cv_host
2109 ac_save_IFS=$IFS; IFS='-'
2110 set x $ac_cv_host
2111 shift
2112 host_cpu=$1
2113 host_vendor=$2
2114 shift; shift
2115 # Remember, the first character of IFS is used to create $*,
2116 # except with old shells:
2117 host_os=$*
2118 IFS=$ac_save_IFS
2119 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2120
2121
2122 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2123 $as_echo_n "checking target system type... " >&6; }
2124 if test "${ac_cv_target+set}" = set; then
2125   $as_echo_n "(cached) " >&6
2126 else
2127   if test "x$target_alias" = x; then
2128   ac_cv_target=$ac_cv_host
2129 else
2130   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2131     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2132 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2133    { (exit 1); exit 1; }; }
2134 fi
2135
2136 fi
2137 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2138 $as_echo "$ac_cv_target" >&6; }
2139 case $ac_cv_target in
2140 *-*-*) ;;
2141 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2142 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2143    { (exit 1); exit 1; }; };;
2144 esac
2145 target=$ac_cv_target
2146 ac_save_IFS=$IFS; IFS='-'
2147 set x $ac_cv_target
2148 shift
2149 target_cpu=$1
2150 target_vendor=$2
2151 shift; shift
2152 # Remember, the first character of IFS is used to create $*,
2153 # except with old shells:
2154 target_os=$*
2155 IFS=$ac_save_IFS
2156 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2157
2158
2159 # The aliases save the names the user supplied, while $host etc.
2160 # will get canonicalized.
2161 test -n "$target_alias" &&
2162   test "$program_prefix$program_suffix$program_transform_name" = \
2163     NONENONEs,x,x, &&
2164   program_prefix=${target_alias}-
2165
2166 # Checks for programs.
2167 ac_ext=c
2168 ac_cpp='$CPP $CPPFLAGS'
2169 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2170 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2171 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2172 if test -n "$ac_tool_prefix"; then
2173   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2174 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2175 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2176 $as_echo_n "checking for $ac_word... " >&6; }
2177 if test "${ac_cv_prog_CC+set}" = set; then
2178   $as_echo_n "(cached) " >&6
2179 else
2180   if test -n "$CC"; then
2181   ac_cv_prog_CC="$CC" # Let the user override the test.
2182 else
2183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2184 for as_dir in $PATH
2185 do
2186   IFS=$as_save_IFS
2187   test -z "$as_dir" && as_dir=.
2188   for ac_exec_ext in '' $ac_executable_extensions; do
2189   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2190     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2191     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2192     break 2
2193   fi
2194 done
2195 done
2196 IFS=$as_save_IFS
2197
2198 fi
2199 fi
2200 CC=$ac_cv_prog_CC
2201 if test -n "$CC"; then
2202   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2203 $as_echo "$CC" >&6; }
2204 else
2205   { $as_echo "$as_me:$LINENO: result: no" >&5
2206 $as_echo "no" >&6; }
2207 fi
2208
2209
2210 fi
2211 if test -z "$ac_cv_prog_CC"; then
2212   ac_ct_CC=$CC
2213   # Extract the first word of "gcc", so it can be a program name with args.
2214 set dummy gcc; ac_word=$2
2215 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2216 $as_echo_n "checking for $ac_word... " >&6; }
2217 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2218   $as_echo_n "(cached) " >&6
2219 else
2220   if test -n "$ac_ct_CC"; then
2221   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2222 else
2223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2224 for as_dir in $PATH
2225 do
2226   IFS=$as_save_IFS
2227   test -z "$as_dir" && as_dir=.
2228   for ac_exec_ext in '' $ac_executable_extensions; do
2229   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2230     ac_cv_prog_ac_ct_CC="gcc"
2231     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2232     break 2
2233   fi
2234 done
2235 done
2236 IFS=$as_save_IFS
2237
2238 fi
2239 fi
2240 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2241 if test -n "$ac_ct_CC"; then
2242   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2243 $as_echo "$ac_ct_CC" >&6; }
2244 else
2245   { $as_echo "$as_me:$LINENO: result: no" >&5
2246 $as_echo "no" >&6; }
2247 fi
2248
2249   if test "x$ac_ct_CC" = x; then
2250     CC=""
2251   else
2252     case $cross_compiling:$ac_tool_warned in
2253 yes:)
2254 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2255 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2256 ac_tool_warned=yes ;;
2257 esac
2258     CC=$ac_ct_CC
2259   fi
2260 else
2261   CC="$ac_cv_prog_CC"
2262 fi
2263
2264 if test -z "$CC"; then
2265           if test -n "$ac_tool_prefix"; then
2266     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2267 set dummy ${ac_tool_prefix}cc; ac_word=$2
2268 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2269 $as_echo_n "checking for $ac_word... " >&6; }
2270 if test "${ac_cv_prog_CC+set}" = set; then
2271   $as_echo_n "(cached) " >&6
2272 else
2273   if test -n "$CC"; then
2274   ac_cv_prog_CC="$CC" # Let the user override the test.
2275 else
2276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2277 for as_dir in $PATH
2278 do
2279   IFS=$as_save_IFS
2280   test -z "$as_dir" && as_dir=.
2281   for ac_exec_ext in '' $ac_executable_extensions; do
2282   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2283     ac_cv_prog_CC="${ac_tool_prefix}cc"
2284     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2285     break 2
2286   fi
2287 done
2288 done
2289 IFS=$as_save_IFS
2290
2291 fi
2292 fi
2293 CC=$ac_cv_prog_CC
2294 if test -n "$CC"; then
2295   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2296 $as_echo "$CC" >&6; }
2297 else
2298   { $as_echo "$as_me:$LINENO: result: no" >&5
2299 $as_echo "no" >&6; }
2300 fi
2301
2302
2303   fi
2304 fi
2305 if test -z "$CC"; then
2306   # Extract the first word of "cc", so it can be a program name with args.
2307 set dummy cc; ac_word=$2
2308 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2309 $as_echo_n "checking for $ac_word... " >&6; }
2310 if test "${ac_cv_prog_CC+set}" = set; then
2311   $as_echo_n "(cached) " >&6
2312 else
2313   if test -n "$CC"; then
2314   ac_cv_prog_CC="$CC" # Let the user override the test.
2315 else
2316   ac_prog_rejected=no
2317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2318 for as_dir in $PATH
2319 do
2320   IFS=$as_save_IFS
2321   test -z "$as_dir" && as_dir=.
2322   for ac_exec_ext in '' $ac_executable_extensions; do
2323   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2324     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2325        ac_prog_rejected=yes
2326        continue
2327      fi
2328     ac_cv_prog_CC="cc"
2329     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2330     break 2
2331   fi
2332 done
2333 done
2334 IFS=$as_save_IFS
2335
2336 if test $ac_prog_rejected = yes; then
2337   # We found a bogon in the path, so make sure we never use it.
2338   set dummy $ac_cv_prog_CC
2339   shift
2340   if test $# != 0; then
2341     # We chose a different compiler from the bogus one.
2342     # However, it has the same basename, so the bogon will be chosen
2343     # first if we set CC to just the basename; use the full file name.
2344     shift
2345     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2346   fi
2347 fi
2348 fi
2349 fi
2350 CC=$ac_cv_prog_CC
2351 if test -n "$CC"; then
2352   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2353 $as_echo "$CC" >&6; }
2354 else
2355   { $as_echo "$as_me:$LINENO: result: no" >&5
2356 $as_echo "no" >&6; }
2357 fi
2358
2359
2360 fi
2361 if test -z "$CC"; then
2362   if test -n "$ac_tool_prefix"; then
2363   for ac_prog in cl.exe
2364   do
2365     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2366 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2367 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2368 $as_echo_n "checking for $ac_word... " >&6; }
2369 if test "${ac_cv_prog_CC+set}" = set; then
2370   $as_echo_n "(cached) " >&6
2371 else
2372   if test -n "$CC"; then
2373   ac_cv_prog_CC="$CC" # Let the user override the test.
2374 else
2375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2376 for as_dir in $PATH
2377 do
2378   IFS=$as_save_IFS
2379   test -z "$as_dir" && as_dir=.
2380   for ac_exec_ext in '' $ac_executable_extensions; do
2381   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2382     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2383     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2384     break 2
2385   fi
2386 done
2387 done
2388 IFS=$as_save_IFS
2389
2390 fi
2391 fi
2392 CC=$ac_cv_prog_CC
2393 if test -n "$CC"; then
2394   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2395 $as_echo "$CC" >&6; }
2396 else
2397   { $as_echo "$as_me:$LINENO: result: no" >&5
2398 $as_echo "no" >&6; }
2399 fi
2400
2401
2402     test -n "$CC" && break
2403   done
2404 fi
2405 if test -z "$CC"; then
2406   ac_ct_CC=$CC
2407   for ac_prog in cl.exe
2408 do
2409   # Extract the first word of "$ac_prog", so it can be a program name with args.
2410 set dummy $ac_prog; ac_word=$2
2411 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2412 $as_echo_n "checking for $ac_word... " >&6; }
2413 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2414   $as_echo_n "(cached) " >&6
2415 else
2416   if test -n "$ac_ct_CC"; then
2417   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2418 else
2419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2420 for as_dir in $PATH
2421 do
2422   IFS=$as_save_IFS
2423   test -z "$as_dir" && as_dir=.
2424   for ac_exec_ext in '' $ac_executable_extensions; do
2425   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2426     ac_cv_prog_ac_ct_CC="$ac_prog"
2427     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2428     break 2
2429   fi
2430 done
2431 done
2432 IFS=$as_save_IFS
2433
2434 fi
2435 fi
2436 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2437 if test -n "$ac_ct_CC"; then
2438   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2439 $as_echo "$ac_ct_CC" >&6; }
2440 else
2441   { $as_echo "$as_me:$LINENO: result: no" >&5
2442 $as_echo "no" >&6; }
2443 fi
2444
2445
2446   test -n "$ac_ct_CC" && break
2447 done
2448
2449   if test "x$ac_ct_CC" = x; then
2450     CC=""
2451   else
2452     case $cross_compiling:$ac_tool_warned in
2453 yes:)
2454 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2455 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2456 ac_tool_warned=yes ;;
2457 esac
2458     CC=$ac_ct_CC
2459   fi
2460 fi
2461
2462 fi
2463
2464
2465 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2466 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2467 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2468 See \`config.log' for more details." >&5
2469 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2470 See \`config.log' for more details." >&2;}
2471    { (exit 1); exit 1; }; }; }
2472
2473 # Provide some information about the compiler.
2474 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2475 set X $ac_compile
2476 ac_compiler=$2
2477 { (ac_try="$ac_compiler --version >&5"
2478 case "(($ac_try" in
2479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2480   *) ac_try_echo=$ac_try;;
2481 esac
2482 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2483 $as_echo "$ac_try_echo") >&5
2484   (eval "$ac_compiler --version >&5") 2>&5
2485   ac_status=$?
2486   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2487   (exit $ac_status); }
2488 { (ac_try="$ac_compiler -v >&5"
2489 case "(($ac_try" in
2490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2491   *) ac_try_echo=$ac_try;;
2492 esac
2493 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2494 $as_echo "$ac_try_echo") >&5
2495   (eval "$ac_compiler -v >&5") 2>&5
2496   ac_status=$?
2497   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2498   (exit $ac_status); }
2499 { (ac_try="$ac_compiler -V >&5"
2500 case "(($ac_try" in
2501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2502   *) ac_try_echo=$ac_try;;
2503 esac
2504 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2505 $as_echo "$ac_try_echo") >&5
2506   (eval "$ac_compiler -V >&5") 2>&5
2507   ac_status=$?
2508   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509   (exit $ac_status); }
2510
2511 cat >conftest.$ac_ext <<_ACEOF
2512 /* confdefs.h.  */
2513 _ACEOF
2514 cat confdefs.h >>conftest.$ac_ext
2515 cat >>conftest.$ac_ext <<_ACEOF
2516 /* end confdefs.h.  */
2517
2518 int
2519 main ()
2520 {
2521
2522   ;
2523   return 0;
2524 }
2525 _ACEOF
2526 ac_clean_files_save=$ac_clean_files
2527 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2528 # Try to create an executable without -o first, disregard a.out.
2529 # It will help us diagnose broken compilers, and finding out an intuition
2530 # of exeext.
2531 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2532 $as_echo_n "checking for C compiler default output file name... " >&6; }
2533 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2534
2535 # The possible output files:
2536 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2537
2538 ac_rmfiles=
2539 for ac_file in $ac_files
2540 do
2541   case $ac_file in
2542     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2543     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2544   esac
2545 done
2546 rm -f $ac_rmfiles
2547
2548 if { (ac_try="$ac_link_default"
2549 case "(($ac_try" in
2550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2551   *) ac_try_echo=$ac_try;;
2552 esac
2553 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2554 $as_echo "$ac_try_echo") >&5
2555   (eval "$ac_link_default") 2>&5
2556   ac_status=$?
2557   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558   (exit $ac_status); }; then
2559   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2560 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2561 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2562 # so that the user can short-circuit this test for compilers unknown to
2563 # Autoconf.
2564 for ac_file in $ac_files ''
2565 do
2566   test -f "$ac_file" || continue
2567   case $ac_file in
2568     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2569         ;;
2570     [ab].out )
2571         # We found the default executable, but exeext='' is most
2572         # certainly right.
2573         break;;
2574     *.* )
2575         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2576         then :; else
2577            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2578         fi
2579         # We set ac_cv_exeext here because the later test for it is not
2580         # safe: cross compilers may not add the suffix if given an `-o'
2581         # argument, so we may need to know it at that point already.
2582         # Even if this section looks crufty: it has the advantage of
2583         # actually working.
2584         break;;
2585     * )
2586         break;;
2587   esac
2588 done
2589 test "$ac_cv_exeext" = no && ac_cv_exeext=
2590
2591 else
2592   ac_file=''
2593 fi
2594
2595 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2596 $as_echo "$ac_file" >&6; }
2597 if test -z "$ac_file"; then
2598   $as_echo "$as_me: failed program was:" >&5
2599 sed 's/^/| /' conftest.$ac_ext >&5
2600
2601 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2602 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2603 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2604 See \`config.log' for more details." >&5
2605 $as_echo "$as_me: error: C compiler cannot create executables
2606 See \`config.log' for more details." >&2;}
2607    { (exit 77); exit 77; }; }; }
2608 fi
2609
2610 ac_exeext=$ac_cv_exeext
2611
2612 # Check that the compiler produces executables we can run.  If not, either
2613 # the compiler is broken, or we cross compile.
2614 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2615 $as_echo_n "checking whether the C compiler works... " >&6; }
2616 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2617 # If not cross compiling, check that we can run a simple program.
2618 if test "$cross_compiling" != yes; then
2619   if { ac_try='./$ac_file'
2620   { (case "(($ac_try" in
2621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2622   *) ac_try_echo=$ac_try;;
2623 esac
2624 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2625 $as_echo "$ac_try_echo") >&5
2626   (eval "$ac_try") 2>&5
2627   ac_status=$?
2628   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629   (exit $ac_status); }; }; then
2630     cross_compiling=no
2631   else
2632     if test "$cross_compiling" = maybe; then
2633         cross_compiling=yes
2634     else
2635         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2636 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2637 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2638 If you meant to cross compile, use \`--host'.
2639 See \`config.log' for more details." >&5
2640 $as_echo "$as_me: error: cannot run C compiled programs.
2641 If you meant to cross compile, use \`--host'.
2642 See \`config.log' for more details." >&2;}
2643    { (exit 1); exit 1; }; }; }
2644     fi
2645   fi
2646 fi
2647 { $as_echo "$as_me:$LINENO: result: yes" >&5
2648 $as_echo "yes" >&6; }
2649
2650 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2651 ac_clean_files=$ac_clean_files_save
2652 # Check that the compiler produces executables we can run.  If not, either
2653 # the compiler is broken, or we cross compile.
2654 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2655 $as_echo_n "checking whether we are cross compiling... " >&6; }
2656 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2657 $as_echo "$cross_compiling" >&6; }
2658
2659 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2660 $as_echo_n "checking for suffix of executables... " >&6; }
2661 if { (ac_try="$ac_link"
2662 case "(($ac_try" in
2663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2664   *) ac_try_echo=$ac_try;;
2665 esac
2666 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2667 $as_echo "$ac_try_echo") >&5
2668   (eval "$ac_link") 2>&5
2669   ac_status=$?
2670   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671   (exit $ac_status); }; then
2672   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2673 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2674 # work properly (i.e., refer to `conftest.exe'), while it won't with
2675 # `rm'.
2676 for ac_file in conftest.exe conftest conftest.*; do
2677   test -f "$ac_file" || continue
2678   case $ac_file in
2679     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2680     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2681           break;;
2682     * ) break;;
2683   esac
2684 done
2685 else
2686   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2687 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2688 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2689 See \`config.log' for more details." >&5
2690 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2691 See \`config.log' for more details." >&2;}
2692    { (exit 1); exit 1; }; }; }
2693 fi
2694
2695 rm -f conftest$ac_cv_exeext
2696 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2697 $as_echo "$ac_cv_exeext" >&6; }
2698
2699 rm -f conftest.$ac_ext
2700 EXEEXT=$ac_cv_exeext
2701 ac_exeext=$EXEEXT
2702 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2703 $as_echo_n "checking for suffix of object files... " >&6; }
2704 if test "${ac_cv_objext+set}" = set; then
2705   $as_echo_n "(cached) " >&6
2706 else
2707   cat >conftest.$ac_ext <<_ACEOF
2708 /* confdefs.h.  */
2709 _ACEOF
2710 cat confdefs.h >>conftest.$ac_ext
2711 cat >>conftest.$ac_ext <<_ACEOF
2712 /* end confdefs.h.  */
2713
2714 int
2715 main ()
2716 {
2717
2718   ;
2719   return 0;
2720 }
2721 _ACEOF
2722 rm -f conftest.o conftest.obj
2723 if { (ac_try="$ac_compile"
2724 case "(($ac_try" in
2725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2726   *) ac_try_echo=$ac_try;;
2727 esac
2728 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2729 $as_echo "$ac_try_echo") >&5
2730   (eval "$ac_compile") 2>&5
2731   ac_status=$?
2732   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733   (exit $ac_status); }; then
2734   for ac_file in conftest.o conftest.obj conftest.*; do
2735   test -f "$ac_file" || continue;
2736   case $ac_file in
2737     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2738     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2739        break;;
2740   esac
2741 done
2742 else
2743   $as_echo "$as_me: failed program was:" >&5
2744 sed 's/^/| /' conftest.$ac_ext >&5
2745
2746 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2747 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2748 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2749 See \`config.log' for more details." >&5
2750 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2751 See \`config.log' for more details." >&2;}
2752    { (exit 1); exit 1; }; }; }
2753 fi
2754
2755 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2756 fi
2757 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2758 $as_echo "$ac_cv_objext" >&6; }
2759 OBJEXT=$ac_cv_objext
2760 ac_objext=$OBJEXT
2761 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2762 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2763 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2764   $as_echo_n "(cached) " >&6
2765 else
2766   cat >conftest.$ac_ext <<_ACEOF
2767 /* confdefs.h.  */
2768 _ACEOF
2769 cat confdefs.h >>conftest.$ac_ext
2770 cat >>conftest.$ac_ext <<_ACEOF
2771 /* end confdefs.h.  */
2772
2773 int
2774 main ()
2775 {
2776 #ifndef __GNUC__
2777        choke me
2778 #endif
2779
2780   ;
2781   return 0;
2782 }
2783 _ACEOF
2784 rm -f conftest.$ac_objext
2785 if { (ac_try="$ac_compile"
2786 case "(($ac_try" in
2787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2788   *) ac_try_echo=$ac_try;;
2789 esac
2790 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2791 $as_echo "$ac_try_echo") >&5
2792   (eval "$ac_compile") 2>conftest.er1
2793   ac_status=$?
2794   grep -v '^ *+' conftest.er1 >conftest.err
2795   rm -f conftest.er1
2796   cat conftest.err >&5
2797   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798   (exit $ac_status); } && {
2799          test -z "$ac_c_werror_flag" ||
2800          test ! -s conftest.err
2801        } && test -s conftest.$ac_objext; then
2802   ac_compiler_gnu=yes
2803 else
2804   $as_echo "$as_me: failed program was:" >&5
2805 sed 's/^/| /' conftest.$ac_ext >&5
2806
2807         ac_compiler_gnu=no
2808 fi
2809
2810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2811 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2812
2813 fi
2814 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2815 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2816 if test $ac_compiler_gnu = yes; then
2817   GCC=yes
2818 else
2819   GCC=
2820 fi
2821 ac_test_CFLAGS=${CFLAGS+set}
2822 ac_save_CFLAGS=$CFLAGS
2823 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2824 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2825 if test "${ac_cv_prog_cc_g+set}" = set; then
2826   $as_echo_n "(cached) " >&6
2827 else
2828   ac_save_c_werror_flag=$ac_c_werror_flag
2829    ac_c_werror_flag=yes
2830    ac_cv_prog_cc_g=no
2831    CFLAGS="-g"
2832    cat >conftest.$ac_ext <<_ACEOF
2833 /* confdefs.h.  */
2834 _ACEOF
2835 cat confdefs.h >>conftest.$ac_ext
2836 cat >>conftest.$ac_ext <<_ACEOF
2837 /* end confdefs.h.  */
2838
2839 int
2840 main ()
2841 {
2842
2843   ;
2844   return 0;
2845 }
2846 _ACEOF
2847 rm -f conftest.$ac_objext
2848 if { (ac_try="$ac_compile"
2849 case "(($ac_try" in
2850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2851   *) ac_try_echo=$ac_try;;
2852 esac
2853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2854 $as_echo "$ac_try_echo") >&5
2855   (eval "$ac_compile") 2>conftest.er1
2856   ac_status=$?
2857   grep -v '^ *+' conftest.er1 >conftest.err
2858   rm -f conftest.er1
2859   cat conftest.err >&5
2860   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861   (exit $ac_status); } && {
2862          test -z "$ac_c_werror_flag" ||
2863          test ! -s conftest.err
2864        } && test -s conftest.$ac_objext; then
2865   ac_cv_prog_cc_g=yes
2866 else
2867   $as_echo "$as_me: failed program was:" >&5
2868 sed 's/^/| /' conftest.$ac_ext >&5
2869
2870         CFLAGS=""
2871       cat >conftest.$ac_ext <<_ACEOF
2872 /* confdefs.h.  */
2873 _ACEOF
2874 cat confdefs.h >>conftest.$ac_ext
2875 cat >>conftest.$ac_ext <<_ACEOF
2876 /* end confdefs.h.  */
2877
2878 int
2879 main ()
2880 {
2881
2882   ;
2883   return 0;
2884 }
2885 _ACEOF
2886 rm -f conftest.$ac_objext
2887 if { (ac_try="$ac_compile"
2888 case "(($ac_try" in
2889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2890   *) ac_try_echo=$ac_try;;
2891 esac
2892 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2893 $as_echo "$ac_try_echo") >&5
2894   (eval "$ac_compile") 2>conftest.er1
2895   ac_status=$?
2896   grep -v '^ *+' conftest.er1 >conftest.err
2897   rm -f conftest.er1
2898   cat conftest.err >&5
2899   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900   (exit $ac_status); } && {
2901          test -z "$ac_c_werror_flag" ||
2902          test ! -s conftest.err
2903        } && test -s conftest.$ac_objext; then
2904   :
2905 else
2906   $as_echo "$as_me: failed program was:" >&5
2907 sed 's/^/| /' conftest.$ac_ext >&5
2908
2909         ac_c_werror_flag=$ac_save_c_werror_flag
2910          CFLAGS="-g"
2911          cat >conftest.$ac_ext <<_ACEOF
2912 /* confdefs.h.  */
2913 _ACEOF
2914 cat confdefs.h >>conftest.$ac_ext
2915 cat >>conftest.$ac_ext <<_ACEOF
2916 /* end confdefs.h.  */
2917
2918 int
2919 main ()
2920 {
2921
2922   ;
2923   return 0;
2924 }
2925 _ACEOF
2926 rm -f conftest.$ac_objext
2927 if { (ac_try="$ac_compile"
2928 case "(($ac_try" in
2929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2930   *) ac_try_echo=$ac_try;;
2931 esac
2932 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2933 $as_echo "$ac_try_echo") >&5
2934   (eval "$ac_compile") 2>conftest.er1
2935   ac_status=$?
2936   grep -v '^ *+' conftest.er1 >conftest.err
2937   rm -f conftest.er1
2938   cat conftest.err >&5
2939   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940   (exit $ac_status); } && {
2941          test -z "$ac_c_werror_flag" ||
2942          test ! -s conftest.err
2943        } && test -s conftest.$ac_objext; then
2944   ac_cv_prog_cc_g=yes
2945 else
2946   $as_echo "$as_me: failed program was:" >&5
2947 sed 's/^/| /' conftest.$ac_ext >&5
2948
2949
2950 fi
2951
2952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2953 fi
2954
2955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2956 fi
2957
2958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2959    ac_c_werror_flag=$ac_save_c_werror_flag
2960 fi
2961 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2962 $as_echo "$ac_cv_prog_cc_g" >&6; }
2963 if test "$ac_test_CFLAGS" = set; then
2964   CFLAGS=$ac_save_CFLAGS
2965 elif test $ac_cv_prog_cc_g = yes; then
2966   if test "$GCC" = yes; then
2967     CFLAGS="-g -O2"
2968   else
2969     CFLAGS="-g"
2970   fi
2971 else
2972   if test "$GCC" = yes; then
2973     CFLAGS="-O2"
2974   else
2975     CFLAGS=
2976   fi
2977 fi
2978 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2979 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2980 if test "${ac_cv_prog_cc_c89+set}" = set; then
2981   $as_echo_n "(cached) " >&6
2982 else
2983   ac_cv_prog_cc_c89=no
2984 ac_save_CC=$CC
2985 cat >conftest.$ac_ext <<_ACEOF
2986 /* confdefs.h.  */
2987 _ACEOF
2988 cat confdefs.h >>conftest.$ac_ext
2989 cat >>conftest.$ac_ext <<_ACEOF
2990 /* end confdefs.h.  */
2991 #include <stdarg.h>
2992 #include <stdio.h>
2993 #include <sys/types.h>
2994 #include <sys/stat.h>
2995 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2996 struct buf { int x; };
2997 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2998 static char *e (p, i)
2999      char **p;
3000      int i;
3001 {
3002   return p[i];
3003 }
3004 static char *f (char * (*g) (char **, int), char **p, ...)
3005 {
3006   char *s;
3007   va_list v;
3008   va_start (v,p);
3009   s = g (p, va_arg (v,int));
3010   va_end (v);
3011   return s;
3012 }
3013
3014 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3015    function prototypes and stuff, but not '\xHH' hex character constants.
3016    These don't provoke an error unfortunately, instead are silently treated
3017    as 'x'.  The following induces an error, until -std is added to get
3018    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3019    array size at least.  It's necessary to write '\x00'==0 to get something
3020    that's true only with -std.  */
3021 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3022
3023 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3024    inside strings and character constants.  */
3025 #define FOO(x) 'x'
3026 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3027
3028 int test (int i, double x);
3029 struct s1 {int (*f) (int a);};
3030 struct s2 {int (*f) (double a);};
3031 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3032 int argc;
3033 char **argv;
3034 int
3035 main ()
3036 {
3037 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3038   ;
3039   return 0;
3040 }
3041 _ACEOF
3042 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3043         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3044 do
3045   CC="$ac_save_CC $ac_arg"
3046   rm -f conftest.$ac_objext
3047 if { (ac_try="$ac_compile"
3048 case "(($ac_try" in
3049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3050   *) ac_try_echo=$ac_try;;
3051 esac
3052 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3053 $as_echo "$ac_try_echo") >&5
3054   (eval "$ac_compile") 2>conftest.er1
3055   ac_status=$?
3056   grep -v '^ *+' conftest.er1 >conftest.err
3057   rm -f conftest.er1
3058   cat conftest.err >&5
3059   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060   (exit $ac_status); } && {
3061          test -z "$ac_c_werror_flag" ||
3062          test ! -s conftest.err
3063        } && test -s conftest.$ac_objext; then
3064   ac_cv_prog_cc_c89=$ac_arg
3065 else
3066   $as_echo "$as_me: failed program was:" >&5
3067 sed 's/^/| /' conftest.$ac_ext >&5
3068
3069
3070 fi
3071
3072 rm -f core conftest.err conftest.$ac_objext
3073   test "x$ac_cv_prog_cc_c89" != "xno" && break
3074 done
3075 rm -f conftest.$ac_ext
3076 CC=$ac_save_CC
3077
3078 fi
3079 # AC_CACHE_VAL
3080 case "x$ac_cv_prog_cc_c89" in
3081   x)
3082     { $as_echo "$as_me:$LINENO: result: none needed" >&5
3083 $as_echo "none needed" >&6; } ;;
3084   xno)
3085     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3086 $as_echo "unsupported" >&6; } ;;
3087   *)
3088     CC="$CC $ac_cv_prog_cc_c89"
3089     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3090 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3091 esac
3092
3093
3094 ac_ext=c
3095 ac_cpp='$CPP $CPPFLAGS'
3096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3099
3100 # Check whether --enable-shared was given.
3101 if test "${enable_shared+set}" = set; then
3102   enableval=$enable_shared; p=${PACKAGE-default}
3103     case $enableval in
3104     yes) enable_shared=yes ;;
3105     no) enable_shared=no ;;
3106     *)
3107       enable_shared=no
3108       # Look at the argument we got.  We use all the common list separators.
3109       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3110       for pkg in $enableval; do
3111         IFS="$lt_save_ifs"
3112         if test "X$pkg" = "X$p"; then
3113           enable_shared=yes
3114         fi
3115       done
3116       IFS="$lt_save_ifs"
3117       ;;
3118     esac
3119 else
3120   enable_shared=yes
3121 fi
3122
3123
3124 # Check whether --enable-static was given.
3125 if test "${enable_static+set}" = set; then
3126   enableval=$enable_static; p=${PACKAGE-default}
3127     case $enableval in
3128     yes) enable_static=yes ;;
3129     no) enable_static=no ;;
3130     *)
3131      enable_static=no
3132       # Look at the argument we got.  We use all the common list separators.
3133       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3134       for pkg in $enableval; do
3135         IFS="$lt_save_ifs"
3136         if test "X$pkg" = "X$p"; then
3137           enable_static=yes
3138         fi
3139       done
3140       IFS="$lt_save_ifs"
3141       ;;
3142     esac
3143 else
3144   enable_static=yes
3145 fi
3146
3147
3148 # Check whether --enable-fast-install was given.
3149 if test "${enable_fast_install+set}" = set; then
3150   enableval=$enable_fast_install; p=${PACKAGE-default}
3151     case $enableval in
3152     yes) enable_fast_install=yes ;;
3153     no) enable_fast_install=no ;;
3154     *)
3155       enable_fast_install=no
3156       # Look at the argument we got.  We use all the common list separators.
3157       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3158       for pkg in $enableval; do
3159         IFS="$lt_save_ifs"
3160         if test "X$pkg" = "X$p"; then
3161           enable_fast_install=yes
3162         fi
3163       done
3164       IFS="$lt_save_ifs"
3165       ;;
3166     esac
3167 else
3168   enable_fast_install=yes
3169 fi
3170
3171
3172 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3173 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3174 if test "${lt_cv_path_SED+set}" = set; then
3175   $as_echo_n "(cached) " >&6
3176 else
3177   # Loop through the user's path and test for sed and gsed.
3178 # Then use that list of sed's as ones to test for truncation.
3179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3180 for as_dir in $PATH
3181 do
3182   IFS=$as_save_IFS
3183   test -z "$as_dir" && as_dir=.
3184   for lt_ac_prog in sed gsed; do
3185     for ac_exec_ext in '' $ac_executable_extensions; do
3186       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3187         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3188       fi
3189     done
3190   done
3191 done
3192 lt_ac_max=0
3193 lt_ac_count=0
3194 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3195 # along with /bin/sed that truncates output.
3196 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3197   test ! -f $lt_ac_sed && break
3198   cat /dev/null > conftest.in
3199   lt_ac_count=0
3200   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3201   # Check for GNU sed and select it if it is found.
3202   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3203     lt_cv_path_SED=$lt_ac_sed
3204     break
3205   fi
3206   while true; do
3207     cat conftest.in conftest.in >conftest.tmp
3208     mv conftest.tmp conftest.in
3209     cp conftest.in conftest.nl
3210     echo >>conftest.nl
3211     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3212     cmp -s conftest.out conftest.nl || break
3213     # 10000 chars as input seems more than enough
3214     test $lt_ac_count -gt 10 && break
3215     lt_ac_count=`expr $lt_ac_count + 1`
3216     if test $lt_ac_count -gt $lt_ac_max; then
3217       lt_ac_max=$lt_ac_count
3218       lt_cv_path_SED=$lt_ac_sed
3219     fi
3220   done
3221 done
3222 SED=$lt_cv_path_SED
3223
3224 fi
3225
3226 { $as_echo "$as_me:$LINENO: result: $SED" >&5
3227 $as_echo "$SED" >&6; }
3228
3229 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3230 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3231 if test "${ac_cv_path_GREP+set}" = set; then
3232   $as_echo_n "(cached) " >&6
3233 else
3234   if test -z "$GREP"; then
3235   ac_path_GREP_found=false
3236   # Loop through the user's path and test for each of PROGNAME-LIST
3237   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3238 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3239 do
3240   IFS=$as_save_IFS
3241   test -z "$as_dir" && as_dir=.
3242   for ac_prog in grep ggrep; do
3243     for ac_exec_ext in '' $ac_executable_extensions; do
3244       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3245       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3246 # Check for GNU ac_path_GREP and select it if it is found.
3247   # Check for GNU $ac_path_GREP
3248 case `"$ac_path_GREP" --version 2>&1` in
3249 *GNU*)
3250   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3251 *)
3252   ac_count=0
3253   $as_echo_n 0123456789 >"conftest.in"
3254   while :
3255   do
3256     cat "conftest.in" "conftest.in" >"conftest.tmp"
3257     mv "conftest.tmp" "conftest.in"
3258     cp "conftest.in" "conftest.nl"
3259     $as_echo 'GREP' >> "conftest.nl"
3260     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3261     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3262     ac_count=`expr $ac_count + 1`
3263     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3264       # Best one so far, save it but keep looking for a better one
3265       ac_cv_path_GREP="$ac_path_GREP"
3266       ac_path_GREP_max=$ac_count
3267     fi
3268     # 10*(2^10) chars as input seems more than enough
3269     test $ac_count -gt 10 && break
3270   done
3271   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3272 esac
3273
3274       $ac_path_GREP_found && break 3
3275     done
3276   done
3277 done
3278 IFS=$as_save_IFS
3279   if test -z "$ac_cv_path_GREP"; then
3280     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3281 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3282    { (exit 1); exit 1; }; }
3283   fi
3284 else
3285   ac_cv_path_GREP=$GREP
3286 fi
3287
3288 fi
3289 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3290 $as_echo "$ac_cv_path_GREP" >&6; }
3291  GREP="$ac_cv_path_GREP"
3292
3293
3294 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3295 $as_echo_n "checking for egrep... " >&6; }
3296 if test "${ac_cv_path_EGREP+set}" = set; then
3297   $as_echo_n "(cached) " >&6
3298 else
3299   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3300    then ac_cv_path_EGREP="$GREP -E"
3301    else
3302      if test -z "$EGREP"; then
3303   ac_path_EGREP_found=false
3304   # Loop through the user's path and test for each of PROGNAME-LIST
3305   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3306 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3307 do
3308   IFS=$as_save_IFS
3309   test -z "$as_dir" && as_dir=.
3310   for ac_prog in egrep; do
3311     for ac_exec_ext in '' $ac_executable_extensions; do
3312       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3313       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3314 # Check for GNU ac_path_EGREP and select it if it is found.
3315   # Check for GNU $ac_path_EGREP
3316 case `"$ac_path_EGREP" --version 2>&1` in
3317 *GNU*)
3318   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3319 *)
3320   ac_count=0
3321   $as_echo_n 0123456789 >"conftest.in"
3322   while :
3323   do
3324     cat "conftest.in" "conftest.in" >"conftest.tmp"
3325     mv "conftest.tmp" "conftest.in"
3326     cp "conftest.in" "conftest.nl"
3327     $as_echo 'EGREP' >> "conftest.nl"
3328     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3329     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3330     ac_count=`expr $ac_count + 1`
3331     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3332       # Best one so far, save it but keep looking for a better one
3333       ac_cv_path_EGREP="$ac_path_EGREP"
3334       ac_path_EGREP_max=$ac_count
3335     fi
3336     # 10*(2^10) chars as input seems more than enough
3337     test $ac_count -gt 10 && break
3338   done
3339   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3340 esac
3341
3342       $ac_path_EGREP_found && break 3
3343     done
3344   done
3345 done
3346 IFS=$as_save_IFS
3347   if test -z "$ac_cv_path_EGREP"; then
3348     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3349 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3350    { (exit 1); exit 1; }; }
3351   fi
3352 else
3353   ac_cv_path_EGREP=$EGREP
3354 fi
3355
3356    fi
3357 fi
3358 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3359 $as_echo "$ac_cv_path_EGREP" >&6; }
3360  EGREP="$ac_cv_path_EGREP"
3361
3362
3363
3364 # Check whether --with-gnu-ld was given.
3365 if test "${with_gnu_ld+set}" = set; then
3366   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3367 else
3368   with_gnu_ld=no
3369 fi
3370
3371 ac_prog=ld
3372 if test "$GCC" = yes; then
3373   # Check if gcc -print-prog-name=ld gives a path.
3374   { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3375 $as_echo_n "checking for ld used by $CC... " >&6; }
3376   case $host in
3377   *-*-mingw*)
3378     # gcc leaves a trailing carriage return which upsets mingw
3379     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3380   *)
3381     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3382   esac
3383   case $ac_prog in
3384     # Accept absolute paths.
3385     [\\/]* | ?:[\\/]*)
3386       re_direlt='/[^/][^/]*/\.\./'
3387       # Canonicalize the pathname of ld
3388       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3389       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3390         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3391       done
3392       test -z "$LD" && LD="$ac_prog"
3393       ;;
3394   "")
3395     # If it fails, then pretend we aren't using GCC.
3396     ac_prog=ld
3397     ;;
3398   *)
3399     # If it is relative, then search for the first ld in PATH.
3400     with_gnu_ld=unknown
3401     ;;
3402   esac
3403 elif test "$with_gnu_ld" = yes; then
3404   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
3405 $as_echo_n "checking for GNU ld... " >&6; }
3406 else
3407   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3408 $as_echo_n "checking for non-GNU ld... " >&6; }
3409 fi
3410 if test "${lt_cv_path_LD+set}" = set; then
3411   $as_echo_n "(cached) " >&6
3412 else
3413   if test -z "$LD"; then
3414   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3415   for ac_dir in $PATH; do
3416     IFS="$lt_save_ifs"
3417     test -z "$ac_dir" && ac_dir=.
3418     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3419       lt_cv_path_LD="$ac_dir/$ac_prog"
3420       # Check to see if the program is GNU ld.  I'd rather use --version,
3421       # but apparently some GNU ld's only accept -v.
3422       # Break only if it was the GNU/non-GNU ld that we prefer.
3423       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3424       *GNU* | *'with BFD'*)
3425         test "$with_gnu_ld" != no && break
3426         ;;
3427       *)
3428         test "$with_gnu_ld" != yes && break
3429         ;;
3430       esac
3431     fi
3432   done
3433   IFS="$lt_save_ifs"
3434 else
3435   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3436 fi
3437 fi
3438
3439 LD="$lt_cv_path_LD"
3440 if test -n "$LD"; then
3441   { $as_echo "$as_me:$LINENO: result: $LD" >&5
3442 $as_echo "$LD" >&6; }
3443 else
3444   { $as_echo "$as_me:$LINENO: result: no" >&5
3445 $as_echo "no" >&6; }
3446 fi
3447 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3448 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3449    { (exit 1); exit 1; }; }
3450 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3451 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
3452 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3453   $as_echo_n "(cached) " >&6
3454 else
3455   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3456 case `$LD -v 2>&1 </dev/null` in
3457 *GNU* | *'with BFD'*)
3458   lt_cv_prog_gnu_ld=yes
3459   ;;
3460 *)
3461   lt_cv_prog_gnu_ld=no
3462   ;;
3463 esac
3464 fi
3465 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3466 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
3467 with_gnu_ld=$lt_cv_prog_gnu_ld
3468
3469
3470 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3471 $as_echo_n "checking for $LD option to reload object files... " >&6; }
3472 if test "${lt_cv_ld_reload_flag+set}" = set; then
3473   $as_echo_n "(cached) " >&6
3474 else
3475   lt_cv_ld_reload_flag='-r'
3476 fi
3477 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3478 $as_echo "$lt_cv_ld_reload_flag" >&6; }
3479 reload_flag=$lt_cv_ld_reload_flag
3480 case $reload_flag in
3481 "" | " "*) ;;
3482 *) reload_flag=" $reload_flag" ;;
3483 esac
3484 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3485
3486 { $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3487 $as_echo_n "checking for BSD-compatible nm... " >&6; }
3488 if test "${lt_cv_path_NM+set}" = set; then
3489   $as_echo_n "(cached) " >&6
3490 else
3491   if test -n "$NM"; then
3492   # Let the user override the test.
3493   lt_cv_path_NM="$NM"
3494 else
3495   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3496   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3497     IFS="$lt_save_ifs"
3498     test -z "$ac_dir" && ac_dir=.
3499     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3500     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3501       # Check to see if the nm accepts a BSD-compat flag.
3502       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3503       #   nm: unknown option "B" ignored
3504       # Tru64's nm complains that /dev/null is an invalid object file
3505       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3506       */dev/null* | *'Invalid file or object type'*)
3507         lt_cv_path_NM="$tmp_nm -B"
3508         break
3509         ;;
3510       *)
3511         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3512         */dev/null*)
3513           lt_cv_path_NM="$tmp_nm -p"
3514           break
3515           ;;
3516         *)
3517           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3518           continue # so that we can try to find one that supports BSD flags
3519           ;;
3520         esac
3521       esac
3522     fi
3523   done
3524   IFS="$lt_save_ifs"
3525   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3526 fi
3527 fi
3528 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3529 $as_echo "$lt_cv_path_NM" >&6; }
3530 NM="$lt_cv_path_NM"
3531
3532 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3533 $as_echo_n "checking whether ln -s works... " >&6; }
3534 LN_S=$as_ln_s
3535 if test "$LN_S" = "ln -s"; then
3536   { $as_echo "$as_me:$LINENO: result: yes" >&5
3537 $as_echo "yes" >&6; }
3538 else
3539   { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3540 $as_echo "no, using $LN_S" >&6; }
3541 fi
3542
3543 { $as_echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3544 $as_echo_n "checking how to recognise dependent libraries... " >&6; }
3545 if test "${lt_cv_deplibs_check_method+set}" = set; then
3546   $as_echo_n "(cached) " >&6
3547 else
3548   lt_cv_file_magic_cmd='$MAGIC_CMD'
3549 lt_cv_file_magic_test_file=
3550 lt_cv_deplibs_check_method='unknown'
3551 # Need to set the preceding variable on all platforms that support
3552 # interlibrary dependencies.
3553 # 'none' -- dependencies not supported.
3554 # `unknown' -- same as none, but documents that we really don't know.
3555 # 'pass_all' -- all dependencies passed with no checks.
3556 # 'test_compile' -- check by making test program.
3557 # 'file_magic [[regex]]' -- check by looking for files in library path
3558 # which responds to the $file_magic_cmd with a given extended regex.
3559 # If you have `file' or equivalent on your system and you're not sure
3560 # whether `pass_all' will *always* work, you probably want this one.
3561
3562 case $host_os in
3563 aix4* | aix5*)
3564   lt_cv_deplibs_check_method=pass_all
3565   ;;
3566
3567 beos*)
3568   lt_cv_deplibs_check_method=pass_all
3569   ;;
3570
3571 bsdi4*)
3572   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3573   lt_cv_file_magic_cmd='/usr/bin/file -L'
3574   lt_cv_file_magic_test_file=/shlib/libc.so
3575   ;;
3576
3577 cygwin* | mingw* | pw32*)
3578   # win32_libid is a shell function defined in ltmain.sh
3579   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3580   lt_cv_file_magic_cmd='win32_libid'
3581   ;;
3582
3583 darwin* | rhapsody*)
3584   # this will be overwritten by pass_all, but leave it in just in case
3585   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3586   lt_cv_file_magic_cmd='/usr/bin/file -L'
3587   case "$host_os" in
3588   rhapsody* | darwin1.[012])
3589     lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
3590     ;;
3591   *) # Darwin 1.3 on
3592     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3593     ;;
3594   esac
3595   lt_cv_deplibs_check_method=pass_all
3596   ;;
3597
3598 freebsd* | kfreebsd*-gnu)
3599   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3600     case $host_cpu in
3601     i*86 )
3602       # Not sure whether the presence of OpenBSD here was a mistake.
3603       # Let's accept both of them until this is cleared up.
3604       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3605       lt_cv_file_magic_cmd=/usr/bin/file
3606       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3607       ;;
3608     esac
3609   else
3610     lt_cv_deplibs_check_method=pass_all
3611   fi
3612   ;;
3613
3614 gnu*)
3615   lt_cv_deplibs_check_method=pass_all
3616   ;;
3617
3618 hpux10.20* | hpux11*)
3619   lt_cv_file_magic_cmd=/usr/bin/file
3620   case "$host_cpu" in
3621   ia64*)
3622     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3623     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3624     ;;
3625   hppa*64*)
3626     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]'
3627     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3628     ;;
3629   *)
3630     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3631     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3632     ;;
3633   esac
3634   ;;
3635
3636 irix5* | irix6* | nonstopux*)
3637   case $host_os in
3638   irix5* | nonstopux*)
3639     # this will be overridden with pass_all, but let us keep it just in case
3640     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3641     ;;
3642   *)
3643     case $LD in
3644     *-32|*"-32 ") libmagic=32-bit;;
3645     *-n32|*"-n32 ") libmagic=N32;;
3646     *-64|*"-64 ") libmagic=64-bit;;
3647     *) libmagic=never-match;;
3648     esac
3649     # this will be overridden with pass_all, but let us keep it just in case
3650     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3651     ;;
3652   esac
3653   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3654   lt_cv_deplibs_check_method=pass_all
3655   ;;
3656
3657 # This must be Linux ELF.
3658 linux*)
3659   # linux always uses pass_all now, this code is the old way (tm)
3660   case $host_cpu in
3661   alpha* | hppa* | i*86 | ia64* | m68* | mips* | powerpc* | sparc* | s390* | sh*)
3662     lt_cv_deplibs_check_method=pass_all ;;
3663   *)
3664     # glibc up to 2.1.1 does not perform some relocations on ARM
3665     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3666   esac
3667   lt_cv_deplibs_check_method=pass_all
3668   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3669   ;;
3670
3671 netbsd*)
3672   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3673     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3674   else
3675     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3676   fi
3677   ;;
3678
3679 newos6*)
3680   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3681   lt_cv_file_magic_cmd=/usr/bin/file
3682   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3683   ;;
3684
3685 nto-qnx*)
3686   lt_cv_deplibs_check_method=unknown
3687   ;;
3688
3689 openbsd*)
3690   lt_cv_file_magic_cmd=/usr/bin/file
3691   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3692   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3693     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3694   else
3695     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3696   fi
3697   ;;
3698
3699 osf3* | osf4* | osf5*)
3700   # this will be overridden with pass_all, but let us keep it just in case
3701   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3702   lt_cv_file_magic_test_file=/shlib/libc.so
3703   lt_cv_deplibs_check_method=pass_all
3704   ;;
3705
3706 sco3.2v5*)
3707   lt_cv_deplibs_check_method=pass_all
3708   ;;
3709
3710 solaris*)
3711   lt_cv_deplibs_check_method=pass_all
3712   lt_cv_file_magic_test_file=/lib/libc.so
3713   ;;
3714
3715 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3716   case $host_vendor in
3717   motorola)
3718     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]'
3719     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3720     ;;
3721   ncr)
3722     lt_cv_deplibs_check_method=pass_all
3723     ;;
3724   sequent)
3725     lt_cv_file_magic_cmd='/bin/file'
3726     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3727     ;;
3728   sni)
3729     lt_cv_file_magic_cmd='/bin/file'
3730     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3731     lt_cv_file_magic_test_file=/lib/libc.so
3732     ;;
3733   siemens)
3734     lt_cv_deplibs_check_method=pass_all
3735     ;;
3736   esac
3737   ;;
3738
3739 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3740   lt_cv_deplibs_check_method=pass_all
3741   ;;
3742 esac
3743
3744 fi
3745 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3746 $as_echo "$lt_cv_deplibs_check_method" >&6; }
3747 file_magic_cmd=$lt_cv_file_magic_cmd
3748 deplibs_check_method=$lt_cv_deplibs_check_method
3749 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3750
3751
3752
3753
3754 # If no C compiler was specified, use CC.
3755 LTCC=${LTCC-"$CC"}
3756
3757 # Allow CC to be a program name with arguments.
3758 compiler=$CC
3759
3760
3761 # Check whether --enable-libtool-lock was given.
3762 if test "${enable_libtool_lock+set}" = set; then
3763   enableval=$enable_libtool_lock;
3764 fi
3765
3766 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3767
3768 # Some flags need to be propagated to the compiler or linker for good
3769 # libtool support.
3770 case $host in
3771 ia64-*-hpux*)
3772   # Find out which ABI we are using.
3773   echo 'int i;' > conftest.$ac_ext
3774   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3775   (eval $ac_compile) 2>&5
3776   ac_status=$?
3777   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3778   (exit $ac_status); }; then
3779     case `/usr/bin/file conftest.$ac_objext` in
3780     *ELF-32*)
3781       HPUX_IA64_MODE="32"
3782       ;;
3783     *ELF-64*)
3784       HPUX_IA64_MODE="64"
3785       ;;
3786     esac
3787   fi
3788   rm -rf conftest*
3789   ;;
3790 *-*-irix6*)
3791   # Find out which ABI we are using.
3792   echo '#line 3792 "configure"' > conftest.$ac_ext
3793   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3794   (eval $ac_compile) 2>&5
3795   ac_status=$?
3796   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3797   (exit $ac_status); }; then
3798    if test "$lt_cv_prog_gnu_ld" = yes; then
3799     case `/usr/bin/file conftest.$ac_objext` in
3800     *32-bit*)
3801       LD="${LD-ld} -melf32bsmip"
3802       ;;
3803     *N32*)
3804       LD="${LD-ld} -melf32bmipn32"
3805       ;;
3806     *64-bit*)
3807       LD="${LD-ld} -melf64bmip"
3808       ;;
3809     esac
3810    else
3811     case `/usr/bin/file conftest.$ac_objext` in
3812     *32-bit*)
3813       LD="${LD-ld} -32"
3814       ;;
3815     *N32*)
3816       LD="${LD-ld} -n32"
3817       ;;
3818     *64-bit*)
3819       LD="${LD-ld} -64"
3820       ;;
3821     esac
3822    fi
3823   fi
3824   rm -rf conftest*
3825   ;;
3826
3827 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3828   # Find out which ABI we are using.
3829   echo 'int i;' > conftest.$ac_ext
3830   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3831   (eval $ac_compile) 2>&5
3832   ac_status=$?
3833   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834   (exit $ac_status); }; then
3835     case "`/usr/bin/file conftest.o`" in
3836     *32-bit*)
3837       case $host in
3838         x86_64-*linux*)
3839           LD="${LD-ld} -m elf_i386"
3840           ;;
3841         ppc64-*linux*|powerpc64-*linux*)
3842           LD="${LD-ld} -m elf32ppclinux"
3843           ;;
3844         s390x-*linux*)
3845           LD="${LD-ld} -m elf_s390"
3846           ;;
3847         sparc64-*linux*)
3848           LD="${LD-ld} -m elf32_sparc"
3849           ;;
3850       esac
3851       ;;
3852     *64-bit*)
3853       case $host in
3854         x86_64-*linux*)
3855           LD="${LD-ld} -m elf_x86_64"
3856           ;;
3857         ppc*-*linux*|powerpc*-*linux*)
3858           LD="${LD-ld} -m elf64ppc"
3859           ;;
3860         s390*-*linux*)
3861           LD="${LD-ld} -m elf64_s390"
3862           ;;
3863         sparc*-*linux*)
3864           LD="${LD-ld} -m elf64_sparc"
3865           ;;
3866       esac
3867       ;;
3868     esac
3869   fi
3870   rm -rf conftest*
3871   ;;
3872
3873 *-*-sco3.2v5*)
3874   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3875   SAVE_CFLAGS="$CFLAGS"
3876   CFLAGS="$CFLAGS -belf"
3877   { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3878 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
3879 if test "${lt_cv_cc_needs_belf+set}" = set; then
3880   $as_echo_n "(cached) " >&6
3881 else
3882   ac_ext=c
3883 ac_cpp='$CPP $CPPFLAGS'
3884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3887
3888      cat >conftest.$ac_ext <<_ACEOF
3889 /* confdefs.h.  */
3890 _ACEOF
3891 cat confdefs.h >>conftest.$ac_ext
3892 cat >>conftest.$ac_ext <<_ACEOF
3893 /* end confdefs.h.  */
3894
3895 int
3896 main ()
3897 {
3898
3899   ;
3900   return 0;
3901 }
3902 _ACEOF
3903 rm -f conftest.$ac_objext conftest$ac_exeext
3904 if { (ac_try="$ac_link"
3905 case "(($ac_try" in
3906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3907   *) ac_try_echo=$ac_try;;
3908 esac
3909 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3910 $as_echo "$ac_try_echo") >&5
3911   (eval "$ac_link") 2>conftest.er1
3912   ac_status=$?
3913   grep -v '^ *+' conftest.er1 >conftest.err
3914   rm -f conftest.er1
3915   cat conftest.err >&5
3916   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3917   (exit $ac_status); } && {
3918          test -z "$ac_c_werror_flag" ||
3919          test ! -s conftest.err
3920        } && test -s conftest$ac_exeext && {
3921          test "$cross_compiling" = yes ||
3922          $as_test_x conftest$ac_exeext
3923        }; then
3924   lt_cv_cc_needs_belf=yes
3925 else
3926   $as_echo "$as_me: failed program was:" >&5
3927 sed 's/^/| /' conftest.$ac_ext >&5
3928
3929         lt_cv_cc_needs_belf=no
3930 fi
3931
3932 rm -rf conftest.dSYM
3933 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3934       conftest$ac_exeext conftest.$ac_ext
3935      ac_ext=c
3936 ac_cpp='$CPP $CPPFLAGS'
3937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3940
3941 fi
3942 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3943 $as_echo "$lt_cv_cc_needs_belf" >&6; }
3944   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3945     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3946     CFLAGS="$SAVE_CFLAGS"
3947   fi
3948   ;;
3949
3950 esac
3951
3952 need_locks="$enable_libtool_lock"
3953
3954
3955 ac_ext=c
3956 ac_cpp='$CPP $CPPFLAGS'
3957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3960 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3961 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3962 # On Suns, sometimes $CPP names a directory.
3963 if test -n "$CPP" && test -d "$CPP"; then
3964   CPP=
3965 fi
3966 if test -z "$CPP"; then
3967   if test "${ac_cv_prog_CPP+set}" = set; then
3968   $as_echo_n "(cached) " >&6
3969 else
3970       # Double quotes because CPP needs to be expanded
3971     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3972     do
3973       ac_preproc_ok=false
3974 for ac_c_preproc_warn_flag in '' yes
3975 do
3976   # Use a header file that comes with gcc, so configuring glibc
3977   # with a fresh cross-compiler works.
3978   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3979   # <limits.h> exists even on freestanding compilers.
3980   # On the NeXT, cc -E runs the code through the compiler's parser,
3981   # not just through cpp. "Syntax error" is here to catch this case.
3982   cat >conftest.$ac_ext <<_ACEOF
3983 /* confdefs.h.  */
3984 _ACEOF
3985 cat confdefs.h >>conftest.$ac_ext
3986 cat >>conftest.$ac_ext <<_ACEOF
3987 /* end confdefs.h.  */
3988 #ifdef __STDC__
3989 # include <limits.h>
3990 #else
3991 # include <assert.h>
3992 #endif
3993                      Syntax error
3994 _ACEOF
3995 if { (ac_try="$ac_cpp conftest.$ac_ext"
3996 case "(($ac_try" in
3997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3998   *) ac_try_echo=$ac_try;;
3999 esac
4000 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4001 $as_echo "$ac_try_echo") >&5
4002   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4003   ac_status=$?
4004   grep -v '^ *+' conftest.er1 >conftest.err
4005   rm -f conftest.er1
4006   cat conftest.err >&5
4007   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008   (exit $ac_status); } >/dev/null && {
4009          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4010          test ! -s conftest.err
4011        }; then
4012   :
4013 else
4014   $as_echo "$as_me: failed program was:" >&5
4015 sed 's/^/| /' conftest.$ac_ext >&5
4016
4017   # Broken: fails on valid input.
4018 continue
4019 fi
4020
4021 rm -f conftest.err conftest.$ac_ext
4022
4023   # OK, works on sane cases.  Now check whether nonexistent headers
4024   # can be detected and how.
4025   cat >conftest.$ac_ext <<_ACEOF
4026 /* confdefs.h.  */
4027 _ACEOF
4028 cat confdefs.h >>conftest.$ac_ext
4029 cat >>conftest.$ac_ext <<_ACEOF
4030 /* end confdefs.h.  */
4031 #include <ac_nonexistent.h>
4032 _ACEOF
4033 if { (ac_try="$ac_cpp conftest.$ac_ext"
4034 case "(($ac_try" in
4035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4036   *) ac_try_echo=$ac_try;;
4037 esac
4038 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4039 $as_echo "$ac_try_echo") >&5
4040   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4041   ac_status=$?
4042   grep -v '^ *+' conftest.er1 >conftest.err
4043   rm -f conftest.er1
4044   cat conftest.err >&5
4045   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4046   (exit $ac_status); } >/dev/null && {
4047          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4048          test ! -s conftest.err
4049        }; then
4050   # Broken: success on invalid input.
4051 continue
4052 else
4053   $as_echo "$as_me: failed program was:" >&5
4054 sed 's/^/| /' conftest.$ac_ext >&5
4055
4056   # Passes both tests.
4057 ac_preproc_ok=:
4058 break
4059 fi
4060
4061 rm -f conftest.err conftest.$ac_ext
4062
4063 done
4064 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4065 rm -f conftest.err conftest.$ac_ext
4066 if $ac_preproc_ok; then
4067   break
4068 fi
4069
4070     done
4071     ac_cv_prog_CPP=$CPP
4072
4073 fi
4074   CPP=$ac_cv_prog_CPP
4075 else
4076   ac_cv_prog_CPP=$CPP
4077 fi
4078 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4079 $as_echo "$CPP" >&6; }
4080 ac_preproc_ok=false
4081 for ac_c_preproc_warn_flag in '' yes
4082 do
4083   # Use a header file that comes with gcc, so configuring glibc
4084   # with a fresh cross-compiler works.
4085   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4086   # <limits.h> exists even on freestanding compilers.
4087   # On the NeXT, cc -E runs the code through the compiler's parser,
4088   # not just through cpp. "Syntax error" is here to catch this case.
4089   cat >conftest.$ac_ext <<_ACEOF
4090 /* confdefs.h.  */
4091 _ACEOF
4092 cat confdefs.h >>conftest.$ac_ext
4093 cat >>conftest.$ac_ext <<_ACEOF
4094 /* end confdefs.h.  */
4095 #ifdef __STDC__
4096 # include <limits.h>
4097 #else
4098 # include <assert.h>
4099 #endif
4100                      Syntax error
4101 _ACEOF
4102 if { (ac_try="$ac_cpp conftest.$ac_ext"
4103 case "(($ac_try" in
4104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4105   *) ac_try_echo=$ac_try;;
4106 esac
4107 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4108 $as_echo "$ac_try_echo") >&5
4109   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4110   ac_status=$?
4111   grep -v '^ *+' conftest.er1 >conftest.err
4112   rm -f conftest.er1
4113   cat conftest.err >&5
4114   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4115   (exit $ac_status); } >/dev/null && {
4116          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4117          test ! -s conftest.err
4118        }; then
4119   :
4120 else
4121   $as_echo "$as_me: failed program was:" >&5
4122 sed 's/^/| /' conftest.$ac_ext >&5
4123
4124   # Broken: fails on valid input.
4125 continue
4126 fi
4127
4128 rm -f conftest.err conftest.$ac_ext
4129
4130   # OK, works on sane cases.  Now check whether nonexistent headers
4131   # can be detected and how.
4132   cat >conftest.$ac_ext <<_ACEOF
4133 /* confdefs.h.  */
4134 _ACEOF
4135 cat confdefs.h >>conftest.$ac_ext
4136 cat >>conftest.$ac_ext <<_ACEOF
4137 /* end confdefs.h.  */
4138 #include <ac_nonexistent.h>
4139 _ACEOF
4140 if { (ac_try="$ac_cpp conftest.$ac_ext"
4141 case "(($ac_try" in
4142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4143   *) ac_try_echo=$ac_try;;
4144 esac
4145 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4146 $as_echo "$ac_try_echo") >&5
4147   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4148   ac_status=$?
4149   grep -v '^ *+' conftest.er1 >conftest.err
4150   rm -f conftest.er1
4151   cat conftest.err >&5
4152   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4153   (exit $ac_status); } >/dev/null && {
4154          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4155          test ! -s conftest.err
4156        }; then
4157   # Broken: success on invalid input.
4158 continue
4159 else
4160   $as_echo "$as_me: failed program was:" >&5
4161 sed 's/^/| /' conftest.$ac_ext >&5
4162
4163   # Passes both tests.
4164 ac_preproc_ok=:
4165 break
4166 fi
4167
4168 rm -f conftest.err conftest.$ac_ext
4169
4170 done
4171 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4172 rm -f conftest.err conftest.$ac_ext
4173 if $ac_preproc_ok; then
4174   :
4175 else
4176   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4177 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4178 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4179 See \`config.log' for more details." >&5
4180 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4181 See \`config.log' for more details." >&2;}
4182    { (exit 1); exit 1; }; }; }
4183 fi
4184
4185 ac_ext=c
4186 ac_cpp='$CPP $CPPFLAGS'
4187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4190
4191
4192 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4193 $as_echo_n "checking for ANSI C header files... " >&6; }
4194 if test "${ac_cv_header_stdc+set}" = set; then
4195   $as_echo_n "(cached) " >&6
4196 else
4197   cat >conftest.$ac_ext <<_ACEOF
4198 /* confdefs.h.  */
4199 _ACEOF
4200 cat confdefs.h >>conftest.$ac_ext
4201 cat >>conftest.$ac_ext <<_ACEOF
4202 /* end confdefs.h.  */
4203 #include <stdlib.h>
4204 #include <stdarg.h>
4205 #include <string.h>
4206 #include <float.h>
4207
4208 int
4209 main ()
4210 {
4211
4212   ;
4213   return 0;
4214 }
4215 _ACEOF
4216 rm -f conftest.$ac_objext
4217 if { (ac_try="$ac_compile"
4218 case "(($ac_try" in
4219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4220   *) ac_try_echo=$ac_try;;
4221 esac
4222 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4223 $as_echo "$ac_try_echo") >&5
4224   (eval "$ac_compile") 2>conftest.er1
4225   ac_status=$?
4226   grep -v '^ *+' conftest.er1 >conftest.err
4227   rm -f conftest.er1
4228   cat conftest.err >&5
4229   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230   (exit $ac_status); } && {
4231          test -z "$ac_c_werror_flag" ||
4232          test ! -s conftest.err
4233        } && test -s conftest.$ac_objext; then
4234   ac_cv_header_stdc=yes
4235 else
4236   $as_echo "$as_me: failed program was:" >&5
4237 sed 's/^/| /' conftest.$ac_ext >&5
4238
4239         ac_cv_header_stdc=no
4240 fi
4241
4242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4243
4244 if test $ac_cv_header_stdc = yes; then
4245   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4246   cat >conftest.$ac_ext <<_ACEOF
4247 /* confdefs.h.  */
4248 _ACEOF
4249 cat confdefs.h >>conftest.$ac_ext
4250 cat >>conftest.$ac_ext <<_ACEOF
4251 /* end confdefs.h.  */
4252 #include <string.h>
4253
4254 _ACEOF
4255 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4256   $EGREP "memchr" >/dev/null 2>&1; then
4257   :
4258 else
4259   ac_cv_header_stdc=no
4260 fi
4261 rm -f conftest*
4262
4263 fi
4264
4265 if test $ac_cv_header_stdc = yes; then
4266   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4267   cat >conftest.$ac_ext <<_ACEOF
4268 /* confdefs.h.  */
4269 _ACEOF
4270 cat confdefs.h >>conftest.$ac_ext
4271 cat >>conftest.$ac_ext <<_ACEOF
4272 /* end confdefs.h.  */
4273 #include <stdlib.h>
4274
4275 _ACEOF
4276 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4277   $EGREP "free" >/dev/null 2>&1; then
4278   :
4279 else
4280   ac_cv_header_stdc=no
4281 fi
4282 rm -f conftest*
4283
4284 fi
4285
4286 if test $ac_cv_header_stdc = yes; then
4287   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4288   if test "$cross_compiling" = yes; then
4289   :
4290 else
4291   cat >conftest.$ac_ext <<_ACEOF
4292 /* confdefs.h.  */
4293 _ACEOF
4294 cat confdefs.h >>conftest.$ac_ext
4295 cat >>conftest.$ac_ext <<_ACEOF
4296 /* end confdefs.h.  */
4297 #include <ctype.h>
4298 #include <stdlib.h>
4299 #if ((' ' & 0x0FF) == 0x020)
4300 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4301 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4302 #else
4303 # define ISLOWER(c) \
4304                    (('a' <= (c) && (c) <= 'i') \
4305                      || ('j' <= (c) && (c) <= 'r') \
4306                      || ('s' <= (c) && (c) <= 'z'))
4307 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4308 #endif
4309
4310 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4311 int
4312 main ()
4313 {
4314   int i;
4315   for (i = 0; i < 256; i++)
4316     if (XOR (islower (i), ISLOWER (i))
4317         || toupper (i) != TOUPPER (i))
4318       return 2;
4319   return 0;
4320 }
4321 _ACEOF
4322 rm -f conftest$ac_exeext
4323 if { (ac_try="$ac_link"
4324 case "(($ac_try" in
4325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4326   *) ac_try_echo=$ac_try;;
4327 esac
4328 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4329 $as_echo "$ac_try_echo") >&5
4330   (eval "$ac_link") 2>&5
4331   ac_status=$?
4332   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4333   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4334   { (case "(($ac_try" in
4335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4336   *) ac_try_echo=$ac_try;;
4337 esac
4338 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4339 $as_echo "$ac_try_echo") >&5
4340   (eval "$ac_try") 2>&5
4341   ac_status=$?
4342   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4343   (exit $ac_status); }; }; then
4344   :
4345 else
4346   $as_echo "$as_me: program exited with status $ac_status" >&5
4347 $as_echo "$as_me: failed program was:" >&5
4348 sed 's/^/| /' conftest.$ac_ext >&5
4349
4350 ( exit $ac_status )
4351 ac_cv_header_stdc=no
4352 fi
4353 rm -rf conftest.dSYM
4354 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4355 fi
4356
4357
4358 fi
4359 fi
4360 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4361 $as_echo "$ac_cv_header_stdc" >&6; }
4362 if test $ac_cv_header_stdc = yes; then
4363
4364 cat >>confdefs.h <<\_ACEOF
4365 #define STDC_HEADERS 1
4366 _ACEOF
4367
4368 fi
4369
4370 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4381                   inttypes.h stdint.h unistd.h
4382 do
4383 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4384 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4385 $as_echo_n "checking for $ac_header... " >&6; }
4386 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4387   $as_echo_n "(cached) " >&6
4388 else
4389   cat >conftest.$ac_ext <<_ACEOF
4390 /* confdefs.h.  */
4391 _ACEOF
4392 cat confdefs.h >>conftest.$ac_ext
4393 cat >>conftest.$ac_ext <<_ACEOF
4394 /* end confdefs.h.  */
4395 $ac_includes_default
4396
4397 #include <$ac_header>
4398 _ACEOF
4399 rm -f conftest.$ac_objext
4400 if { (ac_try="$ac_compile"
4401 case "(($ac_try" in
4402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4403   *) ac_try_echo=$ac_try;;
4404 esac
4405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4406 $as_echo "$ac_try_echo") >&5
4407   (eval "$ac_compile") 2>conftest.er1
4408   ac_status=$?
4409   grep -v '^ *+' conftest.er1 >conftest.err
4410   rm -f conftest.er1
4411   cat conftest.err >&5
4412   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413   (exit $ac_status); } && {
4414          test -z "$ac_c_werror_flag" ||
4415          test ! -s conftest.err
4416        } && test -s conftest.$ac_objext; then
4417   eval "$as_ac_Header=yes"
4418 else
4419   $as_echo "$as_me: failed program was:" >&5
4420 sed 's/^/| /' conftest.$ac_ext >&5
4421
4422         eval "$as_ac_Header=no"
4423 fi
4424
4425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4426 fi
4427 ac_res=`eval 'as_val=${'$as_ac_Header'}
4428                  $as_echo "$as_val"'`
4429                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4430 $as_echo "$ac_res" >&6; }
4431 as_val=`eval 'as_val=${'$as_ac_Header'}
4432                  $as_echo "$as_val"'`
4433    if test "x$as_val" = x""yes; then
4434   cat >>confdefs.h <<_ACEOF
4435 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4436 _ACEOF
4437
4438 fi
4439
4440 done
4441
4442
4443
4444 for ac_header in dlfcn.h
4445 do
4446 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4447 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4448   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4449 $as_echo_n "checking for $ac_header... " >&6; }
4450 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4451   $as_echo_n "(cached) " >&6
4452 fi
4453 ac_res=`eval 'as_val=${'$as_ac_Header'}
4454                  $as_echo "$as_val"'`
4455                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4456 $as_echo "$ac_res" >&6; }
4457 else
4458   # Is the header compilable?
4459 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4460 $as_echo_n "checking $ac_header usability... " >&6; }
4461 cat >conftest.$ac_ext <<_ACEOF
4462 /* confdefs.h.  */
4463 _ACEOF
4464 cat confdefs.h >>conftest.$ac_ext
4465 cat >>conftest.$ac_ext <<_ACEOF
4466 /* end confdefs.h.  */
4467 $ac_includes_default
4468 #include <$ac_header>
4469 _ACEOF
4470 rm -f conftest.$ac_objext
4471 if { (ac_try="$ac_compile"
4472 case "(($ac_try" in
4473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4474   *) ac_try_echo=$ac_try;;
4475 esac
4476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4477 $as_echo "$ac_try_echo") >&5
4478   (eval "$ac_compile") 2>conftest.er1
4479   ac_status=$?
4480   grep -v '^ *+' conftest.er1 >conftest.err
4481   rm -f conftest.er1
4482   cat conftest.err >&5
4483   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484   (exit $ac_status); } && {
4485          test -z "$ac_c_werror_flag" ||
4486          test ! -s conftest.err
4487        } && test -s conftest.$ac_objext; then
4488   ac_header_compiler=yes
4489 else
4490   $as_echo "$as_me: failed program was:" >&5
4491 sed 's/^/| /' conftest.$ac_ext >&5
4492
4493         ac_header_compiler=no
4494 fi
4495
4496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4497 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4498 $as_echo "$ac_header_compiler" >&6; }
4499
4500 # Is the header present?
4501 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4502 $as_echo_n "checking $ac_header presence... " >&6; }
4503 cat >conftest.$ac_ext <<_ACEOF
4504 /* confdefs.h.  */
4505 _ACEOF
4506 cat confdefs.h >>conftest.$ac_ext
4507 cat >>conftest.$ac_ext <<_ACEOF
4508 /* end confdefs.h.  */
4509 #include <$ac_header>
4510 _ACEOF
4511 if { (ac_try="$ac_cpp conftest.$ac_ext"
4512 case "(($ac_try" in
4513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4514   *) ac_try_echo=$ac_try;;
4515 esac
4516 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4517 $as_echo "$ac_try_echo") >&5
4518   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4519   ac_status=$?
4520   grep -v '^ *+' conftest.er1 >conftest.err
4521   rm -f conftest.er1
4522   cat conftest.err >&5
4523   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4524   (exit $ac_status); } >/dev/null && {
4525          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4526          test ! -s conftest.err
4527        }; then
4528   ac_header_preproc=yes
4529 else
4530   $as_echo "$as_me: failed program was:" >&5
4531 sed 's/^/| /' conftest.$ac_ext >&5
4532
4533   ac_header_preproc=no
4534 fi
4535
4536 rm -f conftest.err conftest.$ac_ext
4537 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4538 $as_echo "$ac_header_preproc" >&6; }
4539
4540 # So?  What about this header?
4541 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4542   yes:no: )
4543     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4544 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4545     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4546 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4547     ac_header_preproc=yes
4548     ;;
4549   no:yes:* )
4550     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4551 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4552     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4553 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4554     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4555 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4556     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4557 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4558     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4559 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4560     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4561 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4562     ( cat <<\_ASBOX
4563 ## -------------------------------- ##
4564 ## Report this to chise-en@m17n.org ##
4565 ## -------------------------------- ##
4566 _ASBOX
4567      ) | sed "s/^/$as_me: WARNING:     /" >&2
4568     ;;
4569 esac
4570 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4571 $as_echo_n "checking for $ac_header... " >&6; }
4572 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4573   $as_echo_n "(cached) " >&6
4574 else
4575   eval "$as_ac_Header=\$ac_header_preproc"
4576 fi
4577 ac_res=`eval 'as_val=${'$as_ac_Header'}
4578                  $as_echo "$as_val"'`
4579                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4580 $as_echo "$ac_res" >&6; }
4581
4582 fi
4583 as_val=`eval 'as_val=${'$as_ac_Header'}
4584                  $as_echo "$as_val"'`
4585    if test "x$as_val" = x""yes; then
4586   cat >>confdefs.h <<_ACEOF
4587 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4588 _ACEOF
4589
4590 fi
4591
4592 done
4593
4594 ac_ext=cpp
4595 ac_cpp='$CXXCPP $CPPFLAGS'
4596 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4597 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4598 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4599 if test -z "$CXX"; then
4600   if test -n "$CCC"; then
4601     CXX=$CCC
4602   else
4603     if test -n "$ac_tool_prefix"; then
4604   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4605   do
4606     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4607 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4608 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4609 $as_echo_n "checking for $ac_word... " >&6; }
4610 if test "${ac_cv_prog_CXX+set}" = set; then
4611   $as_echo_n "(cached) " >&6
4612 else
4613   if test -n "$CXX"; then
4614   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4615 else
4616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4617 for as_dir in $PATH
4618 do
4619   IFS=$as_save_IFS
4620   test -z "$as_dir" && as_dir=.
4621   for ac_exec_ext in '' $ac_executable_extensions; do
4622   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4623     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4624     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4625     break 2
4626   fi
4627 done
4628 done
4629 IFS=$as_save_IFS
4630
4631 fi
4632 fi
4633 CXX=$ac_cv_prog_CXX
4634 if test -n "$CXX"; then
4635   { $as_echo "$as_me:$LINENO: result: $CXX" >&5
4636 $as_echo "$CXX" >&6; }
4637 else
4638   { $as_echo "$as_me:$LINENO: result: no" >&5
4639 $as_echo "no" >&6; }
4640 fi
4641
4642
4643     test -n "$CXX" && break
4644   done
4645 fi
4646 if test -z "$CXX"; then
4647   ac_ct_CXX=$CXX
4648   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4649 do
4650   # Extract the first word of "$ac_prog", so it can be a program name with args.
4651 set dummy $ac_prog; ac_word=$2
4652 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4653 $as_echo_n "checking for $ac_word... " >&6; }
4654 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4655   $as_echo_n "(cached) " >&6
4656 else
4657   if test -n "$ac_ct_CXX"; then
4658   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4659 else
4660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4661 for as_dir in $PATH
4662 do
4663   IFS=$as_save_IFS
4664   test -z "$as_dir" && as_dir=.
4665   for ac_exec_ext in '' $ac_executable_extensions; do
4666   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4667     ac_cv_prog_ac_ct_CXX="$ac_prog"
4668     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4669     break 2
4670   fi
4671 done
4672 done
4673 IFS=$as_save_IFS
4674
4675 fi
4676 fi
4677 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4678 if test -n "$ac_ct_CXX"; then
4679   { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4680 $as_echo "$ac_ct_CXX" >&6; }
4681 else
4682   { $as_echo "$as_me:$LINENO: result: no" >&5
4683 $as_echo "no" >&6; }
4684 fi
4685
4686
4687   test -n "$ac_ct_CXX" && break
4688 done
4689
4690   if test "x$ac_ct_CXX" = x; then
4691     CXX="g++"
4692   else
4693     case $cross_compiling:$ac_tool_warned in
4694 yes:)
4695 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4696 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4697 ac_tool_warned=yes ;;
4698 esac
4699     CXX=$ac_ct_CXX
4700   fi
4701 fi
4702
4703   fi
4704 fi
4705 # Provide some information about the compiler.
4706 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4707 set X $ac_compile
4708 ac_compiler=$2
4709 { (ac_try="$ac_compiler --version >&5"
4710 case "(($ac_try" in
4711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4712   *) ac_try_echo=$ac_try;;
4713 esac
4714 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4715 $as_echo "$ac_try_echo") >&5
4716   (eval "$ac_compiler --version >&5") 2>&5
4717   ac_status=$?
4718   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4719   (exit $ac_status); }
4720 { (ac_try="$ac_compiler -v >&5"
4721 case "(($ac_try" in
4722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4723   *) ac_try_echo=$ac_try;;
4724 esac
4725 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4726 $as_echo "$ac_try_echo") >&5
4727   (eval "$ac_compiler -v >&5") 2>&5
4728   ac_status=$?
4729   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4730   (exit $ac_status); }
4731 { (ac_try="$ac_compiler -V >&5"
4732 case "(($ac_try" in
4733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4734   *) ac_try_echo=$ac_try;;
4735 esac
4736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4737 $as_echo "$ac_try_echo") >&5
4738   (eval "$ac_compiler -V >&5") 2>&5
4739   ac_status=$?
4740   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741   (exit $ac_status); }
4742
4743 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4744 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4745 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4746   $as_echo_n "(cached) " >&6
4747 else
4748   cat >conftest.$ac_ext <<_ACEOF
4749 /* confdefs.h.  */
4750 _ACEOF
4751 cat confdefs.h >>conftest.$ac_ext
4752 cat >>conftest.$ac_ext <<_ACEOF
4753 /* end confdefs.h.  */
4754
4755 int
4756 main ()
4757 {
4758 #ifndef __GNUC__
4759        choke me
4760 #endif
4761
4762   ;
4763   return 0;
4764 }
4765 _ACEOF
4766 rm -f conftest.$ac_objext
4767 if { (ac_try="$ac_compile"
4768 case "(($ac_try" in
4769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4770   *) ac_try_echo=$ac_try;;
4771 esac
4772 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4773 $as_echo "$ac_try_echo") >&5
4774   (eval "$ac_compile") 2>conftest.er1
4775   ac_status=$?
4776   grep -v '^ *+' conftest.er1 >conftest.err
4777   rm -f conftest.er1
4778   cat conftest.err >&5
4779   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780   (exit $ac_status); } && {
4781          test -z "$ac_cxx_werror_flag" ||
4782          test ! -s conftest.err
4783        } && test -s conftest.$ac_objext; then
4784   ac_compiler_gnu=yes
4785 else
4786   $as_echo "$as_me: failed program was:" >&5
4787 sed 's/^/| /' conftest.$ac_ext >&5
4788
4789         ac_compiler_gnu=no
4790 fi
4791
4792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4793 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4794
4795 fi
4796 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4797 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4798 if test $ac_compiler_gnu = yes; then
4799   GXX=yes
4800 else
4801   GXX=
4802 fi
4803 ac_test_CXXFLAGS=${CXXFLAGS+set}
4804 ac_save_CXXFLAGS=$CXXFLAGS
4805 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4806 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4807 if test "${ac_cv_prog_cxx_g+set}" = set; then
4808   $as_echo_n "(cached) " >&6
4809 else
4810   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4811    ac_cxx_werror_flag=yes
4812    ac_cv_prog_cxx_g=no
4813    CXXFLAGS="-g"
4814    cat >conftest.$ac_ext <<_ACEOF
4815 /* confdefs.h.  */
4816 _ACEOF
4817 cat confdefs.h >>conftest.$ac_ext
4818 cat >>conftest.$ac_ext <<_ACEOF
4819 /* end confdefs.h.  */
4820
4821 int
4822 main ()
4823 {
4824
4825   ;
4826   return 0;
4827 }
4828 _ACEOF
4829 rm -f conftest.$ac_objext
4830 if { (ac_try="$ac_compile"
4831 case "(($ac_try" in
4832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4833   *) ac_try_echo=$ac_try;;
4834 esac
4835 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4836 $as_echo "$ac_try_echo") >&5
4837   (eval "$ac_compile") 2>conftest.er1
4838   ac_status=$?
4839   grep -v '^ *+' conftest.er1 >conftest.err
4840   rm -f conftest.er1
4841   cat conftest.err >&5
4842   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843   (exit $ac_status); } && {
4844          test -z "$ac_cxx_werror_flag" ||
4845          test ! -s conftest.err
4846        } && test -s conftest.$ac_objext; then
4847   ac_cv_prog_cxx_g=yes
4848 else
4849   $as_echo "$as_me: failed program was:" >&5
4850 sed 's/^/| /' conftest.$ac_ext >&5
4851
4852         CXXFLAGS=""
4853       cat >conftest.$ac_ext <<_ACEOF
4854 /* confdefs.h.  */
4855 _ACEOF
4856 cat confdefs.h >>conftest.$ac_ext
4857 cat >>conftest.$ac_ext <<_ACEOF
4858 /* end confdefs.h.  */
4859
4860 int
4861 main ()
4862 {
4863
4864   ;
4865   return 0;
4866 }
4867 _ACEOF
4868 rm -f conftest.$ac_objext
4869 if { (ac_try="$ac_compile"
4870 case "(($ac_try" in
4871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4872   *) ac_try_echo=$ac_try;;
4873 esac
4874 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4875 $as_echo "$ac_try_echo") >&5
4876   (eval "$ac_compile") 2>conftest.er1
4877   ac_status=$?
4878   grep -v '^ *+' conftest.er1 >conftest.err
4879   rm -f conftest.er1
4880   cat conftest.err >&5
4881   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4882   (exit $ac_status); } && {
4883          test -z "$ac_cxx_werror_flag" ||
4884          test ! -s conftest.err
4885        } && test -s conftest.$ac_objext; then
4886   :
4887 else
4888   $as_echo "$as_me: failed program was:" >&5
4889 sed 's/^/| /' conftest.$ac_ext >&5
4890
4891         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4892          CXXFLAGS="-g"
4893          cat >conftest.$ac_ext <<_ACEOF
4894 /* confdefs.h.  */
4895 _ACEOF
4896 cat confdefs.h >>conftest.$ac_ext
4897 cat >>conftest.$ac_ext <<_ACEOF
4898 /* end confdefs.h.  */
4899
4900 int
4901 main ()
4902 {
4903
4904   ;
4905   return 0;
4906 }
4907 _ACEOF
4908 rm -f conftest.$ac_objext
4909 if { (ac_try="$ac_compile"
4910 case "(($ac_try" in
4911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4912   *) ac_try_echo=$ac_try;;
4913 esac
4914 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4915 $as_echo "$ac_try_echo") >&5
4916   (eval "$ac_compile") 2>conftest.er1
4917   ac_status=$?
4918   grep -v '^ *+' conftest.er1 >conftest.err
4919   rm -f conftest.er1
4920   cat conftest.err >&5
4921   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4922   (exit $ac_status); } && {
4923          test -z "$ac_cxx_werror_flag" ||
4924          test ! -s conftest.err
4925        } && test -s conftest.$ac_objext; then
4926   ac_cv_prog_cxx_g=yes
4927 else
4928   $as_echo "$as_me: failed program was:" >&5
4929 sed 's/^/| /' conftest.$ac_ext >&5
4930
4931
4932 fi
4933
4934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4935 fi
4936
4937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4938 fi
4939
4940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4941    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4942 fi
4943 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4944 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4945 if test "$ac_test_CXXFLAGS" = set; then
4946   CXXFLAGS=$ac_save_CXXFLAGS
4947 elif test $ac_cv_prog_cxx_g = yes; then
4948   if test "$GXX" = yes; then
4949     CXXFLAGS="-g -O2"
4950   else
4951     CXXFLAGS="-g"
4952   fi
4953 else
4954   if test "$GXX" = yes; then
4955     CXXFLAGS="-O2"
4956   else
4957     CXXFLAGS=
4958   fi
4959 fi
4960 ac_ext=cpp
4961 ac_cpp='$CXXCPP $CPPFLAGS'
4962 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4963 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4964 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4965
4966 ac_ext=cpp
4967 ac_cpp='$CXXCPP $CPPFLAGS'
4968 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4969 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4970 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4971 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4972 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
4973 if test -z "$CXXCPP"; then
4974   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4975   $as_echo_n "(cached) " >&6
4976 else
4977       # Double quotes because CXXCPP needs to be expanded
4978     for CXXCPP in "$CXX -E" "/lib/cpp"
4979     do
4980       ac_preproc_ok=false
4981 for ac_cxx_preproc_warn_flag in '' yes
4982 do
4983   # Use a header file that comes with gcc, so configuring glibc
4984   # with a fresh cross-compiler works.
4985   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4986   # <limits.h> exists even on freestanding compilers.
4987   # On the NeXT, cc -E runs the code through the compiler's parser,
4988   # not just through cpp. "Syntax error" is here to catch this case.
4989   cat >conftest.$ac_ext <<_ACEOF
4990 /* confdefs.h.  */
4991 _ACEOF
4992 cat confdefs.h >>conftest.$ac_ext
4993 cat >>conftest.$ac_ext <<_ACEOF
4994 /* end confdefs.h.  */
4995 #ifdef __STDC__
4996 # include <limits.h>
4997 #else
4998 # include <assert.h>
4999 #endif
5000                      Syntax error
5001 _ACEOF
5002 if { (ac_try="$ac_cpp conftest.$ac_ext"
5003 case "(($ac_try" in
5004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5005   *) ac_try_echo=$ac_try;;
5006 esac
5007 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5008 $as_echo "$ac_try_echo") >&5
5009   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5010   ac_status=$?
5011   grep -v '^ *+' conftest.er1 >conftest.err
5012   rm -f conftest.er1
5013   cat conftest.err >&5
5014   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015   (exit $ac_status); } >/dev/null && {
5016          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5017          test ! -s conftest.err
5018        }; then
5019   :
5020 else
5021   $as_echo "$as_me: failed program was:" >&5
5022 sed 's/^/| /' conftest.$ac_ext >&5
5023
5024   # Broken: fails on valid input.
5025 continue
5026 fi
5027
5028 rm -f conftest.err conftest.$ac_ext
5029
5030   # OK, works on sane cases.  Now check whether nonexistent headers
5031   # can be detected and how.
5032   cat >conftest.$ac_ext <<_ACEOF
5033 /* confdefs.h.  */
5034 _ACEOF
5035 cat confdefs.h >>conftest.$ac_ext
5036 cat >>conftest.$ac_ext <<_ACEOF
5037 /* end confdefs.h.  */
5038 #include <ac_nonexistent.h>
5039 _ACEOF
5040 if { (ac_try="$ac_cpp conftest.$ac_ext"
5041 case "(($ac_try" in
5042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5043   *) ac_try_echo=$ac_try;;
5044 esac
5045 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5046 $as_echo "$ac_try_echo") >&5
5047   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5048   ac_status=$?
5049   grep -v '^ *+' conftest.er1 >conftest.err
5050   rm -f conftest.er1
5051   cat conftest.err >&5
5052   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5053   (exit $ac_status); } >/dev/null && {
5054          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5055          test ! -s conftest.err
5056        }; then
5057   # Broken: success on invalid input.
5058 continue
5059 else
5060   $as_echo "$as_me: failed program was:" >&5
5061 sed 's/^/| /' conftest.$ac_ext >&5
5062
5063   # Passes both tests.
5064 ac_preproc_ok=:
5065 break
5066 fi
5067
5068 rm -f conftest.err conftest.$ac_ext
5069
5070 done
5071 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5072 rm -f conftest.err conftest.$ac_ext
5073 if $ac_preproc_ok; then
5074   break
5075 fi
5076
5077     done
5078     ac_cv_prog_CXXCPP=$CXXCPP
5079
5080 fi
5081   CXXCPP=$ac_cv_prog_CXXCPP
5082 else
5083   ac_cv_prog_CXXCPP=$CXXCPP
5084 fi
5085 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
5086 $as_echo "$CXXCPP" >&6; }
5087 ac_preproc_ok=false
5088 for ac_cxx_preproc_warn_flag in '' yes
5089 do
5090   # Use a header file that comes with gcc, so configuring glibc
5091   # with a fresh cross-compiler works.
5092   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5093   # <limits.h> exists even on freestanding compilers.
5094   # On the NeXT, cc -E runs the code through the compiler's parser,
5095   # not just through cpp. "Syntax error" is here to catch this case.
5096   cat >conftest.$ac_ext <<_ACEOF
5097 /* confdefs.h.  */
5098 _ACEOF
5099 cat confdefs.h >>conftest.$ac_ext
5100 cat >>conftest.$ac_ext <<_ACEOF
5101 /* end confdefs.h.  */
5102 #ifdef __STDC__
5103 # include <limits.h>
5104 #else
5105 # include <assert.h>
5106 #endif
5107                      Syntax error
5108 _ACEOF
5109 if { (ac_try="$ac_cpp conftest.$ac_ext"
5110 case "(($ac_try" in
5111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5112   *) ac_try_echo=$ac_try;;
5113 esac
5114 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5115 $as_echo "$ac_try_echo") >&5
5116   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5117   ac_status=$?
5118   grep -v '^ *+' conftest.er1 >conftest.err
5119   rm -f conftest.er1
5120   cat conftest.err >&5
5121   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5122   (exit $ac_status); } >/dev/null && {
5123          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5124          test ! -s conftest.err
5125        }; then
5126   :
5127 else
5128   $as_echo "$as_me: failed program was:" >&5
5129 sed 's/^/| /' conftest.$ac_ext >&5
5130
5131   # Broken: fails on valid input.
5132 continue
5133 fi
5134
5135 rm -f conftest.err conftest.$ac_ext
5136
5137   # OK, works on sane cases.  Now check whether nonexistent headers
5138   # can be detected and how.
5139   cat >conftest.$ac_ext <<_ACEOF
5140 /* confdefs.h.  */
5141 _ACEOF
5142 cat confdefs.h >>conftest.$ac_ext
5143 cat >>conftest.$ac_ext <<_ACEOF
5144 /* end confdefs.h.  */
5145 #include <ac_nonexistent.h>
5146 _ACEOF
5147 if { (ac_try="$ac_cpp conftest.$ac_ext"
5148 case "(($ac_try" in
5149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5150   *) ac_try_echo=$ac_try;;
5151 esac
5152 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5153 $as_echo "$ac_try_echo") >&5
5154   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5155   ac_status=$?
5156   grep -v '^ *+' conftest.er1 >conftest.err
5157   rm -f conftest.er1
5158   cat conftest.err >&5
5159   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5160   (exit $ac_status); } >/dev/null && {
5161          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5162          test ! -s conftest.err
5163        }; then
5164   # Broken: success on invalid input.
5165 continue
5166 else
5167   $as_echo "$as_me: failed program was:" >&5
5168 sed 's/^/| /' conftest.$ac_ext >&5
5169
5170   # Passes both tests.
5171 ac_preproc_ok=:
5172 break
5173 fi
5174
5175 rm -f conftest.err conftest.$ac_ext
5176
5177 done
5178 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5179 rm -f conftest.err conftest.$ac_ext
5180 if $ac_preproc_ok; then
5181   :
5182 else
5183   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5184 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5185 { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5186 See \`config.log' for more details." >&5
5187 $as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5188 See \`config.log' for more details." >&2;}
5189    { (exit 1); exit 1; }; }; }
5190 fi
5191
5192 ac_ext=cpp
5193 ac_cpp='$CXXCPP $CPPFLAGS'
5194 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5195 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5196 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5197
5198
5199 ac_ext=f
5200 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5201 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5202 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5203 if test -n "$ac_tool_prefix"; then
5204   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
5205   do
5206     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5207 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5208 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5209 $as_echo_n "checking for $ac_word... " >&6; }
5210 if test "${ac_cv_prog_F77+set}" = set; then
5211   $as_echo_n "(cached) " >&6
5212 else
5213   if test -n "$F77"; then
5214   ac_cv_prog_F77="$F77" # Let the user override the test.
5215 else
5216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5217 for as_dir in $PATH
5218 do
5219   IFS=$as_save_IFS
5220   test -z "$as_dir" && as_dir=.
5221   for ac_exec_ext in '' $ac_executable_extensions; do
5222   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5223     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5224     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5225     break 2
5226   fi
5227 done
5228 done
5229 IFS=$as_save_IFS
5230
5231 fi
5232 fi
5233 F77=$ac_cv_prog_F77
5234 if test -n "$F77"; then
5235   { $as_echo "$as_me:$LINENO: result: $F77" >&5
5236 $as_echo "$F77" >&6; }
5237 else
5238   { $as_echo "$as_me:$LINENO: result: no" >&5
5239 $as_echo "no" >&6; }
5240 fi
5241
5242
5243     test -n "$F77" && break
5244   done
5245 fi
5246 if test -z "$F77"; then
5247   ac_ct_F77=$F77
5248   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
5249 do
5250   # Extract the first word of "$ac_prog", so it can be a program name with args.
5251 set dummy $ac_prog; ac_word=$2
5252 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5253 $as_echo_n "checking for $ac_word... " >&6; }
5254 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5255   $as_echo_n "(cached) " >&6
5256 else
5257   if test -n "$ac_ct_F77"; then
5258   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5259 else
5260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5261 for as_dir in $PATH
5262 do
5263   IFS=$as_save_IFS
5264   test -z "$as_dir" && as_dir=.
5265   for ac_exec_ext in '' $ac_executable_extensions; do
5266   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5267     ac_cv_prog_ac_ct_F77="$ac_prog"
5268     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5269     break 2
5270   fi
5271 done
5272 done
5273 IFS=$as_save_IFS
5274
5275 fi
5276 fi
5277 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5278 if test -n "$ac_ct_F77"; then
5279   { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5280 $as_echo "$ac_ct_F77" >&6; }
5281 else
5282   { $as_echo "$as_me:$LINENO: result: no" >&5
5283 $as_echo "no" >&6; }
5284 fi
5285
5286
5287   test -n "$ac_ct_F77" && break
5288 done
5289
5290   if test "x$ac_ct_F77" = x; then
5291     F77=""
5292   else
5293     case $cross_compiling:$ac_tool_warned in
5294 yes:)
5295 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5296 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5297 ac_tool_warned=yes ;;
5298 esac
5299     F77=$ac_ct_F77
5300   fi
5301 fi
5302
5303
5304 # Provide some information about the compiler.
5305 $as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5306 set X $ac_compile
5307 ac_compiler=$2
5308 { (ac_try="$ac_compiler --version >&5"
5309 case "(($ac_try" in
5310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5311   *) ac_try_echo=$ac_try;;
5312 esac
5313 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5314 $as_echo "$ac_try_echo") >&5
5315   (eval "$ac_compiler --version >&5") 2>&5
5316   ac_status=$?
5317   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318   (exit $ac_status); }
5319 { (ac_try="$ac_compiler -v >&5"
5320 case "(($ac_try" in
5321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5322   *) ac_try_echo=$ac_try;;
5323 esac
5324 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5325 $as_echo "$ac_try_echo") >&5
5326   (eval "$ac_compiler -v >&5") 2>&5
5327   ac_status=$?
5328   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5329   (exit $ac_status); }
5330 { (ac_try="$ac_compiler -V >&5"
5331 case "(($ac_try" in
5332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5333   *) ac_try_echo=$ac_try;;
5334 esac
5335 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5336 $as_echo "$ac_try_echo") >&5
5337   (eval "$ac_compiler -V >&5") 2>&5
5338   ac_status=$?
5339   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5340   (exit $ac_status); }
5341 rm -f a.out
5342
5343 # If we don't use `.F' as extension, the preprocessor is not run on the
5344 # input file.  (Note that this only needs to work for GNU compilers.)
5345 ac_save_ext=$ac_ext
5346 ac_ext=F
5347 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5348 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
5349 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5350   $as_echo_n "(cached) " >&6
5351 else
5352   cat >conftest.$ac_ext <<_ACEOF
5353       program main
5354 #ifndef __GNUC__
5355        choke me
5356 #endif
5357
5358       end
5359 _ACEOF
5360 rm -f conftest.$ac_objext
5361 if { (ac_try="$ac_compile"
5362 case "(($ac_try" in
5363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5364   *) ac_try_echo=$ac_try;;
5365 esac
5366 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5367 $as_echo "$ac_try_echo") >&5
5368   (eval "$ac_compile") 2>conftest.er1
5369   ac_status=$?
5370   grep -v '^ *+' conftest.er1 >conftest.err
5371   rm -f conftest.er1
5372   cat conftest.err >&5
5373   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5374   (exit $ac_status); } && {
5375          test -z "$ac_f77_werror_flag" ||
5376          test ! -s conftest.err
5377        } && test -s conftest.$ac_objext; then
5378   ac_compiler_gnu=yes
5379 else
5380   $as_echo "$as_me: failed program was:" >&5
5381 sed 's/^/| /' conftest.$ac_ext >&5
5382
5383         ac_compiler_gnu=no
5384 fi
5385
5386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5387 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5388
5389 fi
5390 { $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5391 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
5392 ac_ext=$ac_save_ext
5393 ac_test_FFLAGS=${FFLAGS+set}
5394 ac_save_FFLAGS=$FFLAGS
5395 FFLAGS=
5396 { $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5397 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
5398 if test "${ac_cv_prog_f77_g+set}" = set; then
5399   $as_echo_n "(cached) " >&6
5400 else
5401   FFLAGS=-g
5402 cat >conftest.$ac_ext <<_ACEOF
5403       program main
5404
5405       end
5406 _ACEOF
5407 rm -f conftest.$ac_objext
5408 if { (ac_try="$ac_compile"
5409 case "(($ac_try" in
5410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5411   *) ac_try_echo=$ac_try;;
5412 esac
5413 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5414 $as_echo "$ac_try_echo") >&5
5415   (eval "$ac_compile") 2>conftest.er1
5416   ac_status=$?
5417   grep -v '^ *+' conftest.er1 >conftest.err
5418   rm -f conftest.er1
5419   cat conftest.err >&5
5420   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5421   (exit $ac_status); } && {
5422          test -z "$ac_f77_werror_flag" ||
5423          test ! -s conftest.err
5424        } && test -s conftest.$ac_objext; then
5425   ac_cv_prog_f77_g=yes
5426 else
5427   $as_echo "$as_me: failed program was:" >&5
5428 sed 's/^/| /' conftest.$ac_ext >&5
5429
5430         ac_cv_prog_f77_g=no
5431 fi
5432
5433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5434
5435 fi
5436 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5437 $as_echo "$ac_cv_prog_f77_g" >&6; }
5438 if test "$ac_test_FFLAGS" = set; then
5439   FFLAGS=$ac_save_FFLAGS
5440 elif test $ac_cv_prog_f77_g = yes; then
5441   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5442     FFLAGS="-g -O2"
5443   else
5444     FFLAGS="-g"
5445   fi
5446 else
5447   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5448     FFLAGS="-O2"
5449   else
5450     FFLAGS=
5451   fi
5452 fi
5453
5454 if test $ac_compiler_gnu = yes; then
5455   G77=yes
5456 else
5457   G77=
5458 fi
5459 ac_ext=c
5460 ac_cpp='$CPP $CPPFLAGS'
5461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5464
5465
5466
5467 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5468
5469 # find the maximum length of command line arguments
5470 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5471 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5472 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5473   $as_echo_n "(cached) " >&6
5474 else
5475     i=0
5476   testring="ABCD"
5477
5478   case $build_os in
5479   msdosdjgpp*)
5480     # On DJGPP, this test can blow up pretty badly due to problems in libc
5481     # (any single argument exceeding 2000 bytes causes a buffer overrun
5482     # during glob expansion).  Even if it were fixed, the result of this
5483     # check would be larger than it should be.
5484     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5485     ;;
5486
5487   gnu*)
5488     # Under GNU Hurd, this test is not required because there is
5489     # no limit to the length of command line arguments.
5490     # Libtool will interpret -1 as no limit whatsoever
5491     lt_cv_sys_max_cmd_len=-1;
5492     ;;
5493
5494   cygwin* | mingw*)
5495     # On Win9x/ME, this test blows up -- it succeeds, but takes
5496     # about 5 minutes as the teststring grows exponentially.
5497     # Worse, since 9x/ME are not pre-emptively multitasking,
5498     # you end up with a "frozen" computer, even though with patience
5499     # the test eventually succeeds (with a max line length of 256k).
5500     # Instead, let's just punt: use the minimum linelength reported by
5501     # all of the supported platforms: 8192 (on NT/2K/XP).
5502     lt_cv_sys_max_cmd_len=8192;
5503     ;;
5504
5505   amigaos*)
5506     # On AmigaOS with pdksh, this test takes hours, literally.
5507     # So we just punt and use a minimum line length of 8192.
5508     lt_cv_sys_max_cmd_len=8192;
5509     ;;
5510
5511  *)
5512     # If test is not a shell built-in, we'll probably end up computing a
5513     # maximum length that is only half of the actual maximum length, but
5514     # we can't tell.
5515     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5516                = "XX$testring") >/dev/null 2>&1 &&
5517             new_result=`expr "X$testring" : ".*" 2>&1` &&
5518             lt_cv_sys_max_cmd_len=$new_result &&
5519             test $i != 17 # 1/2 MB should be enough
5520     do
5521       i=`expr $i + 1`
5522       testring=$testring$testring
5523     done
5524     testring=
5525     # Add a significant safety factor because C++ compilers can tack on massive
5526     # amounts of additional arguments before passing them to the linker.
5527     # It appears as though 1/2 is a usable value.
5528     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5529     ;;
5530   esac
5531
5532 fi
5533
5534 if test -n $lt_cv_sys_max_cmd_len ; then
5535   { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5536 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5537 else
5538   { $as_echo "$as_me:$LINENO: result: none" >&5
5539 $as_echo "none" >&6; }
5540 fi
5541
5542
5543
5544
5545 # Check for command to grab the raw symbol name followed by C symbol from nm.
5546 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5547 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5548 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5549   $as_echo_n "(cached) " >&6
5550 else
5551
5552 # These are sane defaults that work on at least a few old systems.
5553 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5554
5555 # Character class describing NM global symbol codes.
5556 symcode='[BCDEGRST]'
5557
5558 # Regexp to match symbols that can be accessed directly from C.
5559 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5560
5561 # Transform the above into a raw symbol and a C symbol.
5562 symxfrm='\1 \2\3 \3'
5563
5564 # Transform an extracted symbol line into a proper C declaration
5565 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5566
5567 # Transform an extracted symbol line into symbol name and symbol address
5568 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'"
5569
5570 # Define system-specific variables.
5571 case $host_os in
5572 aix*)
5573   symcode='[BCDT]'
5574   ;;
5575 cygwin* | mingw* | pw32*)
5576   symcode='[ABCDGISTW]'
5577   ;;
5578 hpux*) # Its linker distinguishes data from code symbols
5579   if test "$host_cpu" = ia64; then
5580     symcode='[ABCDEGRST]'
5581   fi
5582   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5583   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'"
5584   ;;
5585 irix* | nonstopux*)
5586   symcode='[BCDEGRST]'
5587   ;;
5588 osf*)
5589   symcode='[BCDEGQRST]'
5590   ;;
5591 solaris* | sysv5*)
5592   symcode='[BDRT]'
5593   ;;
5594 sysv4)
5595   symcode='[DFNSTU]'
5596   ;;
5597 esac
5598
5599 # Handle CRLF in mingw tool chain
5600 opt_cr=
5601 case $build_os in
5602 mingw*)
5603   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5604   ;;
5605 esac
5606
5607 # If we're using GNU nm, then use its standard symbol codes.
5608 case `$NM -V 2>&1` in
5609 *GNU* | *'with BFD'*)
5610   symcode='[ABCDGIRSTW]' ;;
5611 esac
5612
5613 # Try without a prefix undercore, then with it.
5614 for ac_symprfx in "" "_"; do
5615
5616   # Write the raw and C identifiers.
5617   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5618
5619   # Check to see that the pipe works correctly.
5620   pipe_works=no
5621
5622   rm -f conftest*
5623   cat > conftest.$ac_ext <<EOF
5624 #ifdef __cplusplus
5625 extern "C" {
5626 #endif
5627 char nm_test_var;
5628 void nm_test_func(){}
5629 #ifdef __cplusplus
5630 }
5631 #endif
5632 int main(){nm_test_var='a';nm_test_func();return(0);}
5633 EOF
5634
5635   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5636   (eval $ac_compile) 2>&5
5637   ac_status=$?
5638   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639   (exit $ac_status); }; then
5640     # Now try to grab the symbols.
5641     nlist=conftest.nm
5642     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5643   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5644   ac_status=$?
5645   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5646   (exit $ac_status); } && test -s "$nlist"; then
5647       # Try sorting and uniquifying the output.
5648       if sort "$nlist" | uniq > "$nlist"T; then
5649         mv -f "$nlist"T "$nlist"
5650       else
5651         rm -f "$nlist"T
5652       fi
5653
5654       # Make sure that we snagged all the symbols we need.
5655       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5656         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5657           cat <<EOF > conftest.$ac_ext
5658 #ifdef __cplusplus
5659 extern "C" {
5660 #endif
5661
5662 EOF
5663           # Now generate the symbol file.
5664           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5665
5666           cat <<EOF >> conftest.$ac_ext
5667 #if defined (__STDC__) && __STDC__
5668 # define lt_ptr_t void *
5669 #else
5670 # define lt_ptr_t char *
5671 # define const
5672 #endif
5673
5674 /* The mapping between symbol names and symbols. */
5675 const struct {
5676   const char *name;
5677   lt_ptr_t address;
5678 }
5679 lt_preloaded_symbols[] =
5680 {
5681 EOF
5682           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5683           cat <<\EOF >> conftest.$ac_ext
5684   {0, (lt_ptr_t) 0}
5685 };
5686
5687 #ifdef __cplusplus
5688 }
5689 #endif
5690 EOF
5691           # Now try linking the two files.
5692           mv conftest.$ac_objext conftstm.$ac_objext
5693           lt_save_LIBS="$LIBS"
5694           lt_save_CFLAGS="$CFLAGS"
5695           LIBS="conftstm.$ac_objext"
5696           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5697           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5698   (eval $ac_link) 2>&5
5699   ac_status=$?
5700   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5701   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5702             pipe_works=yes
5703           fi
5704           LIBS="$lt_save_LIBS"
5705           CFLAGS="$lt_save_CFLAGS"
5706         else
5707           echo "cannot find nm_test_func in $nlist" >&5
5708         fi
5709       else
5710         echo "cannot find nm_test_var in $nlist" >&5
5711       fi
5712     else
5713       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5714     fi
5715   else
5716     echo "$progname: failed program was:" >&5
5717     cat conftest.$ac_ext >&5
5718   fi
5719   rm -f conftest* conftst*
5720
5721   # Do not use the global_symbol_pipe unless it works.
5722   if test "$pipe_works" = yes; then
5723     break
5724   else
5725     lt_cv_sys_global_symbol_pipe=
5726   fi
5727 done
5728
5729 fi
5730
5731 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5732   lt_cv_sys_global_symbol_to_cdecl=
5733 fi
5734 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5735   { $as_echo "$as_me:$LINENO: result: failed" >&5
5736 $as_echo "failed" >&6; }
5737 else
5738   { $as_echo "$as_me:$LINENO: result: ok" >&5
5739 $as_echo "ok" >&6; }
5740 fi
5741
5742 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
5743 $as_echo_n "checking for objdir... " >&6; }
5744 if test "${lt_cv_objdir+set}" = set; then
5745   $as_echo_n "(cached) " >&6
5746 else
5747   rm -f .libs 2>/dev/null
5748 mkdir .libs 2>/dev/null
5749 if test -d .libs; then
5750   lt_cv_objdir=.libs
5751 else
5752   # MS-DOS does not allow filenames that begin with a dot.
5753   lt_cv_objdir=_libs
5754 fi
5755 rmdir .libs 2>/dev/null
5756 fi
5757 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5758 $as_echo "$lt_cv_objdir" >&6; }
5759 objdir=$lt_cv_objdir
5760
5761
5762
5763
5764
5765 case $host_os in
5766 aix3*)
5767   # AIX sometimes has problems with the GCC collect2 program.  For some
5768   # reason, if we set the COLLECT_NAMES environment variable, the problems
5769   # vanish in a puff of smoke.
5770   if test "X${COLLECT_NAMES+set}" != Xset; then
5771     COLLECT_NAMES=
5772     export COLLECT_NAMES
5773   fi
5774   ;;
5775 esac
5776
5777 # Sed substitution that helps us do robust quoting.  It backslashifies
5778 # metacharacters that are still active within double-quoted strings.
5779 Xsed='sed -e s/^X//'
5780 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5781
5782 # Same as above, but do not quote variable references.
5783 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5784
5785 # Sed substitution to delay expansion of an escaped shell variable in a
5786 # double_quote_subst'ed string.
5787 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5788
5789 # Sed substitution to avoid accidental globbing in evaled expressions
5790 no_glob_subst='s/\*/\\\*/g'
5791
5792 # Constants:
5793 rm="rm -f"
5794
5795 # Global variables:
5796 default_ofile=libtool
5797 can_build_shared=yes
5798
5799 # All known linkers require a `.a' archive for static linking (except M$VC,
5800 # which needs '.lib').
5801 libext=a
5802 ltmain="$ac_aux_dir/ltmain.sh"
5803 ofile="$default_ofile"
5804 with_gnu_ld="$lt_cv_prog_gnu_ld"
5805
5806 if test -n "$ac_tool_prefix"; then
5807   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5808 set dummy ${ac_tool_prefix}ar; ac_word=$2
5809 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5810 $as_echo_n "checking for $ac_word... " >&6; }
5811 if test "${ac_cv_prog_AR+set}" = set; then
5812   $as_echo_n "(cached) " >&6
5813 else
5814   if test -n "$AR"; then
5815   ac_cv_prog_AR="$AR" # Let the user override the test.
5816 else
5817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5818 for as_dir in $PATH
5819 do
5820   IFS=$as_save_IFS
5821   test -z "$as_dir" && as_dir=.
5822   for ac_exec_ext in '' $ac_executable_extensions; do
5823   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5824     ac_cv_prog_AR="${ac_tool_prefix}ar"
5825     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5826     break 2
5827   fi
5828 done
5829 done
5830 IFS=$as_save_IFS
5831
5832 fi
5833 fi
5834 AR=$ac_cv_prog_AR
5835 if test -n "$AR"; then
5836   { $as_echo "$as_me:$LINENO: result: $AR" >&5
5837 $as_echo "$AR" >&6; }
5838 else
5839   { $as_echo "$as_me:$LINENO: result: no" >&5
5840 $as_echo "no" >&6; }
5841 fi
5842
5843
5844 fi
5845 if test -z "$ac_cv_prog_AR"; then
5846   ac_ct_AR=$AR
5847   # Extract the first word of "ar", so it can be a program name with args.
5848 set dummy ar; ac_word=$2
5849 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5850 $as_echo_n "checking for $ac_word... " >&6; }
5851 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5852   $as_echo_n "(cached) " >&6
5853 else
5854   if test -n "$ac_ct_AR"; then
5855   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5856 else
5857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5858 for as_dir in $PATH
5859 do
5860   IFS=$as_save_IFS
5861   test -z "$as_dir" && as_dir=.
5862   for ac_exec_ext in '' $ac_executable_extensions; do
5863   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5864     ac_cv_prog_ac_ct_AR="ar"
5865     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5866     break 2
5867   fi
5868 done
5869 done
5870 IFS=$as_save_IFS
5871
5872 fi
5873 fi
5874 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5875 if test -n "$ac_ct_AR"; then
5876   { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5877 $as_echo "$ac_ct_AR" >&6; }
5878 else
5879   { $as_echo "$as_me:$LINENO: result: no" >&5
5880 $as_echo "no" >&6; }
5881 fi
5882
5883   if test "x$ac_ct_AR" = x; then
5884     AR="false"
5885   else
5886     case $cross_compiling:$ac_tool_warned in
5887 yes:)
5888 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5889 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5890 ac_tool_warned=yes ;;
5891 esac
5892     AR=$ac_ct_AR
5893   fi
5894 else
5895   AR="$ac_cv_prog_AR"
5896 fi
5897
5898 if test -n "$ac_tool_prefix"; then
5899   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5900 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5901 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5902 $as_echo_n "checking for $ac_word... " >&6; }
5903 if test "${ac_cv_prog_RANLIB+set}" = set; then
5904   $as_echo_n "(cached) " >&6
5905 else
5906   if test -n "$RANLIB"; then
5907   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5908 else
5909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5910 for as_dir in $PATH
5911 do
5912   IFS=$as_save_IFS
5913   test -z "$as_dir" && as_dir=.
5914   for ac_exec_ext in '' $ac_executable_extensions; do
5915   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5916     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5917     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5918     break 2
5919   fi
5920 done
5921 done
5922 IFS=$as_save_IFS
5923
5924 fi
5925 fi
5926 RANLIB=$ac_cv_prog_RANLIB
5927 if test -n "$RANLIB"; then
5928   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5929 $as_echo "$RANLIB" >&6; }
5930 else
5931   { $as_echo "$as_me:$LINENO: result: no" >&5
5932 $as_echo "no" >&6; }
5933 fi
5934
5935
5936 fi
5937 if test -z "$ac_cv_prog_RANLIB"; then
5938   ac_ct_RANLIB=$RANLIB
5939   # Extract the first word of "ranlib", so it can be a program name with args.
5940 set dummy ranlib; ac_word=$2
5941 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5942 $as_echo_n "checking for $ac_word... " >&6; }
5943 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5944   $as_echo_n "(cached) " >&6
5945 else
5946   if test -n "$ac_ct_RANLIB"; then
5947   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5948 else
5949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5950 for as_dir in $PATH
5951 do
5952   IFS=$as_save_IFS
5953   test -z "$as_dir" && as_dir=.
5954   for ac_exec_ext in '' $ac_executable_extensions; do
5955   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5956     ac_cv_prog_ac_ct_RANLIB="ranlib"
5957     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5958     break 2
5959   fi
5960 done
5961 done
5962 IFS=$as_save_IFS
5963
5964 fi
5965 fi
5966 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5967 if test -n "$ac_ct_RANLIB"; then
5968   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5969 $as_echo "$ac_ct_RANLIB" >&6; }
5970 else
5971   { $as_echo "$as_me:$LINENO: result: no" >&5
5972 $as_echo "no" >&6; }
5973 fi
5974
5975   if test "x$ac_ct_RANLIB" = x; then
5976     RANLIB=":"
5977   else
5978     case $cross_compiling:$ac_tool_warned in
5979 yes:)
5980 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5981 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5982 ac_tool_warned=yes ;;
5983 esac
5984     RANLIB=$ac_ct_RANLIB
5985   fi
5986 else
5987   RANLIB="$ac_cv_prog_RANLIB"
5988 fi
5989
5990 if test -n "$ac_tool_prefix"; then
5991   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5992 set dummy ${ac_tool_prefix}strip; ac_word=$2
5993 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5994 $as_echo_n "checking for $ac_word... " >&6; }
5995 if test "${ac_cv_prog_STRIP+set}" = set; then
5996   $as_echo_n "(cached) " >&6
5997 else
5998   if test -n "$STRIP"; then
5999   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6000 else
6001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6002 for as_dir in $PATH
6003 do
6004   IFS=$as_save_IFS
6005   test -z "$as_dir" && as_dir=.
6006   for ac_exec_ext in '' $ac_executable_extensions; do
6007   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6008     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6009     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6010     break 2
6011   fi
6012 done
6013 done
6014 IFS=$as_save_IFS
6015
6016 fi
6017 fi
6018 STRIP=$ac_cv_prog_STRIP
6019 if test -n "$STRIP"; then
6020   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6021 $as_echo "$STRIP" >&6; }
6022 else
6023   { $as_echo "$as_me:$LINENO: result: no" >&5
6024 $as_echo "no" >&6; }
6025 fi
6026
6027
6028 fi
6029 if test -z "$ac_cv_prog_STRIP"; then
6030   ac_ct_STRIP=$STRIP
6031   # Extract the first word of "strip", so it can be a program name with args.
6032 set dummy strip; ac_word=$2
6033 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6034 $as_echo_n "checking for $ac_word... " >&6; }
6035 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6036   $as_echo_n "(cached) " >&6
6037 else
6038   if test -n "$ac_ct_STRIP"; then
6039   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6040 else
6041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6042 for as_dir in $PATH
6043 do
6044   IFS=$as_save_IFS
6045   test -z "$as_dir" && as_dir=.
6046   for ac_exec_ext in '' $ac_executable_extensions; do
6047   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6048     ac_cv_prog_ac_ct_STRIP="strip"
6049     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6050     break 2
6051   fi
6052 done
6053 done
6054 IFS=$as_save_IFS
6055
6056 fi
6057 fi
6058 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6059 if test -n "$ac_ct_STRIP"; then
6060   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6061 $as_echo "$ac_ct_STRIP" >&6; }
6062 else
6063   { $as_echo "$as_me:$LINENO: result: no" >&5
6064 $as_echo "no" >&6; }
6065 fi
6066
6067   if test "x$ac_ct_STRIP" = x; then
6068     STRIP=":"
6069   else
6070     case $cross_compiling:$ac_tool_warned in
6071 yes:)
6072 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6073 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6074 ac_tool_warned=yes ;;
6075 esac
6076     STRIP=$ac_ct_STRIP
6077   fi
6078 else
6079   STRIP="$ac_cv_prog_STRIP"
6080 fi
6081
6082
6083 old_CC="$CC"
6084 old_CFLAGS="$CFLAGS"
6085
6086 # Set sane defaults for various variables
6087 test -z "$AR" && AR=ar
6088 test -z "$AR_FLAGS" && AR_FLAGS=cru
6089 test -z "$AS" && AS=as
6090 test -z "$CC" && CC=cc
6091 test -z "$LTCC" && LTCC=$CC
6092 test -z "$DLLTOOL" && DLLTOOL=dlltool
6093 test -z "$LD" && LD=ld
6094 test -z "$LN_S" && LN_S="ln -s"
6095 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6096 test -z "$NM" && NM=nm
6097 test -z "$SED" && SED=sed
6098 test -z "$OBJDUMP" && OBJDUMP=objdump
6099 test -z "$RANLIB" && RANLIB=:
6100 test -z "$STRIP" && STRIP=:
6101 test -z "$ac_objext" && ac_objext=o
6102
6103 # Determine commands to create old-style static archives.
6104 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6105 old_postinstall_cmds='chmod 644 $oldlib'
6106 old_postuninstall_cmds=
6107
6108 if test -n "$RANLIB"; then
6109   case $host_os in
6110   openbsd*)
6111     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6112     ;;
6113   *)
6114     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6115     ;;
6116   esac
6117   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6118 fi
6119
6120 # Only perform the check for file, if the check method requires it
6121 case $deplibs_check_method in
6122 file_magic*)
6123   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6124     { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6125 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6126 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6127   $as_echo_n "(cached) " >&6
6128 else
6129   case $MAGIC_CMD in
6130 [\\/*] |  ?:[\\/]*)
6131   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6132   ;;
6133 *)
6134   lt_save_MAGIC_CMD="$MAGIC_CMD"
6135   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6136   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6137   for ac_dir in $ac_dummy; do
6138     IFS="$lt_save_ifs"
6139     test -z "$ac_dir" && ac_dir=.
6140     if test -f $ac_dir/${ac_tool_prefix}file; then
6141       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6142       if test -n "$file_magic_test_file"; then
6143         case $deplibs_check_method in
6144         "file_magic "*)
6145           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6146           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6147           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6148             $EGREP "$file_magic_regex" > /dev/null; then
6149             :
6150           else
6151             cat <<EOF 1>&2
6152
6153 *** Warning: the command libtool uses to detect shared libraries,
6154 *** $file_magic_cmd, produces output that libtool cannot recognize.
6155 *** The result is that libtool may fail to recognize shared libraries
6156 *** as such.  This will affect the creation of libtool libraries that
6157 *** depend on shared libraries, but programs linked with such libtool
6158 *** libraries will work regardless of this problem.  Nevertheless, you
6159 *** may want to report the problem to your system manager and/or to
6160 *** bug-libtool@gnu.org
6161
6162 EOF
6163           fi ;;
6164         esac
6165       fi
6166       break
6167     fi
6168   done
6169   IFS="$lt_save_ifs"
6170   MAGIC_CMD="$lt_save_MAGIC_CMD"
6171   ;;
6172 esac
6173 fi
6174
6175 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6176 if test -n "$MAGIC_CMD"; then
6177   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6178 $as_echo "$MAGIC_CMD" >&6; }
6179 else
6180   { $as_echo "$as_me:$LINENO: result: no" >&5
6181 $as_echo "no" >&6; }
6182 fi
6183
6184 if test -z "$lt_cv_path_MAGIC_CMD"; then
6185   if test -n "$ac_tool_prefix"; then
6186     { $as_echo "$as_me:$LINENO: checking for file" >&5
6187 $as_echo_n "checking for file... " >&6; }
6188 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6189   $as_echo_n "(cached) " >&6
6190 else
6191   case $MAGIC_CMD in
6192 [\\/*] |  ?:[\\/]*)
6193   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6194   ;;
6195 *)
6196   lt_save_MAGIC_CMD="$MAGIC_CMD"
6197   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6198   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6199   for ac_dir in $ac_dummy; do
6200     IFS="$lt_save_ifs"
6201     test -z "$ac_dir" && ac_dir=.
6202     if test -f $ac_dir/file; then
6203       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6204       if test -n "$file_magic_test_file"; then
6205         case $deplibs_check_method in
6206         "file_magic "*)
6207           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6208           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6209           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6210             $EGREP "$file_magic_regex" > /dev/null; then
6211             :
6212           else
6213             cat <<EOF 1>&2
6214
6215 *** Warning: the command libtool uses to detect shared libraries,
6216 *** $file_magic_cmd, produces output that libtool cannot recognize.
6217 *** The result is that libtool may fail to recognize shared libraries
6218 *** as such.  This will affect the creation of libtool libraries that
6219 *** depend on shared libraries, but programs linked with such libtool
6220 *** libraries will work regardless of this problem.  Nevertheless, you
6221 *** may want to report the problem to your system manager and/or to
6222 *** bug-libtool@gnu.org
6223
6224 EOF
6225           fi ;;
6226         esac
6227       fi
6228       break
6229     fi
6230   done
6231   IFS="$lt_save_ifs"
6232   MAGIC_CMD="$lt_save_MAGIC_CMD"
6233   ;;
6234 esac
6235 fi
6236
6237 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6238 if test -n "$MAGIC_CMD"; then
6239   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6240 $as_echo "$MAGIC_CMD" >&6; }
6241 else
6242   { $as_echo "$as_me:$LINENO: result: no" >&5
6243 $as_echo "no" >&6; }
6244 fi
6245
6246   else
6247     MAGIC_CMD=:
6248   fi
6249 fi
6250
6251   fi
6252   ;;
6253 esac
6254
6255 enable_dlopen=no
6256 enable_win32_dll=no
6257
6258 # Check whether --enable-libtool-lock was given.
6259 if test "${enable_libtool_lock+set}" = set; then
6260   enableval=$enable_libtool_lock;
6261 fi
6262
6263 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6264
6265
6266 # Check whether --with-pic was given.
6267 if test "${with_pic+set}" = set; then
6268   withval=$with_pic; pic_mode="$withval"
6269 else
6270   pic_mode=default
6271 fi
6272
6273 test -z "$pic_mode" && pic_mode=default
6274
6275 # Use C for the default configuration in the libtool script
6276 tagname=
6277 lt_save_CC="$CC"
6278 ac_ext=c
6279 ac_cpp='$CPP $CPPFLAGS'
6280 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6281 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6282 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6283
6284
6285 # Source file extension for C test sources.
6286 ac_ext=c
6287
6288 # Object file extension for compiled C test sources.
6289 objext=o
6290 objext=$objext
6291
6292 # Code to be used in simple compile tests
6293 lt_simple_compile_test_code="int some_variable = 0;\n"
6294
6295 # Code to be used in simple link tests
6296 lt_simple_link_test_code='int main(){return(0);}\n'
6297
6298
6299 # If no C compiler was specified, use CC.
6300 LTCC=${LTCC-"$CC"}
6301
6302 # Allow CC to be a program name with arguments.
6303 compiler=$CC
6304
6305
6306 #
6307 # Check for any special shared library compilation flags.
6308 #
6309 lt_prog_cc_shlib=
6310 if test "$GCC" = no; then
6311   case $host_os in
6312   sco3.2v5*)
6313     lt_prog_cc_shlib='-belf'
6314     ;;
6315   esac
6316 fi
6317 if test -n "$lt_prog_cc_shlib"; then
6318   { $as_echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6319 $as_echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6320   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6321   else
6322     { $as_echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6323 $as_echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6324     lt_cv_prog_cc_can_build_shared=no
6325   fi
6326 fi
6327
6328
6329 #
6330 # Check to make sure the static flag actually works.
6331 #
6332 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6333 $as_echo_n "checking if $compiler static flag $lt_prog_compiler_static works... " >&6; }
6334 if test "${lt_prog_compiler_static_works+set}" = set; then
6335   $as_echo_n "(cached) " >&6
6336 else
6337   lt_prog_compiler_static_works=no
6338    save_LDFLAGS="$LDFLAGS"
6339    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6340    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6341    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6342      # The compiler can only warn and ignore the option if not recognized
6343      # So say no if there are warnings
6344      if test -s conftest.err; then
6345        # Append any errors to the config.log.
6346        cat conftest.err 1>&5
6347      else
6348        lt_prog_compiler_static_works=yes
6349      fi
6350    fi
6351    $rm conftest*
6352    LDFLAGS="$save_LDFLAGS"
6353
6354 fi
6355 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6356 $as_echo "$lt_prog_compiler_static_works" >&6; }
6357
6358 if test x"$lt_prog_compiler_static_works" = xyes; then
6359     :
6360 else
6361     lt_prog_compiler_static=
6362 fi
6363
6364
6365
6366 ## CAVEAT EMPTOR:
6367 ## There is no encapsulation within the following macros, do not change
6368 ## the running order or otherwise move them around unless you know exactly
6369 ## what you are doing...
6370
6371 lt_prog_compiler_no_builtin_flag=
6372
6373 if test "$GCC" = yes; then
6374   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6375
6376
6377 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6378 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
6379 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6380   $as_echo_n "(cached) " >&6
6381 else
6382   lt_cv_prog_compiler_rtti_exceptions=no
6383   ac_outfile=conftest.$ac_objext
6384    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6385    lt_compiler_flag="-fno-rtti -fno-exceptions"
6386    # Insert the option either (1) after the last *FLAGS variable, or
6387    # (2) before a word containing "conftest.", or (3) at the end.
6388    # Note that $ac_compile itself does not contain backslashes and begins
6389    # with a dollar sign (not a hyphen), so the echo should work correctly.
6390    # The option is referenced via a variable to avoid confusing sed.
6391    lt_compile=`echo "$ac_compile" | $SED \
6392    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6393    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6394    -e 's:$: $lt_compiler_flag:'`
6395    (eval echo "\"\$as_me:6395: $lt_compile\"" >&5)
6396    (eval "$lt_compile" 2>conftest.err)
6397    ac_status=$?
6398    cat conftest.err >&5
6399    echo "$as_me:6399: \$? = $ac_status" >&5
6400    if (exit $ac_status) && test -s "$ac_outfile"; then
6401      # The compiler can only warn and ignore the option if not recognized
6402      # So say no if there are warnings
6403      if test ! -s conftest.err; then
6404        lt_cv_prog_compiler_rtti_exceptions=yes
6405      fi
6406    fi
6407    $rm conftest*
6408
6409 fi
6410 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6411 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6412
6413 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6414     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6415 else
6416     :
6417 fi
6418
6419 fi
6420
6421 lt_prog_compiler_wl=
6422 lt_prog_compiler_pic=
6423 lt_prog_compiler_static=
6424
6425 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6426 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
6427
6428   if test "$GCC" = yes; then
6429     lt_prog_compiler_wl='-Wl,'
6430     lt_prog_compiler_static='-static'
6431
6432     case $host_os in
6433       aix*)
6434       # All AIX code is PIC.
6435       if test "$host_cpu" = ia64; then
6436         # AIX 5 now supports IA64 processor
6437         lt_prog_compiler_static='-Bstatic'
6438       fi
6439       ;;
6440
6441     amigaos*)
6442       # FIXME: we need at least 68020 code to build shared libraries, but
6443       # adding the `-m68020' flag to GCC prevents building anything better,
6444       # like `-m68040'.
6445       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6446       ;;
6447
6448     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6449       # PIC is the default for these OSes.
6450       ;;
6451
6452     mingw* | pw32* | os2*)
6453       # This hack is so that the source file can tell whether it is being
6454       # built for inclusion in a dll (and should export symbols for example).
6455       lt_prog_compiler_pic='-DDLL_EXPORT'
6456       ;;
6457
6458     darwin* | rhapsody*)
6459       # PIC is the default on this platform
6460       # Common symbols not allowed in MH_DYLIB files
6461       lt_prog_compiler_pic='-fno-common'
6462       ;;
6463
6464     msdosdjgpp*)
6465       # Just because we use GCC doesn't mean we suddenly get shared libraries
6466       # on systems that don't support them.
6467       lt_prog_compiler_can_build_shared=no
6468       enable_shared=no
6469       ;;
6470
6471     sysv4*MP*)
6472       if test -d /usr/nec; then
6473         lt_prog_compiler_pic=-Kconform_pic
6474       fi
6475       ;;
6476
6477     hpux*)
6478       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6479       # not for PA HP-UX.
6480       case "$host_cpu" in
6481       hppa*64*|ia64*)
6482         # +Z the default
6483         ;;
6484       *)
6485         lt_prog_compiler_pic='-fPIC'
6486         ;;
6487       esac
6488       ;;
6489
6490     *)
6491       lt_prog_compiler_pic='-fPIC'
6492       ;;
6493     esac
6494   else
6495     # PORTME Check for flag to pass linker flags through the system compiler.
6496     case $host_os in
6497     aix*)
6498       lt_prog_compiler_wl='-Wl,'
6499       if test "$host_cpu" = ia64; then
6500         # AIX 5 now supports IA64 processor
6501         lt_prog_compiler_static='-Bstatic'
6502       else
6503         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6504       fi
6505       ;;
6506
6507     mingw* | pw32* | os2*)
6508       # This hack is so that the source file can tell whether it is being
6509       # built for inclusion in a dll (and should export symbols for example).
6510       lt_prog_compiler_pic='-DDLL_EXPORT'
6511       ;;
6512
6513     hpux9* | hpux10* | hpux11*)
6514       lt_prog_compiler_wl='-Wl,'
6515       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6516       # not for PA HP-UX.
6517       case "$host_cpu" in
6518       hppa*64*|ia64*)
6519         # +Z the default
6520         ;;
6521       *)
6522         lt_prog_compiler_pic='+Z'
6523         ;;
6524       esac
6525       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6526       lt_prog_compiler_static='${wl}-a ${wl}archive'
6527       ;;
6528
6529     irix5* | irix6* | nonstopux*)
6530       lt_prog_compiler_wl='-Wl,'
6531       # PIC (with -KPIC) is the default.
6532       lt_prog_compiler_static='-non_shared'
6533       ;;
6534
6535     newsos6)
6536       lt_prog_compiler_pic='-KPIC'
6537       lt_prog_compiler_static='-Bstatic'
6538       ;;
6539
6540     linux*)
6541       case $CC in
6542       icc* | ecc*)
6543         lt_prog_compiler_wl='-Wl,'
6544         lt_prog_compiler_pic='-KPIC'
6545         lt_prog_compiler_static='-static'
6546         ;;
6547       ccc*)
6548         lt_prog_compiler_wl='-Wl,'
6549         # All Alpha code is PIC.
6550         lt_prog_compiler_static='-non_shared'
6551         ;;
6552       esac
6553       ;;
6554
6555     osf3* | osf4* | osf5*)
6556       lt_prog_compiler_wl='-Wl,'
6557       # All OSF/1 code is PIC.
6558       lt_prog_compiler_static='-non_shared'
6559       ;;
6560
6561     sco3.2v5*)
6562       lt_prog_compiler_pic='-Kpic'
6563       lt_prog_compiler_static='-dn'
6564       ;;
6565
6566     solaris*)
6567       lt_prog_compiler_wl='-Wl,'
6568       lt_prog_compiler_pic='-KPIC'
6569       lt_prog_compiler_static='-Bstatic'
6570       ;;
6571
6572     sunos4*)
6573       lt_prog_compiler_wl='-Qoption ld '
6574       lt_prog_compiler_pic='-PIC'
6575       lt_prog_compiler_static='-Bstatic'
6576       ;;
6577
6578     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6579       lt_prog_compiler_wl='-Wl,'
6580       lt_prog_compiler_pic='-KPIC'
6581       lt_prog_compiler_static='-Bstatic'
6582       ;;
6583
6584     sysv4*MP*)
6585       if test -d /usr/nec ;then
6586         lt_prog_compiler_pic='-Kconform_pic'
6587         lt_prog_compiler_static='-Bstatic'
6588       fi
6589       ;;
6590
6591     uts4*)
6592       lt_prog_compiler_pic='-pic'
6593       lt_prog_compiler_static='-Bstatic'
6594       ;;
6595
6596     *)
6597       lt_prog_compiler_can_build_shared=no
6598       ;;
6599     esac
6600   fi
6601
6602 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6603 $as_echo "$lt_prog_compiler_pic" >&6; }
6604
6605 #
6606 # Check to make sure the PIC flag actually works.
6607 #
6608 if test -n "$lt_prog_compiler_pic"; then
6609
6610 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6611 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
6612 if test "${lt_prog_compiler_pic_works+set}" = set; then
6613   $as_echo_n "(cached) " >&6
6614 else
6615   lt_prog_compiler_pic_works=no
6616   ac_outfile=conftest.$ac_objext
6617    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6618    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6619    # Insert the option either (1) after the last *FLAGS variable, or
6620    # (2) before a word containing "conftest.", or (3) at the end.
6621    # Note that $ac_compile itself does not contain backslashes and begins
6622    # with a dollar sign (not a hyphen), so the echo should work correctly.
6623    # The option is referenced via a variable to avoid confusing sed.
6624    lt_compile=`echo "$ac_compile" | $SED \
6625    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6626    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6627    -e 's:$: $lt_compiler_flag:'`
6628    (eval echo "\"\$as_me:6628: $lt_compile\"" >&5)
6629    (eval "$lt_compile" 2>conftest.err)
6630    ac_status=$?
6631    cat conftest.err >&5
6632    echo "$as_me:6632: \$? = $ac_status" >&5
6633    if (exit $ac_status) && test -s "$ac_outfile"; then
6634      # The compiler can only warn and ignore the option if not recognized
6635      # So say no if there are warnings
6636      if test ! -s conftest.err; then
6637        lt_prog_compiler_pic_works=yes
6638      fi
6639    fi
6640    $rm conftest*
6641
6642 fi
6643 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6644 $as_echo "$lt_prog_compiler_pic_works" >&6; }
6645
6646 if test x"$lt_prog_compiler_pic_works" = xyes; then
6647     case $lt_prog_compiler_pic in
6648      "" | " "*) ;;
6649      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6650      esac
6651 else
6652     lt_prog_compiler_pic=
6653      lt_prog_compiler_can_build_shared=no
6654 fi
6655
6656 fi
6657 case "$host_os" in
6658   # For platforms which do not support PIC, -DPIC is meaningless:
6659   *djgpp*)
6660     lt_prog_compiler_pic=
6661     ;;
6662   *)
6663     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6664     ;;
6665 esac
6666
6667 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6668 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
6669 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6670   $as_echo_n "(cached) " >&6
6671 else
6672   lt_cv_prog_compiler_c_o=no
6673    $rm -r conftest 2>/dev/null
6674    mkdir conftest
6675    cd conftest
6676    mkdir out
6677    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6678
6679    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6680    # that will create temporary files in the current directory regardless of
6681    # the output directory.  Thus, making CWD read-only will cause this test
6682    # to fail, enabling locking or at least warning the user not to do parallel
6683    # builds.
6684    chmod -w .
6685
6686    lt_compiler_flag="-o out/conftest2.$ac_objext"
6687    # Insert the option either (1) after the last *FLAGS variable, or
6688    # (2) before a word containing "conftest.", or (3) at the end.
6689    # Note that $ac_compile itself does not contain backslashes and begins
6690    # with a dollar sign (not a hyphen), so the echo should work correctly.
6691    lt_compile=`echo "$ac_compile" | $SED \
6692    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6693    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6694    -e 's:$: $lt_compiler_flag:'`
6695    (eval echo "\"\$as_me:6695: $lt_compile\"" >&5)
6696    (eval "$lt_compile" 2>out/conftest.err)
6697    ac_status=$?
6698    cat out/conftest.err >&5
6699    echo "$as_me:6699: \$? = $ac_status" >&5
6700    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6701    then
6702      # The compiler can only warn and ignore the option if not recognized
6703      # So say no if there are warnings
6704      if test ! -s out/conftest.err; then
6705        lt_cv_prog_compiler_c_o=yes
6706      fi
6707    fi
6708    chmod u+w .
6709    $rm conftest*
6710    # SGI C++ compiler will create directory out/ii_files/ for
6711    # template instantiation
6712    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6713    $rm out/* && rmdir out
6714    cd ..
6715    rmdir conftest
6716    $rm conftest*
6717
6718 fi
6719 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6720 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
6721
6722
6723 hard_links="nottested"
6724 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6725   # do not overwrite the value of need_locks provided by the user
6726   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6727 $as_echo_n "checking if we can lock with hard links... " >&6; }
6728   hard_links=yes
6729   $rm conftest*
6730   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6731   touch conftest.a
6732   ln conftest.a conftest.b 2>&5 || hard_links=no
6733   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6734   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
6735 $as_echo "$hard_links" >&6; }
6736   if test "$hard_links" = no; then
6737     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6738 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6739     need_locks=warn
6740   fi
6741 else
6742   need_locks=no
6743 fi
6744
6745 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6746 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
6747
6748   runpath_var=
6749   allow_undefined_flag=
6750   enable_shared_with_static_runtimes=no
6751   archive_cmds=
6752   archive_expsym_cmds=
6753   old_archive_From_new_cmds=
6754   old_archive_from_expsyms_cmds=
6755   export_dynamic_flag_spec=
6756   whole_archive_flag_spec=
6757   thread_safe_flag_spec=
6758   hardcode_libdir_flag_spec=
6759   hardcode_libdir_flag_spec_ld=
6760   hardcode_libdir_separator=
6761   hardcode_direct=no
6762   hardcode_minus_L=no
6763   hardcode_shlibpath_var=unsupported
6764   link_all_deplibs=unknown
6765   hardcode_automatic=no
6766   module_cmds=
6767   module_expsym_cmds=
6768   always_export_symbols=no
6769   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6770   # include_expsyms should be a list of space-separated symbols to be *always*
6771   # included in the symbol list
6772   include_expsyms=
6773   # exclude_expsyms can be an extended regexp of symbols to exclude
6774   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6775   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6776   # as well as any symbol that contains `d'.
6777   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6778   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6779   # platforms (ab)use it in PIC code, but their linkers get confused if
6780   # the symbol is explicitly referenced.  Since portable code cannot
6781   # rely on this symbol name, it's probably fine to never include it in
6782   # preloaded symbol tables.
6783   extract_expsyms_cmds=
6784
6785   case $host_os in
6786   cygwin* | mingw* | pw32*)
6787     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6788     # When not using gcc, we currently assume that we are using
6789     # Microsoft Visual C++.
6790     if test "$GCC" != yes; then
6791       with_gnu_ld=no
6792     fi
6793     ;;
6794   openbsd*)
6795     with_gnu_ld=no
6796     ;;
6797   esac
6798
6799   ld_shlibs=yes
6800   if test "$with_gnu_ld" = yes; then
6801     # If archive_cmds runs LD, not CC, wlarc should be empty
6802     wlarc='${wl}'
6803
6804     # See if GNU ld supports shared libraries.
6805     case $host_os in
6806     aix3* | aix4* | aix5*)
6807       # On AIX/PPC, the GNU linker is very broken
6808       if test "$host_cpu" != ia64; then
6809         ld_shlibs=no
6810         cat <<EOF 1>&2
6811
6812 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6813 *** to be unable to reliably create shared libraries on AIX.
6814 *** Therefore, libtool is disabling shared libraries support.  If you
6815 *** really care for shared libraries, you may want to modify your PATH
6816 *** so that a non-GNU linker is found, and then restart.
6817
6818 EOF
6819       fi
6820       ;;
6821
6822     amigaos*)
6823       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)'
6824       hardcode_libdir_flag_spec='-L$libdir'
6825       hardcode_minus_L=yes
6826
6827       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6828       # that the semantics of dynamic libraries on AmigaOS, at least up
6829       # to version 4, is to share data among multiple programs linked
6830       # with the same dynamic library.  Since this doesn't match the
6831       # behavior of shared libraries on other platforms, we can't use
6832       # them.
6833       ld_shlibs=no
6834       ;;
6835
6836     beos*)
6837       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6838         allow_undefined_flag=unsupported
6839         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6840         # support --undefined.  This deserves some investigation.  FIXME
6841         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6842       else
6843         ld_shlibs=no
6844       fi
6845       ;;
6846
6847     cygwin* | mingw* | pw32*)
6848       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6849       # as there is no search path for DLLs.
6850       hardcode_libdir_flag_spec='-L$libdir'
6851       allow_undefined_flag=unsupported
6852       always_export_symbols=no
6853       enable_shared_with_static_runtimes=yes
6854       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6855
6856       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6857         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6858         # If the export-symbols file already is a .def file (1st line
6859         # is EXPORTS), use it as is; otherwise, prepend...
6860         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6861           cp $export_symbols $output_objdir/$soname.def;
6862         else
6863           echo EXPORTS > $output_objdir/$soname.def;
6864           cat $export_symbols >> $output_objdir/$soname.def;
6865         fi~
6866         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6867       else
6868         ld_shlibs=no
6869       fi
6870       ;;
6871
6872     netbsd*)
6873       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6874         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6875         wlarc=
6876       else
6877         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6878         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6879       fi
6880       ;;
6881
6882     solaris* | sysv5*)
6883       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6884         ld_shlibs=no
6885         cat <<EOF 1>&2
6886
6887 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6888 *** create shared libraries on Solaris systems.  Therefore, libtool
6889 *** is disabling shared libraries support.  We urge you to upgrade GNU
6890 *** binutils to release 2.9.1 or newer.  Another option is to modify
6891 *** your PATH or compiler configuration so that the native linker is
6892 *** used, and then restart.
6893
6894 EOF
6895       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6896         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6897         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6898       else
6899         ld_shlibs=no
6900       fi
6901       ;;
6902
6903     sunos4*)
6904       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6905       wlarc=
6906       hardcode_direct=yes
6907       hardcode_shlibpath_var=no
6908       ;;
6909
6910   linux*)
6911     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6912         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6913         archive_cmds="$tmp_archive_cmds"
6914       supports_anon_versioning=no
6915       case `$LD -v 2>/dev/null` in
6916         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6917         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6918         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6919         *\ 2.11.*) ;; # other 2.11 versions
6920         *) supports_anon_versioning=yes ;;
6921       esac
6922       if test $supports_anon_versioning = yes; then
6923         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6924 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6925 $echo "local: *; };" >> $output_objdir/$libname.ver~
6926         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6927       else
6928         archive_expsym_cmds="$tmp_archive_cmds"
6929       fi
6930     else
6931       ld_shlibs=no
6932     fi
6933     ;;
6934
6935     *)
6936       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6937         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6938         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6939       else
6940         ld_shlibs=no
6941       fi
6942       ;;
6943     esac
6944
6945     if test "$ld_shlibs" = yes; then
6946       runpath_var=LD_RUN_PATH
6947       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6948       export_dynamic_flag_spec='${wl}--export-dynamic'
6949       # ancient GNU ld didn't support --whole-archive et. al.
6950       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6951         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6952       else
6953         whole_archive_flag_spec=
6954       fi
6955     fi
6956   else
6957     # PORTME fill in a description of your system's linker (not GNU ld)
6958     case $host_os in
6959     aix3*)
6960       allow_undefined_flag=unsupported
6961       always_export_symbols=yes
6962       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'
6963       # Note: this linker hardcodes the directories in LIBPATH if there
6964       # are no directories specified by -L.
6965       hardcode_minus_L=yes
6966       if test "$GCC" = yes && test -z "$link_static_flag"; then
6967         # Neither direct hardcoding nor static linking is supported with a
6968         # broken collect2.
6969         hardcode_direct=unsupported
6970       fi
6971       ;;
6972
6973     aix4* | aix5*)
6974       if test "$host_cpu" = ia64; then
6975         # On IA64, the linker does run time linking by default, so we don't
6976         # have to do anything special.
6977         aix_use_runtimelinking=no
6978         exp_sym_flag='-Bexport'
6979         no_entry_flag=""
6980       else
6981         # If we're using GNU nm, then we don't want the "-C" option.
6982         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6983         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6984           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'
6985         else
6986           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'
6987         fi
6988         aix_use_runtimelinking=no
6989
6990         # Test if we are trying to use run time linking or normal
6991         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6992         # need to do runtime linking.
6993         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6994           for ld_flag in $LDFLAGS; do
6995           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6996             aix_use_runtimelinking=yes
6997             break
6998           fi
6999           done
7000         esac
7001
7002         exp_sym_flag='-bexport'
7003         no_entry_flag='-bnoentry'
7004       fi
7005
7006       # When large executables or shared objects are built, AIX ld can
7007       # have problems creating the table of contents.  If linking a library
7008       # or program results in "error TOC overflow" add -mminimal-toc to
7009       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7010       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7011
7012       archive_cmds=''
7013       hardcode_direct=yes
7014       hardcode_libdir_separator=':'
7015       link_all_deplibs=yes
7016
7017       if test "$GCC" = yes; then
7018         case $host_os in aix4.012|aix4.012.*)
7019         # We only want to do this on AIX 4.2 and lower, the check
7020         # below for broken collect2 doesn't work under 4.3+
7021           collect2name=`${CC} -print-prog-name=collect2`
7022           if test -f "$collect2name" && \
7023            strings "$collect2name" | grep resolve_lib_name >/dev/null
7024           then
7025           # We have reworked collect2
7026           hardcode_direct=yes
7027           else
7028           # We have old collect2
7029           hardcode_direct=unsupported
7030           # It fails to find uninstalled libraries when the uninstalled
7031           # path is not listed in the libpath.  Setting hardcode_minus_L
7032           # to unsupported forces relinking
7033           hardcode_minus_L=yes
7034           hardcode_libdir_flag_spec='-L$libdir'
7035           hardcode_libdir_separator=
7036           fi
7037         esac
7038         shared_flag='-shared'
7039       else
7040         # not using gcc
7041         if test "$host_cpu" = ia64; then
7042         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7043         # chokes on -Wl,-G. The following line is correct:
7044           shared_flag='-G'
7045         else
7046         if test "$aix_use_runtimelinking" = yes; then
7047             shared_flag='${wl}-G'
7048           else
7049             shared_flag='${wl}-bM:SRE'
7050         fi
7051         fi
7052       fi
7053
7054       # It seems that -bexpall does not export symbols beginning with
7055       # underscore (_), so it is better to generate a list of symbols to export.
7056       always_export_symbols=yes
7057       if test "$aix_use_runtimelinking" = yes; then
7058         # Warning - without using the other runtime loading flags (-brtl),
7059         # -berok will link without error, but may produce a broken library.
7060         allow_undefined_flag='-berok'
7061        # Determine the default libpath from the value encoded in an empty executable.
7062        cat >conftest.$ac_ext <<_ACEOF
7063 /* confdefs.h.  */
7064 _ACEOF
7065 cat confdefs.h >>conftest.$ac_ext
7066 cat >>conftest.$ac_ext <<_ACEOF
7067 /* end confdefs.h.  */
7068
7069 int
7070 main ()
7071 {
7072
7073   ;
7074   return 0;
7075 }
7076 _ACEOF
7077 rm -f conftest.$ac_objext conftest$ac_exeext
7078 if { (ac_try="$ac_link"
7079 case "(($ac_try" in
7080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7081   *) ac_try_echo=$ac_try;;
7082 esac
7083 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7084 $as_echo "$ac_try_echo") >&5
7085   (eval "$ac_link") 2>conftest.er1
7086   ac_status=$?
7087   grep -v '^ *+' conftest.er1 >conftest.err
7088   rm -f conftest.er1
7089   cat conftest.err >&5
7090   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7091   (exit $ac_status); } && {
7092          test -z "$ac_c_werror_flag" ||
7093          test ! -s conftest.err
7094        } && test -s conftest$ac_exeext && {
7095          test "$cross_compiling" = yes ||
7096          $as_test_x conftest$ac_exeext
7097        }; then
7098
7099 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7100 }'`
7101 # Check for a 64-bit object if we didn't find anything.
7102 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; }
7103 }'`; fi
7104 else
7105   $as_echo "$as_me: failed program was:" >&5
7106 sed 's/^/| /' conftest.$ac_ext >&5
7107
7108
7109 fi
7110
7111 rm -rf conftest.dSYM
7112 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7113       conftest$ac_exeext conftest.$ac_ext
7114 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7115
7116        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7117         archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7118        else
7119         if test "$host_cpu" = ia64; then
7120           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7121           allow_undefined_flag="-z nodefs"
7122           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
7123         else
7124          # Determine the default libpath from the value encoded in an empty executable.
7125          cat >conftest.$ac_ext <<_ACEOF
7126 /* confdefs.h.  */
7127 _ACEOF
7128 cat confdefs.h >>conftest.$ac_ext
7129 cat >>conftest.$ac_ext <<_ACEOF
7130 /* end confdefs.h.  */
7131
7132 int
7133 main ()
7134 {
7135
7136   ;
7137   return 0;
7138 }
7139 _ACEOF
7140 rm -f conftest.$ac_objext conftest$ac_exeext
7141 if { (ac_try="$ac_link"
7142 case "(($ac_try" in
7143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7144   *) ac_try_echo=$ac_try;;
7145 esac
7146 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7147 $as_echo "$ac_try_echo") >&5
7148   (eval "$ac_link") 2>conftest.er1
7149   ac_status=$?
7150   grep -v '^ *+' conftest.er1 >conftest.err
7151   rm -f conftest.er1
7152   cat conftest.err >&5
7153   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7154   (exit $ac_status); } && {
7155          test -z "$ac_c_werror_flag" ||
7156          test ! -s conftest.err
7157        } && test -s conftest$ac_exeext && {
7158          test "$cross_compiling" = yes ||
7159          $as_test_x conftest$ac_exeext
7160        }; then
7161
7162 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7163 }'`
7164 # Check for a 64-bit object if we didn't find anything.
7165 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; }
7166 }'`; fi
7167 else
7168   $as_echo "$as_me: failed program was:" >&5
7169 sed 's/^/| /' conftest.$ac_ext >&5
7170
7171
7172 fi
7173
7174 rm -rf conftest.dSYM
7175 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7176       conftest$ac_exeext conftest.$ac_ext
7177 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7178
7179          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7180           # Warning - without using the other run time loading flags,
7181           # -berok will link without error, but may produce a broken library.
7182           no_undefined_flag=' ${wl}-bernotok'
7183           allow_undefined_flag=' ${wl}-berok'
7184           # -bexpall does not export symbols beginning with underscore (_)
7185           always_export_symbols=yes
7186           # Exported symbols can be pulled into shared objects from archives
7187           whole_archive_flag_spec=' '
7188           archive_cmds_need_lc=yes
7189           # This is similar to how AIX traditionally builds it's shared libraries.
7190           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7191         fi
7192       fi
7193       ;;
7194
7195     amigaos*)
7196       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)'
7197       hardcode_libdir_flag_spec='-L$libdir'
7198       hardcode_minus_L=yes
7199       # see comment about different semantics on the GNU ld section
7200       ld_shlibs=no
7201       ;;
7202
7203     bsdi4*)
7204       export_dynamic_flag_spec=-rdynamic
7205       ;;
7206
7207     cygwin* | mingw* | pw32*)
7208       # When not using gcc, we currently assume that we are using
7209       # Microsoft Visual C++.
7210       # hardcode_libdir_flag_spec is actually meaningless, as there is
7211       # no search path for DLLs.
7212       hardcode_libdir_flag_spec=' '
7213       allow_undefined_flag=unsupported
7214       # Tell ltmain to make .lib files, not .a files.
7215       libext=lib
7216       # Tell ltmain to make .dll files, not .so files.
7217       shrext=".dll"
7218       # FIXME: Setting linknames here is a bad hack.
7219       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7220       # The linker will automatically build a .lib file if we build a DLL.
7221       old_archive_From_new_cmds='true'
7222       # FIXME: Should let the user specify the lib program.
7223       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7224       fix_srcfile_path='`cygpath -w "$srcfile"`'
7225       enable_shared_with_static_runtimes=yes
7226       ;;
7227
7228     darwin* | rhapsody*)
7229     if test "$GXX" = yes ; then
7230       archive_cmds_need_lc=no
7231       case "$host_os" in
7232       rhapsody* | darwin1.[012])
7233         allow_undefined_flag='-undefined suppress'
7234         ;;
7235       *) # Darwin 1.3 on
7236       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7237         allow_undefined_flag='-flat_namespace -undefined suppress'
7238       else
7239         case ${MACOSX_DEPLOYMENT_TARGET} in
7240           10.[012])
7241             allow_undefined_flag='-flat_namespace -undefined suppress'
7242             ;;
7243           10.*)
7244             allow_undefined_flag='-undefined dynamic_lookup'
7245             ;;
7246         esac
7247       fi
7248         ;;
7249       esac
7250         lt_int_apple_cc_single_mod=no
7251         output_verbose_link_cmd='echo'
7252         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7253           lt_int_apple_cc_single_mod=yes
7254         fi
7255         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7256           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7257         else
7258         archive_cmds='$CC -r ${wl}-bind_at_load -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'
7259       fi
7260       module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7261       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7262         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7263           archive_expsym_cmds='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}'
7264         else
7265           archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
7266         fi
7267           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}'
7268       hardcode_direct=no
7269       hardcode_automatic=yes
7270       hardcode_shlibpath_var=unsupported
7271       whole_archive_flag_spec='-all_load $convenience'
7272       link_all_deplibs=yes
7273     else
7274       ld_shlibs=no
7275     fi
7276       ;;
7277
7278     dgux*)
7279       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7280       hardcode_libdir_flag_spec='-L$libdir'
7281       hardcode_shlibpath_var=no
7282       ;;
7283
7284     freebsd1*)
7285       ld_shlibs=no
7286       ;;
7287
7288     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7289     # support.  Future versions do this automatically, but an explicit c++rt0.o
7290     # does not break anything, and helps significantly (at the cost of a little
7291     # extra space).
7292     freebsd2.2*)
7293       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7294       hardcode_libdir_flag_spec='-R$libdir'
7295       hardcode_direct=yes
7296       hardcode_shlibpath_var=no
7297       ;;
7298
7299     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7300     freebsd2*)
7301       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7302       hardcode_direct=yes
7303       hardcode_minus_L=yes
7304       hardcode_shlibpath_var=no
7305       ;;
7306
7307     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7308     freebsd* | kfreebsd*-gnu)
7309       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7310       hardcode_libdir_flag_spec='-R$libdir'
7311       hardcode_direct=yes
7312       hardcode_shlibpath_var=no
7313       ;;
7314
7315     hpux9*)
7316       if test "$GCC" = yes; then
7317         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'
7318       else
7319         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'
7320       fi
7321       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7322       hardcode_libdir_separator=:
7323       hardcode_direct=yes
7324
7325       # hardcode_minus_L: Not really in the search PATH,
7326       # but as the default location of the library.
7327       hardcode_minus_L=yes
7328       export_dynamic_flag_spec='${wl}-E'
7329       ;;
7330
7331     hpux10* | hpux11*)
7332       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7333         case "$host_cpu" in
7334         hppa*64*|ia64*)
7335           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7336           ;;
7337         *)
7338           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7339           ;;
7340         esac
7341       else
7342         case "$host_cpu" in
7343         hppa*64*|ia64*)
7344           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7345           ;;
7346         *)
7347           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7348           ;;
7349         esac
7350       fi
7351       if test "$with_gnu_ld" = no; then
7352         case "$host_cpu" in
7353         hppa*64*)
7354           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7355           hardcode_libdir_flag_spec_ld='+b $libdir'
7356           hardcode_libdir_separator=:
7357           hardcode_direct=no
7358           hardcode_shlibpath_var=no
7359           ;;
7360         ia64*)
7361           hardcode_libdir_flag_spec='-L$libdir'
7362           hardcode_direct=no
7363           hardcode_shlibpath_var=no
7364
7365           # hardcode_minus_L: Not really in the search PATH,
7366           # but as the default location of the library.
7367           hardcode_minus_L=yes
7368           ;;
7369         *)
7370           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7371           hardcode_libdir_separator=:
7372           hardcode_direct=yes
7373           export_dynamic_flag_spec='${wl}-E'
7374
7375           # hardcode_minus_L: Not really in the search PATH,
7376           # but as the default location of the library.
7377           hardcode_minus_L=yes
7378           ;;
7379         esac
7380       fi
7381       ;;
7382
7383     irix5* | irix6* | nonstopux*)
7384       if test "$GCC" = yes; then
7385         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'
7386       else
7387         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'
7388         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7389       fi
7390       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7391       hardcode_libdir_separator=:
7392       link_all_deplibs=yes
7393       ;;
7394
7395     netbsd*)
7396       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7397         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7398       else
7399         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7400       fi
7401       hardcode_libdir_flag_spec='-R$libdir'
7402       hardcode_direct=yes
7403       hardcode_shlibpath_var=no
7404       ;;
7405
7406     newsos6)
7407       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7408       hardcode_direct=yes
7409       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7410       hardcode_libdir_separator=:
7411       hardcode_shlibpath_var=no
7412       ;;
7413
7414     openbsd*)
7415       hardcode_direct=yes
7416       hardcode_shlibpath_var=no
7417       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7418         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7419         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7420         export_dynamic_flag_spec='${wl}-E'
7421       else
7422        case $host_os in
7423          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7424            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7425            hardcode_libdir_flag_spec='-R$libdir'
7426            ;;
7427          *)
7428            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7429            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7430            ;;
7431        esac
7432       fi
7433       ;;
7434
7435     os2*)
7436       hardcode_libdir_flag_spec='-L$libdir'
7437       hardcode_minus_L=yes
7438       allow_undefined_flag=unsupported
7439       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'
7440       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7441       ;;
7442
7443     osf3*)
7444       if test "$GCC" = yes; then
7445         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7446         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'
7447       else
7448         allow_undefined_flag=' -expect_unresolved \*'
7449         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'
7450       fi
7451       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7452       hardcode_libdir_separator=:
7453       ;;
7454
7455     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7456       if test "$GCC" = yes; then
7457         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7458         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'
7459         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7460       else
7461         allow_undefined_flag=' -expect_unresolved \*'
7462         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'
7463         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7464         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
7465
7466         # Both c and cxx compiler support -rpath directly
7467         hardcode_libdir_flag_spec='-rpath $libdir'
7468       fi
7469       hardcode_libdir_separator=:
7470       ;;
7471
7472     sco3.2v5*)
7473       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7474       hardcode_shlibpath_var=no
7475       export_dynamic_flag_spec='${wl}-Bexport'
7476       runpath_var=LD_RUN_PATH
7477       hardcode_runpath_var=yes
7478       ;;
7479
7480     solaris*)
7481       no_undefined_flag=' -z text'
7482       if test "$GCC" = yes; then
7483         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7484         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7485           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7486       else
7487         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7488         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7489         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7490       fi
7491       hardcode_libdir_flag_spec='-R$libdir'
7492       hardcode_shlibpath_var=no
7493       case $host_os in
7494       solaris2.[0-5] | solaris2.[0-5].*) ;;
7495       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7496         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7497       esac
7498       link_all_deplibs=yes
7499       ;;
7500
7501     sunos4*)
7502       if test "x$host_vendor" = xsequent; then
7503         # Use $CC to link under sequent, because it throws in some extra .o
7504         # files that make .init and .fini sections work.
7505         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7506       else
7507         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7508       fi
7509       hardcode_libdir_flag_spec='-L$libdir'
7510       hardcode_direct=yes
7511       hardcode_minus_L=yes
7512       hardcode_shlibpath_var=no
7513       ;;
7514
7515     sysv4)
7516       case $host_vendor in
7517         sni)
7518           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7519           hardcode_direct=yes # is this really true???
7520         ;;
7521         siemens)
7522           ## LD is ld it makes a PLAMLIB
7523           ## CC just makes a GrossModule.
7524           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7525           reload_cmds='$CC -r -o $output$reload_objs'
7526           hardcode_direct=no
7527         ;;
7528         motorola)
7529           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7530           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7531         ;;
7532       esac
7533       runpath_var='LD_RUN_PATH'
7534       hardcode_shlibpath_var=no
7535       ;;
7536
7537     sysv4.3*)
7538       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7539       hardcode_shlibpath_var=no
7540       export_dynamic_flag_spec='-Bexport'
7541       ;;
7542
7543     sysv4*MP*)
7544       if test -d /usr/nec; then
7545         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7546         hardcode_shlibpath_var=no
7547         runpath_var=LD_RUN_PATH
7548         hardcode_runpath_var=yes
7549         ld_shlibs=yes
7550       fi
7551       ;;
7552
7553     sysv4.2uw2*)
7554       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7555       hardcode_direct=yes
7556       hardcode_minus_L=no
7557       hardcode_shlibpath_var=no
7558       hardcode_runpath_var=yes
7559       runpath_var=LD_RUN_PATH
7560       ;;
7561
7562    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7563       no_undefined_flag='${wl}-z ${wl}text'
7564       if test "$GCC" = yes; then
7565         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7566       else
7567         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7568       fi
7569       runpath_var='LD_RUN_PATH'
7570       hardcode_shlibpath_var=no
7571       ;;
7572
7573     sysv5*)
7574       no_undefined_flag=' -z text'
7575       # $CC -shared without GNU ld will not create a library from C++
7576       # object files and a static libstdc++, better avoid it by now
7577       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7578       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7579                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7580       hardcode_libdir_flag_spec=
7581       hardcode_shlibpath_var=no
7582       runpath_var='LD_RUN_PATH'
7583       ;;
7584
7585     uts4*)
7586       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7587       hardcode_libdir_flag_spec='-L$libdir'
7588       hardcode_shlibpath_var=no
7589       ;;
7590
7591     *)
7592       ld_shlibs=no
7593       ;;
7594     esac
7595   fi
7596
7597 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7598 $as_echo "$ld_shlibs" >&6; }
7599 test "$ld_shlibs" = no && can_build_shared=no
7600
7601 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7602 if test "$GCC" = yes; then
7603   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7604 fi
7605
7606 #
7607 # Do we need to explicitly link libc?
7608 #
7609 case "x$archive_cmds_need_lc" in
7610 x|xyes)
7611   # Assume -lc should be added
7612   archive_cmds_need_lc=yes
7613
7614   if test "$enable_shared" = yes && test "$GCC" = yes; then
7615     case $archive_cmds in
7616     *'~'*)
7617       # FIXME: we may have to deal with multi-command sequences.
7618       ;;
7619     '$CC '*)
7620       # Test whether the compiler implicitly links with -lc since on some
7621       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7622       # to ld, don't add -lc before -lgcc.
7623       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7624 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
7625       $rm conftest*
7626       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7627
7628       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7629   (eval $ac_compile) 2>&5
7630   ac_status=$?
7631   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7632   (exit $ac_status); } 2>conftest.err; then
7633         soname=conftest
7634         lib=conftest
7635         libobjs=conftest.$ac_objext
7636         deplibs=
7637         wl=$lt_prog_compiler_wl
7638         compiler_flags=-v
7639         linker_flags=-v
7640         verstring=
7641         output_objdir=.
7642         libname=conftest
7643         lt_save_allow_undefined_flag=$allow_undefined_flag
7644         allow_undefined_flag=
7645         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7646   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7647   ac_status=$?
7648   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7649   (exit $ac_status); }
7650         then
7651           archive_cmds_need_lc=no
7652         else
7653           archive_cmds_need_lc=yes
7654         fi
7655         allow_undefined_flag=$lt_save_allow_undefined_flag
7656       else
7657         cat conftest.err 1>&5
7658       fi
7659       $rm conftest*
7660       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7661 $as_echo "$archive_cmds_need_lc" >&6; }
7662       ;;
7663     esac
7664   fi
7665   ;;
7666 esac
7667
7668 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7669 $as_echo_n "checking dynamic linker characteristics... " >&6; }
7670 library_names_spec=
7671 libname_spec='lib$name'
7672 soname_spec=
7673 shrext=".so"
7674 postinstall_cmds=
7675 postuninstall_cmds=
7676 finish_cmds=
7677 finish_eval=
7678 shlibpath_var=
7679 shlibpath_overrides_runpath=unknown
7680 version_type=none
7681 dynamic_linker="$host_os ld.so"
7682 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7683 if test "$GCC" = yes; then
7684   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7685   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7686     # if the path contains ";" then we assume it to be the separator
7687     # otherwise default to the standard path separator (i.e. ":") - it is
7688     # assumed that no part of a normal pathname contains ";" but that should
7689     # okay in the real world where ";" in dirpaths is itself problematic.
7690     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7691   else
7692     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7693   fi
7694 else
7695   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7696 fi
7697 need_lib_prefix=unknown
7698 hardcode_into_libs=no
7699
7700 # when you set need_version to no, make sure it does not cause -set_version
7701 # flags to be left without arguments
7702 need_version=unknown
7703
7704 case $host_os in
7705 aix3*)
7706   version_type=linux
7707   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7708   shlibpath_var=LIBPATH
7709
7710   # AIX 3 has no versioning support, so we append a major version to the name.
7711   soname_spec='${libname}${release}${shared_ext}$major'
7712   ;;
7713
7714 aix4* | aix5*)
7715   version_type=linux
7716   need_lib_prefix=no
7717   need_version=no
7718   hardcode_into_libs=yes
7719   if test "$host_cpu" = ia64; then
7720     # AIX 5 supports IA64
7721     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7722     shlibpath_var=LD_LIBRARY_PATH
7723   else
7724     # With GCC up to 2.95.x, collect2 would create an import file
7725     # for dependence libraries.  The import file would start with
7726     # the line `#! .'.  This would cause the generated library to
7727     # depend on `.', always an invalid library.  This was fixed in
7728     # development snapshots of GCC prior to 3.0.
7729     case $host_os in
7730       aix4 | aix4.[01] | aix4.[01].*)
7731       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7732            echo ' yes '
7733            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7734         :
7735       else
7736         can_build_shared=no
7737       fi
7738       ;;
7739     esac
7740     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7741     # soname into executable. Probably we can add versioning support to
7742     # collect2, so additional links can be useful in future.
7743     if test "$aix_use_runtimelinking" = yes; then
7744       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7745       # instead of lib<name>.a to let people know that these are not
7746       # typical AIX shared libraries.
7747       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7748     else
7749       # We preserve .a as extension for shared libraries through AIX4.2
7750       # and later when we are not doing run time linking.
7751       library_names_spec='${libname}${release}.a $libname.a'
7752       soname_spec='${libname}${release}${shared_ext}$major'
7753     fi
7754     shlibpath_var=LIBPATH
7755   fi
7756   ;;
7757
7758 amigaos*)
7759   library_names_spec='$libname.ixlibrary $libname.a'
7760   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7761   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'
7762   ;;
7763
7764 beos*)
7765   library_names_spec='${libname}${shared_ext}'
7766   dynamic_linker="$host_os ld.so"
7767   shlibpath_var=LIBRARY_PATH
7768   ;;
7769
7770 bsdi4*)
7771   version_type=linux
7772   need_version=no
7773   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7774   soname_spec='${libname}${release}${shared_ext}$major'
7775   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7776   shlibpath_var=LD_LIBRARY_PATH
7777   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7778   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7779   # the default ld.so.conf also contains /usr/contrib/lib and
7780   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7781   # libtool to hard-code these into programs
7782   ;;
7783
7784 cygwin* | mingw* | pw32*)
7785   version_type=windows
7786   shrext=".dll"
7787   need_version=no
7788   need_lib_prefix=no
7789
7790   case $GCC,$host_os in
7791   yes,cygwin* | yes,mingw* | yes,pw32*)
7792     library_names_spec='$libname.dll.a'
7793     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7794     postinstall_cmds='base_file=`basename \${file}`~
7795       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7796       dldir=$destdir/`dirname \$dlpath`~
7797       test -d \$dldir || mkdir -p \$dldir~
7798       $install_prog $dir/$dlname \$dldir/$dlname'
7799     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7800       dlpath=$dir/\$dldll~
7801        $rm \$dlpath'
7802     shlibpath_overrides_runpath=yes
7803
7804     case $host_os in
7805     cygwin*)
7806       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7807       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7808       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7809       ;;
7810     mingw*)
7811       # MinGW DLLs use traditional 'lib' prefix
7812       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7813       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7814       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7815         # It is most probably a Windows format PATH printed by
7816         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7817         # path with ; separators, and with drive letters. We can handle the
7818         # drive letters (cygwin fileutils understands them), so leave them,
7819         # especially as we might pass files found there to a mingw objdump,
7820         # which wouldn't understand a cygwinified path. Ahh.
7821         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7822       else
7823         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7824       fi
7825       ;;
7826     pw32*)
7827       # pw32 DLLs use 'pw' prefix rather than 'lib'
7828       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7829       ;;
7830     esac
7831     ;;
7832
7833   *)
7834     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7835     ;;
7836   esac
7837   dynamic_linker='Win32 ld.exe'
7838   # FIXME: first we should search . and the directory the executable is in
7839   shlibpath_var=PATH
7840   ;;
7841
7842 darwin* | rhapsody*)
7843   dynamic_linker="$host_os dyld"
7844   version_type=darwin
7845   need_lib_prefix=no
7846   need_version=no
7847   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7848   soname_spec='${libname}${release}${major}$shared_ext'
7849   shlibpath_overrides_runpath=yes
7850   shlibpath_var=DYLD_LIBRARY_PATH
7851   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7852   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7853   if test "$GCC" = yes; then
7854     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"`
7855   else
7856     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7857   fi
7858   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7859   ;;
7860
7861 dgux*)
7862   version_type=linux
7863   need_lib_prefix=no
7864   need_version=no
7865   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7866   soname_spec='${libname}${release}${shared_ext}$major'
7867   shlibpath_var=LD_LIBRARY_PATH
7868   ;;
7869
7870 freebsd1*)
7871   dynamic_linker=no
7872   ;;
7873
7874 kfreebsd*-gnu)
7875   version_type=linux
7876   need_lib_prefix=no
7877   need_version=no
7878   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7879   soname_spec='${libname}${release}${shared_ext}$major'
7880   shlibpath_var=LD_LIBRARY_PATH
7881   shlibpath_overrides_runpath=no
7882   hardcode_into_libs=yes
7883   dynamic_linker='GNU ld.so'
7884   ;;
7885
7886 freebsd*)
7887   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7888   version_type=freebsd-$objformat
7889   case $version_type in
7890     freebsd-elf*)
7891       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7892       need_version=no
7893       need_lib_prefix=no
7894       ;;
7895     freebsd-*)
7896       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7897       need_version=yes
7898       ;;
7899   esac
7900   shlibpath_var=LD_LIBRARY_PATH
7901   case $host_os in
7902   freebsd2*)
7903     shlibpath_overrides_runpath=yes
7904     ;;
7905   freebsd3.01* | freebsdelf3.01*)
7906     shlibpath_overrides_runpath=yes
7907     hardcode_into_libs=yes
7908     ;;
7909   *) # from 3.2 on
7910     shlibpath_overrides_runpath=no
7911     hardcode_into_libs=yes
7912     ;;
7913   esac
7914   ;;
7915
7916 gnu*)
7917   version_type=linux
7918   need_lib_prefix=no
7919   need_version=no
7920   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7921   soname_spec='${libname}${release}${shared_ext}$major'
7922   shlibpath_var=LD_LIBRARY_PATH
7923   hardcode_into_libs=yes
7924   ;;
7925
7926 hpux9* | hpux10* | hpux11*)
7927   # Give a soname corresponding to the major version so that dld.sl refuses to
7928   # link against other versions.
7929   version_type=sunos
7930   need_lib_prefix=no
7931   need_version=no
7932   case "$host_cpu" in
7933   ia64*)
7934     shrext='.so'
7935     hardcode_into_libs=yes
7936     dynamic_linker="$host_os dld.so"
7937     shlibpath_var=LD_LIBRARY_PATH
7938     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7939     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7940     soname_spec='${libname}${release}${shared_ext}$major'
7941     if test "X$HPUX_IA64_MODE" = X32; then
7942       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7943     else
7944       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7945     fi
7946     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7947     ;;
7948    hppa*64*)
7949      shrext='.sl'
7950      hardcode_into_libs=yes
7951      dynamic_linker="$host_os dld.sl"
7952      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7953      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7954      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7955      soname_spec='${libname}${release}${shared_ext}$major'
7956      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7957      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7958      ;;
7959    *)
7960     shrext='.sl'
7961     dynamic_linker="$host_os dld.sl"
7962     shlibpath_var=SHLIB_PATH
7963     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7964     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7965     soname_spec='${libname}${release}${shared_ext}$major'
7966     ;;
7967   esac
7968   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7969   postinstall_cmds='chmod 555 $lib'
7970   ;;
7971
7972 irix5* | irix6* | nonstopux*)
7973   case $host_os in
7974     nonstopux*) version_type=nonstopux ;;
7975     *)
7976         if test "$lt_cv_prog_gnu_ld" = yes; then
7977                 version_type=linux
7978         else
7979                 version_type=irix
7980         fi ;;
7981   esac
7982   need_lib_prefix=no
7983   need_version=no
7984   soname_spec='${libname}${release}${shared_ext}$major'
7985   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7986   case $host_os in
7987   irix5* | nonstopux*)
7988     libsuff= shlibsuff=
7989     ;;
7990   *)
7991     case $LD in # libtool.m4 will add one of these switches to LD
7992     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7993       libsuff= shlibsuff= libmagic=32-bit;;
7994     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7995       libsuff=32 shlibsuff=N32 libmagic=N32;;
7996     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7997       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7998     *) libsuff= shlibsuff= libmagic=never-match;;
7999     esac
8000     ;;
8001   esac
8002   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8003   shlibpath_overrides_runpath=no
8004   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8005   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8006   hardcode_into_libs=yes
8007   ;;
8008
8009 # No shared lib support for Linux oldld, aout, or coff.
8010 linux*oldld* | linux*aout* | linux*coff*)
8011   dynamic_linker=no
8012   ;;
8013
8014 # This must be Linux ELF.
8015 linux*)
8016   version_type=linux
8017   need_lib_prefix=no
8018   need_version=no
8019   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8020   soname_spec='${libname}${release}${shared_ext}$major'
8021   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8022   shlibpath_var=LD_LIBRARY_PATH
8023   shlibpath_overrides_runpath=no
8024   # This implies no fast_install, which is unacceptable.
8025   # Some rework will be needed to allow for fast_install
8026   # before this can be enabled.
8027   hardcode_into_libs=yes
8028
8029   # We used to test for /lib/ld.so.1 and disable shared libraries on
8030   # powerpc, because MkLinux only supported shared libraries with the
8031   # GNU dynamic linker.  Since this was broken with cross compilers,
8032   # most powerpc-linux boxes support dynamic linking these days and
8033   # people can always --disable-shared, the test was removed, and we
8034   # assume the GNU/Linux dynamic linker is in use.
8035   dynamic_linker='GNU/Linux ld.so'
8036   ;;
8037
8038 netbsd*)
8039   version_type=sunos
8040   need_lib_prefix=no
8041   need_version=no
8042   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8043     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8044     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8045     dynamic_linker='NetBSD (a.out) ld.so'
8046   else
8047     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
8048     soname_spec='${libname}${release}${shared_ext}$major'
8049     dynamic_linker='NetBSD ld.elf_so'
8050   fi
8051   shlibpath_var=LD_LIBRARY_PATH
8052   shlibpath_overrides_runpath=yes
8053   hardcode_into_libs=yes
8054   ;;
8055
8056 newsos6)
8057   version_type=linux
8058   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8059   shlibpath_var=LD_LIBRARY_PATH
8060   shlibpath_overrides_runpath=yes
8061   ;;
8062
8063 nto-qnx*)
8064   version_type=linux
8065   need_lib_prefix=no
8066   need_version=no
8067   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8068   soname_spec='${libname}${release}${shared_ext}$major'
8069   shlibpath_var=LD_LIBRARY_PATH
8070   shlibpath_overrides_runpath=yes
8071   ;;
8072
8073 openbsd*)
8074   version_type=sunos
8075   need_lib_prefix=no
8076   need_version=no
8077   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8078   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8079   shlibpath_var=LD_LIBRARY_PATH
8080   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8081     case $host_os in
8082       openbsd2.[89] | openbsd2.[89].*)
8083         shlibpath_overrides_runpath=no
8084         ;;
8085       *)
8086         shlibpath_overrides_runpath=yes
8087         ;;
8088       esac
8089   else
8090     shlibpath_overrides_runpath=yes
8091   fi
8092   ;;
8093
8094 os2*)
8095   libname_spec='$name'
8096   shrext=".dll"
8097   need_lib_prefix=no
8098   library_names_spec='$libname${shared_ext} $libname.a'
8099   dynamic_linker='OS/2 ld.exe'
8100   shlibpath_var=LIBPATH
8101   ;;
8102
8103 osf3* | osf4* | osf5*)
8104   version_type=osf
8105   need_lib_prefix=no
8106   need_version=no
8107   soname_spec='${libname}${release}${shared_ext}$major'
8108   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8109   shlibpath_var=LD_LIBRARY_PATH
8110   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8111   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8112   ;;
8113
8114 sco3.2v5*)
8115   version_type=osf
8116   soname_spec='${libname}${release}${shared_ext}$major'
8117   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8118   shlibpath_var=LD_LIBRARY_PATH
8119   ;;
8120
8121 solaris*)
8122   version_type=linux
8123   need_lib_prefix=no
8124   need_version=no
8125   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8126   soname_spec='${libname}${release}${shared_ext}$major'
8127   shlibpath_var=LD_LIBRARY_PATH
8128   shlibpath_overrides_runpath=yes
8129   hardcode_into_libs=yes
8130   # ldd complains unless libraries are executable
8131   postinstall_cmds='chmod +x $lib'
8132   ;;
8133
8134 sunos4*)
8135   version_type=sunos
8136   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8137   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8138   shlibpath_var=LD_LIBRARY_PATH
8139   shlibpath_overrides_runpath=yes
8140   if test "$with_gnu_ld" = yes; then
8141     need_lib_prefix=no
8142   fi
8143   need_version=yes
8144   ;;
8145
8146 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8147   version_type=linux
8148   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8149   soname_spec='${libname}${release}${shared_ext}$major'
8150   shlibpath_var=LD_LIBRARY_PATH
8151   case $host_vendor in
8152     sni)
8153       shlibpath_overrides_runpath=no
8154       need_lib_prefix=no
8155       export_dynamic_flag_spec='${wl}-Blargedynsym'
8156       runpath_var=LD_RUN_PATH
8157       ;;
8158     siemens)
8159       need_lib_prefix=no
8160       ;;
8161     motorola)
8162       need_lib_prefix=no
8163       need_version=no
8164       shlibpath_overrides_runpath=no
8165       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8166       ;;
8167   esac
8168   ;;
8169
8170 sysv4*MP*)
8171   if test -d /usr/nec ;then
8172     version_type=linux
8173     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8174     soname_spec='$libname${shared_ext}.$major'
8175     shlibpath_var=LD_LIBRARY_PATH
8176   fi
8177   ;;
8178
8179 uts4*)
8180   version_type=linux
8181   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8182   soname_spec='${libname}${release}${shared_ext}$major'
8183   shlibpath_var=LD_LIBRARY_PATH
8184   ;;
8185
8186 *)
8187   dynamic_linker=no
8188   ;;
8189 esac
8190 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8191 $as_echo "$dynamic_linker" >&6; }
8192 test "$dynamic_linker" = no && can_build_shared=no
8193
8194 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8195 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
8196 hardcode_action=
8197 if test -n "$hardcode_libdir_flag_spec" || \
8198    test -n "$runpath_var " || \
8199    test "X$hardcode_automatic"="Xyes" ; then
8200
8201   # We can hardcode non-existant directories.
8202   if test "$hardcode_direct" != no &&
8203      # If the only mechanism to avoid hardcoding is shlibpath_var, we
8204      # have to relink, otherwise we might link with an installed library
8205      # when we should be linking with a yet-to-be-installed one
8206      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8207      test "$hardcode_minus_L" != no; then
8208     # Linking always hardcodes the temporary library directory.
8209     hardcode_action=relink
8210   else
8211     # We can link without hardcoding, and we can hardcode nonexisting dirs.
8212     hardcode_action=immediate
8213   fi
8214 else
8215   # We cannot hardcode anything, or else we can only hardcode existing
8216   # directories.
8217   hardcode_action=unsupported
8218 fi
8219 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
8220 $as_echo "$hardcode_action" >&6; }
8221
8222 if test "$hardcode_action" = relink; then
8223   # Fast installation is not supported
8224   enable_fast_install=no
8225 elif test "$shlibpath_overrides_runpath" = yes ||
8226      test "$enable_shared" = no; then
8227   # Fast installation is not necessary
8228   enable_fast_install=needless
8229 fi
8230
8231 striplib=
8232 old_striplib=
8233 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8234 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
8235 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8236   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8237   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8238   { $as_echo "$as_me:$LINENO: result: yes" >&5
8239 $as_echo "yes" >&6; }
8240 else
8241 # FIXME - insert some real tests, host_os isn't really good enough
8242   case $host_os in
8243    darwin*)
8244        if test -n "$STRIP" ; then
8245          striplib="$STRIP -x"
8246          { $as_echo "$as_me:$LINENO: result: yes" >&5
8247 $as_echo "yes" >&6; }
8248        else
8249   { $as_echo "$as_me:$LINENO: result: no" >&5
8250 $as_echo "no" >&6; }
8251 fi
8252        ;;
8253    *)
8254   { $as_echo "$as_me:$LINENO: result: no" >&5
8255 $as_echo "no" >&6; }
8256     ;;
8257   esac
8258 fi
8259
8260 if test "x$enable_dlopen" != xyes; then
8261   enable_dlopen=unknown
8262   enable_dlopen_self=unknown
8263   enable_dlopen_self_static=unknown
8264 else
8265   lt_cv_dlopen=no
8266   lt_cv_dlopen_libs=
8267
8268   case $host_os in
8269   beos*)
8270     lt_cv_dlopen="load_add_on"
8271     lt_cv_dlopen_libs=
8272     lt_cv_dlopen_self=yes
8273     ;;
8274
8275   mingw* | pw32*)
8276     lt_cv_dlopen="LoadLibrary"
8277     lt_cv_dlopen_libs=
8278    ;;
8279
8280   cygwin*)
8281     lt_cv_dlopen="dlopen"
8282     lt_cv_dlopen_libs=
8283    ;;
8284
8285   darwin*)
8286   # if libdl is installed we need to link against it
8287     { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8288 $as_echo_n "checking for dlopen in -ldl... " >&6; }
8289 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8290   $as_echo_n "(cached) " >&6
8291 else
8292   ac_check_lib_save_LIBS=$LIBS
8293 LIBS="-ldl  $LIBS"
8294 cat >conftest.$ac_ext <<_ACEOF
8295 /* confdefs.h.  */
8296 _ACEOF
8297 cat confdefs.h >>conftest.$ac_ext
8298 cat >>conftest.$ac_ext <<_ACEOF
8299 /* end confdefs.h.  */
8300
8301 /* Override any GCC internal prototype to avoid an error.
8302    Use char because int might match the return type of a GCC
8303    builtin and then its argument prototype would still apply.  */
8304 #ifdef __cplusplus
8305 extern "C"
8306 #endif
8307 char dlopen ();
8308 int
8309 main ()
8310 {
8311 return dlopen ();
8312   ;
8313   return 0;
8314 }
8315 _ACEOF
8316 rm -f conftest.$ac_objext conftest$ac_exeext
8317 if { (ac_try="$ac_link"
8318 case "(($ac_try" in
8319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8320   *) ac_try_echo=$ac_try;;
8321 esac
8322 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8323 $as_echo "$ac_try_echo") >&5
8324   (eval "$ac_link") 2>conftest.er1
8325   ac_status=$?
8326   grep -v '^ *+' conftest.er1 >conftest.err
8327   rm -f conftest.er1
8328   cat conftest.err >&5
8329   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8330   (exit $ac_status); } && {
8331          test -z "$ac_c_werror_flag" ||
8332          test ! -s conftest.err
8333        } && test -s conftest$ac_exeext && {
8334          test "$cross_compiling" = yes ||
8335          $as_test_x conftest$ac_exeext
8336        }; then
8337   ac_cv_lib_dl_dlopen=yes
8338 else
8339   $as_echo "$as_me: failed program was:" >&5
8340 sed 's/^/| /' conftest.$ac_ext >&5
8341
8342         ac_cv_lib_dl_dlopen=no
8343 fi
8344
8345 rm -rf conftest.dSYM
8346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8347       conftest$ac_exeext conftest.$ac_ext
8348 LIBS=$ac_check_lib_save_LIBS
8349 fi
8350 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8351 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
8352 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
8353   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8354 else
8355
8356     lt_cv_dlopen="dyld"
8357     lt_cv_dlopen_libs=
8358     lt_cv_dlopen_self=yes
8359
8360 fi
8361
8362    ;;
8363
8364   *)
8365     { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
8366 $as_echo_n "checking for shl_load... " >&6; }
8367 if test "${ac_cv_func_shl_load+set}" = set; then
8368   $as_echo_n "(cached) " >&6
8369 else
8370   cat >conftest.$ac_ext <<_ACEOF
8371 /* confdefs.h.  */
8372 _ACEOF
8373 cat confdefs.h >>conftest.$ac_ext
8374 cat >>conftest.$ac_ext <<_ACEOF
8375 /* end confdefs.h.  */
8376 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8377    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8378 #define shl_load innocuous_shl_load
8379
8380 /* System header to define __stub macros and hopefully few prototypes,
8381     which can conflict with char shl_load (); below.
8382     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8383     <limits.h> exists even on freestanding compilers.  */
8384
8385 #ifdef __STDC__
8386 # include <limits.h>
8387 #else
8388 # include <assert.h>
8389 #endif
8390
8391 #undef shl_load
8392
8393 /* Override any GCC internal prototype to avoid an error.
8394    Use char because int might match the return type of a GCC
8395    builtin and then its argument prototype would still apply.  */
8396 #ifdef __cplusplus
8397 extern "C"
8398 #endif
8399 char shl_load ();
8400 /* The GNU C library defines this for functions which it implements
8401     to always fail with ENOSYS.  Some functions are actually named
8402     something starting with __ and the normal name is an alias.  */
8403 #if defined __stub_shl_load || defined __stub___shl_load
8404 choke me
8405 #endif
8406
8407 int
8408 main ()
8409 {
8410 return shl_load ();
8411   ;
8412   return 0;
8413 }
8414 _ACEOF
8415 rm -f conftest.$ac_objext conftest$ac_exeext
8416 if { (ac_try="$ac_link"
8417 case "(($ac_try" in
8418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8419   *) ac_try_echo=$ac_try;;
8420 esac
8421 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8422 $as_echo "$ac_try_echo") >&5
8423   (eval "$ac_link") 2>conftest.er1
8424   ac_status=$?
8425   grep -v '^ *+' conftest.er1 >conftest.err
8426   rm -f conftest.er1
8427   cat conftest.err >&5
8428   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429   (exit $ac_status); } && {
8430          test -z "$ac_c_werror_flag" ||
8431          test ! -s conftest.err
8432        } && test -s conftest$ac_exeext && {
8433          test "$cross_compiling" = yes ||
8434          $as_test_x conftest$ac_exeext
8435        }; then
8436   ac_cv_func_shl_load=yes
8437 else
8438   $as_echo "$as_me: failed program was:" >&5
8439 sed 's/^/| /' conftest.$ac_ext >&5
8440
8441         ac_cv_func_shl_load=no
8442 fi
8443
8444 rm -rf conftest.dSYM
8445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8446       conftest$ac_exeext conftest.$ac_ext
8447 fi
8448 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8449 $as_echo "$ac_cv_func_shl_load" >&6; }
8450 if test "x$ac_cv_func_shl_load" = x""yes; then
8451   lt_cv_dlopen="shl_load"
8452 else
8453   { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8454 $as_echo_n "checking for shl_load in -ldld... " >&6; }
8455 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8456   $as_echo_n "(cached) " >&6
8457 else
8458   ac_check_lib_save_LIBS=$LIBS
8459 LIBS="-ldld  $LIBS"
8460 cat >conftest.$ac_ext <<_ACEOF
8461 /* confdefs.h.  */
8462 _ACEOF
8463 cat confdefs.h >>conftest.$ac_ext
8464 cat >>conftest.$ac_ext <<_ACEOF
8465 /* end confdefs.h.  */
8466
8467 /* Override any GCC internal prototype to avoid an error.
8468    Use char because int might match the return type of a GCC
8469    builtin and then its argument prototype would still apply.  */
8470 #ifdef __cplusplus
8471 extern "C"
8472 #endif
8473 char shl_load ();
8474 int
8475 main ()
8476 {
8477 return shl_load ();
8478   ;
8479   return 0;
8480 }
8481 _ACEOF
8482 rm -f conftest.$ac_objext conftest$ac_exeext
8483 if { (ac_try="$ac_link"
8484 case "(($ac_try" in
8485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8486   *) ac_try_echo=$ac_try;;
8487 esac
8488 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8489 $as_echo "$ac_try_echo") >&5
8490   (eval "$ac_link") 2>conftest.er1
8491   ac_status=$?
8492   grep -v '^ *+' conftest.er1 >conftest.err
8493   rm -f conftest.er1
8494   cat conftest.err >&5
8495   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496   (exit $ac_status); } && {
8497          test -z "$ac_c_werror_flag" ||
8498          test ! -s conftest.err
8499        } && test -s conftest$ac_exeext && {
8500          test "$cross_compiling" = yes ||
8501          $as_test_x conftest$ac_exeext
8502        }; then
8503   ac_cv_lib_dld_shl_load=yes
8504 else
8505   $as_echo "$as_me: failed program was:" >&5
8506 sed 's/^/| /' conftest.$ac_ext >&5
8507
8508         ac_cv_lib_dld_shl_load=no
8509 fi
8510
8511 rm -rf conftest.dSYM
8512 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8513       conftest$ac_exeext conftest.$ac_ext
8514 LIBS=$ac_check_lib_save_LIBS
8515 fi
8516 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8517 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
8518 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
8519   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8520 else
8521   { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
8522 $as_echo_n "checking for dlopen... " >&6; }
8523 if test "${ac_cv_func_dlopen+set}" = set; then
8524   $as_echo_n "(cached) " >&6
8525 else
8526   cat >conftest.$ac_ext <<_ACEOF
8527 /* confdefs.h.  */
8528 _ACEOF
8529 cat confdefs.h >>conftest.$ac_ext
8530 cat >>conftest.$ac_ext <<_ACEOF
8531 /* end confdefs.h.  */
8532 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8533    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8534 #define dlopen innocuous_dlopen
8535
8536 /* System header to define __stub macros and hopefully few prototypes,
8537     which can conflict with char dlopen (); below.
8538     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8539     <limits.h> exists even on freestanding compilers.  */
8540
8541 #ifdef __STDC__
8542 # include <limits.h>
8543 #else
8544 # include <assert.h>
8545 #endif
8546
8547 #undef dlopen
8548
8549 /* Override any GCC internal prototype to avoid an error.
8550    Use char because int might match the return type of a GCC
8551    builtin and then its argument prototype would still apply.  */
8552 #ifdef __cplusplus
8553 extern "C"
8554 #endif
8555 char dlopen ();
8556 /* The GNU C library defines this for functions which it implements
8557     to always fail with ENOSYS.  Some functions are actually named
8558     something starting with __ and the normal name is an alias.  */
8559 #if defined __stub_dlopen || defined __stub___dlopen
8560 choke me
8561 #endif
8562
8563 int
8564 main ()
8565 {
8566 return dlopen ();
8567   ;
8568   return 0;
8569 }
8570 _ACEOF
8571 rm -f conftest.$ac_objext conftest$ac_exeext
8572 if { (ac_try="$ac_link"
8573 case "(($ac_try" in
8574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8575   *) ac_try_echo=$ac_try;;
8576 esac
8577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8578 $as_echo "$ac_try_echo") >&5
8579   (eval "$ac_link") 2>conftest.er1
8580   ac_status=$?
8581   grep -v '^ *+' conftest.er1 >conftest.err
8582   rm -f conftest.er1
8583   cat conftest.err >&5
8584   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8585   (exit $ac_status); } && {
8586          test -z "$ac_c_werror_flag" ||
8587          test ! -s conftest.err
8588        } && test -s conftest$ac_exeext && {
8589          test "$cross_compiling" = yes ||
8590          $as_test_x conftest$ac_exeext
8591        }; then
8592   ac_cv_func_dlopen=yes
8593 else
8594   $as_echo "$as_me: failed program was:" >&5
8595 sed 's/^/| /' conftest.$ac_ext >&5
8596
8597         ac_cv_func_dlopen=no
8598 fi
8599
8600 rm -rf conftest.dSYM
8601 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8602       conftest$ac_exeext conftest.$ac_ext
8603 fi
8604 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8605 $as_echo "$ac_cv_func_dlopen" >&6; }
8606 if test "x$ac_cv_func_dlopen" = x""yes; then
8607   lt_cv_dlopen="dlopen"
8608 else
8609   { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8610 $as_echo_n "checking for dlopen in -ldl... " >&6; }
8611 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8612   $as_echo_n "(cached) " >&6
8613 else
8614   ac_check_lib_save_LIBS=$LIBS
8615 LIBS="-ldl  $LIBS"
8616 cat >conftest.$ac_ext <<_ACEOF
8617 /* confdefs.h.  */
8618 _ACEOF
8619 cat confdefs.h >>conftest.$ac_ext
8620 cat >>conftest.$ac_ext <<_ACEOF
8621 /* end confdefs.h.  */
8622
8623 /* Override any GCC internal prototype to avoid an error.
8624    Use char because int might match the return type of a GCC
8625    builtin and then its argument prototype would still apply.  */
8626 #ifdef __cplusplus
8627 extern "C"
8628 #endif
8629 char dlopen ();
8630 int
8631 main ()
8632 {
8633 return dlopen ();
8634   ;
8635   return 0;
8636 }
8637 _ACEOF
8638 rm -f conftest.$ac_objext conftest$ac_exeext
8639 if { (ac_try="$ac_link"
8640 case "(($ac_try" in
8641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8642   *) ac_try_echo=$ac_try;;
8643 esac
8644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8645 $as_echo "$ac_try_echo") >&5
8646   (eval "$ac_link") 2>conftest.er1
8647   ac_status=$?
8648   grep -v '^ *+' conftest.er1 >conftest.err
8649   rm -f conftest.er1
8650   cat conftest.err >&5
8651   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652   (exit $ac_status); } && {
8653          test -z "$ac_c_werror_flag" ||
8654          test ! -s conftest.err
8655        } && test -s conftest$ac_exeext && {
8656          test "$cross_compiling" = yes ||
8657          $as_test_x conftest$ac_exeext
8658        }; then
8659   ac_cv_lib_dl_dlopen=yes
8660 else
8661   $as_echo "$as_me: failed program was:" >&5
8662 sed 's/^/| /' conftest.$ac_ext >&5
8663
8664         ac_cv_lib_dl_dlopen=no
8665 fi
8666
8667 rm -rf conftest.dSYM
8668 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8669       conftest$ac_exeext conftest.$ac_ext
8670 LIBS=$ac_check_lib_save_LIBS
8671 fi
8672 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8673 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
8674 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
8675   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8676 else
8677   { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8678 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
8679 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8680   $as_echo_n "(cached) " >&6
8681 else
8682   ac_check_lib_save_LIBS=$LIBS
8683 LIBS="-lsvld  $LIBS"
8684 cat >conftest.$ac_ext <<_ACEOF
8685 /* confdefs.h.  */
8686 _ACEOF
8687 cat confdefs.h >>conftest.$ac_ext
8688 cat >>conftest.$ac_ext <<_ACEOF
8689 /* end confdefs.h.  */
8690
8691 /* Override any GCC internal prototype to avoid an error.
8692    Use char because int might match the return type of a GCC
8693    builtin and then its argument prototype would still apply.  */
8694 #ifdef __cplusplus
8695 extern "C"
8696 #endif
8697 char dlopen ();
8698 int
8699 main ()
8700 {
8701 return dlopen ();
8702   ;
8703   return 0;
8704 }
8705 _ACEOF
8706 rm -f conftest.$ac_objext conftest$ac_exeext
8707 if { (ac_try="$ac_link"
8708 case "(($ac_try" in
8709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8710   *) ac_try_echo=$ac_try;;
8711 esac
8712 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8713 $as_echo "$ac_try_echo") >&5
8714   (eval "$ac_link") 2>conftest.er1
8715   ac_status=$?
8716   grep -v '^ *+' conftest.er1 >conftest.err
8717   rm -f conftest.er1
8718   cat conftest.err >&5
8719   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8720   (exit $ac_status); } && {
8721          test -z "$ac_c_werror_flag" ||
8722          test ! -s conftest.err
8723        } && test -s conftest$ac_exeext && {
8724          test "$cross_compiling" = yes ||
8725          $as_test_x conftest$ac_exeext
8726        }; then
8727   ac_cv_lib_svld_dlopen=yes
8728 else
8729   $as_echo "$as_me: failed program was:" >&5
8730 sed 's/^/| /' conftest.$ac_ext >&5
8731
8732         ac_cv_lib_svld_dlopen=no
8733 fi
8734
8735 rm -rf conftest.dSYM
8736 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8737       conftest$ac_exeext conftest.$ac_ext
8738 LIBS=$ac_check_lib_save_LIBS
8739 fi
8740 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8741 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
8742 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
8743   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8744 else
8745   { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8746 $as_echo_n "checking for dld_link in -ldld... " >&6; }
8747 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8748   $as_echo_n "(cached) " >&6
8749 else
8750   ac_check_lib_save_LIBS=$LIBS
8751 LIBS="-ldld  $LIBS"
8752 cat >conftest.$ac_ext <<_ACEOF
8753 /* confdefs.h.  */
8754 _ACEOF
8755 cat confdefs.h >>conftest.$ac_ext
8756 cat >>conftest.$ac_ext <<_ACEOF
8757 /* end confdefs.h.  */
8758
8759 /* Override any GCC internal prototype to avoid an error.
8760    Use char because int might match the return type of a GCC
8761    builtin and then its argument prototype would still apply.  */
8762 #ifdef __cplusplus
8763 extern "C"
8764 #endif
8765 char dld_link ();
8766 int
8767 main ()
8768 {
8769 return dld_link ();
8770   ;
8771   return 0;
8772 }
8773 _ACEOF
8774 rm -f conftest.$ac_objext conftest$ac_exeext
8775 if { (ac_try="$ac_link"
8776 case "(($ac_try" in
8777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8778   *) ac_try_echo=$ac_try;;
8779 esac
8780 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8781 $as_echo "$ac_try_echo") >&5
8782   (eval "$ac_link") 2>conftest.er1
8783   ac_status=$?
8784   grep -v '^ *+' conftest.er1 >conftest.err
8785   rm -f conftest.er1
8786   cat conftest.err >&5
8787   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8788   (exit $ac_status); } && {
8789          test -z "$ac_c_werror_flag" ||
8790          test ! -s conftest.err
8791        } && test -s conftest$ac_exeext && {
8792          test "$cross_compiling" = yes ||
8793          $as_test_x conftest$ac_exeext
8794        }; then
8795   ac_cv_lib_dld_dld_link=yes
8796 else
8797   $as_echo "$as_me: failed program was:" >&5
8798 sed 's/^/| /' conftest.$ac_ext >&5
8799
8800         ac_cv_lib_dld_dld_link=no
8801 fi
8802
8803 rm -rf conftest.dSYM
8804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8805       conftest$ac_exeext conftest.$ac_ext
8806 LIBS=$ac_check_lib_save_LIBS
8807 fi
8808 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8809 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
8810 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
8811   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8812 fi
8813
8814
8815 fi
8816
8817
8818 fi
8819
8820
8821 fi
8822
8823
8824 fi
8825
8826
8827 fi
8828
8829     ;;
8830   esac
8831
8832   if test "x$lt_cv_dlopen" != xno; then
8833     enable_dlopen=yes
8834   else
8835     enable_dlopen=no
8836   fi
8837
8838   case $lt_cv_dlopen in
8839   dlopen)
8840     save_CPPFLAGS="$CPPFLAGS"
8841     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8842
8843     save_LDFLAGS="$LDFLAGS"
8844     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8845
8846     save_LIBS="$LIBS"
8847     LIBS="$lt_cv_dlopen_libs $LIBS"
8848
8849     { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8850 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
8851 if test "${lt_cv_dlopen_self+set}" = set; then
8852   $as_echo_n "(cached) " >&6
8853 else
8854           if test "$cross_compiling" = yes; then :
8855   lt_cv_dlopen_self=cross
8856 else
8857   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8858   lt_status=$lt_dlunknown
8859   cat > conftest.$ac_ext <<EOF
8860 #line 8860 "configure"
8861 #include "confdefs.h"
8862
8863 #if HAVE_DLFCN_H
8864 #include <dlfcn.h>
8865 #endif
8866
8867 #include <stdio.h>
8868
8869 #ifdef RTLD_GLOBAL
8870 #  define LT_DLGLOBAL           RTLD_GLOBAL
8871 #else
8872 #  ifdef DL_GLOBAL
8873 #    define LT_DLGLOBAL         DL_GLOBAL
8874 #  else
8875 #    define LT_DLGLOBAL         0
8876 #  endif
8877 #endif
8878
8879 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8880    find out it does not work in some platform. */
8881 #ifndef LT_DLLAZY_OR_NOW
8882 #  ifdef RTLD_LAZY
8883 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8884 #  else
8885 #    ifdef DL_LAZY
8886 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8887 #    else
8888 #      ifdef RTLD_NOW
8889 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8890 #      else
8891 #        ifdef DL_NOW
8892 #          define LT_DLLAZY_OR_NOW      DL_NOW
8893 #        else
8894 #          define LT_DLLAZY_OR_NOW      0
8895 #        endif
8896 #      endif
8897 #    endif
8898 #  endif
8899 #endif
8900
8901 #ifdef __cplusplus
8902 extern "C" void exit (int);
8903 #endif
8904
8905 void fnord() { int i=42;}
8906 int main ()
8907 {
8908   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8909   int status = $lt_dlunknown;
8910
8911   if (self)
8912     {
8913       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8914       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8915       /* dlclose (self); */
8916     }
8917
8918     exit (status);
8919 }
8920 EOF
8921   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8922   (eval $ac_link) 2>&5
8923   ac_status=$?
8924   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8925   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8926     (./conftest; exit; ) 2>/dev/null
8927     lt_status=$?
8928     case x$lt_status in
8929       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8930       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8931       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8932     esac
8933   else :
8934     # compilation failed
8935     lt_cv_dlopen_self=no
8936   fi
8937 fi
8938 rm -fr conftest*
8939
8940
8941 fi
8942 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8943 $as_echo "$lt_cv_dlopen_self" >&6; }
8944
8945     if test "x$lt_cv_dlopen_self" = xyes; then
8946       LDFLAGS="$LDFLAGS $link_static_flag"
8947       { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8948 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
8949 if test "${lt_cv_dlopen_self_static+set}" = set; then
8950   $as_echo_n "(cached) " >&6
8951 else
8952           if test "$cross_compiling" = yes; then :
8953   lt_cv_dlopen_self_static=cross
8954 else
8955   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8956   lt_status=$lt_dlunknown
8957   cat > conftest.$ac_ext <<EOF
8958 #line 8958 "configure"
8959 #include "confdefs.h"
8960
8961 #if HAVE_DLFCN_H
8962 #include <dlfcn.h>
8963 #endif
8964
8965 #include <stdio.h>
8966
8967 #ifdef RTLD_GLOBAL
8968 #  define LT_DLGLOBAL           RTLD_GLOBAL
8969 #else
8970 #  ifdef DL_GLOBAL
8971 #    define LT_DLGLOBAL         DL_GLOBAL
8972 #  else
8973 #    define LT_DLGLOBAL         0
8974 #  endif
8975 #endif
8976
8977 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8978    find out it does not work in some platform. */
8979 #ifndef LT_DLLAZY_OR_NOW
8980 #  ifdef RTLD_LAZY
8981 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8982 #  else
8983 #    ifdef DL_LAZY
8984 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8985 #    else
8986 #      ifdef RTLD_NOW
8987 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8988 #      else
8989 #        ifdef DL_NOW
8990 #          define LT_DLLAZY_OR_NOW      DL_NOW
8991 #        else
8992 #          define LT_DLLAZY_OR_NOW      0
8993 #        endif
8994 #      endif
8995 #    endif
8996 #  endif
8997 #endif
8998
8999 #ifdef __cplusplus
9000 extern "C" void exit (int);
9001 #endif
9002
9003 void fnord() { int i=42;}
9004 int main ()
9005 {
9006   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9007   int status = $lt_dlunknown;
9008
9009   if (self)
9010     {
9011       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9012       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9013       /* dlclose (self); */
9014     }
9015
9016     exit (status);
9017 }
9018 EOF
9019   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9020   (eval $ac_link) 2>&5
9021   ac_status=$?
9022   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9023   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9024     (./conftest; exit; ) 2>/dev/null
9025     lt_status=$?
9026     case x$lt_status in
9027       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9028       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9029       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9030     esac
9031   else :
9032     # compilation failed
9033     lt_cv_dlopen_self_static=no
9034   fi
9035 fi
9036 rm -fr conftest*
9037
9038
9039 fi
9040 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9041 $as_echo "$lt_cv_dlopen_self_static" >&6; }
9042     fi
9043
9044     CPPFLAGS="$save_CPPFLAGS"
9045     LDFLAGS="$save_LDFLAGS"
9046     LIBS="$save_LIBS"
9047     ;;
9048   esac
9049
9050   case $lt_cv_dlopen_self in
9051   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9052   *) enable_dlopen_self=unknown ;;
9053   esac
9054
9055   case $lt_cv_dlopen_self_static in
9056   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9057   *) enable_dlopen_self_static=unknown ;;
9058   esac
9059 fi
9060
9061
9062 # Report which librarie types wil actually be built
9063 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9064 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
9065 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
9066 $as_echo "$can_build_shared" >&6; }
9067
9068 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9069 $as_echo_n "checking whether to build shared libraries... " >&6; }
9070 test "$can_build_shared" = "no" && enable_shared=no
9071
9072 # On AIX, shared libraries and static libraries use the same namespace, and
9073 # are all built from PIC.
9074 case "$host_os" in
9075 aix3*)
9076   test "$enable_shared" = yes && enable_static=no
9077   if test -n "$RANLIB"; then
9078     archive_cmds="$archive_cmds~\$RANLIB \$lib"
9079     postinstall_cmds='$RANLIB $lib'
9080   fi
9081   ;;
9082
9083 aix4*)
9084   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9085     test "$enable_shared" = yes && enable_static=no
9086   fi
9087   ;;
9088   darwin* | rhapsody*)
9089   if test "$GCC" = yes; then
9090     archive_cmds_need_lc=no
9091     case "$host_os" in
9092     rhapsody* | darwin1.[012])
9093       allow_undefined_flag='-undefined suppress'
9094       ;;
9095     *) # Darwin 1.3 on
9096       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9097         allow_undefined_flag='-flat_namespace -undefined suppress'
9098       else
9099         case ${MACOSX_DEPLOYMENT_TARGET} in
9100           10.[012])
9101             allow_undefined_flag='-flat_namespace -undefined suppress'
9102             ;;
9103           10.*)
9104             allow_undefined_flag='-undefined dynamic_lookup'
9105             ;;
9106         esac
9107       fi
9108       ;;
9109     esac
9110     output_verbose_link_cmd='echo'
9111     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9112     module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9113     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9114     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}'
9115     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}'
9116     hardcode_direct=no
9117     hardcode_automatic=yes
9118     hardcode_shlibpath_var=unsupported
9119     whole_archive_flag_spec='-all_load $convenience'
9120     link_all_deplibs=yes
9121   else
9122     ld_shlibs=no
9123   fi
9124     ;;
9125 esac
9126 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
9127 $as_echo "$enable_shared" >&6; }
9128
9129 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9130 $as_echo_n "checking whether to build static libraries... " >&6; }
9131 # Make sure either enable_shared or enable_static is yes.
9132 test "$enable_shared" = yes || enable_static=yes
9133 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
9134 $as_echo "$enable_static" >&6; }
9135
9136 # The else clause should only fire when bootstrapping the
9137 # libtool distribution, otherwise you forgot to ship ltmain.sh
9138 # with your package, and you will get complaints that there are
9139 # no rules to generate ltmain.sh.
9140 if test -f "$ltmain"; then
9141   # See if we are running on zsh, and set the options which allow our commands through
9142   # without removal of \ escapes.
9143   if test -n "${ZSH_VERSION+set}" ; then
9144     setopt NO_GLOB_SUBST
9145   fi
9146   # Now quote all the things that may contain metacharacters while being
9147   # careful not to overquote the AC_SUBSTed values.  We take copies of the
9148   # variables and quote the copies for generation of the libtool script.
9149   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9150     SED SHELL STRIP \
9151     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9152     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9153     deplibs_check_method reload_flag reload_cmds need_locks \
9154     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9155     lt_cv_sys_global_symbol_to_c_name_address \
9156     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9157     old_postinstall_cmds old_postuninstall_cmds \
9158     compiler \
9159     CC \
9160     LD \
9161     lt_prog_compiler_wl \
9162     lt_prog_compiler_pic \
9163     lt_prog_compiler_static \
9164     lt_prog_compiler_no_builtin_flag \
9165     export_dynamic_flag_spec \
9166     thread_safe_flag_spec \
9167     whole_archive_flag_spec \
9168     enable_shared_with_static_runtimes \
9169     old_archive_cmds \
9170     old_archive_from_new_cmds \
9171     predep_objects \
9172     postdep_objects \
9173     predeps \
9174     postdeps \
9175     compiler_lib_search_path \
9176     archive_cmds \
9177     archive_expsym_cmds \
9178     postinstall_cmds \
9179     postuninstall_cmds \
9180     old_archive_from_expsyms_cmds \
9181     allow_undefined_flag \
9182     no_undefined_flag \
9183     export_symbols_cmds \
9184     hardcode_libdir_flag_spec \
9185     hardcode_libdir_flag_spec_ld \
9186     hardcode_libdir_separator \
9187     hardcode_automatic \
9188     module_cmds \
9189     module_expsym_cmds \
9190     lt_cv_prog_compiler_c_o \
9191     exclude_expsyms \
9192     include_expsyms; do
9193
9194     case $var in
9195     old_archive_cmds | \
9196     old_archive_from_new_cmds | \
9197     archive_cmds | \
9198     archive_expsym_cmds | \
9199     module_cmds | \
9200     module_expsym_cmds | \
9201     old_archive_from_expsyms_cmds | \
9202     export_symbols_cmds | \
9203     extract_expsyms_cmds | reload_cmds | finish_cmds | \
9204     postinstall_cmds | postuninstall_cmds | \
9205     old_postinstall_cmds | old_postuninstall_cmds | \
9206     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9207       # Double-quote double-evaled strings.
9208       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9209       ;;
9210     *)
9211       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9212       ;;
9213     esac
9214   done
9215
9216   case $lt_echo in
9217   *'\$0 --fallback-echo"')
9218     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9219     ;;
9220   esac
9221
9222 cfgfile="${ofile}T"
9223   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9224   $rm -f "$cfgfile"
9225   { $as_echo "$as_me:$LINENO: creating $ofile" >&5
9226 $as_echo "$as_me: creating $ofile" >&6;}
9227
9228   cat <<__EOF__ >> "$cfgfile"
9229 #! $SHELL
9230
9231 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9232 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9233 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9234 #
9235 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9236 # Free Software Foundation, Inc.
9237 #
9238 # This file is part of GNU Libtool:
9239 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9240 #
9241 # This program is free software; you can redistribute it and/or modify
9242 # it under the terms of the GNU General Public License as published by
9243 # the Free Software Foundation; either version 2 of the License, or
9244 # (at your option) any later version.
9245 #
9246 # This program is distributed in the hope that it will be useful, but
9247 # WITHOUT ANY WARRANTY; without even the implied warranty of
9248 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9249 # General Public License for more details.
9250 #
9251 # You should have received a copy of the GNU General Public License
9252 # along with this program; if not, write to the Free Software
9253 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9254 #
9255 # As a special exception to the GNU General Public License, if you
9256 # distribute this file as part of a program that contains a
9257 # configuration script generated by Autoconf, you may include it under
9258 # the same distribution terms that you use for the rest of that program.
9259
9260 # A sed program that does not truncate output.
9261 SED=$lt_SED
9262
9263 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9264 Xsed="$SED -e s/^X//"
9265
9266 # The HP-UX ksh and POSIX shell print the target directory to stdout
9267 # if CDPATH is set.
9268 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9269
9270 # The names of the tagged configurations supported by this script.
9271 available_tags=
9272
9273 # ### BEGIN LIBTOOL CONFIG
9274
9275 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9276
9277 # Shell to use when invoking shell scripts.
9278 SHELL=$lt_SHELL
9279
9280 # Whether or not to build shared libraries.
9281 build_libtool_libs=$enable_shared
9282
9283 # Whether or not to build static libraries.
9284 build_old_libs=$enable_static
9285
9286 # Whether or not to add -lc for building shared libraries.
9287 build_libtool_need_lc=$archive_cmds_need_lc
9288
9289 # Whether or not to disallow shared libs when runtime libs are static
9290 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9291
9292 # Whether or not to optimize for fast installation.
9293 fast_install=$enable_fast_install
9294
9295 # The host system.
9296 host_alias=$host_alias
9297 host=$host
9298
9299 # An echo program that does not interpret backslashes.
9300 echo=$lt_echo
9301
9302 # The archiver.
9303 AR=$lt_AR
9304 AR_FLAGS=$lt_AR_FLAGS
9305
9306 # A C compiler.
9307 LTCC=$lt_LTCC
9308
9309 # A language-specific compiler.
9310 CC=$lt_compiler
9311
9312 # Is the compiler the GNU C compiler?
9313 with_gcc=$GCC
9314
9315 # An ERE matcher.
9316 EGREP=$lt_EGREP
9317
9318 # The linker used to build libraries.
9319 LD=$lt_LD
9320
9321 # Whether we need hard or soft links.
9322 LN_S=$lt_LN_S
9323
9324 # A BSD-compatible nm program.
9325 NM=$lt_NM
9326
9327 # A symbol stripping program
9328 STRIP=$lt_STRIP
9329
9330 # Used to examine libraries when file_magic_cmd begins "file"
9331 MAGIC_CMD=$MAGIC_CMD
9332
9333 # Used on cygwin: DLL creation program.
9334 DLLTOOL="$DLLTOOL"
9335
9336 # Used on cygwin: object dumper.
9337 OBJDUMP="$OBJDUMP"
9338
9339 # Used on cygwin: assembler.
9340 AS="$AS"
9341
9342 # The name of the directory that contains temporary libtool files.
9343 objdir=$objdir
9344
9345 # How to create reloadable object files.
9346 reload_flag=$lt_reload_flag
9347 reload_cmds=$lt_reload_cmds
9348
9349 # How to pass a linker flag through the compiler.
9350 wl=$lt_lt_prog_compiler_wl
9351
9352 # Object file suffix (normally "o").
9353 objext="$ac_objext"
9354
9355 # Old archive suffix (normally "a").
9356 libext="$libext"
9357
9358 # Shared library suffix (normally ".so").
9359 shrext='$shrext'
9360
9361 # Executable file suffix (normally "").
9362 exeext="$exeext"
9363
9364 # Additional compiler flags for building library objects.
9365 pic_flag=$lt_lt_prog_compiler_pic
9366 pic_mode=$pic_mode
9367
9368 # What is the maximum length of a command?
9369 max_cmd_len=$lt_cv_sys_max_cmd_len
9370
9371 # Does compiler simultaneously support -c and -o options?
9372 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9373
9374 # Must we lock files when doing compilation ?
9375 need_locks=$lt_need_locks
9376
9377 # Do we need the lib prefix for modules?
9378 need_lib_prefix=$need_lib_prefix
9379
9380 # Do we need a version for libraries?
9381 need_version=$need_version
9382
9383 # Whether dlopen is supported.
9384 dlopen_support=$enable_dlopen
9385
9386 # Whether dlopen of programs is supported.
9387 dlopen_self=$enable_dlopen_self
9388
9389 # Whether dlopen of statically linked programs is supported.
9390 dlopen_self_static=$enable_dlopen_self_static
9391
9392 # Compiler flag to prevent dynamic linking.
9393 link_static_flag=$lt_lt_prog_compiler_static
9394
9395 # Compiler flag to turn off builtin functions.
9396 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9397
9398 # Compiler flag to allow reflexive dlopens.
9399 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9400
9401 # Compiler flag to generate shared objects directly from archives.
9402 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9403
9404 # Compiler flag to generate thread-safe objects.
9405 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9406
9407 # Library versioning type.
9408 version_type=$version_type
9409
9410 # Format of library name prefix.
9411 libname_spec=$lt_libname_spec
9412
9413 # List of archive names.  First name is the real one, the rest are links.
9414 # The last name is the one that the linker finds with -lNAME.
9415 library_names_spec=$lt_library_names_spec
9416
9417 # The coded name of the library, if different from the real name.
9418 soname_spec=$lt_soname_spec
9419
9420 # Commands used to build and install an old-style archive.
9421 RANLIB=$lt_RANLIB
9422 old_archive_cmds=$lt_old_archive_cmds
9423 old_postinstall_cmds=$lt_old_postinstall_cmds
9424 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9425
9426 # Create an old-style archive from a shared archive.
9427 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9428
9429 # Create a temporary old-style archive to link instead of a shared archive.
9430 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9431
9432 # Commands used to build and install a shared archive.
9433 archive_cmds=$lt_archive_cmds
9434 archive_expsym_cmds=$lt_archive_expsym_cmds
9435 postinstall_cmds=$lt_postinstall_cmds
9436 postuninstall_cmds=$lt_postuninstall_cmds
9437
9438 # Commands used to build a loadable module (assumed same as above if empty)
9439 module_cmds=$lt_module_cmds
9440 module_expsym_cmds=$lt_module_expsym_cmds
9441
9442 # Commands to strip libraries.
9443 old_striplib=$lt_old_striplib
9444 striplib=$lt_striplib
9445
9446 # Dependencies to place before the objects being linked to create a
9447 # shared library.
9448 predep_objects=$lt_predep_objects
9449
9450 # Dependencies to place after the objects being linked to create a
9451 # shared library.
9452 postdep_objects=$lt_postdep_objects
9453
9454 # Dependencies to place before the objects being linked to create a
9455 # shared library.
9456 predeps=$lt_predeps
9457
9458 # Dependencies to place after the objects being linked to create a
9459 # shared library.
9460 postdeps=$lt_postdeps
9461
9462 # The library search path used internally by the compiler when linking
9463 # a shared library.
9464 compiler_lib_search_path=$lt_compiler_lib_search_path
9465
9466 # Method to check whether dependent libraries are shared objects.
9467 deplibs_check_method=$lt_deplibs_check_method
9468
9469 # Command to use when deplibs_check_method == file_magic.
9470 file_magic_cmd=$lt_file_magic_cmd
9471
9472 # Flag that allows shared libraries with undefined symbols to be built.
9473 allow_undefined_flag=$lt_allow_undefined_flag
9474
9475 # Flag that forces no undefined symbols.
9476 no_undefined_flag=$lt_no_undefined_flag
9477
9478 # Commands used to finish a libtool library installation in a directory.
9479 finish_cmds=$lt_finish_cmds
9480
9481 # Same as above, but a single script fragment to be evaled but not shown.
9482 finish_eval=$lt_finish_eval
9483
9484 # Take the output of nm and produce a listing of raw symbols and C names.
9485 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9486
9487 # Transform the output of nm in a proper C declaration
9488 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9489
9490 # Transform the output of nm in a C name address pair
9491 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9492
9493 # This is the shared library runtime path variable.
9494 runpath_var=$runpath_var
9495
9496 # This is the shared library path variable.
9497 shlibpath_var=$shlibpath_var
9498
9499 # Is shlibpath searched before the hard-coded library search path?
9500 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9501
9502 # How to hardcode a shared library path into an executable.
9503 hardcode_action=$hardcode_action
9504
9505 # Whether we should hardcode library paths into libraries.
9506 hardcode_into_libs=$hardcode_into_libs
9507
9508 # Flag to hardcode \$libdir into a binary during linking.
9509 # This must work even if \$libdir does not exist.
9510 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9511
9512 # If ld is used when linking, flag to hardcode \$libdir into
9513 # a binary during linking. This must work even if \$libdir does
9514 # not exist.
9515 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9516
9517 # Whether we need a single -rpath flag with a separated argument.
9518 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9519
9520 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9521 # resulting binary.
9522 hardcode_direct=$hardcode_direct
9523
9524 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9525 # resulting binary.
9526 hardcode_minus_L=$hardcode_minus_L
9527
9528 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9529 # the resulting binary.
9530 hardcode_shlibpath_var=$hardcode_shlibpath_var
9531
9532 # Set to yes if building a shared library automatically hardcodes DIR into the library
9533 # and all subsequent libraries and executables linked against it.
9534 hardcode_automatic=$hardcode_automatic
9535
9536 # Variables whose values should be saved in libtool wrapper scripts and
9537 # restored at relink time.
9538 variables_saved_for_relink="$variables_saved_for_relink"
9539
9540 # Whether libtool must link a program against all its dependency libraries.
9541 link_all_deplibs=$link_all_deplibs
9542
9543 # Compile-time system search path for libraries
9544 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9545
9546 # Run-time system search path for libraries
9547 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9548
9549 # Fix the shell variable \$srcfile for the compiler.
9550 fix_srcfile_path="$fix_srcfile_path"
9551
9552 # Set to yes if exported symbols are required.
9553 always_export_symbols=$always_export_symbols
9554
9555 # The commands to list exported symbols.
9556 export_symbols_cmds=$lt_export_symbols_cmds
9557
9558 # The commands to extract the exported symbol list from a shared archive.
9559 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9560
9561 # Symbols that should not be listed in the preloaded symbols.
9562 exclude_expsyms=$lt_exclude_expsyms
9563
9564 # Symbols that must always be exported.
9565 include_expsyms=$lt_include_expsyms
9566
9567 # ### END LIBTOOL CONFIG
9568
9569 __EOF__
9570
9571
9572   case $host_os in
9573   aix3*)
9574     cat <<\EOF >> "$cfgfile"
9575
9576 # AIX sometimes has problems with the GCC collect2 program.  For some
9577 # reason, if we set the COLLECT_NAMES environment variable, the problems
9578 # vanish in a puff of smoke.
9579 if test "X${COLLECT_NAMES+set}" != Xset; then
9580   COLLECT_NAMES=
9581   export COLLECT_NAMES
9582 fi
9583 EOF
9584     ;;
9585   esac
9586
9587   # We use sed instead of cat because bash on DJGPP gets confused if
9588   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9589   # text mode, it properly converts lines to CR/LF.  This bash problem
9590   # is reportedly fixed, but why not run on old versions too?
9591   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9592
9593   mv -f "$cfgfile" "$ofile" || \
9594     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9595   chmod +x "$ofile"
9596
9597 else
9598   # If there is no Makefile yet, we rely on a make rule to execute
9599   # `config.status --recheck' to rerun these tests and create the
9600   # libtool script then.
9601   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9602   if test -f "$ltmain_in"; then
9603     test -f Makefile && make "$ltmain"
9604   fi
9605 fi
9606
9607
9608 ac_ext=c
9609 ac_cpp='$CPP $CPPFLAGS'
9610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9613
9614 CC="$lt_save_CC"
9615
9616
9617 # Check whether --with-tags was given.
9618 if test "${with_tags+set}" = set; then
9619   withval=$with_tags; tagnames="$withval"
9620 fi
9621
9622
9623 if test -f "$ltmain" && test -n "$tagnames"; then
9624   if test ! -f "${ofile}"; then
9625     { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9626 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9627   fi
9628
9629   if test -z "$LTCC"; then
9630     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9631     if test -z "$LTCC"; then
9632       { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9633 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9634     else
9635       { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9636 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9637     fi
9638   fi
9639
9640   # Extract list of available tagged configurations in $ofile.
9641   # Note that this assumes the entire list is on one line.
9642   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9643
9644   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9645   for tagname in $tagnames; do
9646     IFS="$lt_save_ifs"
9647     # Check whether tagname contains only valid characters
9648     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9649     "") ;;
9650     *)  { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9651 $as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
9652    { (exit 1); exit 1; }; }
9653         ;;
9654     esac
9655
9656     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9657     then
9658       { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9659 $as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9660    { (exit 1); exit 1; }; }
9661     fi
9662
9663     # Update the list of available tags.
9664     if test -n "$tagname"; then
9665       echo appending configuration tag \"$tagname\" to $ofile
9666
9667       case $tagname in
9668       CXX)
9669         if test -n "$CXX" && test "X$CXX" != "Xno"; then
9670           ac_ext=cpp
9671 ac_cpp='$CXXCPP $CPPFLAGS'
9672 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9673 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9674 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9675
9676
9677
9678
9679 archive_cmds_need_lc_CXX=no
9680 allow_undefined_flag_CXX=
9681 always_export_symbols_CXX=no
9682 archive_expsym_cmds_CXX=
9683 export_dynamic_flag_spec_CXX=
9684 hardcode_direct_CXX=no
9685 hardcode_libdir_flag_spec_CXX=
9686 hardcode_libdir_flag_spec_ld_CXX=
9687 hardcode_libdir_separator_CXX=
9688 hardcode_minus_L_CXX=no
9689 hardcode_automatic_CXX=no
9690 module_cmds_CXX=
9691 module_expsym_cmds_CXX=
9692 link_all_deplibs_CXX=unknown
9693 old_archive_cmds_CXX=$old_archive_cmds
9694 no_undefined_flag_CXX=
9695 whole_archive_flag_spec_CXX=
9696 enable_shared_with_static_runtimes_CXX=no
9697
9698 # Dependencies to place before and after the object being linked:
9699 predep_objects_CXX=
9700 postdep_objects_CXX=
9701 predeps_CXX=
9702 postdeps_CXX=
9703 compiler_lib_search_path_CXX=
9704
9705 # Source file extension for C++ test sources.
9706 ac_ext=cc
9707
9708 # Object file extension for compiled C++ test sources.
9709 objext=o
9710 objext_CXX=$objext
9711
9712 # Code to be used in simple compile tests
9713 lt_simple_compile_test_code="int some_variable = 0;\n"
9714
9715 # Code to be used in simple link tests
9716 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9717
9718 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9719
9720 # If no C compiler was specified, use CC.
9721 LTCC=${LTCC-"$CC"}
9722
9723 # Allow CC to be a program name with arguments.
9724 compiler=$CC
9725
9726
9727 # Allow CC to be a program name with arguments.
9728 lt_save_CC=$CC
9729 lt_save_LD=$LD
9730 lt_save_GCC=$GCC
9731 GCC=$GXX
9732 lt_save_with_gnu_ld=$with_gnu_ld
9733 lt_save_path_LD=$lt_cv_path_LD
9734 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9735   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9736 else
9737   unset lt_cv_prog_gnu_ld
9738 fi
9739 if test -n "${lt_cv_path_LDCXX+set}"; then
9740   lt_cv_path_LD=$lt_cv_path_LDCXX
9741 else
9742   unset lt_cv_path_LD
9743 fi
9744 test -z "${LDCXX+set}" || LD=$LDCXX
9745 CC=${CXX-"c++"}
9746 compiler=$CC
9747 compiler_CXX=$CC
9748 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9749
9750 # We don't want -fno-exception wen compiling C++ code, so set the
9751 # no_builtin_flag separately
9752 if test "$GXX" = yes; then
9753   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9754 else
9755   lt_prog_compiler_no_builtin_flag_CXX=
9756 fi
9757
9758 if test "$GXX" = yes; then
9759   # Set up default GNU C++ configuration
9760
9761
9762 # Check whether --with-gnu-ld was given.
9763 if test "${with_gnu_ld+set}" = set; then
9764   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9765 else
9766   with_gnu_ld=no
9767 fi
9768
9769 ac_prog=ld
9770 if test "$GCC" = yes; then
9771   # Check if gcc -print-prog-name=ld gives a path.
9772   { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9773 $as_echo_n "checking for ld used by $CC... " >&6; }
9774   case $host in
9775   *-*-mingw*)
9776     # gcc leaves a trailing carriage return which upsets mingw
9777     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9778   *)
9779     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9780   esac
9781   case $ac_prog in
9782     # Accept absolute paths.
9783     [\\/]* | ?:[\\/]*)
9784       re_direlt='/[^/][^/]*/\.\./'
9785       # Canonicalize the pathname of ld
9786       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9787       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9788         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9789       done
9790       test -z "$LD" && LD="$ac_prog"
9791       ;;
9792   "")
9793     # If it fails, then pretend we aren't using GCC.
9794     ac_prog=ld
9795     ;;
9796   *)
9797     # If it is relative, then search for the first ld in PATH.
9798     with_gnu_ld=unknown
9799     ;;
9800   esac
9801 elif test "$with_gnu_ld" = yes; then
9802   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
9803 $as_echo_n "checking for GNU ld... " >&6; }
9804 else
9805   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9806 $as_echo_n "checking for non-GNU ld... " >&6; }
9807 fi
9808 if test "${lt_cv_path_LD+set}" = set; then
9809   $as_echo_n "(cached) " >&6
9810 else
9811   if test -z "$LD"; then
9812   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9813   for ac_dir in $PATH; do
9814     IFS="$lt_save_ifs"
9815     test -z "$ac_dir" && ac_dir=.
9816     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9817       lt_cv_path_LD="$ac_dir/$ac_prog"
9818       # Check to see if the program is GNU ld.  I'd rather use --version,
9819       # but apparently some GNU ld's only accept -v.
9820       # Break only if it was the GNU/non-GNU ld that we prefer.
9821       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9822       *GNU* | *'with BFD'*)
9823         test "$with_gnu_ld" != no && break
9824         ;;
9825       *)
9826         test "$with_gnu_ld" != yes && break
9827         ;;
9828       esac
9829     fi
9830   done
9831   IFS="$lt_save_ifs"
9832 else
9833   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9834 fi
9835 fi
9836
9837 LD="$lt_cv_path_LD"
9838 if test -n "$LD"; then
9839   { $as_echo "$as_me:$LINENO: result: $LD" >&5
9840 $as_echo "$LD" >&6; }
9841 else
9842   { $as_echo "$as_me:$LINENO: result: no" >&5
9843 $as_echo "no" >&6; }
9844 fi
9845 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9846 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9847    { (exit 1); exit 1; }; }
9848 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9849 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9850 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9851   $as_echo_n "(cached) " >&6
9852 else
9853   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9854 case `$LD -v 2>&1 </dev/null` in
9855 *GNU* | *'with BFD'*)
9856   lt_cv_prog_gnu_ld=yes
9857   ;;
9858 *)
9859   lt_cv_prog_gnu_ld=no
9860   ;;
9861 esac
9862 fi
9863 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9864 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
9865 with_gnu_ld=$lt_cv_prog_gnu_ld
9866
9867
9868
9869   # Check if GNU C++ uses GNU ld as the underlying linker, since the
9870   # archiving commands below assume that GNU ld is being used.
9871   if test "$with_gnu_ld" = yes; then
9872     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9873     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'
9874
9875     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9876     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9877
9878     # If archive_cmds runs LD, not CC, wlarc should be empty
9879     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9880     #     investigate it a little bit more. (MM)
9881     wlarc='${wl}'
9882
9883     # ancient GNU ld didn't support --whole-archive et. al.
9884     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9885         grep 'no-whole-archive' > /dev/null; then
9886       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9887     else
9888       whole_archive_flag_spec_CXX=
9889     fi
9890   else
9891     with_gnu_ld=no
9892     wlarc=
9893
9894     # A generic and very simple default shared library creation
9895     # command for GNU C++ for the case where it uses the native
9896     # linker, instead of GNU ld.  If possible, this setting should
9897     # overridden to take advantage of the native linker features on
9898     # the platform it is being used on.
9899     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9900   fi
9901
9902   # Commands to make compiler produce verbose output that lists
9903   # what "hidden" libraries, object files and flags are used when
9904   # linking a shared library.
9905   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9906
9907 else
9908   GXX=no
9909   with_gnu_ld=no
9910   wlarc=
9911 fi
9912
9913 # PORTME: fill in a description of your system's C++ link characteristics
9914 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9915 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9916 ld_shlibs_CXX=yes
9917 case $host_os in
9918   aix3*)
9919     # FIXME: insert proper C++ library support
9920     ld_shlibs_CXX=no
9921     ;;
9922   aix4* | aix5*)
9923     if test "$host_cpu" = ia64; then
9924       # On IA64, the linker does run time linking by default, so we don't
9925       # have to do anything special.
9926       aix_use_runtimelinking=no
9927       exp_sym_flag='-Bexport'
9928       no_entry_flag=""
9929     else
9930       aix_use_runtimelinking=no
9931
9932       # Test if we are trying to use run time linking or normal
9933       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9934       # need to do runtime linking.
9935       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9936         for ld_flag in $LDFLAGS; do
9937           case $ld_flag in
9938           *-brtl*)
9939             aix_use_runtimelinking=yes
9940             break
9941             ;;
9942           esac
9943         done
9944       esac
9945
9946       exp_sym_flag='-bexport'
9947       no_entry_flag='-bnoentry'
9948     fi
9949
9950     # When large executables or shared objects are built, AIX ld can
9951     # have problems creating the table of contents.  If linking a library
9952     # or program results in "error TOC overflow" add -mminimal-toc to
9953     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9954     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9955
9956     archive_cmds_CXX=''
9957     hardcode_direct_CXX=yes
9958     hardcode_libdir_separator_CXX=':'
9959     link_all_deplibs_CXX=yes
9960
9961     if test "$GXX" = yes; then
9962       case $host_os in aix4.012|aix4.012.*)
9963       # We only want to do this on AIX 4.2 and lower, the check
9964       # below for broken collect2 doesn't work under 4.3+
9965         collect2name=`${CC} -print-prog-name=collect2`
9966         if test -f "$collect2name" && \
9967            strings "$collect2name" | grep resolve_lib_name >/dev/null
9968         then
9969           # We have reworked collect2
9970           hardcode_direct_CXX=yes
9971         else
9972           # We have old collect2
9973           hardcode_direct_CXX=unsupported
9974           # It fails to find uninstalled libraries when the uninstalled
9975           # path is not listed in the libpath.  Setting hardcode_minus_L
9976           # to unsupported forces relinking
9977           hardcode_minus_L_CXX=yes
9978           hardcode_libdir_flag_spec_CXX='-L$libdir'
9979           hardcode_libdir_separator_CXX=
9980         fi
9981       esac
9982       shared_flag='-shared'
9983     else
9984       # not using gcc
9985       if test "$host_cpu" = ia64; then
9986         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9987         # chokes on -Wl,-G. The following line is correct:
9988         shared_flag='-G'
9989       else
9990         if test "$aix_use_runtimelinking" = yes; then
9991           shared_flag='${wl}-G'
9992         else
9993           shared_flag='${wl}-bM:SRE'
9994         fi
9995       fi
9996     fi
9997
9998     # It seems that -bexpall does not export symbols beginning with
9999     # underscore (_), so it is better to generate a list of symbols to export.
10000     always_export_symbols_CXX=yes
10001     if test "$aix_use_runtimelinking" = yes; then
10002       # Warning - without using the other runtime loading flags (-brtl),
10003       # -berok will link without error, but may produce a broken library.
10004       allow_undefined_flag_CXX='-berok'
10005       # Determine the default libpath from the value encoded in an empty executable.
10006       cat >conftest.$ac_ext <<_ACEOF
10007 /* confdefs.h.  */
10008 _ACEOF
10009 cat confdefs.h >>conftest.$ac_ext
10010 cat >>conftest.$ac_ext <<_ACEOF
10011 /* end confdefs.h.  */
10012
10013 int
10014 main ()
10015 {
10016
10017   ;
10018   return 0;
10019 }
10020 _ACEOF
10021 rm -f conftest.$ac_objext conftest$ac_exeext
10022 if { (ac_try="$ac_link"
10023 case "(($ac_try" in
10024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10025   *) ac_try_echo=$ac_try;;
10026 esac
10027 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10028 $as_echo "$ac_try_echo") >&5
10029   (eval "$ac_link") 2>conftest.er1
10030   ac_status=$?
10031   grep -v '^ *+' conftest.er1 >conftest.err
10032   rm -f conftest.er1
10033   cat conftest.err >&5
10034   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035   (exit $ac_status); } && {
10036          test -z "$ac_cxx_werror_flag" ||
10037          test ! -s conftest.err
10038        } && test -s conftest$ac_exeext && {
10039          test "$cross_compiling" = yes ||
10040          $as_test_x conftest$ac_exeext
10041        }; then
10042
10043 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10044 }'`
10045 # Check for a 64-bit object if we didn't find anything.
10046 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; }
10047 }'`; fi
10048 else
10049   $as_echo "$as_me: failed program was:" >&5
10050 sed 's/^/| /' conftest.$ac_ext >&5
10051
10052
10053 fi
10054
10055 rm -rf conftest.dSYM
10056 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10057       conftest$ac_exeext conftest.$ac_ext
10058 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10059
10060       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10061
10062       archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10063      else
10064       if test "$host_cpu" = ia64; then
10065         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10066         allow_undefined_flag_CXX="-z nodefs"
10067         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
10068       else
10069         # Determine the default libpath from the value encoded in an empty executable.
10070         cat >conftest.$ac_ext <<_ACEOF
10071 /* confdefs.h.  */
10072 _ACEOF
10073 cat confdefs.h >>conftest.$ac_ext
10074 cat >>conftest.$ac_ext <<_ACEOF
10075 /* end confdefs.h.  */
10076
10077 int
10078 main ()
10079 {
10080
10081   ;
10082   return 0;
10083 }
10084 _ACEOF
10085 rm -f conftest.$ac_objext conftest$ac_exeext
10086 if { (ac_try="$ac_link"
10087 case "(($ac_try" in
10088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10089   *) ac_try_echo=$ac_try;;
10090 esac
10091 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10092 $as_echo "$ac_try_echo") >&5
10093   (eval "$ac_link") 2>conftest.er1
10094   ac_status=$?
10095   grep -v '^ *+' conftest.er1 >conftest.err
10096   rm -f conftest.er1
10097   cat conftest.err >&5
10098   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10099   (exit $ac_status); } && {
10100          test -z "$ac_cxx_werror_flag" ||
10101          test ! -s conftest.err
10102        } && test -s conftest$ac_exeext && {
10103          test "$cross_compiling" = yes ||
10104          $as_test_x conftest$ac_exeext
10105        }; then
10106
10107 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10108 }'`
10109 # Check for a 64-bit object if we didn't find anything.
10110 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; }
10111 }'`; fi
10112 else
10113   $as_echo "$as_me: failed program was:" >&5
10114 sed 's/^/| /' conftest.$ac_ext >&5
10115
10116
10117 fi
10118
10119 rm -rf conftest.dSYM
10120 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10121       conftest$ac_exeext conftest.$ac_ext
10122 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10123
10124         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10125         # Warning - without using the other run time loading flags,
10126         # -berok will link without error, but may produce a broken library.
10127         no_undefined_flag_CXX=' ${wl}-bernotok'
10128         allow_undefined_flag_CXX=' ${wl}-berok'
10129         # -bexpall does not export symbols beginning with underscore (_)
10130         always_export_symbols_CXX=yes
10131         # Exported symbols can be pulled into shared objects from archives
10132         whole_archive_flag_spec_CXX=' '
10133         archive_cmds_need_lc_CXX=yes
10134         # This is similar to how AIX traditionally builds it's shared libraries.
10135         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10136       fi
10137     fi
10138     ;;
10139   chorus*)
10140     case $cc_basename in
10141       *)
10142         # FIXME: insert proper C++ library support
10143         ld_shlibs_CXX=no
10144         ;;
10145     esac
10146     ;;
10147
10148   cygwin* | mingw* | pw32*)
10149     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10150     # as there is no search path for DLLs.
10151     hardcode_libdir_flag_spec_CXX='-L$libdir'
10152     allow_undefined_flag_CXX=unsupported
10153     always_export_symbols_CXX=no
10154     enable_shared_with_static_runtimes_CXX=yes
10155
10156     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10157       archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10158       # If the export-symbols file already is a .def file (1st line
10159       # is EXPORTS), use it as is; otherwise, prepend...
10160       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10161         cp $export_symbols $output_objdir/$soname.def;
10162       else
10163         echo EXPORTS > $output_objdir/$soname.def;
10164         cat $export_symbols >> $output_objdir/$soname.def;
10165       fi~
10166       $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10167     else
10168       ld_shlibs_CXX=no
10169     fi
10170   ;;
10171
10172   darwin* | rhapsody*)
10173   if test "$GXX" = yes; then
10174     archive_cmds_need_lc_CXX=no
10175     case "$host_os" in
10176     rhapsody* | darwin1.[012])
10177       allow_undefined_flag_CXX='-undefined suppress'
10178       ;;
10179     *) # Darwin 1.3 on
10180       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10181         allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10182       else
10183         case ${MACOSX_DEPLOYMENT_TARGET} in
10184           10.[012])
10185             allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10186             ;;
10187           10.*)
10188             allow_undefined_flag_CXX='-undefined dynamic_lookup'
10189             ;;
10190         esac
10191       fi
10192       ;;
10193     esac
10194     lt_int_apple_cc_single_mod=no
10195     output_verbose_link_cmd='echo'
10196     if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10197       lt_int_apple_cc_single_mod=yes
10198     fi
10199     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10200       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10201     else
10202       archive_cmds_CXX='$CC -r ${wl}-bind_at_load -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'
10203     fi
10204     module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10205
10206     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10207     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10208       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}'
10209     else
10210       archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
10211     fi
10212     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}'
10213     hardcode_direct_CXX=no
10214     hardcode_automatic_CXX=yes
10215     hardcode_shlibpath_var_CXX=unsupported
10216     whole_archive_flag_spec_CXX='-all_load $convenience'
10217     link_all_deplibs_CXX=yes
10218   else
10219     ld_shlibs_CXX=no
10220   fi
10221     ;;
10222
10223   dgux*)
10224     case $cc_basename in
10225       ec++)
10226         # FIXME: insert proper C++ library support
10227         ld_shlibs_CXX=no
10228         ;;
10229       ghcx)
10230         # Green Hills C++ Compiler
10231         # FIXME: insert proper C++ library support
10232         ld_shlibs_CXX=no
10233         ;;
10234       *)
10235         # FIXME: insert proper C++ library support
10236         ld_shlibs_CXX=no
10237         ;;
10238     esac
10239     ;;
10240   freebsd12*)
10241     # C++ shared libraries reported to be fairly broken before switch to ELF
10242     ld_shlibs_CXX=no
10243     ;;
10244   freebsd-elf*)
10245     archive_cmds_need_lc_CXX=no
10246     ;;
10247   freebsd* | kfreebsd*-gnu)
10248     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10249     # conventions
10250     ld_shlibs_CXX=yes
10251     ;;
10252   gnu*)
10253     ;;
10254   hpux9*)
10255     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10256     hardcode_libdir_separator_CXX=:
10257     export_dynamic_flag_spec_CXX='${wl}-E'
10258     hardcode_direct_CXX=yes
10259     hardcode_minus_L_CXX=yes # Not in the search PATH,
10260                                 # but as the default
10261                                 # location of the library.
10262
10263     case $cc_basename in
10264     CC)
10265       # FIXME: insert proper C++ library support
10266       ld_shlibs_CXX=no
10267       ;;
10268     aCC)
10269       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'
10270       # Commands to make compiler produce verbose output that lists
10271       # what "hidden" libraries, object files and flags are used when
10272       # linking a shared library.
10273       #
10274       # There doesn't appear to be a way to prevent this compiler from
10275       # explicitly linking system object files so we need to strip them
10276       # from the output so that they don't get included in the library
10277       # dependencies.
10278       output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10279       ;;
10280     *)
10281       if test "$GXX" = yes; then
10282         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'
10283       else
10284         # FIXME: insert proper C++ library support
10285         ld_shlibs_CXX=no
10286       fi
10287       ;;
10288     esac
10289     ;;
10290   hpux10*|hpux11*)
10291     if test $with_gnu_ld = no; then
10292       case "$host_cpu" in
10293       hppa*64*)
10294         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10295         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10296         hardcode_libdir_separator_CXX=:
10297         ;;
10298       ia64*)
10299         hardcode_libdir_flag_spec_CXX='-L$libdir'
10300         ;;
10301       *)
10302         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10303         hardcode_libdir_separator_CXX=:
10304         export_dynamic_flag_spec_CXX='${wl}-E'
10305         ;;
10306       esac
10307     fi
10308     case "$host_cpu" in
10309     hppa*64*)
10310       hardcode_direct_CXX=no
10311       hardcode_shlibpath_var_CXX=no
10312       ;;
10313     ia64*)
10314       hardcode_direct_CXX=no
10315       hardcode_shlibpath_var_CXX=no
10316       hardcode_minus_L_CXX=yes # Not in the search PATH,
10317                                               # but as the default
10318                                               # location of the library.
10319       ;;
10320     *)
10321       hardcode_direct_CXX=yes
10322       hardcode_minus_L_CXX=yes # Not in the search PATH,
10323                                               # but as the default
10324                                               # location of the library.
10325       ;;
10326     esac
10327
10328     case $cc_basename in
10329       CC)
10330         # FIXME: insert proper C++ library support
10331         ld_shlibs_CXX=no
10332         ;;
10333       aCC)
10334         case "$host_cpu" in
10335         hppa*64*|ia64*)
10336           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10337           ;;
10338         *)
10339           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10340           ;;
10341         esac
10342         # Commands to make compiler produce verbose output that lists
10343         # what "hidden" libraries, object files and flags are used when
10344         # linking a shared library.
10345         #
10346         # There doesn't appear to be a way to prevent this compiler from
10347         # explicitly linking system object files so we need to strip them
10348         # from the output so that they don't get included in the library
10349         # dependencies.
10350         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'
10351         ;;
10352       *)
10353         if test "$GXX" = yes; then
10354           if test $with_gnu_ld = no; then
10355             case "$host_cpu" in
10356             ia64*|hppa*64*)
10357               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10358               ;;
10359             *)
10360               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'
10361               ;;
10362             esac
10363           fi
10364         else
10365           # FIXME: insert proper C++ library support
10366           ld_shlibs_CXX=no
10367         fi
10368         ;;
10369     esac
10370     ;;
10371   irix5* | irix6*)
10372     case $cc_basename in
10373       CC)
10374         # SGI C++
10375         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 ${objdir}/so_locations -o $lib'
10376
10377         # Archives containing C++ object files must be created using
10378         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10379         # necessary to make sure instantiated templates are included
10380         # in the archive.
10381         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10382         ;;
10383       *)
10384         if test "$GXX" = yes; then
10385           if test "$with_gnu_ld" = no; then
10386             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}${objdir}/so_locations -o $lib'
10387           else
10388             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'
10389           fi
10390         fi
10391         link_all_deplibs_CXX=yes
10392         ;;
10393     esac
10394     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10395     hardcode_libdir_separator_CXX=:
10396     ;;
10397   linux*)
10398     case $cc_basename in
10399       KCC)
10400         # Kuck and Associates, Inc. (KAI) C++ Compiler
10401
10402         # KCC will only create a shared library if the output file
10403         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10404         # to its proper name (with version) after linking.
10405         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'
10406         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'
10407         # Commands to make compiler produce verbose output that lists
10408         # what "hidden" libraries, object files and flags are used when
10409         # linking a shared library.
10410         #
10411         # There doesn't appear to be a way to prevent this compiler from
10412         # explicitly linking system object files so we need to strip them
10413         # from the output so that they don't get included in the library
10414         # dependencies.
10415         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'
10416
10417         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10418         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10419
10420         # Archives containing C++ object files must be created using
10421         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10422         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10423         ;;
10424       icpc)
10425         # Intel C++
10426         with_gnu_ld=yes
10427         archive_cmds_need_lc_CXX=no
10428         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10429         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'
10430         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10431         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10432         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10433         ;;
10434       cxx)
10435         # Compaq C++
10436         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10437         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'
10438
10439         runpath_var=LD_RUN_PATH
10440         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10441         hardcode_libdir_separator_CXX=:
10442
10443         # Commands to make compiler produce verbose output that lists
10444         # what "hidden" libraries, object files and flags are used when
10445         # linking a shared library.
10446         #
10447         # There doesn't appear to be a way to prevent this compiler from
10448         # explicitly linking system object files so we need to strip them
10449         # from the output so that they don't get included in the library
10450         # dependencies.
10451         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'
10452         ;;
10453     esac
10454     ;;
10455   lynxos*)
10456     # FIXME: insert proper C++ library support
10457     ld_shlibs_CXX=no
10458     ;;
10459   m88k*)
10460     # FIXME: insert proper C++ library support
10461     ld_shlibs_CXX=no
10462     ;;
10463   mvs*)
10464     case $cc_basename in
10465       cxx)
10466         # FIXME: insert proper C++ library support
10467         ld_shlibs_CXX=no
10468         ;;
10469       *)
10470         # FIXME: insert proper C++ library support
10471         ld_shlibs_CXX=no
10472         ;;
10473     esac
10474     ;;
10475   netbsd*)
10476     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10477       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10478       wlarc=
10479       hardcode_libdir_flag_spec_CXX='-R$libdir'
10480       hardcode_direct_CXX=yes
10481       hardcode_shlibpath_var_CXX=no
10482     fi
10483     # Workaround some broken pre-1.5 toolchains
10484     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10485     ;;
10486   osf3*)
10487     case $cc_basename in
10488       KCC)
10489         # Kuck and Associates, Inc. (KAI) C++ Compiler
10490
10491         # KCC will only create a shared library if the output file
10492         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10493         # to its proper name (with version) after linking.
10494         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'
10495
10496         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10497         hardcode_libdir_separator_CXX=:
10498
10499         # Archives containing C++ object files must be created using
10500         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10501         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10502
10503         ;;
10504       RCC)
10505         # Rational C++ 2.4.1
10506         # FIXME: insert proper C++ library support
10507         ld_shlibs_CXX=no
10508         ;;
10509       cxx)
10510         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10511         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 ${objdir}/so_locations -o $lib'
10512
10513         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10514         hardcode_libdir_separator_CXX=:
10515
10516         # Commands to make compiler produce verbose output that lists
10517         # what "hidden" libraries, object files and flags are used when
10518         # linking a shared library.
10519         #
10520         # There doesn't appear to be a way to prevent this compiler from
10521         # explicitly linking system object files so we need to strip them
10522         # from the output so that they don't get included in the library
10523         # dependencies.
10524         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'
10525         ;;
10526       *)
10527         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10528           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10529           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}${objdir}/so_locations -o $lib'
10530
10531           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10532           hardcode_libdir_separator_CXX=:
10533
10534           # Commands to make compiler produce verbose output that lists
10535           # what "hidden" libraries, object files and flags are used when
10536           # linking a shared library.
10537           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10538
10539         else
10540           # FIXME: insert proper C++ library support
10541           ld_shlibs_CXX=no
10542         fi
10543         ;;
10544     esac
10545     ;;
10546   osf4* | osf5*)
10547     case $cc_basename in
10548       KCC)
10549         # Kuck and Associates, Inc. (KAI) C++ Compiler
10550
10551         # KCC will only create a shared library if the output file
10552         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10553         # to its proper name (with version) after linking.
10554         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'
10555
10556         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10557         hardcode_libdir_separator_CXX=:
10558
10559         # Archives containing C++ object files must be created using
10560         # the KAI C++ compiler.
10561         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10562         ;;
10563       RCC)
10564         # Rational C++ 2.4.1
10565         # FIXME: insert proper C++ library support
10566         ld_shlibs_CXX=no
10567         ;;
10568       cxx)
10569         allow_undefined_flag_CXX=' -expect_unresolved \*'
10570         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 ${objdir}/so_locations -o $lib'
10571         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10572           echo "-hidden">> $lib.exp~
10573           $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 $objdir/so_locations -o $lib~
10574           $rm $lib.exp'
10575
10576         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10577         hardcode_libdir_separator_CXX=:
10578
10579         # Commands to make compiler produce verbose output that lists
10580         # what "hidden" libraries, object files and flags are used when
10581         # linking a shared library.
10582         #
10583         # There doesn't appear to be a way to prevent this compiler from
10584         # explicitly linking system object files so we need to strip them
10585         # from the output so that they don't get included in the library
10586         # dependencies.
10587         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'
10588         ;;
10589       *)
10590         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10591           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10592          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}${objdir}/so_locations -o $lib'
10593
10594           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10595           hardcode_libdir_separator_CXX=:
10596
10597           # Commands to make compiler produce verbose output that lists
10598           # what "hidden" libraries, object files and flags are used when
10599           # linking a shared library.
10600           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10601
10602         else
10603           # FIXME: insert proper C++ library support
10604           ld_shlibs_CXX=no
10605         fi
10606         ;;
10607     esac
10608     ;;
10609   psos*)
10610     # FIXME: insert proper C++ library support
10611     ld_shlibs_CXX=no
10612     ;;
10613   sco*)
10614     archive_cmds_need_lc_CXX=no
10615     case $cc_basename in
10616       CC)
10617         # FIXME: insert proper C++ library support
10618         ld_shlibs_CXX=no
10619         ;;
10620       *)
10621         # FIXME: insert proper C++ library support
10622         ld_shlibs_CXX=no
10623         ;;
10624     esac
10625     ;;
10626   sunos4*)
10627     case $cc_basename in
10628       CC)
10629         # Sun C++ 4.x
10630         # FIXME: insert proper C++ library support
10631         ld_shlibs_CXX=no
10632         ;;
10633       lcc)
10634         # Lucid
10635         # FIXME: insert proper C++ library support
10636         ld_shlibs_CXX=no
10637         ;;
10638       *)
10639         # FIXME: insert proper C++ library support
10640         ld_shlibs_CXX=no
10641         ;;
10642     esac
10643     ;;
10644   solaris*)
10645     case $cc_basename in
10646       CC)
10647         # Sun C++ 4.2, 5.x and Centerline C++
10648         no_undefined_flag_CXX=' -zdefs'
10649         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10650         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10651         $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10652
10653         hardcode_libdir_flag_spec_CXX='-R$libdir'
10654         hardcode_shlibpath_var_CXX=no
10655         case $host_os in
10656           solaris2.0-5 | solaris2.0-5.*) ;;
10657           *)
10658             # The C++ compiler is used as linker so we must use $wl
10659             # flag to pass the commands to the underlying system
10660             # linker.
10661             # Supported since Solaris 2.6 (maybe 2.5.1?)
10662             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10663             ;;
10664         esac
10665         link_all_deplibs_CXX=yes
10666
10667         # Commands to make compiler produce verbose output that lists
10668         # what "hidden" libraries, object files and flags are used when
10669         # linking a shared library.
10670         #
10671         # There doesn't appear to be a way to prevent this compiler from
10672         # explicitly linking system object files so we need to strip them
10673         # from the output so that they don't get included in the library
10674         # dependencies.
10675         output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10676
10677         # Archives containing C++ object files must be created using
10678         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10679         # necessary to make sure instantiated templates are included
10680         # in the archive.
10681         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10682         ;;
10683       gcx)
10684         # Green Hills C++ Compiler
10685         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10686
10687         # The C++ compiler must be used to create the archive.
10688         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10689         ;;
10690       *)
10691         # GNU C++ compiler with Solaris linker
10692         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10693           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10694           if $CC --version | grep -v '^2\.7' > /dev/null; then
10695             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10696             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10697                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10698
10699             # Commands to make compiler produce verbose output that lists
10700             # what "hidden" libraries, object files and flags are used when
10701             # linking a shared library.
10702             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10703           else
10704             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10705             # platform.
10706             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10707             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10708                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10709
10710             # Commands to make compiler produce verbose output that lists
10711             # what "hidden" libraries, object files and flags are used when
10712             # linking a shared library.
10713             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10714           fi
10715
10716           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10717         fi
10718         ;;
10719     esac
10720     ;;
10721   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10722     archive_cmds_need_lc_CXX=no
10723     ;;
10724   tandem*)
10725     case $cc_basename in
10726       NCC)
10727         # NonStop-UX NCC 3.20
10728         # FIXME: insert proper C++ library support
10729         ld_shlibs_CXX=no
10730         ;;
10731       *)
10732         # FIXME: insert proper C++ library support
10733         ld_shlibs_CXX=no
10734         ;;
10735     esac
10736     ;;
10737   vxworks*)
10738     # FIXME: insert proper C++ library support
10739     ld_shlibs_CXX=no
10740     ;;
10741   *)
10742     # FIXME: insert proper C++ library support
10743     ld_shlibs_CXX=no
10744     ;;
10745 esac
10746 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10747 $as_echo "$ld_shlibs_CXX" >&6; }
10748 test "$ld_shlibs_CXX" = no && can_build_shared=no
10749
10750 GCC_CXX="$GXX"
10751 LD_CXX="$LD"
10752
10753 ## CAVEAT EMPTOR:
10754 ## There is no encapsulation within the following macros, do not change
10755 ## the running order or otherwise move them around unless you know exactly
10756 ## what you are doing...
10757
10758 cat > conftest.$ac_ext <<EOF
10759 class Foo
10760 {
10761 public:
10762   Foo (void) { a = 0; }
10763 private:
10764   int a;
10765 };
10766 EOF
10767
10768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10769   (eval $ac_compile) 2>&5
10770   ac_status=$?
10771   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10772   (exit $ac_status); }; then
10773   # Parse the compiler output and extract the necessary
10774   # objects, libraries and library flags.
10775
10776   # Sentinel used to keep track of whether or not we are before
10777   # the conftest object file.
10778   pre_test_object_deps_done=no
10779
10780   # The `*' in the case matches for architectures that use `case' in
10781   # $output_verbose_cmd can trigger glob expansion during the loop
10782   # eval without this substitution.
10783   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10784
10785   for p in `eval $output_verbose_link_cmd`; do
10786     case $p in
10787
10788     -L* | -R* | -l*)
10789        # Some compilers place space between "-{L,R}" and the path.
10790        # Remove the space.
10791        if test $p = "-L" \
10792           || test $p = "-R"; then
10793          prev=$p
10794          continue
10795        else
10796          prev=
10797        fi
10798
10799        if test "$pre_test_object_deps_done" = no; then
10800          case $p in
10801          -L* | -R*)
10802            # Internal compiler library paths should come after those
10803            # provided the user.  The postdeps already come after the
10804            # user supplied libs so there is no need to process them.
10805            if test -z "$compiler_lib_search_path_CXX"; then
10806              compiler_lib_search_path_CXX="${prev}${p}"
10807            else
10808              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10809            fi
10810            ;;
10811          # The "-l" case would never come before the object being
10812          # linked, so don't bother handling this case.
10813          esac
10814        else
10815          if test -z "$postdeps_CXX"; then
10816            postdeps_CXX="${prev}${p}"
10817          else
10818            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10819          fi
10820        fi
10821        ;;
10822
10823     *.$objext)
10824        # This assumes that the test object file only shows up
10825        # once in the compiler output.
10826        if test "$p" = "conftest.$objext"; then
10827          pre_test_object_deps_done=yes
10828          continue
10829        fi
10830
10831        if test "$pre_test_object_deps_done" = no; then
10832          if test -z "$predep_objects_CXX"; then
10833            predep_objects_CXX="$p"
10834          else
10835            predep_objects_CXX="$predep_objects_CXX $p"
10836          fi
10837        else
10838          if test -z "$postdep_objects_CXX"; then
10839            postdep_objects_CXX="$p"
10840          else
10841            postdep_objects_CXX="$postdep_objects_CXX $p"
10842          fi
10843        fi
10844        ;;
10845
10846     *) ;; # Ignore the rest.
10847
10848     esac
10849   done
10850
10851   # Clean up.
10852   rm -f a.out a.exe
10853 else
10854   echo "libtool.m4: error: problem compiling CXX test program"
10855 fi
10856
10857 $rm -f confest.$objext
10858
10859 case " $postdeps_CXX " in
10860 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10861 esac
10862
10863 lt_prog_compiler_wl_CXX=
10864 lt_prog_compiler_pic_CXX=
10865 lt_prog_compiler_static_CXX=
10866
10867 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10868 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10869
10870   # C++ specific cases for pic, static, wl, etc.
10871   if test "$GXX" = yes; then
10872     lt_prog_compiler_wl_CXX='-Wl,'
10873     lt_prog_compiler_static_CXX='-static'
10874
10875     case $host_os in
10876     aix*)
10877       # All AIX code is PIC.
10878       if test "$host_cpu" = ia64; then
10879         # AIX 5 now supports IA64 processor
10880         lt_prog_compiler_static_CXX='-Bstatic'
10881       fi
10882       ;;
10883     amigaos*)
10884       # FIXME: we need at least 68020 code to build shared libraries, but
10885       # adding the `-m68020' flag to GCC prevents building anything better,
10886       # like `-m68040'.
10887       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10888       ;;
10889     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10890       # PIC is the default for these OSes.
10891       ;;
10892     mingw* | os2* | pw32*)
10893       # This hack is so that the source file can tell whether it is being
10894       # built for inclusion in a dll (and should export symbols for example).
10895       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10896       ;;
10897     darwin* | rhapsody*)
10898       # PIC is the default on this platform
10899       # Common symbols not allowed in MH_DYLIB files
10900       lt_prog_compiler_pic_CXX='-fno-common'
10901       ;;
10902     *djgpp*)
10903       # DJGPP does not support shared libraries at all
10904       lt_prog_compiler_pic_CXX=
10905       ;;
10906     sysv4*MP*)
10907       if test -d /usr/nec; then
10908         lt_prog_compiler_pic_CXX=-Kconform_pic
10909       fi
10910       ;;
10911     hpux*)
10912       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10913       # not for PA HP-UX.
10914       case "$host_cpu" in
10915       hppa*64*|ia64*)
10916         ;;
10917       *)
10918         lt_prog_compiler_pic_CXX='-fPIC'
10919         ;;
10920       esac
10921       ;;
10922     *)
10923       lt_prog_compiler_pic_CXX='-fPIC'
10924       ;;
10925     esac
10926   else
10927     case $host_os in
10928       aix4* | aix5*)
10929         # All AIX code is PIC.
10930         if test "$host_cpu" = ia64; then
10931           # AIX 5 now supports IA64 processor
10932           lt_prog_compiler_static_CXX='-Bstatic'
10933         else
10934           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10935         fi
10936         ;;
10937       chorus*)
10938         case $cc_basename in
10939         cxch68)
10940           # Green Hills C++ Compiler
10941           # _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"
10942           ;;
10943         esac
10944         ;;
10945       dgux*)
10946         case $cc_basename in
10947           ec++)
10948             lt_prog_compiler_pic_CXX='-KPIC'
10949             ;;
10950           ghcx)
10951             # Green Hills C++ Compiler
10952             lt_prog_compiler_pic_CXX='-pic'
10953             ;;
10954           *)
10955             ;;
10956         esac
10957         ;;
10958       freebsd* | kfreebsd*-gnu)
10959         # FreeBSD uses GNU C++
10960         ;;
10961       hpux9* | hpux10* | hpux11*)
10962         case $cc_basename in
10963           CC)
10964             lt_prog_compiler_wl_CXX='-Wl,'
10965             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10966             if test "$host_cpu" != ia64; then
10967               lt_prog_compiler_pic_CXX='+Z'
10968             fi
10969             ;;
10970           aCC)
10971             lt_prog_compiler_wl_CXX='-Wl,'
10972             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10973             case "$host_cpu" in
10974             hppa*64*|ia64*)
10975               # +Z the default
10976               ;;
10977             *)
10978               lt_prog_compiler_pic_CXX='+Z'
10979               ;;
10980             esac
10981             ;;
10982           *)
10983             ;;
10984         esac
10985         ;;
10986       irix5* | irix6* | nonstopux*)
10987         case $cc_basename in
10988           CC)
10989             lt_prog_compiler_wl_CXX='-Wl,'
10990             lt_prog_compiler_static_CXX='-non_shared'
10991             # CC pic flag -KPIC is the default.
10992             ;;
10993           *)
10994             ;;
10995         esac
10996         ;;
10997       linux*)
10998         case $cc_basename in
10999           KCC)
11000             # KAI C++ Compiler
11001             lt_prog_compiler_wl_CXX='--backend -Wl,'
11002             lt_prog_compiler_pic_CXX='-fPIC'
11003             ;;
11004           icpc)
11005             # Intel C++
11006             lt_prog_compiler_wl_CXX='-Wl,'
11007             lt_prog_compiler_pic_CXX='-KPIC'
11008             lt_prog_compiler_static_CXX='-static'
11009             ;;
11010           cxx)
11011             # Compaq C++
11012             # Make sure the PIC flag is empty.  It appears that all Alpha
11013             # Linux and Compaq Tru64 Unix objects are PIC.
11014             lt_prog_compiler_pic_CXX=
11015             lt_prog_compiler_static_CXX='-non_shared'
11016             ;;
11017           *)
11018             ;;
11019         esac
11020         ;;
11021       lynxos*)
11022         ;;
11023       m88k*)
11024         ;;
11025       mvs*)
11026         case $cc_basename in
11027           cxx)
11028             lt_prog_compiler_pic_CXX='-W c,exportall'
11029             ;;
11030           *)
11031             ;;
11032         esac
11033         ;;
11034       netbsd*)
11035         ;;
11036       osf3* | osf4* | osf5*)
11037         case $cc_basename in
11038           KCC)
11039             lt_prog_compiler_wl_CXX='--backend -Wl,'
11040             ;;
11041           RCC)
11042             # Rational C++ 2.4.1
11043             lt_prog_compiler_pic_CXX='-pic'
11044             ;;
11045           cxx)
11046             # Digital/Compaq C++
11047             lt_prog_compiler_wl_CXX='-Wl,'
11048             # Make sure the PIC flag is empty.  It appears that all Alpha
11049             # Linux and Compaq Tru64 Unix objects are PIC.
11050             lt_prog_compiler_pic_CXX=
11051             lt_prog_compiler_static_CXX='-non_shared'
11052             ;;
11053           *)
11054             ;;
11055         esac
11056         ;;
11057       psos*)
11058         ;;
11059       sco*)
11060         case $cc_basename in
11061           CC)
11062             lt_prog_compiler_pic_CXX='-fPIC'
11063             ;;
11064           *)
11065             ;;
11066         esac
11067         ;;
11068       solaris*)
11069         case $cc_basename in
11070           CC)
11071             # Sun C++ 4.2, 5.x and Centerline C++
11072             lt_prog_compiler_pic_CXX='-KPIC'
11073             lt_prog_compiler_static_CXX='-Bstatic'
11074             lt_prog_compiler_wl_CXX='-Qoption ld '
11075             ;;
11076           gcx)
11077             # Green Hills C++ Compiler
11078             lt_prog_compiler_pic_CXX='-PIC'
11079             ;;
11080           *)
11081             ;;
11082         esac
11083         ;;
11084       sunos4*)
11085         case $cc_basename in
11086           CC)
11087             # Sun C++ 4.x
11088             lt_prog_compiler_pic_CXX='-pic'
11089             lt_prog_compiler_static_CXX='-Bstatic'
11090             ;;
11091           lcc)
11092             # Lucid
11093             lt_prog_compiler_pic_CXX='-pic'
11094             ;;
11095           *)
11096             ;;
11097         esac
11098         ;;
11099       tandem*)
11100         case $cc_basename in
11101           NCC)
11102             # NonStop-UX NCC 3.20
11103             lt_prog_compiler_pic_CXX='-KPIC'
11104             ;;
11105           *)
11106             ;;
11107         esac
11108         ;;
11109       unixware*)
11110         ;;
11111       vxworks*)
11112         ;;
11113       *)
11114         lt_prog_compiler_can_build_shared_CXX=no
11115         ;;
11116     esac
11117   fi
11118
11119 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11120 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
11121
11122 #
11123 # Check to make sure the PIC flag actually works.
11124 #
11125 if test -n "$lt_prog_compiler_pic_CXX"; then
11126
11127 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11128 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
11129 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11130   $as_echo_n "(cached) " >&6
11131 else
11132   lt_prog_compiler_pic_works_CXX=no
11133   ac_outfile=conftest.$ac_objext
11134    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11135    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11136    # Insert the option either (1) after the last *FLAGS variable, or
11137    # (2) before a word containing "conftest.", or (3) at the end.
11138    # Note that $ac_compile itself does not contain backslashes and begins
11139    # with a dollar sign (not a hyphen), so the echo should work correctly.
11140    # The option is referenced via a variable to avoid confusing sed.
11141    lt_compile=`echo "$ac_compile" | $SED \
11142    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11143    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11144    -e 's:$: $lt_compiler_flag:'`
11145    (eval echo "\"\$as_me:11145: $lt_compile\"" >&5)
11146    (eval "$lt_compile" 2>conftest.err)
11147    ac_status=$?
11148    cat conftest.err >&5
11149    echo "$as_me:11149: \$? = $ac_status" >&5
11150    if (exit $ac_status) && test -s "$ac_outfile"; then
11151      # The compiler can only warn and ignore the option if not recognized
11152      # So say no if there are warnings
11153      if test ! -s conftest.err; then
11154        lt_prog_compiler_pic_works_CXX=yes
11155      fi
11156    fi
11157    $rm conftest*
11158
11159 fi
11160 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11161 $as_echo "$lt_prog_compiler_pic_works_CXX" >&6; }
11162
11163 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11164     case $lt_prog_compiler_pic_CXX in
11165      "" | " "*) ;;
11166      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11167      esac
11168 else
11169     lt_prog_compiler_pic_CXX=
11170      lt_prog_compiler_can_build_shared_CXX=no
11171 fi
11172
11173 fi
11174 case "$host_os" in
11175   # For platforms which do not support PIC, -DPIC is meaningless:
11176   *djgpp*)
11177     lt_prog_compiler_pic_CXX=
11178     ;;
11179   *)
11180     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11181     ;;
11182 esac
11183
11184 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11185 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11186 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11187   $as_echo_n "(cached) " >&6
11188 else
11189   lt_cv_prog_compiler_c_o_CXX=no
11190    $rm -r conftest 2>/dev/null
11191    mkdir conftest
11192    cd conftest
11193    mkdir out
11194    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11195
11196    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
11197    # that will create temporary files in the current directory regardless of
11198    # the output directory.  Thus, making CWD read-only will cause this test
11199    # to fail, enabling locking or at least warning the user not to do parallel
11200    # builds.
11201    chmod -w .
11202
11203    lt_compiler_flag="-o out/conftest2.$ac_objext"
11204    # Insert the option either (1) after the last *FLAGS variable, or
11205    # (2) before a word containing "conftest.", or (3) at the end.
11206    # Note that $ac_compile itself does not contain backslashes and begins
11207    # with a dollar sign (not a hyphen), so the echo should work correctly.
11208    lt_compile=`echo "$ac_compile" | $SED \
11209    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11210    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11211    -e 's:$: $lt_compiler_flag:'`
11212    (eval echo "\"\$as_me:11212: $lt_compile\"" >&5)
11213    (eval "$lt_compile" 2>out/conftest.err)
11214    ac_status=$?
11215    cat out/conftest.err >&5
11216    echo "$as_me:11216: \$? = $ac_status" >&5
11217    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11218    then
11219      # The compiler can only warn and ignore the option if not recognized
11220      # So say no if there are warnings
11221      if test ! -s out/conftest.err; then
11222        lt_cv_prog_compiler_c_o_CXX=yes
11223      fi
11224    fi
11225    chmod u+w .
11226    $rm conftest*
11227    # SGI C++ compiler will create directory out/ii_files/ for
11228    # template instantiation
11229    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11230    $rm out/* && rmdir out
11231    cd ..
11232    rmdir conftest
11233    $rm conftest*
11234
11235 fi
11236 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11237 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
11238
11239
11240 hard_links="nottested"
11241 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11242   # do not overwrite the value of need_locks provided by the user
11243   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11244 $as_echo_n "checking if we can lock with hard links... " >&6; }
11245   hard_links=yes
11246   $rm conftest*
11247   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11248   touch conftest.a
11249   ln conftest.a conftest.b 2>&5 || hard_links=no
11250   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11251   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
11252 $as_echo "$hard_links" >&6; }
11253   if test "$hard_links" = no; then
11254     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11255 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11256     need_locks=warn
11257   fi
11258 else
11259   need_locks=no
11260 fi
11261
11262 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11263 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11264
11265   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11266   case $host_os in
11267   aix4* | aix5*)
11268     # If we're using GNU nm, then we don't want the "-C" option.
11269     # -C means demangle to AIX nm, but means don't demangle with GNU nm
11270     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11271       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'
11272     else
11273       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'
11274     fi
11275     ;;
11276   pw32*)
11277     export_symbols_cmds_CXX="$ltdll_cmds"
11278   ;;
11279   cygwin* | mingw*)
11280     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11281   ;;
11282   *)
11283     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11284   ;;
11285   esac
11286
11287 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11288 $as_echo "$ld_shlibs_CXX" >&6; }
11289 test "$ld_shlibs_CXX" = no && can_build_shared=no
11290
11291 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11292 if test "$GCC" = yes; then
11293   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11294 fi
11295
11296 #
11297 # Do we need to explicitly link libc?
11298 #
11299 case "x$archive_cmds_need_lc_CXX" in
11300 x|xyes)
11301   # Assume -lc should be added
11302   archive_cmds_need_lc_CXX=yes
11303
11304   if test "$enable_shared" = yes && test "$GCC" = yes; then
11305     case $archive_cmds_CXX in
11306     *'~'*)
11307       # FIXME: we may have to deal with multi-command sequences.
11308       ;;
11309     '$CC '*)
11310       # Test whether the compiler implicitly links with -lc since on some
11311       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11312       # to ld, don't add -lc before -lgcc.
11313       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11314 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11315       $rm conftest*
11316       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11317
11318       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11319   (eval $ac_compile) 2>&5
11320   ac_status=$?
11321   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11322   (exit $ac_status); } 2>conftest.err; then
11323         soname=conftest
11324         lib=conftest
11325         libobjs=conftest.$ac_objext
11326         deplibs=
11327         wl=$lt_prog_compiler_wl_CXX
11328         compiler_flags=-v
11329         linker_flags=-v
11330         verstring=
11331         output_objdir=.
11332         libname=conftest
11333         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11334         allow_undefined_flag_CXX=
11335         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11336   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11337   ac_status=$?
11338   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11339   (exit $ac_status); }
11340         then
11341           archive_cmds_need_lc_CXX=no
11342         else
11343           archive_cmds_need_lc_CXX=yes
11344         fi
11345         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11346       else
11347         cat conftest.err 1>&5
11348       fi
11349       $rm conftest*
11350       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11351 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
11352       ;;
11353     esac
11354   fi
11355   ;;
11356 esac
11357
11358 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11359 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11360 library_names_spec=
11361 libname_spec='lib$name'
11362 soname_spec=
11363 shrext=".so"
11364 postinstall_cmds=
11365 postuninstall_cmds=
11366 finish_cmds=
11367 finish_eval=
11368 shlibpath_var=
11369 shlibpath_overrides_runpath=unknown
11370 version_type=none
11371 dynamic_linker="$host_os ld.so"
11372 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11373 if test "$GCC" = yes; then
11374   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11375   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11376     # if the path contains ";" then we assume it to be the separator
11377     # otherwise default to the standard path separator (i.e. ":") - it is
11378     # assumed that no part of a normal pathname contains ";" but that should
11379     # okay in the real world where ";" in dirpaths is itself problematic.
11380     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11381   else
11382     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11383   fi
11384 else
11385   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11386 fi
11387 need_lib_prefix=unknown
11388 hardcode_into_libs=no
11389
11390 # when you set need_version to no, make sure it does not cause -set_version
11391 # flags to be left without arguments
11392 need_version=unknown
11393
11394 case $host_os in
11395 aix3*)
11396   version_type=linux
11397   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11398   shlibpath_var=LIBPATH
11399
11400   # AIX 3 has no versioning support, so we append a major version to the name.
11401   soname_spec='${libname}${release}${shared_ext}$major'
11402   ;;
11403
11404 aix4* | aix5*)
11405   version_type=linux
11406   need_lib_prefix=no
11407   need_version=no
11408   hardcode_into_libs=yes
11409   if test "$host_cpu" = ia64; then
11410     # AIX 5 supports IA64
11411     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11412     shlibpath_var=LD_LIBRARY_PATH
11413   else
11414     # With GCC up to 2.95.x, collect2 would create an import file
11415     # for dependence libraries.  The import file would start with
11416     # the line `#! .'.  This would cause the generated library to
11417     # depend on `.', always an invalid library.  This was fixed in
11418     # development snapshots of GCC prior to 3.0.
11419     case $host_os in
11420       aix4 | aix4.[01] | aix4.[01].*)
11421       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11422            echo ' yes '
11423            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11424         :
11425       else
11426         can_build_shared=no
11427       fi
11428       ;;
11429     esac
11430     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11431     # soname into executable. Probably we can add versioning support to
11432     # collect2, so additional links can be useful in future.
11433     if test "$aix_use_runtimelinking" = yes; then
11434       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11435       # instead of lib<name>.a to let people know that these are not
11436       # typical AIX shared libraries.
11437       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11438     else
11439       # We preserve .a as extension for shared libraries through AIX4.2
11440       # and later when we are not doing run time linking.
11441       library_names_spec='${libname}${release}.a $libname.a'
11442       soname_spec='${libname}${release}${shared_ext}$major'
11443     fi
11444     shlibpath_var=LIBPATH
11445   fi
11446   ;;
11447
11448 amigaos*)
11449   library_names_spec='$libname.ixlibrary $libname.a'
11450   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11451   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'
11452   ;;
11453
11454 beos*)
11455   library_names_spec='${libname}${shared_ext}'
11456   dynamic_linker="$host_os ld.so"
11457   shlibpath_var=LIBRARY_PATH
11458   ;;
11459
11460 bsdi4*)
11461   version_type=linux
11462   need_version=no
11463   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11464   soname_spec='${libname}${release}${shared_ext}$major'
11465   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11466   shlibpath_var=LD_LIBRARY_PATH
11467   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11468   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11469   # the default ld.so.conf also contains /usr/contrib/lib and
11470   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11471   # libtool to hard-code these into programs
11472   ;;
11473
11474 cygwin* | mingw* | pw32*)
11475   version_type=windows
11476   shrext=".dll"
11477   need_version=no
11478   need_lib_prefix=no
11479
11480   case $GCC,$host_os in
11481   yes,cygwin* | yes,mingw* | yes,pw32*)
11482     library_names_spec='$libname.dll.a'
11483     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11484     postinstall_cmds='base_file=`basename \${file}`~
11485       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11486       dldir=$destdir/`dirname \$dlpath`~
11487       test -d \$dldir || mkdir -p \$dldir~
11488       $install_prog $dir/$dlname \$dldir/$dlname'
11489     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11490       dlpath=$dir/\$dldll~
11491        $rm \$dlpath'
11492     shlibpath_overrides_runpath=yes
11493
11494     case $host_os in
11495     cygwin*)
11496       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11497       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11498       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11499       ;;
11500     mingw*)
11501       # MinGW DLLs use traditional 'lib' prefix
11502       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11503       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11504       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11505         # It is most probably a Windows format PATH printed by
11506         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11507         # path with ; separators, and with drive letters. We can handle the
11508         # drive letters (cygwin fileutils understands them), so leave them,
11509         # especially as we might pass files found there to a mingw objdump,
11510         # which wouldn't understand a cygwinified path. Ahh.
11511         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11512       else
11513         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11514       fi
11515       ;;
11516     pw32*)
11517       # pw32 DLLs use 'pw' prefix rather than 'lib'
11518       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11519       ;;
11520     esac
11521     ;;
11522
11523   *)
11524     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11525     ;;
11526   esac
11527   dynamic_linker='Win32 ld.exe'
11528   # FIXME: first we should search . and the directory the executable is in
11529   shlibpath_var=PATH
11530   ;;
11531
11532 darwin* | rhapsody*)
11533   dynamic_linker="$host_os dyld"
11534   version_type=darwin
11535   need_lib_prefix=no
11536   need_version=no
11537   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11538   soname_spec='${libname}${release}${major}$shared_ext'
11539   shlibpath_overrides_runpath=yes
11540   shlibpath_var=DYLD_LIBRARY_PATH
11541   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11542   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11543   if test "$GCC" = yes; then
11544     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"`
11545   else
11546     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11547   fi
11548   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11549   ;;
11550
11551 dgux*)
11552   version_type=linux
11553   need_lib_prefix=no
11554   need_version=no
11555   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11556   soname_spec='${libname}${release}${shared_ext}$major'
11557   shlibpath_var=LD_LIBRARY_PATH
11558   ;;
11559
11560 freebsd1*)
11561   dynamic_linker=no
11562   ;;
11563
11564 kfreebsd*-gnu)
11565   version_type=linux
11566   need_lib_prefix=no
11567   need_version=no
11568   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11569   soname_spec='${libname}${release}${shared_ext}$major'
11570   shlibpath_var=LD_LIBRARY_PATH
11571   shlibpath_overrides_runpath=no
11572   hardcode_into_libs=yes
11573   dynamic_linker='GNU ld.so'
11574   ;;
11575
11576 freebsd*)
11577   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11578   version_type=freebsd-$objformat
11579   case $version_type in
11580     freebsd-elf*)
11581       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11582       need_version=no
11583       need_lib_prefix=no
11584       ;;
11585     freebsd-*)
11586       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11587       need_version=yes
11588       ;;
11589   esac
11590   shlibpath_var=LD_LIBRARY_PATH
11591   case $host_os in
11592   freebsd2*)
11593     shlibpath_overrides_runpath=yes
11594     ;;
11595   freebsd3.01* | freebsdelf3.01*)
11596     shlibpath_overrides_runpath=yes
11597     hardcode_into_libs=yes
11598     ;;
11599   *) # from 3.2 on
11600     shlibpath_overrides_runpath=no
11601     hardcode_into_libs=yes
11602     ;;
11603   esac
11604   ;;
11605
11606 gnu*)
11607   version_type=linux
11608   need_lib_prefix=no
11609   need_version=no
11610   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11611   soname_spec='${libname}${release}${shared_ext}$major'
11612   shlibpath_var=LD_LIBRARY_PATH
11613   hardcode_into_libs=yes
11614   ;;
11615
11616 hpux9* | hpux10* | hpux11*)
11617   # Give a soname corresponding to the major version so that dld.sl refuses to
11618   # link against other versions.
11619   version_type=sunos
11620   need_lib_prefix=no
11621   need_version=no
11622   case "$host_cpu" in
11623   ia64*)
11624     shrext='.so'
11625     hardcode_into_libs=yes
11626     dynamic_linker="$host_os dld.so"
11627     shlibpath_var=LD_LIBRARY_PATH
11628     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11629     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11630     soname_spec='${libname}${release}${shared_ext}$major'
11631     if test "X$HPUX_IA64_MODE" = X32; then
11632       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11633     else
11634       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11635     fi
11636     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11637     ;;
11638    hppa*64*)
11639      shrext='.sl'
11640      hardcode_into_libs=yes
11641      dynamic_linker="$host_os dld.sl"
11642      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11643      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11644      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11645      soname_spec='${libname}${release}${shared_ext}$major'
11646      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11647      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11648      ;;
11649    *)
11650     shrext='.sl'
11651     dynamic_linker="$host_os dld.sl"
11652     shlibpath_var=SHLIB_PATH
11653     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11654     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11655     soname_spec='${libname}${release}${shared_ext}$major'
11656     ;;
11657   esac
11658   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11659   postinstall_cmds='chmod 555 $lib'
11660   ;;
11661
11662 irix5* | irix6* | nonstopux*)
11663   case $host_os in
11664     nonstopux*) version_type=nonstopux ;;
11665     *)
11666         if test "$lt_cv_prog_gnu_ld" = yes; then
11667                 version_type=linux
11668         else
11669                 version_type=irix
11670         fi ;;
11671   esac
11672   need_lib_prefix=no
11673   need_version=no
11674   soname_spec='${libname}${release}${shared_ext}$major'
11675   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11676   case $host_os in
11677   irix5* | nonstopux*)
11678     libsuff= shlibsuff=
11679     ;;
11680   *)
11681     case $LD in # libtool.m4 will add one of these switches to LD
11682     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11683       libsuff= shlibsuff= libmagic=32-bit;;
11684     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11685       libsuff=32 shlibsuff=N32 libmagic=N32;;
11686     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11687       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11688     *) libsuff= shlibsuff= libmagic=never-match;;
11689     esac
11690     ;;
11691   esac
11692   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11693   shlibpath_overrides_runpath=no
11694   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11695   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11696   hardcode_into_libs=yes
11697   ;;
11698
11699 # No shared lib support for Linux oldld, aout, or coff.
11700 linux*oldld* | linux*aout* | linux*coff*)
11701   dynamic_linker=no
11702   ;;
11703
11704 # This must be Linux ELF.
11705 linux*)
11706   version_type=linux
11707   need_lib_prefix=no
11708   need_version=no
11709   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11710   soname_spec='${libname}${release}${shared_ext}$major'
11711   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11712   shlibpath_var=LD_LIBRARY_PATH
11713   shlibpath_overrides_runpath=no
11714   # This implies no fast_install, which is unacceptable.
11715   # Some rework will be needed to allow for fast_install
11716   # before this can be enabled.
11717   hardcode_into_libs=yes
11718
11719   # We used to test for /lib/ld.so.1 and disable shared libraries on
11720   # powerpc, because MkLinux only supported shared libraries with the
11721   # GNU dynamic linker.  Since this was broken with cross compilers,
11722   # most powerpc-linux boxes support dynamic linking these days and
11723   # people can always --disable-shared, the test was removed, and we
11724   # assume the GNU/Linux dynamic linker is in use.
11725   dynamic_linker='GNU/Linux ld.so'
11726   ;;
11727
11728 netbsd*)
11729   version_type=sunos
11730   need_lib_prefix=no
11731   need_version=no
11732   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11733     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11734     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11735     dynamic_linker='NetBSD (a.out) ld.so'
11736   else
11737     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11738     soname_spec='${libname}${release}${shared_ext}$major'
11739     dynamic_linker='NetBSD ld.elf_so'
11740   fi
11741   shlibpath_var=LD_LIBRARY_PATH
11742   shlibpath_overrides_runpath=yes
11743   hardcode_into_libs=yes
11744   ;;
11745
11746 newsos6)
11747   version_type=linux
11748   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11749   shlibpath_var=LD_LIBRARY_PATH
11750   shlibpath_overrides_runpath=yes
11751   ;;
11752
11753 nto-qnx*)
11754   version_type=linux
11755   need_lib_prefix=no
11756   need_version=no
11757   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11758   soname_spec='${libname}${release}${shared_ext}$major'
11759   shlibpath_var=LD_LIBRARY_PATH
11760   shlibpath_overrides_runpath=yes
11761   ;;
11762
11763 openbsd*)
11764   version_type=sunos
11765   need_lib_prefix=no
11766   need_version=no
11767   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11768   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11769   shlibpath_var=LD_LIBRARY_PATH
11770   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11771     case $host_os in
11772       openbsd2.[89] | openbsd2.[89].*)
11773         shlibpath_overrides_runpath=no
11774         ;;
11775       *)
11776         shlibpath_overrides_runpath=yes
11777         ;;
11778       esac
11779   else
11780     shlibpath_overrides_runpath=yes
11781   fi
11782   ;;
11783
11784 os2*)
11785   libname_spec='$name'
11786   shrext=".dll"
11787   need_lib_prefix=no
11788   library_names_spec='$libname${shared_ext} $libname.a'
11789   dynamic_linker='OS/2 ld.exe'
11790   shlibpath_var=LIBPATH
11791   ;;
11792
11793 osf3* | osf4* | osf5*)
11794   version_type=osf
11795   need_lib_prefix=no
11796   need_version=no
11797   soname_spec='${libname}${release}${shared_ext}$major'
11798   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11799   shlibpath_var=LD_LIBRARY_PATH
11800   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11801   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11802   ;;
11803
11804 sco3.2v5*)
11805   version_type=osf
11806   soname_spec='${libname}${release}${shared_ext}$major'
11807   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11808   shlibpath_var=LD_LIBRARY_PATH
11809   ;;
11810
11811 solaris*)
11812   version_type=linux
11813   need_lib_prefix=no
11814   need_version=no
11815   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11816   soname_spec='${libname}${release}${shared_ext}$major'
11817   shlibpath_var=LD_LIBRARY_PATH
11818   shlibpath_overrides_runpath=yes
11819   hardcode_into_libs=yes
11820   # ldd complains unless libraries are executable
11821   postinstall_cmds='chmod +x $lib'
11822   ;;
11823
11824 sunos4*)
11825   version_type=sunos
11826   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11827   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11828   shlibpath_var=LD_LIBRARY_PATH
11829   shlibpath_overrides_runpath=yes
11830   if test "$with_gnu_ld" = yes; then
11831     need_lib_prefix=no
11832   fi
11833   need_version=yes
11834   ;;
11835
11836 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11837   version_type=linux
11838   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11839   soname_spec='${libname}${release}${shared_ext}$major'
11840   shlibpath_var=LD_LIBRARY_PATH
11841   case $host_vendor in
11842     sni)
11843       shlibpath_overrides_runpath=no
11844       need_lib_prefix=no
11845       export_dynamic_flag_spec='${wl}-Blargedynsym'
11846       runpath_var=LD_RUN_PATH
11847       ;;
11848     siemens)
11849       need_lib_prefix=no
11850       ;;
11851     motorola)
11852       need_lib_prefix=no
11853       need_version=no
11854       shlibpath_overrides_runpath=no
11855       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11856       ;;
11857   esac
11858   ;;
11859
11860 sysv4*MP*)
11861   if test -d /usr/nec ;then
11862     version_type=linux
11863     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11864     soname_spec='$libname${shared_ext}.$major'
11865     shlibpath_var=LD_LIBRARY_PATH
11866   fi
11867   ;;
11868
11869 uts4*)
11870   version_type=linux
11871   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11872   soname_spec='${libname}${release}${shared_ext}$major'
11873   shlibpath_var=LD_LIBRARY_PATH
11874   ;;
11875
11876 *)
11877   dynamic_linker=no
11878   ;;
11879 esac
11880 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11881 $as_echo "$dynamic_linker" >&6; }
11882 test "$dynamic_linker" = no && can_build_shared=no
11883
11884 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11885 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11886 hardcode_action_CXX=
11887 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11888    test -n "$runpath_var CXX" || \
11889    test "X$hardcode_automatic_CXX"="Xyes" ; then
11890
11891   # We can hardcode non-existant directories.
11892   if test "$hardcode_direct_CXX" != no &&
11893      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11894      # have to relink, otherwise we might link with an installed library
11895      # when we should be linking with a yet-to-be-installed one
11896      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11897      test "$hardcode_minus_L_CXX" != no; then
11898     # Linking always hardcodes the temporary library directory.
11899     hardcode_action_CXX=relink
11900   else
11901     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11902     hardcode_action_CXX=immediate
11903   fi
11904 else
11905   # We cannot hardcode anything, or else we can only hardcode existing
11906   # directories.
11907   hardcode_action_CXX=unsupported
11908 fi
11909 { $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11910 $as_echo "$hardcode_action_CXX" >&6; }
11911
11912 if test "$hardcode_action_CXX" = relink; then
11913   # Fast installation is not supported
11914   enable_fast_install=no
11915 elif test "$shlibpath_overrides_runpath" = yes ||
11916      test "$enable_shared" = no; then
11917   # Fast installation is not necessary
11918   enable_fast_install=needless
11919 fi
11920
11921 striplib=
11922 old_striplib=
11923 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11924 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11925 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11926   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11927   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11928   { $as_echo "$as_me:$LINENO: result: yes" >&5
11929 $as_echo "yes" >&6; }
11930 else
11931 # FIXME - insert some real tests, host_os isn't really good enough
11932   case $host_os in
11933    darwin*)
11934        if test -n "$STRIP" ; then
11935          striplib="$STRIP -x"
11936          { $as_echo "$as_me:$LINENO: result: yes" >&5
11937 $as_echo "yes" >&6; }
11938        else
11939   { $as_echo "$as_me:$LINENO: result: no" >&5
11940 $as_echo "no" >&6; }
11941 fi
11942        ;;
11943    *)
11944   { $as_echo "$as_me:$LINENO: result: no" >&5
11945 $as_echo "no" >&6; }
11946     ;;
11947   esac
11948 fi
11949
11950 if test "x$enable_dlopen" != xyes; then
11951   enable_dlopen=unknown
11952   enable_dlopen_self=unknown
11953   enable_dlopen_self_static=unknown
11954 else
11955   lt_cv_dlopen=no
11956   lt_cv_dlopen_libs=
11957
11958   case $host_os in
11959   beos*)
11960     lt_cv_dlopen="load_add_on"
11961     lt_cv_dlopen_libs=
11962     lt_cv_dlopen_self=yes
11963     ;;
11964
11965   mingw* | pw32*)
11966     lt_cv_dlopen="LoadLibrary"
11967     lt_cv_dlopen_libs=
11968    ;;
11969
11970   cygwin*)
11971     lt_cv_dlopen="dlopen"
11972     lt_cv_dlopen_libs=
11973    ;;
11974
11975   darwin*)
11976   # if libdl is installed we need to link against it
11977     { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11978 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11979 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11980   $as_echo_n "(cached) " >&6
11981 else
11982   ac_check_lib_save_LIBS=$LIBS
11983 LIBS="-ldl  $LIBS"
11984 cat >conftest.$ac_ext <<_ACEOF
11985 /* confdefs.h.  */
11986 _ACEOF
11987 cat confdefs.h >>conftest.$ac_ext
11988 cat >>conftest.$ac_ext <<_ACEOF
11989 /* end confdefs.h.  */
11990
11991 /* Override any GCC internal prototype to avoid an error.
11992    Use char because int might match the return type of a GCC
11993    builtin and then its argument prototype would still apply.  */
11994 #ifdef __cplusplus
11995 extern "C"
11996 #endif
11997 char dlopen ();
11998 int
11999 main ()
12000 {
12001 return dlopen ();
12002   ;
12003   return 0;
12004 }
12005 _ACEOF
12006 rm -f conftest.$ac_objext conftest$ac_exeext
12007 if { (ac_try="$ac_link"
12008 case "(($ac_try" in
12009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12010   *) ac_try_echo=$ac_try;;
12011 esac
12012 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12013 $as_echo "$ac_try_echo") >&5
12014   (eval "$ac_link") 2>conftest.er1
12015   ac_status=$?
12016   grep -v '^ *+' conftest.er1 >conftest.err
12017   rm -f conftest.er1
12018   cat conftest.err >&5
12019   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12020   (exit $ac_status); } && {
12021          test -z "$ac_cxx_werror_flag" ||
12022          test ! -s conftest.err
12023        } && test -s conftest$ac_exeext && {
12024          test "$cross_compiling" = yes ||
12025          $as_test_x conftest$ac_exeext
12026        }; then
12027   ac_cv_lib_dl_dlopen=yes
12028 else
12029   $as_echo "$as_me: failed program was:" >&5
12030 sed 's/^/| /' conftest.$ac_ext >&5
12031
12032         ac_cv_lib_dl_dlopen=no
12033 fi
12034
12035 rm -rf conftest.dSYM
12036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12037       conftest$ac_exeext conftest.$ac_ext
12038 LIBS=$ac_check_lib_save_LIBS
12039 fi
12040 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12041 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12042 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
12043   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12044 else
12045
12046     lt_cv_dlopen="dyld"
12047     lt_cv_dlopen_libs=
12048     lt_cv_dlopen_self=yes
12049
12050 fi
12051
12052    ;;
12053
12054   *)
12055     { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
12056 $as_echo_n "checking for shl_load... " >&6; }
12057 if test "${ac_cv_func_shl_load+set}" = set; then
12058   $as_echo_n "(cached) " >&6
12059 else
12060   cat >conftest.$ac_ext <<_ACEOF
12061 /* confdefs.h.  */
12062 _ACEOF
12063 cat confdefs.h >>conftest.$ac_ext
12064 cat >>conftest.$ac_ext <<_ACEOF
12065 /* end confdefs.h.  */
12066 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12067    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12068 #define shl_load innocuous_shl_load
12069
12070 /* System header to define __stub macros and hopefully few prototypes,
12071     which can conflict with char shl_load (); below.
12072     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12073     <limits.h> exists even on freestanding compilers.  */
12074
12075 #ifdef __STDC__
12076 # include <limits.h>
12077 #else
12078 # include <assert.h>
12079 #endif
12080
12081 #undef shl_load
12082
12083 /* Override any GCC internal prototype to avoid an error.
12084    Use char because int might match the return type of a GCC
12085    builtin and then its argument prototype would still apply.  */
12086 #ifdef __cplusplus
12087 extern "C"
12088 #endif
12089 char shl_load ();
12090 /* The GNU C library defines this for functions which it implements
12091     to always fail with ENOSYS.  Some functions are actually named
12092     something starting with __ and the normal name is an alias.  */
12093 #if defined __stub_shl_load || defined __stub___shl_load
12094 choke me
12095 #endif
12096
12097 int
12098 main ()
12099 {
12100 return shl_load ();
12101   ;
12102   return 0;
12103 }
12104 _ACEOF
12105 rm -f conftest.$ac_objext conftest$ac_exeext
12106 if { (ac_try="$ac_link"
12107 case "(($ac_try" in
12108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12109   *) ac_try_echo=$ac_try;;
12110 esac
12111 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12112 $as_echo "$ac_try_echo") >&5
12113   (eval "$ac_link") 2>conftest.er1
12114   ac_status=$?
12115   grep -v '^ *+' conftest.er1 >conftest.err
12116   rm -f conftest.er1
12117   cat conftest.err >&5
12118   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12119   (exit $ac_status); } && {
12120          test -z "$ac_cxx_werror_flag" ||
12121          test ! -s conftest.err
12122        } && test -s conftest$ac_exeext && {
12123          test "$cross_compiling" = yes ||
12124          $as_test_x conftest$ac_exeext
12125        }; then
12126   ac_cv_func_shl_load=yes
12127 else
12128   $as_echo "$as_me: failed program was:" >&5
12129 sed 's/^/| /' conftest.$ac_ext >&5
12130
12131         ac_cv_func_shl_load=no
12132 fi
12133
12134 rm -rf conftest.dSYM
12135 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12136       conftest$ac_exeext conftest.$ac_ext
12137 fi
12138 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12139 $as_echo "$ac_cv_func_shl_load" >&6; }
12140 if test "x$ac_cv_func_shl_load" = x""yes; then
12141   lt_cv_dlopen="shl_load"
12142 else
12143   { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12144 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12145 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12146   $as_echo_n "(cached) " >&6
12147 else
12148   ac_check_lib_save_LIBS=$LIBS
12149 LIBS="-ldld  $LIBS"
12150 cat >conftest.$ac_ext <<_ACEOF
12151 /* confdefs.h.  */
12152 _ACEOF
12153 cat confdefs.h >>conftest.$ac_ext
12154 cat >>conftest.$ac_ext <<_ACEOF
12155 /* end confdefs.h.  */
12156
12157 /* Override any GCC internal prototype to avoid an error.
12158    Use char because int might match the return type of a GCC
12159    builtin and then its argument prototype would still apply.  */
12160 #ifdef __cplusplus
12161 extern "C"
12162 #endif
12163 char shl_load ();
12164 int
12165 main ()
12166 {
12167 return shl_load ();
12168   ;
12169   return 0;
12170 }
12171 _ACEOF
12172 rm -f conftest.$ac_objext conftest$ac_exeext
12173 if { (ac_try="$ac_link"
12174 case "(($ac_try" in
12175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12176   *) ac_try_echo=$ac_try;;
12177 esac
12178 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12179 $as_echo "$ac_try_echo") >&5
12180   (eval "$ac_link") 2>conftest.er1
12181   ac_status=$?
12182   grep -v '^ *+' conftest.er1 >conftest.err
12183   rm -f conftest.er1
12184   cat conftest.err >&5
12185   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12186   (exit $ac_status); } && {
12187          test -z "$ac_cxx_werror_flag" ||
12188          test ! -s conftest.err
12189        } && test -s conftest$ac_exeext && {
12190          test "$cross_compiling" = yes ||
12191          $as_test_x conftest$ac_exeext
12192        }; then
12193   ac_cv_lib_dld_shl_load=yes
12194 else
12195   $as_echo "$as_me: failed program was:" >&5
12196 sed 's/^/| /' conftest.$ac_ext >&5
12197
12198         ac_cv_lib_dld_shl_load=no
12199 fi
12200
12201 rm -rf conftest.dSYM
12202 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12203       conftest$ac_exeext conftest.$ac_ext
12204 LIBS=$ac_check_lib_save_LIBS
12205 fi
12206 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12207 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12208 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
12209   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12210 else
12211   { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
12212 $as_echo_n "checking for dlopen... " >&6; }
12213 if test "${ac_cv_func_dlopen+set}" = set; then
12214   $as_echo_n "(cached) " >&6
12215 else
12216   cat >conftest.$ac_ext <<_ACEOF
12217 /* confdefs.h.  */
12218 _ACEOF
12219 cat confdefs.h >>conftest.$ac_ext
12220 cat >>conftest.$ac_ext <<_ACEOF
12221 /* end confdefs.h.  */
12222 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12223    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12224 #define dlopen innocuous_dlopen
12225
12226 /* System header to define __stub macros and hopefully few prototypes,
12227     which can conflict with char dlopen (); below.
12228     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12229     <limits.h> exists even on freestanding compilers.  */
12230
12231 #ifdef __STDC__
12232 # include <limits.h>
12233 #else
12234 # include <assert.h>
12235 #endif
12236
12237 #undef dlopen
12238
12239 /* Override any GCC internal prototype to avoid an error.
12240    Use char because int might match the return type of a GCC
12241    builtin and then its argument prototype would still apply.  */
12242 #ifdef __cplusplus
12243 extern "C"
12244 #endif
12245 char dlopen ();
12246 /* The GNU C library defines this for functions which it implements
12247     to always fail with ENOSYS.  Some functions are actually named
12248     something starting with __ and the normal name is an alias.  */
12249 #if defined __stub_dlopen || defined __stub___dlopen
12250 choke me
12251 #endif
12252
12253 int
12254 main ()
12255 {
12256 return dlopen ();
12257   ;
12258   return 0;
12259 }
12260 _ACEOF
12261 rm -f conftest.$ac_objext conftest$ac_exeext
12262 if { (ac_try="$ac_link"
12263 case "(($ac_try" in
12264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12265   *) ac_try_echo=$ac_try;;
12266 esac
12267 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12268 $as_echo "$ac_try_echo") >&5
12269   (eval "$ac_link") 2>conftest.er1
12270   ac_status=$?
12271   grep -v '^ *+' conftest.er1 >conftest.err
12272   rm -f conftest.er1
12273   cat conftest.err >&5
12274   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12275   (exit $ac_status); } && {
12276          test -z "$ac_cxx_werror_flag" ||
12277          test ! -s conftest.err
12278        } && test -s conftest$ac_exeext && {
12279          test "$cross_compiling" = yes ||
12280          $as_test_x conftest$ac_exeext
12281        }; then
12282   ac_cv_func_dlopen=yes
12283 else
12284   $as_echo "$as_me: failed program was:" >&5
12285 sed 's/^/| /' conftest.$ac_ext >&5
12286
12287         ac_cv_func_dlopen=no
12288 fi
12289
12290 rm -rf conftest.dSYM
12291 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12292       conftest$ac_exeext conftest.$ac_ext
12293 fi
12294 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12295 $as_echo "$ac_cv_func_dlopen" >&6; }
12296 if test "x$ac_cv_func_dlopen" = x""yes; then
12297   lt_cv_dlopen="dlopen"
12298 else
12299   { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12300 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12301 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12302   $as_echo_n "(cached) " >&6
12303 else
12304   ac_check_lib_save_LIBS=$LIBS
12305 LIBS="-ldl  $LIBS"
12306 cat >conftest.$ac_ext <<_ACEOF
12307 /* confdefs.h.  */
12308 _ACEOF
12309 cat confdefs.h >>conftest.$ac_ext
12310 cat >>conftest.$ac_ext <<_ACEOF
12311 /* end confdefs.h.  */
12312
12313 /* Override any GCC internal prototype to avoid an error.
12314    Use char because int might match the return type of a GCC
12315    builtin and then its argument prototype would still apply.  */
12316 #ifdef __cplusplus
12317 extern "C"
12318 #endif
12319 char dlopen ();
12320 int
12321 main ()
12322 {
12323 return dlopen ();
12324   ;
12325   return 0;
12326 }
12327 _ACEOF
12328 rm -f conftest.$ac_objext conftest$ac_exeext
12329 if { (ac_try="$ac_link"
12330 case "(($ac_try" in
12331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12332   *) ac_try_echo=$ac_try;;
12333 esac
12334 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12335 $as_echo "$ac_try_echo") >&5
12336   (eval "$ac_link") 2>conftest.er1
12337   ac_status=$?
12338   grep -v '^ *+' conftest.er1 >conftest.err
12339   rm -f conftest.er1
12340   cat conftest.err >&5
12341   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12342   (exit $ac_status); } && {
12343          test -z "$ac_cxx_werror_flag" ||
12344          test ! -s conftest.err
12345        } && test -s conftest$ac_exeext && {
12346          test "$cross_compiling" = yes ||
12347          $as_test_x conftest$ac_exeext
12348        }; then
12349   ac_cv_lib_dl_dlopen=yes
12350 else
12351   $as_echo "$as_me: failed program was:" >&5
12352 sed 's/^/| /' conftest.$ac_ext >&5
12353
12354         ac_cv_lib_dl_dlopen=no
12355 fi
12356
12357 rm -rf conftest.dSYM
12358 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12359       conftest$ac_exeext conftest.$ac_ext
12360 LIBS=$ac_check_lib_save_LIBS
12361 fi
12362 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12363 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12364 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
12365   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12366 else
12367   { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12368 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12369 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12370   $as_echo_n "(cached) " >&6
12371 else
12372   ac_check_lib_save_LIBS=$LIBS
12373 LIBS="-lsvld  $LIBS"
12374 cat >conftest.$ac_ext <<_ACEOF
12375 /* confdefs.h.  */
12376 _ACEOF
12377 cat confdefs.h >>conftest.$ac_ext
12378 cat >>conftest.$ac_ext <<_ACEOF
12379 /* end confdefs.h.  */
12380
12381 /* Override any GCC internal prototype to avoid an error.
12382    Use char because int might match the return type of a GCC
12383    builtin and then its argument prototype would still apply.  */
12384 #ifdef __cplusplus
12385 extern "C"
12386 #endif
12387 char dlopen ();
12388 int
12389 main ()
12390 {
12391 return dlopen ();
12392   ;
12393   return 0;
12394 }
12395 _ACEOF
12396 rm -f conftest.$ac_objext conftest$ac_exeext
12397 if { (ac_try="$ac_link"
12398 case "(($ac_try" in
12399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12400   *) ac_try_echo=$ac_try;;
12401 esac
12402 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12403 $as_echo "$ac_try_echo") >&5
12404   (eval "$ac_link") 2>conftest.er1
12405   ac_status=$?
12406   grep -v '^ *+' conftest.er1 >conftest.err
12407   rm -f conftest.er1
12408   cat conftest.err >&5
12409   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410   (exit $ac_status); } && {
12411          test -z "$ac_cxx_werror_flag" ||
12412          test ! -s conftest.err
12413        } && test -s conftest$ac_exeext && {
12414          test "$cross_compiling" = yes ||
12415          $as_test_x conftest$ac_exeext
12416        }; then
12417   ac_cv_lib_svld_dlopen=yes
12418 else
12419   $as_echo "$as_me: failed program was:" >&5
12420 sed 's/^/| /' conftest.$ac_ext >&5
12421
12422         ac_cv_lib_svld_dlopen=no
12423 fi
12424
12425 rm -rf conftest.dSYM
12426 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12427       conftest$ac_exeext conftest.$ac_ext
12428 LIBS=$ac_check_lib_save_LIBS
12429 fi
12430 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12431 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12432 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
12433   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12434 else
12435   { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12436 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12437 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12438   $as_echo_n "(cached) " >&6
12439 else
12440   ac_check_lib_save_LIBS=$LIBS
12441 LIBS="-ldld  $LIBS"
12442 cat >conftest.$ac_ext <<_ACEOF
12443 /* confdefs.h.  */
12444 _ACEOF
12445 cat confdefs.h >>conftest.$ac_ext
12446 cat >>conftest.$ac_ext <<_ACEOF
12447 /* end confdefs.h.  */
12448
12449 /* Override any GCC internal prototype to avoid an error.
12450    Use char because int might match the return type of a GCC
12451    builtin and then its argument prototype would still apply.  */
12452 #ifdef __cplusplus
12453 extern "C"
12454 #endif
12455 char dld_link ();
12456 int
12457 main ()
12458 {
12459 return dld_link ();
12460   ;
12461   return 0;
12462 }
12463 _ACEOF
12464 rm -f conftest.$ac_objext conftest$ac_exeext
12465 if { (ac_try="$ac_link"
12466 case "(($ac_try" in
12467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12468   *) ac_try_echo=$ac_try;;
12469 esac
12470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12471 $as_echo "$ac_try_echo") >&5
12472   (eval "$ac_link") 2>conftest.er1
12473   ac_status=$?
12474   grep -v '^ *+' conftest.er1 >conftest.err
12475   rm -f conftest.er1
12476   cat conftest.err >&5
12477   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12478   (exit $ac_status); } && {
12479          test -z "$ac_cxx_werror_flag" ||
12480          test ! -s conftest.err
12481        } && test -s conftest$ac_exeext && {
12482          test "$cross_compiling" = yes ||
12483          $as_test_x conftest$ac_exeext
12484        }; then
12485   ac_cv_lib_dld_dld_link=yes
12486 else
12487   $as_echo "$as_me: failed program was:" >&5
12488 sed 's/^/| /' conftest.$ac_ext >&5
12489
12490         ac_cv_lib_dld_dld_link=no
12491 fi
12492
12493 rm -rf conftest.dSYM
12494 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12495       conftest$ac_exeext conftest.$ac_ext
12496 LIBS=$ac_check_lib_save_LIBS
12497 fi
12498 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12499 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12500 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
12501   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12502 fi
12503
12504
12505 fi
12506
12507
12508 fi
12509
12510
12511 fi
12512
12513
12514 fi
12515
12516
12517 fi
12518
12519     ;;
12520   esac
12521
12522   if test "x$lt_cv_dlopen" != xno; then
12523     enable_dlopen=yes
12524   else
12525     enable_dlopen=no
12526   fi
12527
12528   case $lt_cv_dlopen in
12529   dlopen)
12530     save_CPPFLAGS="$CPPFLAGS"
12531     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12532
12533     save_LDFLAGS="$LDFLAGS"
12534     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12535
12536     save_LIBS="$LIBS"
12537     LIBS="$lt_cv_dlopen_libs $LIBS"
12538
12539     { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12540 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12541 if test "${lt_cv_dlopen_self+set}" = set; then
12542   $as_echo_n "(cached) " >&6
12543 else
12544           if test "$cross_compiling" = yes; then :
12545   lt_cv_dlopen_self=cross
12546 else
12547   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12548   lt_status=$lt_dlunknown
12549   cat > conftest.$ac_ext <<EOF
12550 #line 12550 "configure"
12551 #include "confdefs.h"
12552
12553 #if HAVE_DLFCN_H
12554 #include <dlfcn.h>
12555 #endif
12556
12557 #include <stdio.h>
12558
12559 #ifdef RTLD_GLOBAL
12560 #  define LT_DLGLOBAL           RTLD_GLOBAL
12561 #else
12562 #  ifdef DL_GLOBAL
12563 #    define LT_DLGLOBAL         DL_GLOBAL
12564 #  else
12565 #    define LT_DLGLOBAL         0
12566 #  endif
12567 #endif
12568
12569 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12570    find out it does not work in some platform. */
12571 #ifndef LT_DLLAZY_OR_NOW
12572 #  ifdef RTLD_LAZY
12573 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12574 #  else
12575 #    ifdef DL_LAZY
12576 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12577 #    else
12578 #      ifdef RTLD_NOW
12579 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12580 #      else
12581 #        ifdef DL_NOW
12582 #          define LT_DLLAZY_OR_NOW      DL_NOW
12583 #        else
12584 #          define LT_DLLAZY_OR_NOW      0
12585 #        endif
12586 #      endif
12587 #    endif
12588 #  endif
12589 #endif
12590
12591 #ifdef __cplusplus
12592 extern "C" void exit (int);
12593 #endif
12594
12595 void fnord() { int i=42;}
12596 int main ()
12597 {
12598   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12599   int status = $lt_dlunknown;
12600
12601   if (self)
12602     {
12603       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12604       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12605       /* dlclose (self); */
12606     }
12607
12608     exit (status);
12609 }
12610 EOF
12611   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12612   (eval $ac_link) 2>&5
12613   ac_status=$?
12614   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12615   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12616     (./conftest; exit; ) 2>/dev/null
12617     lt_status=$?
12618     case x$lt_status in
12619       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12620       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12621       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12622     esac
12623   else :
12624     # compilation failed
12625     lt_cv_dlopen_self=no
12626   fi
12627 fi
12628 rm -fr conftest*
12629
12630
12631 fi
12632 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12633 $as_echo "$lt_cv_dlopen_self" >&6; }
12634
12635     if test "x$lt_cv_dlopen_self" = xyes; then
12636       LDFLAGS="$LDFLAGS $link_static_flag"
12637       { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12638 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12639 if test "${lt_cv_dlopen_self_static+set}" = set; then
12640   $as_echo_n "(cached) " >&6
12641 else
12642           if test "$cross_compiling" = yes; then :
12643   lt_cv_dlopen_self_static=cross
12644 else
12645   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12646   lt_status=$lt_dlunknown
12647   cat > conftest.$ac_ext <<EOF
12648 #line 12648 "configure"
12649 #include "confdefs.h"
12650
12651 #if HAVE_DLFCN_H
12652 #include <dlfcn.h>
12653 #endif
12654
12655 #include <stdio.h>
12656
12657 #ifdef RTLD_GLOBAL
12658 #  define LT_DLGLOBAL           RTLD_GLOBAL
12659 #else
12660 #  ifdef DL_GLOBAL
12661 #    define LT_DLGLOBAL         DL_GLOBAL
12662 #  else
12663 #    define LT_DLGLOBAL         0
12664 #  endif
12665 #endif
12666
12667 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12668    find out it does not work in some platform. */
12669 #ifndef LT_DLLAZY_OR_NOW
12670 #  ifdef RTLD_LAZY
12671 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12672 #  else
12673 #    ifdef DL_LAZY
12674 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12675 #    else
12676 #      ifdef RTLD_NOW
12677 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12678 #      else
12679 #        ifdef DL_NOW
12680 #          define LT_DLLAZY_OR_NOW      DL_NOW
12681 #        else
12682 #          define LT_DLLAZY_OR_NOW      0
12683 #        endif
12684 #      endif
12685 #    endif
12686 #  endif
12687 #endif
12688
12689 #ifdef __cplusplus
12690 extern "C" void exit (int);
12691 #endif
12692
12693 void fnord() { int i=42;}
12694 int main ()
12695 {
12696   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12697   int status = $lt_dlunknown;
12698
12699   if (self)
12700     {
12701       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12702       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12703       /* dlclose (self); */
12704     }
12705
12706     exit (status);
12707 }
12708 EOF
12709   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12710   (eval $ac_link) 2>&5
12711   ac_status=$?
12712   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12713   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12714     (./conftest; exit; ) 2>/dev/null
12715     lt_status=$?
12716     case x$lt_status in
12717       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12718       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12719       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12720     esac
12721   else :
12722     # compilation failed
12723     lt_cv_dlopen_self_static=no
12724   fi
12725 fi
12726 rm -fr conftest*
12727
12728
12729 fi
12730 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12731 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12732     fi
12733
12734     CPPFLAGS="$save_CPPFLAGS"
12735     LDFLAGS="$save_LDFLAGS"
12736     LIBS="$save_LIBS"
12737     ;;
12738   esac
12739
12740   case $lt_cv_dlopen_self in
12741   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12742   *) enable_dlopen_self=unknown ;;
12743   esac
12744
12745   case $lt_cv_dlopen_self_static in
12746   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12747   *) enable_dlopen_self_static=unknown ;;
12748   esac
12749 fi
12750
12751
12752 # The else clause should only fire when bootstrapping the
12753 # libtool distribution, otherwise you forgot to ship ltmain.sh
12754 # with your package, and you will get complaints that there are
12755 # no rules to generate ltmain.sh.
12756 if test -f "$ltmain"; then
12757   # See if we are running on zsh, and set the options which allow our commands through
12758   # without removal of \ escapes.
12759   if test -n "${ZSH_VERSION+set}" ; then
12760     setopt NO_GLOB_SUBST
12761   fi
12762   # Now quote all the things that may contain metacharacters while being
12763   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12764   # variables and quote the copies for generation of the libtool script.
12765   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12766     SED SHELL STRIP \
12767     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12768     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12769     deplibs_check_method reload_flag reload_cmds need_locks \
12770     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12771     lt_cv_sys_global_symbol_to_c_name_address \
12772     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12773     old_postinstall_cmds old_postuninstall_cmds \
12774     compiler_CXX \
12775     CC_CXX \
12776     LD_CXX \
12777     lt_prog_compiler_wl_CXX \
12778     lt_prog_compiler_pic_CXX \
12779     lt_prog_compiler_static_CXX \
12780     lt_prog_compiler_no_builtin_flag_CXX \
12781     export_dynamic_flag_spec_CXX \
12782     thread_safe_flag_spec_CXX \
12783     whole_archive_flag_spec_CXX \
12784     enable_shared_with_static_runtimes_CXX \
12785     old_archive_cmds_CXX \
12786     old_archive_from_new_cmds_CXX \
12787     predep_objects_CXX \
12788     postdep_objects_CXX \
12789     predeps_CXX \
12790     postdeps_CXX \
12791     compiler_lib_search_path_CXX \
12792     archive_cmds_CXX \
12793     archive_expsym_cmds_CXX \
12794     postinstall_cmds_CXX \
12795     postuninstall_cmds_CXX \
12796     old_archive_from_expsyms_cmds_CXX \
12797     allow_undefined_flag_CXX \
12798     no_undefined_flag_CXX \
12799     export_symbols_cmds_CXX \
12800     hardcode_libdir_flag_spec_CXX \
12801     hardcode_libdir_flag_spec_ld_CXX \
12802     hardcode_libdir_separator_CXX \
12803     hardcode_automatic_CXX \
12804     module_cmds_CXX \
12805     module_expsym_cmds_CXX \
12806     lt_cv_prog_compiler_c_o_CXX \
12807     exclude_expsyms_CXX \
12808     include_expsyms_CXX; do
12809
12810     case $var in
12811     old_archive_cmds_CXX | \
12812     old_archive_from_new_cmds_CXX | \
12813     archive_cmds_CXX | \
12814     archive_expsym_cmds_CXX | \
12815     module_cmds_CXX | \
12816     module_expsym_cmds_CXX | \
12817     old_archive_from_expsyms_cmds_CXX | \
12818     export_symbols_cmds_CXX | \
12819     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12820     postinstall_cmds | postuninstall_cmds | \
12821     old_postinstall_cmds | old_postuninstall_cmds | \
12822     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12823       # Double-quote double-evaled strings.
12824       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12825       ;;
12826     *)
12827       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12828       ;;
12829     esac
12830   done
12831
12832   case $lt_echo in
12833   *'\$0 --fallback-echo"')
12834     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12835     ;;
12836   esac
12837
12838 cfgfile="$ofile"
12839
12840   cat <<__EOF__ >> "$cfgfile"
12841 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12842
12843 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12844
12845 # Shell to use when invoking shell scripts.
12846 SHELL=$lt_SHELL
12847
12848 # Whether or not to build shared libraries.
12849 build_libtool_libs=$enable_shared
12850
12851 # Whether or not to build static libraries.
12852 build_old_libs=$enable_static
12853
12854 # Whether or not to add -lc for building shared libraries.
12855 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12856
12857 # Whether or not to disallow shared libs when runtime libs are static
12858 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12859
12860 # Whether or not to optimize for fast installation.
12861 fast_install=$enable_fast_install
12862
12863 # The host system.
12864 host_alias=$host_alias
12865 host=$host
12866
12867 # An echo program that does not interpret backslashes.
12868 echo=$lt_echo
12869
12870 # The archiver.
12871 AR=$lt_AR
12872 AR_FLAGS=$lt_AR_FLAGS
12873
12874 # A C compiler.
12875 LTCC=$lt_LTCC
12876
12877 # A language-specific compiler.
12878 CC=$lt_compiler_CXX
12879
12880 # Is the compiler the GNU C compiler?
12881 with_gcc=$GCC_CXX
12882
12883 # An ERE matcher.
12884 EGREP=$lt_EGREP
12885
12886 # The linker used to build libraries.
12887 LD=$lt_LD_CXX
12888
12889 # Whether we need hard or soft links.
12890 LN_S=$lt_LN_S
12891
12892 # A BSD-compatible nm program.
12893 NM=$lt_NM
12894
12895 # A symbol stripping program
12896 STRIP=$lt_STRIP
12897
12898 # Used to examine libraries when file_magic_cmd begins "file"
12899 MAGIC_CMD=$MAGIC_CMD
12900
12901 # Used on cygwin: DLL creation program.
12902 DLLTOOL="$DLLTOOL"
12903
12904 # Used on cygwin: object dumper.
12905 OBJDUMP="$OBJDUMP"
12906
12907 # Used on cygwin: assembler.
12908 AS="$AS"
12909
12910 # The name of the directory that contains temporary libtool files.
12911 objdir=$objdir
12912
12913 # How to create reloadable object files.
12914 reload_flag=$lt_reload_flag
12915 reload_cmds=$lt_reload_cmds
12916
12917 # How to pass a linker flag through the compiler.
12918 wl=$lt_lt_prog_compiler_wl_CXX
12919
12920 # Object file suffix (normally "o").
12921 objext="$ac_objext"
12922
12923 # Old archive suffix (normally "a").
12924 libext="$libext"
12925
12926 # Shared library suffix (normally ".so").
12927 shrext='$shrext'
12928
12929 # Executable file suffix (normally "").
12930 exeext="$exeext"
12931
12932 # Additional compiler flags for building library objects.
12933 pic_flag=$lt_lt_prog_compiler_pic_CXX
12934 pic_mode=$pic_mode
12935
12936 # What is the maximum length of a command?
12937 max_cmd_len=$lt_cv_sys_max_cmd_len
12938
12939 # Does compiler simultaneously support -c and -o options?
12940 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12941
12942 # Must we lock files when doing compilation ?
12943 need_locks=$lt_need_locks
12944
12945 # Do we need the lib prefix for modules?
12946 need_lib_prefix=$need_lib_prefix
12947
12948 # Do we need a version for libraries?
12949 need_version=$need_version
12950
12951 # Whether dlopen is supported.
12952 dlopen_support=$enable_dlopen
12953
12954 # Whether dlopen of programs is supported.
12955 dlopen_self=$enable_dlopen_self
12956
12957 # Whether dlopen of statically linked programs is supported.
12958 dlopen_self_static=$enable_dlopen_self_static
12959
12960 # Compiler flag to prevent dynamic linking.
12961 link_static_flag=$lt_lt_prog_compiler_static_CXX
12962
12963 # Compiler flag to turn off builtin functions.
12964 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12965
12966 # Compiler flag to allow reflexive dlopens.
12967 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12968
12969 # Compiler flag to generate shared objects directly from archives.
12970 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12971
12972 # Compiler flag to generate thread-safe objects.
12973 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12974
12975 # Library versioning type.
12976 version_type=$version_type
12977
12978 # Format of library name prefix.
12979 libname_spec=$lt_libname_spec
12980
12981 # List of archive names.  First name is the real one, the rest are links.
12982 # The last name is the one that the linker finds with -lNAME.
12983 library_names_spec=$lt_library_names_spec
12984
12985 # The coded name of the library, if different from the real name.
12986 soname_spec=$lt_soname_spec
12987
12988 # Commands used to build and install an old-style archive.
12989 RANLIB=$lt_RANLIB
12990 old_archive_cmds=$lt_old_archive_cmds_CXX
12991 old_postinstall_cmds=$lt_old_postinstall_cmds
12992 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12993
12994 # Create an old-style archive from a shared archive.
12995 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12996
12997 # Create a temporary old-style archive to link instead of a shared archive.
12998 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12999
13000 # Commands used to build and install a shared archive.
13001 archive_cmds=$lt_archive_cmds_CXX
13002 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13003 postinstall_cmds=$lt_postinstall_cmds
13004 postuninstall_cmds=$lt_postuninstall_cmds
13005
13006 # Commands used to build a loadable module (assumed same as above if empty)
13007 module_cmds=$lt_module_cmds_CXX
13008 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13009
13010 # Commands to strip libraries.
13011 old_striplib=$lt_old_striplib
13012 striplib=$lt_striplib
13013
13014 # Dependencies to place before the objects being linked to create a
13015 # shared library.
13016 predep_objects=$lt_predep_objects_CXX
13017
13018 # Dependencies to place after the objects being linked to create a
13019 # shared library.
13020 postdep_objects=$lt_postdep_objects_CXX
13021
13022 # Dependencies to place before the objects being linked to create a
13023 # shared library.
13024 predeps=$lt_predeps_CXX
13025
13026 # Dependencies to place after the objects being linked to create a
13027 # shared library.
13028 postdeps=$lt_postdeps_CXX
13029
13030 # The library search path used internally by the compiler when linking
13031 # a shared library.
13032 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13033
13034 # Method to check whether dependent libraries are shared objects.
13035 deplibs_check_method=$lt_deplibs_check_method
13036
13037 # Command to use when deplibs_check_method == file_magic.
13038 file_magic_cmd=$lt_file_magic_cmd
13039
13040 # Flag that allows shared libraries with undefined symbols to be built.
13041 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13042
13043 # Flag that forces no undefined symbols.
13044 no_undefined_flag=$lt_no_undefined_flag_CXX
13045
13046 # Commands used to finish a libtool library installation in a directory.
13047 finish_cmds=$lt_finish_cmds
13048
13049 # Same as above, but a single script fragment to be evaled but not shown.
13050 finish_eval=$lt_finish_eval
13051
13052 # Take the output of nm and produce a listing of raw symbols and C names.
13053 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13054
13055 # Transform the output of nm in a proper C declaration
13056 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13057
13058 # Transform the output of nm in a C name address pair
13059 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13060
13061 # This is the shared library runtime path variable.
13062 runpath_var=$runpath_var
13063
13064 # This is the shared library path variable.
13065 shlibpath_var=$shlibpath_var
13066
13067 # Is shlibpath searched before the hard-coded library search path?
13068 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13069
13070 # How to hardcode a shared library path into an executable.
13071 hardcode_action=$hardcode_action_CXX
13072
13073 # Whether we should hardcode library paths into libraries.
13074 hardcode_into_libs=$hardcode_into_libs
13075
13076 # Flag to hardcode \$libdir into a binary during linking.
13077 # This must work even if \$libdir does not exist.
13078 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13079
13080 # If ld is used when linking, flag to hardcode \$libdir into
13081 # a binary during linking. This must work even if \$libdir does
13082 # not exist.
13083 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13084
13085 # Whether we need a single -rpath flag with a separated argument.
13086 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13087
13088 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13089 # resulting binary.
13090 hardcode_direct=$hardcode_direct_CXX
13091
13092 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13093 # resulting binary.
13094 hardcode_minus_L=$hardcode_minus_L_CXX
13095
13096 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13097 # the resulting binary.
13098 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13099
13100 # Set to yes if building a shared library automatically hardcodes DIR into the library
13101 # and all subsequent libraries and executables linked against it.
13102 hardcode_automatic=$hardcode_automatic_CXX
13103
13104 # Variables whose values should be saved in libtool wrapper scripts and
13105 # restored at relink time.
13106 variables_saved_for_relink="$variables_saved_for_relink"
13107
13108 # Whether libtool must link a program against all its dependency libraries.
13109 link_all_deplibs=$link_all_deplibs_CXX
13110
13111 # Compile-time system search path for libraries
13112 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13113
13114 # Run-time system search path for libraries
13115 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13116
13117 # Fix the shell variable \$srcfile for the compiler.
13118 fix_srcfile_path="$fix_srcfile_path_CXX"
13119
13120 # Set to yes if exported symbols are required.
13121 always_export_symbols=$always_export_symbols_CXX
13122
13123 # The commands to list exported symbols.
13124 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13125
13126 # The commands to extract the exported symbol list from a shared archive.
13127 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13128
13129 # Symbols that should not be listed in the preloaded symbols.
13130 exclude_expsyms=$lt_exclude_expsyms_CXX
13131
13132 # Symbols that must always be exported.
13133 include_expsyms=$lt_include_expsyms_CXX
13134
13135 # ### END LIBTOOL TAG CONFIG: $tagname
13136
13137 __EOF__
13138
13139
13140 else
13141   # If there is no Makefile yet, we rely on a make rule to execute
13142   # `config.status --recheck' to rerun these tests and create the
13143   # libtool script then.
13144   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13145   if test -f "$ltmain_in"; then
13146     test -f Makefile && make "$ltmain"
13147   fi
13148 fi
13149
13150
13151 ac_ext=c
13152 ac_cpp='$CPP $CPPFLAGS'
13153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13156
13157 CC=$lt_save_CC
13158 LDCXX=$LD
13159 LD=$lt_save_LD
13160 GCC=$lt_save_GCC
13161 with_gnu_ldcxx=$with_gnu_ld
13162 with_gnu_ld=$lt_save_with_gnu_ld
13163 lt_cv_path_LDCXX=$lt_cv_path_LD
13164 lt_cv_path_LD=$lt_save_path_LD
13165 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13166 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13167
13168         else
13169           tagname=""
13170         fi
13171         ;;
13172
13173       F77)
13174         if test -n "$F77" && test "X$F77" != "Xno"; then
13175
13176 ac_ext=f
13177 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13178 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13179 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13180
13181
13182 archive_cmds_need_lc_F77=no
13183 allow_undefined_flag_F77=
13184 always_export_symbols_F77=no
13185 archive_expsym_cmds_F77=
13186 export_dynamic_flag_spec_F77=
13187 hardcode_direct_F77=no
13188 hardcode_libdir_flag_spec_F77=
13189 hardcode_libdir_flag_spec_ld_F77=
13190 hardcode_libdir_separator_F77=
13191 hardcode_minus_L_F77=no
13192 hardcode_automatic_F77=no
13193 module_cmds_F77=
13194 module_expsym_cmds_F77=
13195 link_all_deplibs_F77=unknown
13196 old_archive_cmds_F77=$old_archive_cmds
13197 no_undefined_flag_F77=
13198 whole_archive_flag_spec_F77=
13199 enable_shared_with_static_runtimes_F77=no
13200
13201 # Source file extension for f77 test sources.
13202 ac_ext=f
13203
13204 # Object file extension for compiled f77 test sources.
13205 objext=o
13206 objext_F77=$objext
13207
13208 # Code to be used in simple compile tests
13209 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13210
13211 # Code to be used in simple link tests
13212 lt_simple_link_test_code="      program t\n      end\n"
13213
13214 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13215
13216 # If no C compiler was specified, use CC.
13217 LTCC=${LTCC-"$CC"}
13218
13219 # Allow CC to be a program name with arguments.
13220 compiler=$CC
13221
13222
13223 # Allow CC to be a program name with arguments.
13224 lt_save_CC="$CC"
13225 CC=${F77-"f77"}
13226 compiler=$CC
13227 compiler_F77=$CC
13228 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13229
13230 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13231 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13232 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
13233 $as_echo "$can_build_shared" >&6; }
13234
13235 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13236 $as_echo_n "checking whether to build shared libraries... " >&6; }
13237 test "$can_build_shared" = "no" && enable_shared=no
13238
13239 # On AIX, shared libraries and static libraries use the same namespace, and
13240 # are all built from PIC.
13241 case "$host_os" in
13242 aix3*)
13243   test "$enable_shared" = yes && enable_static=no
13244   if test -n "$RANLIB"; then
13245     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13246     postinstall_cmds='$RANLIB $lib'
13247   fi
13248   ;;
13249 aix4*)
13250   test "$enable_shared" = yes && enable_static=no
13251   ;;
13252 esac
13253 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
13254 $as_echo "$enable_shared" >&6; }
13255
13256 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13257 $as_echo_n "checking whether to build static libraries... " >&6; }
13258 # Make sure either enable_shared or enable_static is yes.
13259 test "$enable_shared" = yes || enable_static=yes
13260 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
13261 $as_echo "$enable_static" >&6; }
13262
13263 test "$ld_shlibs_F77" = no && can_build_shared=no
13264
13265 GCC_F77="$G77"
13266 LD_F77="$LD"
13267
13268 lt_prog_compiler_wl_F77=
13269 lt_prog_compiler_pic_F77=
13270 lt_prog_compiler_static_F77=
13271
13272 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13273 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13274
13275   if test "$GCC" = yes; then
13276     lt_prog_compiler_wl_F77='-Wl,'
13277     lt_prog_compiler_static_F77='-static'
13278
13279     case $host_os in
13280       aix*)
13281       # All AIX code is PIC.
13282       if test "$host_cpu" = ia64; then
13283         # AIX 5 now supports IA64 processor
13284         lt_prog_compiler_static_F77='-Bstatic'
13285       fi
13286       ;;
13287
13288     amigaos*)
13289       # FIXME: we need at least 68020 code to build shared libraries, but
13290       # adding the `-m68020' flag to GCC prevents building anything better,
13291       # like `-m68040'.
13292       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13293       ;;
13294
13295     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13296       # PIC is the default for these OSes.
13297       ;;
13298
13299     mingw* | pw32* | os2*)
13300       # This hack is so that the source file can tell whether it is being
13301       # built for inclusion in a dll (and should export symbols for example).
13302       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13303       ;;
13304
13305     darwin* | rhapsody*)
13306       # PIC is the default on this platform
13307       # Common symbols not allowed in MH_DYLIB files
13308       lt_prog_compiler_pic_F77='-fno-common'
13309       ;;
13310
13311     msdosdjgpp*)
13312       # Just because we use GCC doesn't mean we suddenly get shared libraries
13313       # on systems that don't support them.
13314       lt_prog_compiler_can_build_shared_F77=no
13315       enable_shared=no
13316       ;;
13317
13318     sysv4*MP*)
13319       if test -d /usr/nec; then
13320         lt_prog_compiler_pic_F77=-Kconform_pic
13321       fi
13322       ;;
13323
13324     hpux*)
13325       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13326       # not for PA HP-UX.
13327       case "$host_cpu" in
13328       hppa*64*|ia64*)
13329         # +Z the default
13330         ;;
13331       *)
13332         lt_prog_compiler_pic_F77='-fPIC'
13333         ;;
13334       esac
13335       ;;
13336
13337     *)
13338       lt_prog_compiler_pic_F77='-fPIC'
13339       ;;
13340     esac
13341   else
13342     # PORTME Check for flag to pass linker flags through the system compiler.
13343     case $host_os in
13344     aix*)
13345       lt_prog_compiler_wl_F77='-Wl,'
13346       if test "$host_cpu" = ia64; then
13347         # AIX 5 now supports IA64 processor
13348         lt_prog_compiler_static_F77='-Bstatic'
13349       else
13350         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13351       fi
13352       ;;
13353
13354     mingw* | pw32* | os2*)
13355       # This hack is so that the source file can tell whether it is being
13356       # built for inclusion in a dll (and should export symbols for example).
13357       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13358       ;;
13359
13360     hpux9* | hpux10* | hpux11*)
13361       lt_prog_compiler_wl_F77='-Wl,'
13362       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13363       # not for PA HP-UX.
13364       case "$host_cpu" in
13365       hppa*64*|ia64*)
13366         # +Z the default
13367         ;;
13368       *)
13369         lt_prog_compiler_pic_F77='+Z'
13370         ;;
13371       esac
13372       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13373       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13374       ;;
13375
13376     irix5* | irix6* | nonstopux*)
13377       lt_prog_compiler_wl_F77='-Wl,'
13378       # PIC (with -KPIC) is the default.
13379       lt_prog_compiler_static_F77='-non_shared'
13380       ;;
13381
13382     newsos6)
13383       lt_prog_compiler_pic_F77='-KPIC'
13384       lt_prog_compiler_static_F77='-Bstatic'
13385       ;;
13386
13387     linux*)
13388       case $CC in
13389       icc* | ecc*)
13390         lt_prog_compiler_wl_F77='-Wl,'
13391         lt_prog_compiler_pic_F77='-KPIC'
13392         lt_prog_compiler_static_F77='-static'
13393         ;;
13394       ccc*)
13395         lt_prog_compiler_wl_F77='-Wl,'
13396         # All Alpha code is PIC.
13397         lt_prog_compiler_static_F77='-non_shared'
13398         ;;
13399       esac
13400       ;;
13401
13402     osf3* | osf4* | osf5*)
13403       lt_prog_compiler_wl_F77='-Wl,'
13404       # All OSF/1 code is PIC.
13405       lt_prog_compiler_static_F77='-non_shared'
13406       ;;
13407
13408     sco3.2v5*)
13409       lt_prog_compiler_pic_F77='-Kpic'
13410       lt_prog_compiler_static_F77='-dn'
13411       ;;
13412
13413     solaris*)
13414       lt_prog_compiler_wl_F77='-Wl,'
13415       lt_prog_compiler_pic_F77='-KPIC'
13416       lt_prog_compiler_static_F77='-Bstatic'
13417       ;;
13418
13419     sunos4*)
13420       lt_prog_compiler_wl_F77='-Qoption ld '
13421       lt_prog_compiler_pic_F77='-PIC'
13422       lt_prog_compiler_static_F77='-Bstatic'
13423       ;;
13424
13425     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13426       lt_prog_compiler_wl_F77='-Wl,'
13427       lt_prog_compiler_pic_F77='-KPIC'
13428       lt_prog_compiler_static_F77='-Bstatic'
13429       ;;
13430
13431     sysv4*MP*)
13432       if test -d /usr/nec ;then
13433         lt_prog_compiler_pic_F77='-Kconform_pic'
13434         lt_prog_compiler_static_F77='-Bstatic'
13435       fi
13436       ;;
13437
13438     uts4*)
13439       lt_prog_compiler_pic_F77='-pic'
13440       lt_prog_compiler_static_F77='-Bstatic'
13441       ;;
13442
13443     *)
13444       lt_prog_compiler_can_build_shared_F77=no
13445       ;;
13446     esac
13447   fi
13448
13449 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13450 $as_echo "$lt_prog_compiler_pic_F77" >&6; }
13451
13452 #
13453 # Check to make sure the PIC flag actually works.
13454 #
13455 if test -n "$lt_prog_compiler_pic_F77"; then
13456
13457 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13458 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
13459 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13460   $as_echo_n "(cached) " >&6
13461 else
13462   lt_prog_compiler_pic_works_F77=no
13463   ac_outfile=conftest.$ac_objext
13464    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13465    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13466    # Insert the option either (1) after the last *FLAGS variable, or
13467    # (2) before a word containing "conftest.", or (3) at the end.
13468    # Note that $ac_compile itself does not contain backslashes and begins
13469    # with a dollar sign (not a hyphen), so the echo should work correctly.
13470    # The option is referenced via a variable to avoid confusing sed.
13471    lt_compile=`echo "$ac_compile" | $SED \
13472    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13473    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13474    -e 's:$: $lt_compiler_flag:'`
13475    (eval echo "\"\$as_me:13475: $lt_compile\"" >&5)
13476    (eval "$lt_compile" 2>conftest.err)
13477    ac_status=$?
13478    cat conftest.err >&5
13479    echo "$as_me:13479: \$? = $ac_status" >&5
13480    if (exit $ac_status) && test -s "$ac_outfile"; then
13481      # The compiler can only warn and ignore the option if not recognized
13482      # So say no if there are warnings
13483      if test ! -s conftest.err; then
13484        lt_prog_compiler_pic_works_F77=yes
13485      fi
13486    fi
13487    $rm conftest*
13488
13489 fi
13490 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13491 $as_echo "$lt_prog_compiler_pic_works_F77" >&6; }
13492
13493 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13494     case $lt_prog_compiler_pic_F77 in
13495      "" | " "*) ;;
13496      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13497      esac
13498 else
13499     lt_prog_compiler_pic_F77=
13500      lt_prog_compiler_can_build_shared_F77=no
13501 fi
13502
13503 fi
13504 case "$host_os" in
13505   # For platforms which do not support PIC, -DPIC is meaningless:
13506   *djgpp*)
13507     lt_prog_compiler_pic_F77=
13508     ;;
13509   *)
13510     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13511     ;;
13512 esac
13513
13514 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13515 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13516 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13517   $as_echo_n "(cached) " >&6
13518 else
13519   lt_cv_prog_compiler_c_o_F77=no
13520    $rm -r conftest 2>/dev/null
13521    mkdir conftest
13522    cd conftest
13523    mkdir out
13524    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13525
13526    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13527    # that will create temporary files in the current directory regardless of
13528    # the output directory.  Thus, making CWD read-only will cause this test
13529    # to fail, enabling locking or at least warning the user not to do parallel
13530    # builds.
13531    chmod -w .
13532
13533    lt_compiler_flag="-o out/conftest2.$ac_objext"
13534    # Insert the option either (1) after the last *FLAGS variable, or
13535    # (2) before a word containing "conftest.", or (3) at the end.
13536    # Note that $ac_compile itself does not contain backslashes and begins
13537    # with a dollar sign (not a hyphen), so the echo should work correctly.
13538    lt_compile=`echo "$ac_compile" | $SED \
13539    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13540    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13541    -e 's:$: $lt_compiler_flag:'`
13542    (eval echo "\"\$as_me:13542: $lt_compile\"" >&5)
13543    (eval "$lt_compile" 2>out/conftest.err)
13544    ac_status=$?
13545    cat out/conftest.err >&5
13546    echo "$as_me:13546: \$? = $ac_status" >&5
13547    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13548    then
13549      # The compiler can only warn and ignore the option if not recognized
13550      # So say no if there are warnings
13551      if test ! -s out/conftest.err; then
13552        lt_cv_prog_compiler_c_o_F77=yes
13553      fi
13554    fi
13555    chmod u+w .
13556    $rm conftest*
13557    # SGI C++ compiler will create directory out/ii_files/ for
13558    # template instantiation
13559    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13560    $rm out/* && rmdir out
13561    cd ..
13562    rmdir conftest
13563    $rm conftest*
13564
13565 fi
13566 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13567 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
13568
13569
13570 hard_links="nottested"
13571 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13572   # do not overwrite the value of need_locks provided by the user
13573   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13574 $as_echo_n "checking if we can lock with hard links... " >&6; }
13575   hard_links=yes
13576   $rm conftest*
13577   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13578   touch conftest.a
13579   ln conftest.a conftest.b 2>&5 || hard_links=no
13580   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13581   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
13582 $as_echo "$hard_links" >&6; }
13583   if test "$hard_links" = no; then
13584     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13585 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13586     need_locks=warn
13587   fi
13588 else
13589   need_locks=no
13590 fi
13591
13592 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13593 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13594
13595   runpath_var=
13596   allow_undefined_flag_F77=
13597   enable_shared_with_static_runtimes_F77=no
13598   archive_cmds_F77=
13599   archive_expsym_cmds_F77=
13600   old_archive_From_new_cmds_F77=
13601   old_archive_from_expsyms_cmds_F77=
13602   export_dynamic_flag_spec_F77=
13603   whole_archive_flag_spec_F77=
13604   thread_safe_flag_spec_F77=
13605   hardcode_libdir_flag_spec_F77=
13606   hardcode_libdir_flag_spec_ld_F77=
13607   hardcode_libdir_separator_F77=
13608   hardcode_direct_F77=no
13609   hardcode_minus_L_F77=no
13610   hardcode_shlibpath_var_F77=unsupported
13611   link_all_deplibs_F77=unknown
13612   hardcode_automatic_F77=no
13613   module_cmds_F77=
13614   module_expsym_cmds_F77=
13615   always_export_symbols_F77=no
13616   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13617   # include_expsyms should be a list of space-separated symbols to be *always*
13618   # included in the symbol list
13619   include_expsyms_F77=
13620   # exclude_expsyms can be an extended regexp of symbols to exclude
13621   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13622   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13623   # as well as any symbol that contains `d'.
13624   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13625   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13626   # platforms (ab)use it in PIC code, but their linkers get confused if
13627   # the symbol is explicitly referenced.  Since portable code cannot
13628   # rely on this symbol name, it's probably fine to never include it in
13629   # preloaded symbol tables.
13630   extract_expsyms_cmds=
13631
13632   case $host_os in
13633   cygwin* | mingw* | pw32*)
13634     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13635     # When not using gcc, we currently assume that we are using
13636     # Microsoft Visual C++.
13637     if test "$GCC" != yes; then
13638       with_gnu_ld=no
13639     fi
13640     ;;
13641   openbsd*)
13642     with_gnu_ld=no
13643     ;;
13644   esac
13645
13646   ld_shlibs_F77=yes
13647   if test "$with_gnu_ld" = yes; then
13648     # If archive_cmds runs LD, not CC, wlarc should be empty
13649     wlarc='${wl}'
13650
13651     # See if GNU ld supports shared libraries.
13652     case $host_os in
13653     aix3* | aix4* | aix5*)
13654       # On AIX/PPC, the GNU linker is very broken
13655       if test "$host_cpu" != ia64; then
13656         ld_shlibs_F77=no
13657         cat <<EOF 1>&2
13658
13659 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13660 *** to be unable to reliably create shared libraries on AIX.
13661 *** Therefore, libtool is disabling shared libraries support.  If you
13662 *** really care for shared libraries, you may want to modify your PATH
13663 *** so that a non-GNU linker is found, and then restart.
13664
13665 EOF
13666       fi
13667       ;;
13668
13669     amigaos*)
13670       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)'
13671       hardcode_libdir_flag_spec_F77='-L$libdir'
13672       hardcode_minus_L_F77=yes
13673
13674       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13675       # that the semantics of dynamic libraries on AmigaOS, at least up
13676       # to version 4, is to share data among multiple programs linked
13677       # with the same dynamic library.  Since this doesn't match the
13678       # behavior of shared libraries on other platforms, we can't use
13679       # them.
13680       ld_shlibs_F77=no
13681       ;;
13682
13683     beos*)
13684       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13685         allow_undefined_flag_F77=unsupported
13686         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13687         # support --undefined.  This deserves some investigation.  FIXME
13688         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13689       else
13690         ld_shlibs_F77=no
13691       fi
13692       ;;
13693
13694     cygwin* | mingw* | pw32*)
13695       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13696       # as there is no search path for DLLs.
13697       hardcode_libdir_flag_spec_F77='-L$libdir'
13698       allow_undefined_flag_F77=unsupported
13699       always_export_symbols_F77=no
13700       enable_shared_with_static_runtimes_F77=yes
13701       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13702
13703       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13704         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13705         # If the export-symbols file already is a .def file (1st line
13706         # is EXPORTS), use it as is; otherwise, prepend...
13707         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13708           cp $export_symbols $output_objdir/$soname.def;
13709         else
13710           echo EXPORTS > $output_objdir/$soname.def;
13711           cat $export_symbols >> $output_objdir/$soname.def;
13712         fi~
13713         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13714       else
13715         ld_shlibs=no
13716       fi
13717       ;;
13718
13719     netbsd*)
13720       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13721         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13722         wlarc=
13723       else
13724         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13725         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13726       fi
13727       ;;
13728
13729     solaris* | sysv5*)
13730       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13731         ld_shlibs_F77=no
13732         cat <<EOF 1>&2
13733
13734 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13735 *** create shared libraries on Solaris systems.  Therefore, libtool
13736 *** is disabling shared libraries support.  We urge you to upgrade GNU
13737 *** binutils to release 2.9.1 or newer.  Another option is to modify
13738 *** your PATH or compiler configuration so that the native linker is
13739 *** used, and then restart.
13740
13741 EOF
13742       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13743         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13744         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13745       else
13746         ld_shlibs_F77=no
13747       fi
13748       ;;
13749
13750     sunos4*)
13751       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13752       wlarc=
13753       hardcode_direct_F77=yes
13754       hardcode_shlibpath_var_F77=no
13755       ;;
13756
13757   linux*)
13758     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
13759         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13760         archive_cmds_F77="$tmp_archive_cmds"
13761       supports_anon_versioning=no
13762       case `$LD -v 2>/dev/null` in
13763         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13764         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13765         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13766         *\ 2.11.*) ;; # other 2.11 versions
13767         *) supports_anon_versioning=yes ;;
13768       esac
13769       if test $supports_anon_versioning = yes; then
13770         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13771 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13772 $echo "local: *; };" >> $output_objdir/$libname.ver~
13773         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13774       else
13775         archive_expsym_cmds_F77="$tmp_archive_cmds"
13776       fi
13777     else
13778       ld_shlibs_F77=no
13779     fi
13780     ;;
13781
13782     *)
13783       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13784         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13785         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13786       else
13787         ld_shlibs_F77=no
13788       fi
13789       ;;
13790     esac
13791
13792     if test "$ld_shlibs_F77" = yes; then
13793       runpath_var=LD_RUN_PATH
13794       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13795       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13796       # ancient GNU ld didn't support --whole-archive et. al.
13797       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13798         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13799       else
13800         whole_archive_flag_spec_F77=
13801       fi
13802     fi
13803   else
13804     # PORTME fill in a description of your system's linker (not GNU ld)
13805     case $host_os in
13806     aix3*)
13807       allow_undefined_flag_F77=unsupported
13808       always_export_symbols_F77=yes
13809       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'
13810       # Note: this linker hardcodes the directories in LIBPATH if there
13811       # are no directories specified by -L.
13812       hardcode_minus_L_F77=yes
13813       if test "$GCC" = yes && test -z "$link_static_flag"; then
13814         # Neither direct hardcoding nor static linking is supported with a
13815         # broken collect2.
13816         hardcode_direct_F77=unsupported
13817       fi
13818       ;;
13819
13820     aix4* | aix5*)
13821       if test "$host_cpu" = ia64; then
13822         # On IA64, the linker does run time linking by default, so we don't
13823         # have to do anything special.
13824         aix_use_runtimelinking=no
13825         exp_sym_flag='-Bexport'
13826         no_entry_flag=""
13827       else
13828         # If we're using GNU nm, then we don't want the "-C" option.
13829         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13830         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13831           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'
13832         else
13833           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'
13834         fi
13835         aix_use_runtimelinking=no
13836
13837         # Test if we are trying to use run time linking or normal
13838         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13839         # need to do runtime linking.
13840         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13841           for ld_flag in $LDFLAGS; do
13842           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13843             aix_use_runtimelinking=yes
13844             break
13845           fi
13846           done
13847         esac
13848
13849         exp_sym_flag='-bexport'
13850         no_entry_flag='-bnoentry'
13851       fi
13852
13853       # When large executables or shared objects are built, AIX ld can
13854       # have problems creating the table of contents.  If linking a library
13855       # or program results in "error TOC overflow" add -mminimal-toc to
13856       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13857       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13858
13859       archive_cmds_F77=''
13860       hardcode_direct_F77=yes
13861       hardcode_libdir_separator_F77=':'
13862       link_all_deplibs_F77=yes
13863
13864       if test "$GCC" = yes; then
13865         case $host_os in aix4.012|aix4.012.*)
13866         # We only want to do this on AIX 4.2 and lower, the check
13867         # below for broken collect2 doesn't work under 4.3+
13868           collect2name=`${CC} -print-prog-name=collect2`
13869           if test -f "$collect2name" && \
13870            strings "$collect2name" | grep resolve_lib_name >/dev/null
13871           then
13872           # We have reworked collect2
13873           hardcode_direct_F77=yes
13874           else
13875           # We have old collect2
13876           hardcode_direct_F77=unsupported
13877           # It fails to find uninstalled libraries when the uninstalled
13878           # path is not listed in the libpath.  Setting hardcode_minus_L
13879           # to unsupported forces relinking
13880           hardcode_minus_L_F77=yes
13881           hardcode_libdir_flag_spec_F77='-L$libdir'
13882           hardcode_libdir_separator_F77=
13883           fi
13884         esac
13885         shared_flag='-shared'
13886       else
13887         # not using gcc
13888         if test "$host_cpu" = ia64; then
13889         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13890         # chokes on -Wl,-G. The following line is correct:
13891           shared_flag='-G'
13892         else
13893         if test "$aix_use_runtimelinking" = yes; then
13894             shared_flag='${wl}-G'
13895           else
13896             shared_flag='${wl}-bM:SRE'
13897         fi
13898         fi
13899       fi
13900
13901       # It seems that -bexpall does not export symbols beginning with
13902       # underscore (_), so it is better to generate a list of symbols to export.
13903       always_export_symbols_F77=yes
13904       if test "$aix_use_runtimelinking" = yes; then
13905         # Warning - without using the other runtime loading flags (-brtl),
13906         # -berok will link without error, but may produce a broken library.
13907         allow_undefined_flag_F77='-berok'
13908        # Determine the default libpath from the value encoded in an empty executable.
13909        cat >conftest.$ac_ext <<_ACEOF
13910       program main
13911
13912       end
13913 _ACEOF
13914 rm -f conftest.$ac_objext conftest$ac_exeext
13915 if { (ac_try="$ac_link"
13916 case "(($ac_try" in
13917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13918   *) ac_try_echo=$ac_try;;
13919 esac
13920 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13921 $as_echo "$ac_try_echo") >&5
13922   (eval "$ac_link") 2>conftest.er1
13923   ac_status=$?
13924   grep -v '^ *+' conftest.er1 >conftest.err
13925   rm -f conftest.er1
13926   cat conftest.err >&5
13927   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13928   (exit $ac_status); } && {
13929          test -z "$ac_f77_werror_flag" ||
13930          test ! -s conftest.err
13931        } && test -s conftest$ac_exeext && {
13932          test "$cross_compiling" = yes ||
13933          $as_test_x conftest$ac_exeext
13934        }; then
13935
13936 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13937 }'`
13938 # Check for a 64-bit object if we didn't find anything.
13939 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; }
13940 }'`; fi
13941 else
13942   $as_echo "$as_me: failed program was:" >&5
13943 sed 's/^/| /' conftest.$ac_ext >&5
13944
13945
13946 fi
13947
13948 rm -rf conftest.dSYM
13949 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13950       conftest$ac_exeext conftest.$ac_ext
13951 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13952
13953        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13954         archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13955        else
13956         if test "$host_cpu" = ia64; then
13957           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13958           allow_undefined_flag_F77="-z nodefs"
13959           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
13960         else
13961          # Determine the default libpath from the value encoded in an empty executable.
13962          cat >conftest.$ac_ext <<_ACEOF
13963       program main
13964
13965       end
13966 _ACEOF
13967 rm -f conftest.$ac_objext conftest$ac_exeext
13968 if { (ac_try="$ac_link"
13969 case "(($ac_try" in
13970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13971   *) ac_try_echo=$ac_try;;
13972 esac
13973 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13974 $as_echo "$ac_try_echo") >&5
13975   (eval "$ac_link") 2>conftest.er1
13976   ac_status=$?
13977   grep -v '^ *+' conftest.er1 >conftest.err
13978   rm -f conftest.er1
13979   cat conftest.err >&5
13980   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13981   (exit $ac_status); } && {
13982          test -z "$ac_f77_werror_flag" ||
13983          test ! -s conftest.err
13984        } && test -s conftest$ac_exeext && {
13985          test "$cross_compiling" = yes ||
13986          $as_test_x conftest$ac_exeext
13987        }; then
13988
13989 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13990 }'`
13991 # Check for a 64-bit object if we didn't find anything.
13992 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; }
13993 }'`; fi
13994 else
13995   $as_echo "$as_me: failed program was:" >&5
13996 sed 's/^/| /' conftest.$ac_ext >&5
13997
13998
13999 fi
14000
14001 rm -rf conftest.dSYM
14002 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14003       conftest$ac_exeext conftest.$ac_ext
14004 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14005
14006          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14007           # Warning - without using the other run time loading flags,
14008           # -berok will link without error, but may produce a broken library.
14009           no_undefined_flag_F77=' ${wl}-bernotok'
14010           allow_undefined_flag_F77=' ${wl}-berok'
14011           # -bexpall does not export symbols beginning with underscore (_)
14012           always_export_symbols_F77=yes
14013           # Exported symbols can be pulled into shared objects from archives
14014           whole_archive_flag_spec_F77=' '
14015           archive_cmds_need_lc_F77=yes
14016           # This is similar to how AIX traditionally builds it's shared libraries.
14017           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14018         fi
14019       fi
14020       ;;
14021
14022     amigaos*)
14023       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)'
14024       hardcode_libdir_flag_spec_F77='-L$libdir'
14025       hardcode_minus_L_F77=yes
14026       # see comment about different semantics on the GNU ld section
14027       ld_shlibs_F77=no
14028       ;;
14029
14030     bsdi4*)
14031       export_dynamic_flag_spec_F77=-rdynamic
14032       ;;
14033
14034     cygwin* | mingw* | pw32*)
14035       # When not using gcc, we currently assume that we are using
14036       # Microsoft Visual C++.
14037       # hardcode_libdir_flag_spec is actually meaningless, as there is
14038       # no search path for DLLs.
14039       hardcode_libdir_flag_spec_F77=' '
14040       allow_undefined_flag_F77=unsupported
14041       # Tell ltmain to make .lib files, not .a files.
14042       libext=lib
14043       # Tell ltmain to make .dll files, not .so files.
14044       shrext=".dll"
14045       # FIXME: Setting linknames here is a bad hack.
14046       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14047       # The linker will automatically build a .lib file if we build a DLL.
14048       old_archive_From_new_cmds_F77='true'
14049       # FIXME: Should let the user specify the lib program.
14050       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14051       fix_srcfile_path='`cygpath -w "$srcfile"`'
14052       enable_shared_with_static_runtimes_F77=yes
14053       ;;
14054
14055     darwin* | rhapsody*)
14056     if test "$GXX" = yes ; then
14057       archive_cmds_need_lc_F77=no
14058       case "$host_os" in
14059       rhapsody* | darwin1.[012])
14060         allow_undefined_flag_F77='-undefined suppress'
14061         ;;
14062       *) # Darwin 1.3 on
14063       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14064         allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14065       else
14066         case ${MACOSX_DEPLOYMENT_TARGET} in
14067           10.[012])
14068             allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14069             ;;
14070           10.*)
14071             allow_undefined_flag_F77='-undefined dynamic_lookup'
14072             ;;
14073         esac
14074       fi
14075         ;;
14076       esac
14077         lt_int_apple_cc_single_mod=no
14078         output_verbose_link_cmd='echo'
14079         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14080           lt_int_apple_cc_single_mod=yes
14081         fi
14082         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14083           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14084         else
14085         archive_cmds_F77='$CC -r ${wl}-bind_at_load -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'
14086       fi
14087       module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14088       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14089         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14090           archive_expsym_cmds_F77='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}'
14091         else
14092           archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
14093         fi
14094           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}'
14095       hardcode_direct_F77=no
14096       hardcode_automatic_F77=yes
14097       hardcode_shlibpath_var_F77=unsupported
14098       whole_archive_flag_spec_F77='-all_load $convenience'
14099       link_all_deplibs_F77=yes
14100     else
14101       ld_shlibs_F77=no
14102     fi
14103       ;;
14104
14105     dgux*)
14106       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14107       hardcode_libdir_flag_spec_F77='-L$libdir'
14108       hardcode_shlibpath_var_F77=no
14109       ;;
14110
14111     freebsd1*)
14112       ld_shlibs_F77=no
14113       ;;
14114
14115     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14116     # support.  Future versions do this automatically, but an explicit c++rt0.o
14117     # does not break anything, and helps significantly (at the cost of a little
14118     # extra space).
14119     freebsd2.2*)
14120       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14121       hardcode_libdir_flag_spec_F77='-R$libdir'
14122       hardcode_direct_F77=yes
14123       hardcode_shlibpath_var_F77=no
14124       ;;
14125
14126     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14127     freebsd2*)
14128       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14129       hardcode_direct_F77=yes
14130       hardcode_minus_L_F77=yes
14131       hardcode_shlibpath_var_F77=no
14132       ;;
14133
14134     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14135     freebsd* | kfreebsd*-gnu)
14136       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14137       hardcode_libdir_flag_spec_F77='-R$libdir'
14138       hardcode_direct_F77=yes
14139       hardcode_shlibpath_var_F77=no
14140       ;;
14141
14142     hpux9*)
14143       if test "$GCC" = yes; then
14144         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'
14145       else
14146         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'
14147       fi
14148       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14149       hardcode_libdir_separator_F77=:
14150       hardcode_direct_F77=yes
14151
14152       # hardcode_minus_L: Not really in the search PATH,
14153       # but as the default location of the library.
14154       hardcode_minus_L_F77=yes
14155       export_dynamic_flag_spec_F77='${wl}-E'
14156       ;;
14157
14158     hpux10* | hpux11*)
14159       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14160         case "$host_cpu" in
14161         hppa*64*|ia64*)
14162           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14163           ;;
14164         *)
14165           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14166           ;;
14167         esac
14168       else
14169         case "$host_cpu" in
14170         hppa*64*|ia64*)
14171           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14172           ;;
14173         *)
14174           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14175           ;;
14176         esac
14177       fi
14178       if test "$with_gnu_ld" = no; then
14179         case "$host_cpu" in
14180         hppa*64*)
14181           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14182           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14183           hardcode_libdir_separator_F77=:
14184           hardcode_direct_F77=no
14185           hardcode_shlibpath_var_F77=no
14186           ;;
14187         ia64*)
14188           hardcode_libdir_flag_spec_F77='-L$libdir'
14189           hardcode_direct_F77=no
14190           hardcode_shlibpath_var_F77=no
14191
14192           # hardcode_minus_L: Not really in the search PATH,
14193           # but as the default location of the library.
14194           hardcode_minus_L_F77=yes
14195           ;;
14196         *)
14197           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14198           hardcode_libdir_separator_F77=:
14199           hardcode_direct_F77=yes
14200           export_dynamic_flag_spec_F77='${wl}-E'
14201
14202           # hardcode_minus_L: Not really in the search PATH,
14203           # but as the default location of the library.
14204           hardcode_minus_L_F77=yes
14205           ;;
14206         esac
14207       fi
14208       ;;
14209
14210     irix5* | irix6* | nonstopux*)
14211       if test "$GCC" = yes; then
14212         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'
14213       else
14214         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'
14215         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14216       fi
14217       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14218       hardcode_libdir_separator_F77=:
14219       link_all_deplibs_F77=yes
14220       ;;
14221
14222     netbsd*)
14223       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14224         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14225       else
14226         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14227       fi
14228       hardcode_libdir_flag_spec_F77='-R$libdir'
14229       hardcode_direct_F77=yes
14230       hardcode_shlibpath_var_F77=no
14231       ;;
14232
14233     newsos6)
14234       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14235       hardcode_direct_F77=yes
14236       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14237       hardcode_libdir_separator_F77=:
14238       hardcode_shlibpath_var_F77=no
14239       ;;
14240
14241     openbsd*)
14242       hardcode_direct_F77=yes
14243       hardcode_shlibpath_var_F77=no
14244       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14245         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14246         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14247         export_dynamic_flag_spec_F77='${wl}-E'
14248       else
14249        case $host_os in
14250          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14251            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14252            hardcode_libdir_flag_spec_F77='-R$libdir'
14253            ;;
14254          *)
14255            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14256            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14257            ;;
14258        esac
14259       fi
14260       ;;
14261
14262     os2*)
14263       hardcode_libdir_flag_spec_F77='-L$libdir'
14264       hardcode_minus_L_F77=yes
14265       allow_undefined_flag_F77=unsupported
14266       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'
14267       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14268       ;;
14269
14270     osf3*)
14271       if test "$GCC" = yes; then
14272         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14273         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'
14274       else
14275         allow_undefined_flag_F77=' -expect_unresolved \*'
14276         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'
14277       fi
14278       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14279       hardcode_libdir_separator_F77=:
14280       ;;
14281
14282     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14283       if test "$GCC" = yes; then
14284         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14285         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'
14286         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14287       else
14288         allow_undefined_flag_F77=' -expect_unresolved \*'
14289         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'
14290         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~
14291         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
14292
14293         # Both c and cxx compiler support -rpath directly
14294         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14295       fi
14296       hardcode_libdir_separator_F77=:
14297       ;;
14298
14299     sco3.2v5*)
14300       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14301       hardcode_shlibpath_var_F77=no
14302       export_dynamic_flag_spec_F77='${wl}-Bexport'
14303       runpath_var=LD_RUN_PATH
14304       hardcode_runpath_var=yes
14305       ;;
14306
14307     solaris*)
14308       no_undefined_flag_F77=' -z text'
14309       if test "$GCC" = yes; then
14310         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14311         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14312           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14313       else
14314         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14315         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14316         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14317       fi
14318       hardcode_libdir_flag_spec_F77='-R$libdir'
14319       hardcode_shlibpath_var_F77=no
14320       case $host_os in
14321       solaris2.[0-5] | solaris2.[0-5].*) ;;
14322       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14323         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14324       esac
14325       link_all_deplibs_F77=yes
14326       ;;
14327
14328     sunos4*)
14329       if test "x$host_vendor" = xsequent; then
14330         # Use $CC to link under sequent, because it throws in some extra .o
14331         # files that make .init and .fini sections work.
14332         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14333       else
14334         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14335       fi
14336       hardcode_libdir_flag_spec_F77='-L$libdir'
14337       hardcode_direct_F77=yes
14338       hardcode_minus_L_F77=yes
14339       hardcode_shlibpath_var_F77=no
14340       ;;
14341
14342     sysv4)
14343       case $host_vendor in
14344         sni)
14345           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14346           hardcode_direct_F77=yes # is this really true???
14347         ;;
14348         siemens)
14349           ## LD is ld it makes a PLAMLIB
14350           ## CC just makes a GrossModule.
14351           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14352           reload_cmds_F77='$CC -r -o $output$reload_objs'
14353           hardcode_direct_F77=no
14354         ;;
14355         motorola)
14356           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14357           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14358         ;;
14359       esac
14360       runpath_var='LD_RUN_PATH'
14361       hardcode_shlibpath_var_F77=no
14362       ;;
14363
14364     sysv4.3*)
14365       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14366       hardcode_shlibpath_var_F77=no
14367       export_dynamic_flag_spec_F77='-Bexport'
14368       ;;
14369
14370     sysv4*MP*)
14371       if test -d /usr/nec; then
14372         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14373         hardcode_shlibpath_var_F77=no
14374         runpath_var=LD_RUN_PATH
14375         hardcode_runpath_var=yes
14376         ld_shlibs_F77=yes
14377       fi
14378       ;;
14379
14380     sysv4.2uw2*)
14381       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14382       hardcode_direct_F77=yes
14383       hardcode_minus_L_F77=no
14384       hardcode_shlibpath_var_F77=no
14385       hardcode_runpath_var=yes
14386       runpath_var=LD_RUN_PATH
14387       ;;
14388
14389    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
14390       no_undefined_flag_F77='${wl}-z ${wl}text'
14391       if test "$GCC" = yes; then
14392         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14393       else
14394         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14395       fi
14396       runpath_var='LD_RUN_PATH'
14397       hardcode_shlibpath_var_F77=no
14398       ;;
14399
14400     sysv5*)
14401       no_undefined_flag_F77=' -z text'
14402       # $CC -shared without GNU ld will not create a library from C++
14403       # object files and a static libstdc++, better avoid it by now
14404       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14405       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14406                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14407       hardcode_libdir_flag_spec_F77=
14408       hardcode_shlibpath_var_F77=no
14409       runpath_var='LD_RUN_PATH'
14410       ;;
14411
14412     uts4*)
14413       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14414       hardcode_libdir_flag_spec_F77='-L$libdir'
14415       hardcode_shlibpath_var_F77=no
14416       ;;
14417
14418     *)
14419       ld_shlibs_F77=no
14420       ;;
14421     esac
14422   fi
14423
14424 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14425 $as_echo "$ld_shlibs_F77" >&6; }
14426 test "$ld_shlibs_F77" = no && can_build_shared=no
14427
14428 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14429 if test "$GCC" = yes; then
14430   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14431 fi
14432
14433 #
14434 # Do we need to explicitly link libc?
14435 #
14436 case "x$archive_cmds_need_lc_F77" in
14437 x|xyes)
14438   # Assume -lc should be added
14439   archive_cmds_need_lc_F77=yes
14440
14441   if test "$enable_shared" = yes && test "$GCC" = yes; then
14442     case $archive_cmds_F77 in
14443     *'~'*)
14444       # FIXME: we may have to deal with multi-command sequences.
14445       ;;
14446     '$CC '*)
14447       # Test whether the compiler implicitly links with -lc since on some
14448       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14449       # to ld, don't add -lc before -lgcc.
14450       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14451 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14452       $rm conftest*
14453       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14454
14455       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14456   (eval $ac_compile) 2>&5
14457   ac_status=$?
14458   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14459   (exit $ac_status); } 2>conftest.err; then
14460         soname=conftest
14461         lib=conftest
14462         libobjs=conftest.$ac_objext
14463         deplibs=
14464         wl=$lt_prog_compiler_wl_F77
14465         compiler_flags=-v
14466         linker_flags=-v
14467         verstring=
14468         output_objdir=.
14469         libname=conftest
14470         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14471         allow_undefined_flag_F77=
14472         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14473   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14474   ac_status=$?
14475   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14476   (exit $ac_status); }
14477         then
14478           archive_cmds_need_lc_F77=no
14479         else
14480           archive_cmds_need_lc_F77=yes
14481         fi
14482         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14483       else
14484         cat conftest.err 1>&5
14485       fi
14486       $rm conftest*
14487       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14488 $as_echo "$archive_cmds_need_lc_F77" >&6; }
14489       ;;
14490     esac
14491   fi
14492   ;;
14493 esac
14494
14495 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14496 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14497 library_names_spec=
14498 libname_spec='lib$name'
14499 soname_spec=
14500 shrext=".so"
14501 postinstall_cmds=
14502 postuninstall_cmds=
14503 finish_cmds=
14504 finish_eval=
14505 shlibpath_var=
14506 shlibpath_overrides_runpath=unknown
14507 version_type=none
14508 dynamic_linker="$host_os ld.so"
14509 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14510 if test "$GCC" = yes; then
14511   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14512   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14513     # if the path contains ";" then we assume it to be the separator
14514     # otherwise default to the standard path separator (i.e. ":") - it is
14515     # assumed that no part of a normal pathname contains ";" but that should
14516     # okay in the real world where ";" in dirpaths is itself problematic.
14517     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14518   else
14519     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14520   fi
14521 else
14522   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14523 fi
14524 need_lib_prefix=unknown
14525 hardcode_into_libs=no
14526
14527 # when you set need_version to no, make sure it does not cause -set_version
14528 # flags to be left without arguments
14529 need_version=unknown
14530
14531 case $host_os in
14532 aix3*)
14533   version_type=linux
14534   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14535   shlibpath_var=LIBPATH
14536
14537   # AIX 3 has no versioning support, so we append a major version to the name.
14538   soname_spec='${libname}${release}${shared_ext}$major'
14539   ;;
14540
14541 aix4* | aix5*)
14542   version_type=linux
14543   need_lib_prefix=no
14544   need_version=no
14545   hardcode_into_libs=yes
14546   if test "$host_cpu" = ia64; then
14547     # AIX 5 supports IA64
14548     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14549     shlibpath_var=LD_LIBRARY_PATH
14550   else
14551     # With GCC up to 2.95.x, collect2 would create an import file
14552     # for dependence libraries.  The import file would start with
14553     # the line `#! .'.  This would cause the generated library to
14554     # depend on `.', always an invalid library.  This was fixed in
14555     # development snapshots of GCC prior to 3.0.
14556     case $host_os in
14557       aix4 | aix4.[01] | aix4.[01].*)
14558       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14559            echo ' yes '
14560            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14561         :
14562       else
14563         can_build_shared=no
14564       fi
14565       ;;
14566     esac
14567     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14568     # soname into executable. Probably we can add versioning support to
14569     # collect2, so additional links can be useful in future.
14570     if test "$aix_use_runtimelinking" = yes; then
14571       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14572       # instead of lib<name>.a to let people know that these are not
14573       # typical AIX shared libraries.
14574       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14575     else
14576       # We preserve .a as extension for shared libraries through AIX4.2
14577       # and later when we are not doing run time linking.
14578       library_names_spec='${libname}${release}.a $libname.a'
14579       soname_spec='${libname}${release}${shared_ext}$major'
14580     fi
14581     shlibpath_var=LIBPATH
14582   fi
14583   ;;
14584
14585 amigaos*)
14586   library_names_spec='$libname.ixlibrary $libname.a'
14587   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14588   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'
14589   ;;
14590
14591 beos*)
14592   library_names_spec='${libname}${shared_ext}'
14593   dynamic_linker="$host_os ld.so"
14594   shlibpath_var=LIBRARY_PATH
14595   ;;
14596
14597 bsdi4*)
14598   version_type=linux
14599   need_version=no
14600   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14601   soname_spec='${libname}${release}${shared_ext}$major'
14602   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14603   shlibpath_var=LD_LIBRARY_PATH
14604   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14605   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14606   # the default ld.so.conf also contains /usr/contrib/lib and
14607   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14608   # libtool to hard-code these into programs
14609   ;;
14610
14611 cygwin* | mingw* | pw32*)
14612   version_type=windows
14613   shrext=".dll"
14614   need_version=no
14615   need_lib_prefix=no
14616
14617   case $GCC,$host_os in
14618   yes,cygwin* | yes,mingw* | yes,pw32*)
14619     library_names_spec='$libname.dll.a'
14620     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14621     postinstall_cmds='base_file=`basename \${file}`~
14622       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14623       dldir=$destdir/`dirname \$dlpath`~
14624       test -d \$dldir || mkdir -p \$dldir~
14625       $install_prog $dir/$dlname \$dldir/$dlname'
14626     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14627       dlpath=$dir/\$dldll~
14628        $rm \$dlpath'
14629     shlibpath_overrides_runpath=yes
14630
14631     case $host_os in
14632     cygwin*)
14633       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14634       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14635       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14636       ;;
14637     mingw*)
14638       # MinGW DLLs use traditional 'lib' prefix
14639       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14640       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14641       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14642         # It is most probably a Windows format PATH printed by
14643         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14644         # path with ; separators, and with drive letters. We can handle the
14645         # drive letters (cygwin fileutils understands them), so leave them,
14646         # especially as we might pass files found there to a mingw objdump,
14647         # which wouldn't understand a cygwinified path. Ahh.
14648         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14649       else
14650         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14651       fi
14652       ;;
14653     pw32*)
14654       # pw32 DLLs use 'pw' prefix rather than 'lib'
14655       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14656       ;;
14657     esac
14658     ;;
14659
14660   *)
14661     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14662     ;;
14663   esac
14664   dynamic_linker='Win32 ld.exe'
14665   # FIXME: first we should search . and the directory the executable is in
14666   shlibpath_var=PATH
14667   ;;
14668
14669 darwin* | rhapsody*)
14670   dynamic_linker="$host_os dyld"
14671   version_type=darwin
14672   need_lib_prefix=no
14673   need_version=no
14674   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14675   soname_spec='${libname}${release}${major}$shared_ext'
14676   shlibpath_overrides_runpath=yes
14677   shlibpath_var=DYLD_LIBRARY_PATH
14678   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14679   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14680   if test "$GCC" = yes; then
14681     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"`
14682   else
14683     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14684   fi
14685   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14686   ;;
14687
14688 dgux*)
14689   version_type=linux
14690   need_lib_prefix=no
14691   need_version=no
14692   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14693   soname_spec='${libname}${release}${shared_ext}$major'
14694   shlibpath_var=LD_LIBRARY_PATH
14695   ;;
14696
14697 freebsd1*)
14698   dynamic_linker=no
14699   ;;
14700
14701 kfreebsd*-gnu)
14702   version_type=linux
14703   need_lib_prefix=no
14704   need_version=no
14705   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14706   soname_spec='${libname}${release}${shared_ext}$major'
14707   shlibpath_var=LD_LIBRARY_PATH
14708   shlibpath_overrides_runpath=no
14709   hardcode_into_libs=yes
14710   dynamic_linker='GNU ld.so'
14711   ;;
14712
14713 freebsd*)
14714   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14715   version_type=freebsd-$objformat
14716   case $version_type in
14717     freebsd-elf*)
14718       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14719       need_version=no
14720       need_lib_prefix=no
14721       ;;
14722     freebsd-*)
14723       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14724       need_version=yes
14725       ;;
14726   esac
14727   shlibpath_var=LD_LIBRARY_PATH
14728   case $host_os in
14729   freebsd2*)
14730     shlibpath_overrides_runpath=yes
14731     ;;
14732   freebsd3.01* | freebsdelf3.01*)
14733     shlibpath_overrides_runpath=yes
14734     hardcode_into_libs=yes
14735     ;;
14736   *) # from 3.2 on
14737     shlibpath_overrides_runpath=no
14738     hardcode_into_libs=yes
14739     ;;
14740   esac
14741   ;;
14742
14743 gnu*)
14744   version_type=linux
14745   need_lib_prefix=no
14746   need_version=no
14747   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14748   soname_spec='${libname}${release}${shared_ext}$major'
14749   shlibpath_var=LD_LIBRARY_PATH
14750   hardcode_into_libs=yes
14751   ;;
14752
14753 hpux9* | hpux10* | hpux11*)
14754   # Give a soname corresponding to the major version so that dld.sl refuses to
14755   # link against other versions.
14756   version_type=sunos
14757   need_lib_prefix=no
14758   need_version=no
14759   case "$host_cpu" in
14760   ia64*)
14761     shrext='.so'
14762     hardcode_into_libs=yes
14763     dynamic_linker="$host_os dld.so"
14764     shlibpath_var=LD_LIBRARY_PATH
14765     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14766     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14767     soname_spec='${libname}${release}${shared_ext}$major'
14768     if test "X$HPUX_IA64_MODE" = X32; then
14769       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14770     else
14771       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14772     fi
14773     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14774     ;;
14775    hppa*64*)
14776      shrext='.sl'
14777      hardcode_into_libs=yes
14778      dynamic_linker="$host_os dld.sl"
14779      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14780      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14781      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14782      soname_spec='${libname}${release}${shared_ext}$major'
14783      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14784      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14785      ;;
14786    *)
14787     shrext='.sl'
14788     dynamic_linker="$host_os dld.sl"
14789     shlibpath_var=SHLIB_PATH
14790     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14791     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14792     soname_spec='${libname}${release}${shared_ext}$major'
14793     ;;
14794   esac
14795   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14796   postinstall_cmds='chmod 555 $lib'
14797   ;;
14798
14799 irix5* | irix6* | nonstopux*)
14800   case $host_os in
14801     nonstopux*) version_type=nonstopux ;;
14802     *)
14803         if test "$lt_cv_prog_gnu_ld" = yes; then
14804                 version_type=linux
14805         else
14806                 version_type=irix
14807         fi ;;
14808   esac
14809   need_lib_prefix=no
14810   need_version=no
14811   soname_spec='${libname}${release}${shared_ext}$major'
14812   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14813   case $host_os in
14814   irix5* | nonstopux*)
14815     libsuff= shlibsuff=
14816     ;;
14817   *)
14818     case $LD in # libtool.m4 will add one of these switches to LD
14819     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14820       libsuff= shlibsuff= libmagic=32-bit;;
14821     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14822       libsuff=32 shlibsuff=N32 libmagic=N32;;
14823     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14824       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14825     *) libsuff= shlibsuff= libmagic=never-match;;
14826     esac
14827     ;;
14828   esac
14829   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14830   shlibpath_overrides_runpath=no
14831   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14832   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14833   hardcode_into_libs=yes
14834   ;;
14835
14836 # No shared lib support for Linux oldld, aout, or coff.
14837 linux*oldld* | linux*aout* | linux*coff*)
14838   dynamic_linker=no
14839   ;;
14840
14841 # This must be Linux ELF.
14842 linux*)
14843   version_type=linux
14844   need_lib_prefix=no
14845   need_version=no
14846   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14847   soname_spec='${libname}${release}${shared_ext}$major'
14848   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14849   shlibpath_var=LD_LIBRARY_PATH
14850   shlibpath_overrides_runpath=no
14851   # This implies no fast_install, which is unacceptable.
14852   # Some rework will be needed to allow for fast_install
14853   # before this can be enabled.
14854   hardcode_into_libs=yes
14855
14856   # We used to test for /lib/ld.so.1 and disable shared libraries on
14857   # powerpc, because MkLinux only supported shared libraries with the
14858   # GNU dynamic linker.  Since this was broken with cross compilers,
14859   # most powerpc-linux boxes support dynamic linking these days and
14860   # people can always --disable-shared, the test was removed, and we
14861   # assume the GNU/Linux dynamic linker is in use.
14862   dynamic_linker='GNU/Linux ld.so'
14863   ;;
14864
14865 netbsd*)
14866   version_type=sunos
14867   need_lib_prefix=no
14868   need_version=no
14869   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14870     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14871     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14872     dynamic_linker='NetBSD (a.out) ld.so'
14873   else
14874     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14875     soname_spec='${libname}${release}${shared_ext}$major'
14876     dynamic_linker='NetBSD ld.elf_so'
14877   fi
14878   shlibpath_var=LD_LIBRARY_PATH
14879   shlibpath_overrides_runpath=yes
14880   hardcode_into_libs=yes
14881   ;;
14882
14883 newsos6)
14884   version_type=linux
14885   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14886   shlibpath_var=LD_LIBRARY_PATH
14887   shlibpath_overrides_runpath=yes
14888   ;;
14889
14890 nto-qnx*)
14891   version_type=linux
14892   need_lib_prefix=no
14893   need_version=no
14894   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14895   soname_spec='${libname}${release}${shared_ext}$major'
14896   shlibpath_var=LD_LIBRARY_PATH
14897   shlibpath_overrides_runpath=yes
14898   ;;
14899
14900 openbsd*)
14901   version_type=sunos
14902   need_lib_prefix=no
14903   need_version=no
14904   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14905   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14906   shlibpath_var=LD_LIBRARY_PATH
14907   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14908     case $host_os in
14909       openbsd2.[89] | openbsd2.[89].*)
14910         shlibpath_overrides_runpath=no
14911         ;;
14912       *)
14913         shlibpath_overrides_runpath=yes
14914         ;;
14915       esac
14916   else
14917     shlibpath_overrides_runpath=yes
14918   fi
14919   ;;
14920
14921 os2*)
14922   libname_spec='$name'
14923   shrext=".dll"
14924   need_lib_prefix=no
14925   library_names_spec='$libname${shared_ext} $libname.a'
14926   dynamic_linker='OS/2 ld.exe'
14927   shlibpath_var=LIBPATH
14928   ;;
14929
14930 osf3* | osf4* | osf5*)
14931   version_type=osf
14932   need_lib_prefix=no
14933   need_version=no
14934   soname_spec='${libname}${release}${shared_ext}$major'
14935   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14936   shlibpath_var=LD_LIBRARY_PATH
14937   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14938   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14939   ;;
14940
14941 sco3.2v5*)
14942   version_type=osf
14943   soname_spec='${libname}${release}${shared_ext}$major'
14944   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14945   shlibpath_var=LD_LIBRARY_PATH
14946   ;;
14947
14948 solaris*)
14949   version_type=linux
14950   need_lib_prefix=no
14951   need_version=no
14952   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14953   soname_spec='${libname}${release}${shared_ext}$major'
14954   shlibpath_var=LD_LIBRARY_PATH
14955   shlibpath_overrides_runpath=yes
14956   hardcode_into_libs=yes
14957   # ldd complains unless libraries are executable
14958   postinstall_cmds='chmod +x $lib'
14959   ;;
14960
14961 sunos4*)
14962   version_type=sunos
14963   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14964   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14965   shlibpath_var=LD_LIBRARY_PATH
14966   shlibpath_overrides_runpath=yes
14967   if test "$with_gnu_ld" = yes; then
14968     need_lib_prefix=no
14969   fi
14970   need_version=yes
14971   ;;
14972
14973 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14974   version_type=linux
14975   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14976   soname_spec='${libname}${release}${shared_ext}$major'
14977   shlibpath_var=LD_LIBRARY_PATH
14978   case $host_vendor in
14979     sni)
14980       shlibpath_overrides_runpath=no
14981       need_lib_prefix=no
14982       export_dynamic_flag_spec='${wl}-Blargedynsym'
14983       runpath_var=LD_RUN_PATH
14984       ;;
14985     siemens)
14986       need_lib_prefix=no
14987       ;;
14988     motorola)
14989       need_lib_prefix=no
14990       need_version=no
14991       shlibpath_overrides_runpath=no
14992       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14993       ;;
14994   esac
14995   ;;
14996
14997 sysv4*MP*)
14998   if test -d /usr/nec ;then
14999     version_type=linux
15000     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15001     soname_spec='$libname${shared_ext}.$major'
15002     shlibpath_var=LD_LIBRARY_PATH
15003   fi
15004   ;;
15005
15006 uts4*)
15007   version_type=linux
15008   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15009   soname_spec='${libname}${release}${shared_ext}$major'
15010   shlibpath_var=LD_LIBRARY_PATH
15011   ;;
15012
15013 *)
15014   dynamic_linker=no
15015   ;;
15016 esac
15017 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15018 $as_echo "$dynamic_linker" >&6; }
15019 test "$dynamic_linker" = no && can_build_shared=no
15020
15021 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15022 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15023 hardcode_action_F77=
15024 if test -n "$hardcode_libdir_flag_spec_F77" || \
15025    test -n "$runpath_var F77" || \
15026    test "X$hardcode_automatic_F77"="Xyes" ; then
15027
15028   # We can hardcode non-existant directories.
15029   if test "$hardcode_direct_F77" != no &&
15030      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15031      # have to relink, otherwise we might link with an installed library
15032      # when we should be linking with a yet-to-be-installed one
15033      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15034      test "$hardcode_minus_L_F77" != no; then
15035     # Linking always hardcodes the temporary library directory.
15036     hardcode_action_F77=relink
15037   else
15038     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15039     hardcode_action_F77=immediate
15040   fi
15041 else
15042   # We cannot hardcode anything, or else we can only hardcode existing
15043   # directories.
15044   hardcode_action_F77=unsupported
15045 fi
15046 { $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15047 $as_echo "$hardcode_action_F77" >&6; }
15048
15049 if test "$hardcode_action_F77" = relink; then
15050   # Fast installation is not supported
15051   enable_fast_install=no
15052 elif test "$shlibpath_overrides_runpath" = yes ||
15053      test "$enable_shared" = no; then
15054   # Fast installation is not necessary
15055   enable_fast_install=needless
15056 fi
15057
15058 striplib=
15059 old_striplib=
15060 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15061 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
15062 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15063   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15064   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15065   { $as_echo "$as_me:$LINENO: result: yes" >&5
15066 $as_echo "yes" >&6; }
15067 else
15068 # FIXME - insert some real tests, host_os isn't really good enough
15069   case $host_os in
15070    darwin*)
15071        if test -n "$STRIP" ; then
15072          striplib="$STRIP -x"
15073          { $as_echo "$as_me:$LINENO: result: yes" >&5
15074 $as_echo "yes" >&6; }
15075        else
15076   { $as_echo "$as_me:$LINENO: result: no" >&5
15077 $as_echo "no" >&6; }
15078 fi
15079        ;;
15080    *)
15081   { $as_echo "$as_me:$LINENO: result: no" >&5
15082 $as_echo "no" >&6; }
15083     ;;
15084   esac
15085 fi
15086
15087
15088
15089 # The else clause should only fire when bootstrapping the
15090 # libtool distribution, otherwise you forgot to ship ltmain.sh
15091 # with your package, and you will get complaints that there are
15092 # no rules to generate ltmain.sh.
15093 if test -f "$ltmain"; then
15094   # See if we are running on zsh, and set the options which allow our commands through
15095   # without removal of \ escapes.
15096   if test -n "${ZSH_VERSION+set}" ; then
15097     setopt NO_GLOB_SUBST
15098   fi
15099   # Now quote all the things that may contain metacharacters while being
15100   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15101   # variables and quote the copies for generation of the libtool script.
15102   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15103     SED SHELL STRIP \
15104     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15105     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15106     deplibs_check_method reload_flag reload_cmds need_locks \
15107     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15108     lt_cv_sys_global_symbol_to_c_name_address \
15109     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15110     old_postinstall_cmds old_postuninstall_cmds \
15111     compiler_F77 \
15112     CC_F77 \
15113     LD_F77 \
15114     lt_prog_compiler_wl_F77 \
15115     lt_prog_compiler_pic_F77 \
15116     lt_prog_compiler_static_F77 \
15117     lt_prog_compiler_no_builtin_flag_F77 \
15118     export_dynamic_flag_spec_F77 \
15119     thread_safe_flag_spec_F77 \
15120     whole_archive_flag_spec_F77 \
15121     enable_shared_with_static_runtimes_F77 \
15122     old_archive_cmds_F77 \
15123     old_archive_from_new_cmds_F77 \
15124     predep_objects_F77 \
15125     postdep_objects_F77 \
15126     predeps_F77 \
15127     postdeps_F77 \
15128     compiler_lib_search_path_F77 \
15129     archive_cmds_F77 \
15130     archive_expsym_cmds_F77 \
15131     postinstall_cmds_F77 \
15132     postuninstall_cmds_F77 \
15133     old_archive_from_expsyms_cmds_F77 \
15134     allow_undefined_flag_F77 \
15135     no_undefined_flag_F77 \
15136     export_symbols_cmds_F77 \
15137     hardcode_libdir_flag_spec_F77 \
15138     hardcode_libdir_flag_spec_ld_F77 \
15139     hardcode_libdir_separator_F77 \
15140     hardcode_automatic_F77 \
15141     module_cmds_F77 \
15142     module_expsym_cmds_F77 \
15143     lt_cv_prog_compiler_c_o_F77 \
15144     exclude_expsyms_F77 \
15145     include_expsyms_F77; do
15146
15147     case $var in
15148     old_archive_cmds_F77 | \
15149     old_archive_from_new_cmds_F77 | \
15150     archive_cmds_F77 | \
15151     archive_expsym_cmds_F77 | \
15152     module_cmds_F77 | \
15153     module_expsym_cmds_F77 | \
15154     old_archive_from_expsyms_cmds_F77 | \
15155     export_symbols_cmds_F77 | \
15156     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15157     postinstall_cmds | postuninstall_cmds | \
15158     old_postinstall_cmds | old_postuninstall_cmds | \
15159     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15160       # Double-quote double-evaled strings.
15161       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15162       ;;
15163     *)
15164       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15165       ;;
15166     esac
15167   done
15168
15169   case $lt_echo in
15170   *'\$0 --fallback-echo"')
15171     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15172     ;;
15173   esac
15174
15175 cfgfile="$ofile"
15176
15177   cat <<__EOF__ >> "$cfgfile"
15178 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15179
15180 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15181
15182 # Shell to use when invoking shell scripts.
15183 SHELL=$lt_SHELL
15184
15185 # Whether or not to build shared libraries.
15186 build_libtool_libs=$enable_shared
15187
15188 # Whether or not to build static libraries.
15189 build_old_libs=$enable_static
15190
15191 # Whether or not to add -lc for building shared libraries.
15192 build_libtool_need_lc=$archive_cmds_need_lc_F77
15193
15194 # Whether or not to disallow shared libs when runtime libs are static
15195 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15196
15197 # Whether or not to optimize for fast installation.
15198 fast_install=$enable_fast_install
15199
15200 # The host system.
15201 host_alias=$host_alias
15202 host=$host
15203
15204 # An echo program that does not interpret backslashes.
15205 echo=$lt_echo
15206
15207 # The archiver.
15208 AR=$lt_AR
15209 AR_FLAGS=$lt_AR_FLAGS
15210
15211 # A C compiler.
15212 LTCC=$lt_LTCC
15213
15214 # A language-specific compiler.
15215 CC=$lt_compiler_F77
15216
15217 # Is the compiler the GNU C compiler?
15218 with_gcc=$GCC_F77
15219
15220 # An ERE matcher.
15221 EGREP=$lt_EGREP
15222
15223 # The linker used to build libraries.
15224 LD=$lt_LD_F77
15225
15226 # Whether we need hard or soft links.
15227 LN_S=$lt_LN_S
15228
15229 # A BSD-compatible nm program.
15230 NM=$lt_NM
15231
15232 # A symbol stripping program
15233 STRIP=$lt_STRIP
15234
15235 # Used to examine libraries when file_magic_cmd begins "file"
15236 MAGIC_CMD=$MAGIC_CMD
15237
15238 # Used on cygwin: DLL creation program.
15239 DLLTOOL="$DLLTOOL"
15240
15241 # Used on cygwin: object dumper.
15242 OBJDUMP="$OBJDUMP"
15243
15244 # Used on cygwin: assembler.
15245 AS="$AS"
15246
15247 # The name of the directory that contains temporary libtool files.
15248 objdir=$objdir
15249
15250 # How to create reloadable object files.
15251 reload_flag=$lt_reload_flag
15252 reload_cmds=$lt_reload_cmds
15253
15254 # How to pass a linker flag through the compiler.
15255 wl=$lt_lt_prog_compiler_wl_F77
15256
15257 # Object file suffix (normally "o").
15258 objext="$ac_objext"
15259
15260 # Old archive suffix (normally "a").
15261 libext="$libext"
15262
15263 # Shared library suffix (normally ".so").
15264 shrext='$shrext'
15265
15266 # Executable file suffix (normally "").
15267 exeext="$exeext"
15268
15269 # Additional compiler flags for building library objects.
15270 pic_flag=$lt_lt_prog_compiler_pic_F77
15271 pic_mode=$pic_mode
15272
15273 # What is the maximum length of a command?
15274 max_cmd_len=$lt_cv_sys_max_cmd_len
15275
15276 # Does compiler simultaneously support -c and -o options?
15277 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15278
15279 # Must we lock files when doing compilation ?
15280 need_locks=$lt_need_locks
15281
15282 # Do we need the lib prefix for modules?
15283 need_lib_prefix=$need_lib_prefix
15284
15285 # Do we need a version for libraries?
15286 need_version=$need_version
15287
15288 # Whether dlopen is supported.
15289 dlopen_support=$enable_dlopen
15290
15291 # Whether dlopen of programs is supported.
15292 dlopen_self=$enable_dlopen_self
15293
15294 # Whether dlopen of statically linked programs is supported.
15295 dlopen_self_static=$enable_dlopen_self_static
15296
15297 # Compiler flag to prevent dynamic linking.
15298 link_static_flag=$lt_lt_prog_compiler_static_F77
15299
15300 # Compiler flag to turn off builtin functions.
15301 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15302
15303 # Compiler flag to allow reflexive dlopens.
15304 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15305
15306 # Compiler flag to generate shared objects directly from archives.
15307 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15308
15309 # Compiler flag to generate thread-safe objects.
15310 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15311
15312 # Library versioning type.
15313 version_type=$version_type
15314
15315 # Format of library name prefix.
15316 libname_spec=$lt_libname_spec
15317
15318 # List of archive names.  First name is the real one, the rest are links.
15319 # The last name is the one that the linker finds with -lNAME.
15320 library_names_spec=$lt_library_names_spec
15321
15322 # The coded name of the library, if different from the real name.
15323 soname_spec=$lt_soname_spec
15324
15325 # Commands used to build and install an old-style archive.
15326 RANLIB=$lt_RANLIB
15327 old_archive_cmds=$lt_old_archive_cmds_F77
15328 old_postinstall_cmds=$lt_old_postinstall_cmds
15329 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15330
15331 # Create an old-style archive from a shared archive.
15332 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15333
15334 # Create a temporary old-style archive to link instead of a shared archive.
15335 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15336
15337 # Commands used to build and install a shared archive.
15338 archive_cmds=$lt_archive_cmds_F77
15339 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15340 postinstall_cmds=$lt_postinstall_cmds
15341 postuninstall_cmds=$lt_postuninstall_cmds
15342
15343 # Commands used to build a loadable module (assumed same as above if empty)
15344 module_cmds=$lt_module_cmds_F77
15345 module_expsym_cmds=$lt_module_expsym_cmds_F77
15346
15347 # Commands to strip libraries.
15348 old_striplib=$lt_old_striplib
15349 striplib=$lt_striplib
15350
15351 # Dependencies to place before the objects being linked to create a
15352 # shared library.
15353 predep_objects=$lt_predep_objects_F77
15354
15355 # Dependencies to place after the objects being linked to create a
15356 # shared library.
15357 postdep_objects=$lt_postdep_objects_F77
15358
15359 # Dependencies to place before the objects being linked to create a
15360 # shared library.
15361 predeps=$lt_predeps_F77
15362
15363 # Dependencies to place after the objects being linked to create a
15364 # shared library.
15365 postdeps=$lt_postdeps_F77
15366
15367 # The library search path used internally by the compiler when linking
15368 # a shared library.
15369 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15370
15371 # Method to check whether dependent libraries are shared objects.
15372 deplibs_check_method=$lt_deplibs_check_method
15373
15374 # Command to use when deplibs_check_method == file_magic.
15375 file_magic_cmd=$lt_file_magic_cmd
15376
15377 # Flag that allows shared libraries with undefined symbols to be built.
15378 allow_undefined_flag=$lt_allow_undefined_flag_F77
15379
15380 # Flag that forces no undefined symbols.
15381 no_undefined_flag=$lt_no_undefined_flag_F77
15382
15383 # Commands used to finish a libtool library installation in a directory.
15384 finish_cmds=$lt_finish_cmds
15385
15386 # Same as above, but a single script fragment to be evaled but not shown.
15387 finish_eval=$lt_finish_eval
15388
15389 # Take the output of nm and produce a listing of raw symbols and C names.
15390 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15391
15392 # Transform the output of nm in a proper C declaration
15393 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15394
15395 # Transform the output of nm in a C name address pair
15396 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15397
15398 # This is the shared library runtime path variable.
15399 runpath_var=$runpath_var
15400
15401 # This is the shared library path variable.
15402 shlibpath_var=$shlibpath_var
15403
15404 # Is shlibpath searched before the hard-coded library search path?
15405 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15406
15407 # How to hardcode a shared library path into an executable.
15408 hardcode_action=$hardcode_action_F77
15409
15410 # Whether we should hardcode library paths into libraries.
15411 hardcode_into_libs=$hardcode_into_libs
15412
15413 # Flag to hardcode \$libdir into a binary during linking.
15414 # This must work even if \$libdir does not exist.
15415 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15416
15417 # If ld is used when linking, flag to hardcode \$libdir into
15418 # a binary during linking. This must work even if \$libdir does
15419 # not exist.
15420 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15421
15422 # Whether we need a single -rpath flag with a separated argument.
15423 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15424
15425 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15426 # resulting binary.
15427 hardcode_direct=$hardcode_direct_F77
15428
15429 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15430 # resulting binary.
15431 hardcode_minus_L=$hardcode_minus_L_F77
15432
15433 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15434 # the resulting binary.
15435 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15436
15437 # Set to yes if building a shared library automatically hardcodes DIR into the library
15438 # and all subsequent libraries and executables linked against it.
15439 hardcode_automatic=$hardcode_automatic_F77
15440
15441 # Variables whose values should be saved in libtool wrapper scripts and
15442 # restored at relink time.
15443 variables_saved_for_relink="$variables_saved_for_relink"
15444
15445 # Whether libtool must link a program against all its dependency libraries.
15446 link_all_deplibs=$link_all_deplibs_F77
15447
15448 # Compile-time system search path for libraries
15449 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15450
15451 # Run-time system search path for libraries
15452 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15453
15454 # Fix the shell variable \$srcfile for the compiler.
15455 fix_srcfile_path="$fix_srcfile_path_F77"
15456
15457 # Set to yes if exported symbols are required.
15458 always_export_symbols=$always_export_symbols_F77
15459
15460 # The commands to list exported symbols.
15461 export_symbols_cmds=$lt_export_symbols_cmds_F77
15462
15463 # The commands to extract the exported symbol list from a shared archive.
15464 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15465
15466 # Symbols that should not be listed in the preloaded symbols.
15467 exclude_expsyms=$lt_exclude_expsyms_F77
15468
15469 # Symbols that must always be exported.
15470 include_expsyms=$lt_include_expsyms_F77
15471
15472 # ### END LIBTOOL TAG CONFIG: $tagname
15473
15474 __EOF__
15475
15476
15477 else
15478   # If there is no Makefile yet, we rely on a make rule to execute
15479   # `config.status --recheck' to rerun these tests and create the
15480   # libtool script then.
15481   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15482   if test -f "$ltmain_in"; then
15483     test -f Makefile && make "$ltmain"
15484   fi
15485 fi
15486
15487
15488 ac_ext=c
15489 ac_cpp='$CPP $CPPFLAGS'
15490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15493
15494 CC="$lt_save_CC"
15495
15496         else
15497           tagname=""
15498         fi
15499         ;;
15500
15501       GCJ)
15502         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15503
15504
15505 # Source file extension for Java test sources.
15506 ac_ext=java
15507
15508 # Object file extension for compiled Java test sources.
15509 objext=o
15510 objext_GCJ=$objext
15511
15512 # Code to be used in simple compile tests
15513 lt_simple_compile_test_code="class foo {}\n"
15514
15515 # Code to be used in simple link tests
15516 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15517
15518 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15519
15520 # If no C compiler was specified, use CC.
15521 LTCC=${LTCC-"$CC"}
15522
15523 # Allow CC to be a program name with arguments.
15524 compiler=$CC
15525
15526
15527 # Allow CC to be a program name with arguments.
15528 lt_save_CC="$CC"
15529 CC=${GCJ-"gcj"}
15530 compiler=$CC
15531 compiler_GCJ=$CC
15532
15533 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15534 archive_cmds_need_lc_GCJ=no
15535
15536 ## CAVEAT EMPTOR:
15537 ## There is no encapsulation within the following macros, do not change
15538 ## the running order or otherwise move them around unless you know exactly
15539 ## what you are doing...
15540
15541 lt_prog_compiler_no_builtin_flag_GCJ=
15542
15543 if test "$GCC" = yes; then
15544   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15545
15546
15547 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15548 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15549 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15550   $as_echo_n "(cached) " >&6
15551 else
15552   lt_cv_prog_compiler_rtti_exceptions=no
15553   ac_outfile=conftest.$ac_objext
15554    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15555    lt_compiler_flag="-fno-rtti -fno-exceptions"
15556    # Insert the option either (1) after the last *FLAGS variable, or
15557    # (2) before a word containing "conftest.", or (3) at the end.
15558    # Note that $ac_compile itself does not contain backslashes and begins
15559    # with a dollar sign (not a hyphen), so the echo should work correctly.
15560    # The option is referenced via a variable to avoid confusing sed.
15561    lt_compile=`echo "$ac_compile" | $SED \
15562    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15563    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15564    -e 's:$: $lt_compiler_flag:'`
15565    (eval echo "\"\$as_me:15565: $lt_compile\"" >&5)
15566    (eval "$lt_compile" 2>conftest.err)
15567    ac_status=$?
15568    cat conftest.err >&5
15569    echo "$as_me:15569: \$? = $ac_status" >&5
15570    if (exit $ac_status) && test -s "$ac_outfile"; then
15571      # The compiler can only warn and ignore the option if not recognized
15572      # So say no if there are warnings
15573      if test ! -s conftest.err; then
15574        lt_cv_prog_compiler_rtti_exceptions=yes
15575      fi
15576    fi
15577    $rm conftest*
15578
15579 fi
15580 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15581 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15582
15583 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15584     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15585 else
15586     :
15587 fi
15588
15589 fi
15590
15591 lt_prog_compiler_wl_GCJ=
15592 lt_prog_compiler_pic_GCJ=
15593 lt_prog_compiler_static_GCJ=
15594
15595 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15596 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15597
15598   if test "$GCC" = yes; then
15599     lt_prog_compiler_wl_GCJ='-Wl,'
15600     lt_prog_compiler_static_GCJ='-static'
15601
15602     case $host_os in
15603       aix*)
15604       # All AIX code is PIC.
15605       if test "$host_cpu" = ia64; then
15606         # AIX 5 now supports IA64 processor
15607         lt_prog_compiler_static_GCJ='-Bstatic'
15608       fi
15609       ;;
15610
15611     amigaos*)
15612       # FIXME: we need at least 68020 code to build shared libraries, but
15613       # adding the `-m68020' flag to GCC prevents building anything better,
15614       # like `-m68040'.
15615       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15616       ;;
15617
15618     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15619       # PIC is the default for these OSes.
15620       ;;
15621
15622     mingw* | pw32* | os2*)
15623       # This hack is so that the source file can tell whether it is being
15624       # built for inclusion in a dll (and should export symbols for example).
15625       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15626       ;;
15627
15628     darwin* | rhapsody*)
15629       # PIC is the default on this platform
15630       # Common symbols not allowed in MH_DYLIB files
15631       lt_prog_compiler_pic_GCJ='-fno-common'
15632       ;;
15633
15634     msdosdjgpp*)
15635       # Just because we use GCC doesn't mean we suddenly get shared libraries
15636       # on systems that don't support them.
15637       lt_prog_compiler_can_build_shared_GCJ=no
15638       enable_shared=no
15639       ;;
15640
15641     sysv4*MP*)
15642       if test -d /usr/nec; then
15643         lt_prog_compiler_pic_GCJ=-Kconform_pic
15644       fi
15645       ;;
15646
15647     hpux*)
15648       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15649       # not for PA HP-UX.
15650       case "$host_cpu" in
15651       hppa*64*|ia64*)
15652         # +Z the default
15653         ;;
15654       *)
15655         lt_prog_compiler_pic_GCJ='-fPIC'
15656         ;;
15657       esac
15658       ;;
15659
15660     *)
15661       lt_prog_compiler_pic_GCJ='-fPIC'
15662       ;;
15663     esac
15664   else
15665     # PORTME Check for flag to pass linker flags through the system compiler.
15666     case $host_os in
15667     aix*)
15668       lt_prog_compiler_wl_GCJ='-Wl,'
15669       if test "$host_cpu" = ia64; then
15670         # AIX 5 now supports IA64 processor
15671         lt_prog_compiler_static_GCJ='-Bstatic'
15672       else
15673         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15674       fi
15675       ;;
15676
15677     mingw* | pw32* | os2*)
15678       # This hack is so that the source file can tell whether it is being
15679       # built for inclusion in a dll (and should export symbols for example).
15680       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15681       ;;
15682
15683     hpux9* | hpux10* | hpux11*)
15684       lt_prog_compiler_wl_GCJ='-Wl,'
15685       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15686       # not for PA HP-UX.
15687       case "$host_cpu" in
15688       hppa*64*|ia64*)
15689         # +Z the default
15690         ;;
15691       *)
15692         lt_prog_compiler_pic_GCJ='+Z'
15693         ;;
15694       esac
15695       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15696       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15697       ;;
15698
15699     irix5* | irix6* | nonstopux*)
15700       lt_prog_compiler_wl_GCJ='-Wl,'
15701       # PIC (with -KPIC) is the default.
15702       lt_prog_compiler_static_GCJ='-non_shared'
15703       ;;
15704
15705     newsos6)
15706       lt_prog_compiler_pic_GCJ='-KPIC'
15707       lt_prog_compiler_static_GCJ='-Bstatic'
15708       ;;
15709
15710     linux*)
15711       case $CC in
15712       icc* | ecc*)
15713         lt_prog_compiler_wl_GCJ='-Wl,'
15714         lt_prog_compiler_pic_GCJ='-KPIC'
15715         lt_prog_compiler_static_GCJ='-static'
15716         ;;
15717       ccc*)
15718         lt_prog_compiler_wl_GCJ='-Wl,'
15719         # All Alpha code is PIC.
15720         lt_prog_compiler_static_GCJ='-non_shared'
15721         ;;
15722       esac
15723       ;;
15724
15725     osf3* | osf4* | osf5*)
15726       lt_prog_compiler_wl_GCJ='-Wl,'
15727       # All OSF/1 code is PIC.
15728       lt_prog_compiler_static_GCJ='-non_shared'
15729       ;;
15730
15731     sco3.2v5*)
15732       lt_prog_compiler_pic_GCJ='-Kpic'
15733       lt_prog_compiler_static_GCJ='-dn'
15734       ;;
15735
15736     solaris*)
15737       lt_prog_compiler_wl_GCJ='-Wl,'
15738       lt_prog_compiler_pic_GCJ='-KPIC'
15739       lt_prog_compiler_static_GCJ='-Bstatic'
15740       ;;
15741
15742     sunos4*)
15743       lt_prog_compiler_wl_GCJ='-Qoption ld '
15744       lt_prog_compiler_pic_GCJ='-PIC'
15745       lt_prog_compiler_static_GCJ='-Bstatic'
15746       ;;
15747
15748     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15749       lt_prog_compiler_wl_GCJ='-Wl,'
15750       lt_prog_compiler_pic_GCJ='-KPIC'
15751       lt_prog_compiler_static_GCJ='-Bstatic'
15752       ;;
15753
15754     sysv4*MP*)
15755       if test -d /usr/nec ;then
15756         lt_prog_compiler_pic_GCJ='-Kconform_pic'
15757         lt_prog_compiler_static_GCJ='-Bstatic'
15758       fi
15759       ;;
15760
15761     uts4*)
15762       lt_prog_compiler_pic_GCJ='-pic'
15763       lt_prog_compiler_static_GCJ='-Bstatic'
15764       ;;
15765
15766     *)
15767       lt_prog_compiler_can_build_shared_GCJ=no
15768       ;;
15769     esac
15770   fi
15771
15772 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15773 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
15774
15775 #
15776 # Check to make sure the PIC flag actually works.
15777 #
15778 if test -n "$lt_prog_compiler_pic_GCJ"; then
15779
15780 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15781 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
15782 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15783   $as_echo_n "(cached) " >&6
15784 else
15785   lt_prog_compiler_pic_works_GCJ=no
15786   ac_outfile=conftest.$ac_objext
15787    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15788    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15789    # Insert the option either (1) after the last *FLAGS variable, or
15790    # (2) before a word containing "conftest.", or (3) at the end.
15791    # Note that $ac_compile itself does not contain backslashes and begins
15792    # with a dollar sign (not a hyphen), so the echo should work correctly.
15793    # The option is referenced via a variable to avoid confusing sed.
15794    lt_compile=`echo "$ac_compile" | $SED \
15795    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15796    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15797    -e 's:$: $lt_compiler_flag:'`
15798    (eval echo "\"\$as_me:15798: $lt_compile\"" >&5)
15799    (eval "$lt_compile" 2>conftest.err)
15800    ac_status=$?
15801    cat conftest.err >&5
15802    echo "$as_me:15802: \$? = $ac_status" >&5
15803    if (exit $ac_status) && test -s "$ac_outfile"; then
15804      # The compiler can only warn and ignore the option if not recognized
15805      # So say no if there are warnings
15806      if test ! -s conftest.err; then
15807        lt_prog_compiler_pic_works_GCJ=yes
15808      fi
15809    fi
15810    $rm conftest*
15811
15812 fi
15813 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15814 $as_echo "$lt_prog_compiler_pic_works_GCJ" >&6; }
15815
15816 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15817     case $lt_prog_compiler_pic_GCJ in
15818      "" | " "*) ;;
15819      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15820      esac
15821 else
15822     lt_prog_compiler_pic_GCJ=
15823      lt_prog_compiler_can_build_shared_GCJ=no
15824 fi
15825
15826 fi
15827 case "$host_os" in
15828   # For platforms which do not support PIC, -DPIC is meaningless:
15829   *djgpp*)
15830     lt_prog_compiler_pic_GCJ=
15831     ;;
15832   *)
15833     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15834     ;;
15835 esac
15836
15837 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15838 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15839 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15840   $as_echo_n "(cached) " >&6
15841 else
15842   lt_cv_prog_compiler_c_o_GCJ=no
15843    $rm -r conftest 2>/dev/null
15844    mkdir conftest
15845    cd conftest
15846    mkdir out
15847    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15848
15849    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15850    # that will create temporary files in the current directory regardless of
15851    # the output directory.  Thus, making CWD read-only will cause this test
15852    # to fail, enabling locking or at least warning the user not to do parallel
15853    # builds.
15854    chmod -w .
15855
15856    lt_compiler_flag="-o out/conftest2.$ac_objext"
15857    # Insert the option either (1) after the last *FLAGS variable, or
15858    # (2) before a word containing "conftest.", or (3) at the end.
15859    # Note that $ac_compile itself does not contain backslashes and begins
15860    # with a dollar sign (not a hyphen), so the echo should work correctly.
15861    lt_compile=`echo "$ac_compile" | $SED \
15862    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15863    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15864    -e 's:$: $lt_compiler_flag:'`
15865    (eval echo "\"\$as_me:15865: $lt_compile\"" >&5)
15866    (eval "$lt_compile" 2>out/conftest.err)
15867    ac_status=$?
15868    cat out/conftest.err >&5
15869    echo "$as_me:15869: \$? = $ac_status" >&5
15870    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15871    then
15872      # The compiler can only warn and ignore the option if not recognized
15873      # So say no if there are warnings
15874      if test ! -s out/conftest.err; then
15875        lt_cv_prog_compiler_c_o_GCJ=yes
15876      fi
15877    fi
15878    chmod u+w .
15879    $rm conftest*
15880    # SGI C++ compiler will create directory out/ii_files/ for
15881    # template instantiation
15882    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15883    $rm out/* && rmdir out
15884    cd ..
15885    rmdir conftest
15886    $rm conftest*
15887
15888 fi
15889 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15890 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
15891
15892
15893 hard_links="nottested"
15894 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15895   # do not overwrite the value of need_locks provided by the user
15896   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15897 $as_echo_n "checking if we can lock with hard links... " >&6; }
15898   hard_links=yes
15899   $rm conftest*
15900   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15901   touch conftest.a
15902   ln conftest.a conftest.b 2>&5 || hard_links=no
15903   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15904   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
15905 $as_echo "$hard_links" >&6; }
15906   if test "$hard_links" = no; then
15907     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15908 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15909     need_locks=warn
15910   fi
15911 else
15912   need_locks=no
15913 fi
15914
15915 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15916 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15917
15918   runpath_var=
15919   allow_undefined_flag_GCJ=
15920   enable_shared_with_static_runtimes_GCJ=no
15921   archive_cmds_GCJ=
15922   archive_expsym_cmds_GCJ=
15923   old_archive_From_new_cmds_GCJ=
15924   old_archive_from_expsyms_cmds_GCJ=
15925   export_dynamic_flag_spec_GCJ=
15926   whole_archive_flag_spec_GCJ=
15927   thread_safe_flag_spec_GCJ=
15928   hardcode_libdir_flag_spec_GCJ=
15929   hardcode_libdir_flag_spec_ld_GCJ=
15930   hardcode_libdir_separator_GCJ=
15931   hardcode_direct_GCJ=no
15932   hardcode_minus_L_GCJ=no
15933   hardcode_shlibpath_var_GCJ=unsupported
15934   link_all_deplibs_GCJ=unknown
15935   hardcode_automatic_GCJ=no
15936   module_cmds_GCJ=
15937   module_expsym_cmds_GCJ=
15938   always_export_symbols_GCJ=no
15939   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15940   # include_expsyms should be a list of space-separated symbols to be *always*
15941   # included in the symbol list
15942   include_expsyms_GCJ=
15943   # exclude_expsyms can be an extended regexp of symbols to exclude
15944   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15945   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15946   # as well as any symbol that contains `d'.
15947   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15948   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15949   # platforms (ab)use it in PIC code, but their linkers get confused if
15950   # the symbol is explicitly referenced.  Since portable code cannot
15951   # rely on this symbol name, it's probably fine to never include it in
15952   # preloaded symbol tables.
15953   extract_expsyms_cmds=
15954
15955   case $host_os in
15956   cygwin* | mingw* | pw32*)
15957     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15958     # When not using gcc, we currently assume that we are using
15959     # Microsoft Visual C++.
15960     if test "$GCC" != yes; then
15961       with_gnu_ld=no
15962     fi
15963     ;;
15964   openbsd*)
15965     with_gnu_ld=no
15966     ;;
15967   esac
15968
15969   ld_shlibs_GCJ=yes
15970   if test "$with_gnu_ld" = yes; then
15971     # If archive_cmds runs LD, not CC, wlarc should be empty
15972     wlarc='${wl}'
15973
15974     # See if GNU ld supports shared libraries.
15975     case $host_os in
15976     aix3* | aix4* | aix5*)
15977       # On AIX/PPC, the GNU linker is very broken
15978       if test "$host_cpu" != ia64; then
15979         ld_shlibs_GCJ=no
15980         cat <<EOF 1>&2
15981
15982 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15983 *** to be unable to reliably create shared libraries on AIX.
15984 *** Therefore, libtool is disabling shared libraries support.  If you
15985 *** really care for shared libraries, you may want to modify your PATH
15986 *** so that a non-GNU linker is found, and then restart.
15987
15988 EOF
15989       fi
15990       ;;
15991
15992     amigaos*)
15993       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)'
15994       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15995       hardcode_minus_L_GCJ=yes
15996
15997       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15998       # that the semantics of dynamic libraries on AmigaOS, at least up
15999       # to version 4, is to share data among multiple programs linked
16000       # with the same dynamic library.  Since this doesn't match the
16001       # behavior of shared libraries on other platforms, we can't use
16002       # them.
16003       ld_shlibs_GCJ=no
16004       ;;
16005
16006     beos*)
16007       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16008         allow_undefined_flag_GCJ=unsupported
16009         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16010         # support --undefined.  This deserves some investigation.  FIXME
16011         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16012       else
16013         ld_shlibs_GCJ=no
16014       fi
16015       ;;
16016
16017     cygwin* | mingw* | pw32*)
16018       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16019       # as there is no search path for DLLs.
16020       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16021       allow_undefined_flag_GCJ=unsupported
16022       always_export_symbols_GCJ=no
16023       enable_shared_with_static_runtimes_GCJ=yes
16024       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16025
16026       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16027         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16028         # If the export-symbols file already is a .def file (1st line
16029         # is EXPORTS), use it as is; otherwise, prepend...
16030         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16031           cp $export_symbols $output_objdir/$soname.def;
16032         else
16033           echo EXPORTS > $output_objdir/$soname.def;
16034           cat $export_symbols >> $output_objdir/$soname.def;
16035         fi~
16036         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
16037       else
16038         ld_shlibs=no
16039       fi
16040       ;;
16041
16042     netbsd*)
16043       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16044         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16045         wlarc=
16046       else
16047         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16048         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16049       fi
16050       ;;
16051
16052     solaris* | sysv5*)
16053       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16054         ld_shlibs_GCJ=no
16055         cat <<EOF 1>&2
16056
16057 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16058 *** create shared libraries on Solaris systems.  Therefore, libtool
16059 *** is disabling shared libraries support.  We urge you to upgrade GNU
16060 *** binutils to release 2.9.1 or newer.  Another option is to modify
16061 *** your PATH or compiler configuration so that the native linker is
16062 *** used, and then restart.
16063
16064 EOF
16065       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16066         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16067         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16068       else
16069         ld_shlibs_GCJ=no
16070       fi
16071       ;;
16072
16073     sunos4*)
16074       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16075       wlarc=
16076       hardcode_direct_GCJ=yes
16077       hardcode_shlibpath_var_GCJ=no
16078       ;;
16079
16080   linux*)
16081     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
16082         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16083         archive_cmds_GCJ="$tmp_archive_cmds"
16084       supports_anon_versioning=no
16085       case `$LD -v 2>/dev/null` in
16086         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16087         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16088         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16089         *\ 2.11.*) ;; # other 2.11 versions
16090         *) supports_anon_versioning=yes ;;
16091       esac
16092       if test $supports_anon_versioning = yes; then
16093         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16094 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16095 $echo "local: *; };" >> $output_objdir/$libname.ver~
16096         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16097       else
16098         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16099       fi
16100     else
16101       ld_shlibs_GCJ=no
16102     fi
16103     ;;
16104
16105     *)
16106       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16107         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16108         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16109       else
16110         ld_shlibs_GCJ=no
16111       fi
16112       ;;
16113     esac
16114
16115     if test "$ld_shlibs_GCJ" = yes; then
16116       runpath_var=LD_RUN_PATH
16117       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16118       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16119       # ancient GNU ld didn't support --whole-archive et. al.
16120       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16121         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16122       else
16123         whole_archive_flag_spec_GCJ=
16124       fi
16125     fi
16126   else
16127     # PORTME fill in a description of your system's linker (not GNU ld)
16128     case $host_os in
16129     aix3*)
16130       allow_undefined_flag_GCJ=unsupported
16131       always_export_symbols_GCJ=yes
16132       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'
16133       # Note: this linker hardcodes the directories in LIBPATH if there
16134       # are no directories specified by -L.
16135       hardcode_minus_L_GCJ=yes
16136       if test "$GCC" = yes && test -z "$link_static_flag"; then
16137         # Neither direct hardcoding nor static linking is supported with a
16138         # broken collect2.
16139         hardcode_direct_GCJ=unsupported
16140       fi
16141       ;;
16142
16143     aix4* | aix5*)
16144       if test "$host_cpu" = ia64; then
16145         # On IA64, the linker does run time linking by default, so we don't
16146         # have to do anything special.
16147         aix_use_runtimelinking=no
16148         exp_sym_flag='-Bexport'
16149         no_entry_flag=""
16150       else
16151         # If we're using GNU nm, then we don't want the "-C" option.
16152         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16153         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16154           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'
16155         else
16156           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'
16157         fi
16158         aix_use_runtimelinking=no
16159
16160         # Test if we are trying to use run time linking or normal
16161         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16162         # need to do runtime linking.
16163         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16164           for ld_flag in $LDFLAGS; do
16165           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16166             aix_use_runtimelinking=yes
16167             break
16168           fi
16169           done
16170         esac
16171
16172         exp_sym_flag='-bexport'
16173         no_entry_flag='-bnoentry'
16174       fi
16175
16176       # When large executables or shared objects are built, AIX ld can
16177       # have problems creating the table of contents.  If linking a library
16178       # or program results in "error TOC overflow" add -mminimal-toc to
16179       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16180       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16181
16182       archive_cmds_GCJ=''
16183       hardcode_direct_GCJ=yes
16184       hardcode_libdir_separator_GCJ=':'
16185       link_all_deplibs_GCJ=yes
16186
16187       if test "$GCC" = yes; then
16188         case $host_os in aix4.012|aix4.012.*)
16189         # We only want to do this on AIX 4.2 and lower, the check
16190         # below for broken collect2 doesn't work under 4.3+
16191           collect2name=`${CC} -print-prog-name=collect2`
16192           if test -f "$collect2name" && \
16193            strings "$collect2name" | grep resolve_lib_name >/dev/null
16194           then
16195           # We have reworked collect2
16196           hardcode_direct_GCJ=yes
16197           else
16198           # We have old collect2
16199           hardcode_direct_GCJ=unsupported
16200           # It fails to find uninstalled libraries when the uninstalled
16201           # path is not listed in the libpath.  Setting hardcode_minus_L
16202           # to unsupported forces relinking
16203           hardcode_minus_L_GCJ=yes
16204           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16205           hardcode_libdir_separator_GCJ=
16206           fi
16207         esac
16208         shared_flag='-shared'
16209       else
16210         # not using gcc
16211         if test "$host_cpu" = ia64; then
16212         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16213         # chokes on -Wl,-G. The following line is correct:
16214           shared_flag='-G'
16215         else
16216         if test "$aix_use_runtimelinking" = yes; then
16217             shared_flag='${wl}-G'
16218           else
16219             shared_flag='${wl}-bM:SRE'
16220         fi
16221         fi
16222       fi
16223
16224       # It seems that -bexpall does not export symbols beginning with
16225       # underscore (_), so it is better to generate a list of symbols to export.
16226       always_export_symbols_GCJ=yes
16227       if test "$aix_use_runtimelinking" = yes; then
16228         # Warning - without using the other runtime loading flags (-brtl),
16229         # -berok will link without error, but may produce a broken library.
16230         allow_undefined_flag_GCJ='-berok'
16231        # Determine the default libpath from the value encoded in an empty executable.
16232        cat >conftest.$ac_ext <<_ACEOF
16233 /* confdefs.h.  */
16234 _ACEOF
16235 cat confdefs.h >>conftest.$ac_ext
16236 cat >>conftest.$ac_ext <<_ACEOF
16237 /* end confdefs.h.  */
16238
16239 int
16240 main ()
16241 {
16242
16243   ;
16244   return 0;
16245 }
16246 _ACEOF
16247 rm -f conftest.$ac_objext conftest$ac_exeext
16248 if { (ac_try="$ac_link"
16249 case "(($ac_try" in
16250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16251   *) ac_try_echo=$ac_try;;
16252 esac
16253 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16254 $as_echo "$ac_try_echo") >&5
16255   (eval "$ac_link") 2>conftest.er1
16256   ac_status=$?
16257   grep -v '^ *+' conftest.er1 >conftest.err
16258   rm -f conftest.er1
16259   cat conftest.err >&5
16260   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16261   (exit $ac_status); } && {
16262          test -z "$ac_c_werror_flag" ||
16263          test ! -s conftest.err
16264        } && test -s conftest$ac_exeext && {
16265          test "$cross_compiling" = yes ||
16266          $as_test_x conftest$ac_exeext
16267        }; then
16268
16269 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16270 }'`
16271 # Check for a 64-bit object if we didn't find anything.
16272 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; }
16273 }'`; fi
16274 else
16275   $as_echo "$as_me: failed program was:" >&5
16276 sed 's/^/| /' conftest.$ac_ext >&5
16277
16278
16279 fi
16280
16281 rm -rf conftest.dSYM
16282 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16283       conftest$ac_exeext conftest.$ac_ext
16284 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16285
16286        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16287         archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16288        else
16289         if test "$host_cpu" = ia64; then
16290           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16291           allow_undefined_flag_GCJ="-z nodefs"
16292           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
16293         else
16294          # Determine the default libpath from the value encoded in an empty executable.
16295          cat >conftest.$ac_ext <<_ACEOF
16296 /* confdefs.h.  */
16297 _ACEOF
16298 cat confdefs.h >>conftest.$ac_ext
16299 cat >>conftest.$ac_ext <<_ACEOF
16300 /* end confdefs.h.  */
16301
16302 int
16303 main ()
16304 {
16305
16306   ;
16307   return 0;
16308 }
16309 _ACEOF
16310 rm -f conftest.$ac_objext conftest$ac_exeext
16311 if { (ac_try="$ac_link"
16312 case "(($ac_try" in
16313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16314   *) ac_try_echo=$ac_try;;
16315 esac
16316 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16317 $as_echo "$ac_try_echo") >&5
16318   (eval "$ac_link") 2>conftest.er1
16319   ac_status=$?
16320   grep -v '^ *+' conftest.er1 >conftest.err
16321   rm -f conftest.er1
16322   cat conftest.err >&5
16323   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16324   (exit $ac_status); } && {
16325          test -z "$ac_c_werror_flag" ||
16326          test ! -s conftest.err
16327        } && test -s conftest$ac_exeext && {
16328          test "$cross_compiling" = yes ||
16329          $as_test_x conftest$ac_exeext
16330        }; then
16331
16332 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16333 }'`
16334 # Check for a 64-bit object if we didn't find anything.
16335 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; }
16336 }'`; fi
16337 else
16338   $as_echo "$as_me: failed program was:" >&5
16339 sed 's/^/| /' conftest.$ac_ext >&5
16340
16341
16342 fi
16343
16344 rm -rf conftest.dSYM
16345 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16346       conftest$ac_exeext conftest.$ac_ext
16347 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16348
16349          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16350           # Warning - without using the other run time loading flags,
16351           # -berok will link without error, but may produce a broken library.
16352           no_undefined_flag_GCJ=' ${wl}-bernotok'
16353           allow_undefined_flag_GCJ=' ${wl}-berok'
16354           # -bexpall does not export symbols beginning with underscore (_)
16355           always_export_symbols_GCJ=yes
16356           # Exported symbols can be pulled into shared objects from archives
16357           whole_archive_flag_spec_GCJ=' '
16358           archive_cmds_need_lc_GCJ=yes
16359           # This is similar to how AIX traditionally builds it's shared libraries.
16360           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16361         fi
16362       fi
16363       ;;
16364
16365     amigaos*)
16366       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)'
16367       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16368       hardcode_minus_L_GCJ=yes
16369       # see comment about different semantics on the GNU ld section
16370       ld_shlibs_GCJ=no
16371       ;;
16372
16373     bsdi4*)
16374       export_dynamic_flag_spec_GCJ=-rdynamic
16375       ;;
16376
16377     cygwin* | mingw* | pw32*)
16378       # When not using gcc, we currently assume that we are using
16379       # Microsoft Visual C++.
16380       # hardcode_libdir_flag_spec is actually meaningless, as there is
16381       # no search path for DLLs.
16382       hardcode_libdir_flag_spec_GCJ=' '
16383       allow_undefined_flag_GCJ=unsupported
16384       # Tell ltmain to make .lib files, not .a files.
16385       libext=lib
16386       # Tell ltmain to make .dll files, not .so files.
16387       shrext=".dll"
16388       # FIXME: Setting linknames here is a bad hack.
16389       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16390       # The linker will automatically build a .lib file if we build a DLL.
16391       old_archive_From_new_cmds_GCJ='true'
16392       # FIXME: Should let the user specify the lib program.
16393       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16394       fix_srcfile_path='`cygpath -w "$srcfile"`'
16395       enable_shared_with_static_runtimes_GCJ=yes
16396       ;;
16397
16398     darwin* | rhapsody*)
16399     if test "$GXX" = yes ; then
16400       archive_cmds_need_lc_GCJ=no
16401       case "$host_os" in
16402       rhapsody* | darwin1.[012])
16403         allow_undefined_flag_GCJ='-undefined suppress'
16404         ;;
16405       *) # Darwin 1.3 on
16406       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16407         allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16408       else
16409         case ${MACOSX_DEPLOYMENT_TARGET} in
16410           10.[012])
16411             allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16412             ;;
16413           10.*)
16414             allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16415             ;;
16416         esac
16417       fi
16418         ;;
16419       esac
16420         lt_int_apple_cc_single_mod=no
16421         output_verbose_link_cmd='echo'
16422         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16423           lt_int_apple_cc_single_mod=yes
16424         fi
16425         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16426           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16427         else
16428         archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -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'
16429       fi
16430       module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16431       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16432         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16433           archive_expsym_cmds_GCJ='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}'
16434         else
16435           archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
16436         fi
16437           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}'
16438       hardcode_direct_GCJ=no
16439       hardcode_automatic_GCJ=yes
16440       hardcode_shlibpath_var_GCJ=unsupported
16441       whole_archive_flag_spec_GCJ='-all_load $convenience'
16442       link_all_deplibs_GCJ=yes
16443     else
16444       ld_shlibs_GCJ=no
16445     fi
16446       ;;
16447
16448     dgux*)
16449       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16450       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16451       hardcode_shlibpath_var_GCJ=no
16452       ;;
16453
16454     freebsd1*)
16455       ld_shlibs_GCJ=no
16456       ;;
16457
16458     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16459     # support.  Future versions do this automatically, but an explicit c++rt0.o
16460     # does not break anything, and helps significantly (at the cost of a little
16461     # extra space).
16462     freebsd2.2*)
16463       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16464       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16465       hardcode_direct_GCJ=yes
16466       hardcode_shlibpath_var_GCJ=no
16467       ;;
16468
16469     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16470     freebsd2*)
16471       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16472       hardcode_direct_GCJ=yes
16473       hardcode_minus_L_GCJ=yes
16474       hardcode_shlibpath_var_GCJ=no
16475       ;;
16476
16477     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16478     freebsd* | kfreebsd*-gnu)
16479       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16480       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16481       hardcode_direct_GCJ=yes
16482       hardcode_shlibpath_var_GCJ=no
16483       ;;
16484
16485     hpux9*)
16486       if test "$GCC" = yes; then
16487         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'
16488       else
16489         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'
16490       fi
16491       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16492       hardcode_libdir_separator_GCJ=:
16493       hardcode_direct_GCJ=yes
16494
16495       # hardcode_minus_L: Not really in the search PATH,
16496       # but as the default location of the library.
16497       hardcode_minus_L_GCJ=yes
16498       export_dynamic_flag_spec_GCJ='${wl}-E'
16499       ;;
16500
16501     hpux10* | hpux11*)
16502       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16503         case "$host_cpu" in
16504         hppa*64*|ia64*)
16505           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16506           ;;
16507         *)
16508           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16509           ;;
16510         esac
16511       else
16512         case "$host_cpu" in
16513         hppa*64*|ia64*)
16514           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16515           ;;
16516         *)
16517           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16518           ;;
16519         esac
16520       fi
16521       if test "$with_gnu_ld" = no; then
16522         case "$host_cpu" in
16523         hppa*64*)
16524           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16525           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16526           hardcode_libdir_separator_GCJ=:
16527           hardcode_direct_GCJ=no
16528           hardcode_shlibpath_var_GCJ=no
16529           ;;
16530         ia64*)
16531           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16532           hardcode_direct_GCJ=no
16533           hardcode_shlibpath_var_GCJ=no
16534
16535           # hardcode_minus_L: Not really in the search PATH,
16536           # but as the default location of the library.
16537           hardcode_minus_L_GCJ=yes
16538           ;;
16539         *)
16540           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16541           hardcode_libdir_separator_GCJ=:
16542           hardcode_direct_GCJ=yes
16543           export_dynamic_flag_spec_GCJ='${wl}-E'
16544
16545           # hardcode_minus_L: Not really in the search PATH,
16546           # but as the default location of the library.
16547           hardcode_minus_L_GCJ=yes
16548           ;;
16549         esac
16550       fi
16551       ;;
16552
16553     irix5* | irix6* | nonstopux*)
16554       if test "$GCC" = yes; then
16555         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'
16556       else
16557         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'
16558         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16559       fi
16560       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16561       hardcode_libdir_separator_GCJ=:
16562       link_all_deplibs_GCJ=yes
16563       ;;
16564
16565     netbsd*)
16566       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16567         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16568       else
16569         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16570       fi
16571       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16572       hardcode_direct_GCJ=yes
16573       hardcode_shlibpath_var_GCJ=no
16574       ;;
16575
16576     newsos6)
16577       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16578       hardcode_direct_GCJ=yes
16579       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16580       hardcode_libdir_separator_GCJ=:
16581       hardcode_shlibpath_var_GCJ=no
16582       ;;
16583
16584     openbsd*)
16585       hardcode_direct_GCJ=yes
16586       hardcode_shlibpath_var_GCJ=no
16587       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16588         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16589         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16590         export_dynamic_flag_spec_GCJ='${wl}-E'
16591       else
16592        case $host_os in
16593          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16594            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16595            hardcode_libdir_flag_spec_GCJ='-R$libdir'
16596            ;;
16597          *)
16598            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16599            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16600            ;;
16601        esac
16602       fi
16603       ;;
16604
16605     os2*)
16606       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16607       hardcode_minus_L_GCJ=yes
16608       allow_undefined_flag_GCJ=unsupported
16609       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'
16610       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16611       ;;
16612
16613     osf3*)
16614       if test "$GCC" = yes; then
16615         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16616         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'
16617       else
16618         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16619         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'
16620       fi
16621       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16622       hardcode_libdir_separator_GCJ=:
16623       ;;
16624
16625     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16626       if test "$GCC" = yes; then
16627         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16628         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'
16629         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16630       else
16631         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16632         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'
16633         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~
16634         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
16635
16636         # Both c and cxx compiler support -rpath directly
16637         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16638       fi
16639       hardcode_libdir_separator_GCJ=:
16640       ;;
16641
16642     sco3.2v5*)
16643       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16644       hardcode_shlibpath_var_GCJ=no
16645       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16646       runpath_var=LD_RUN_PATH
16647       hardcode_runpath_var=yes
16648       ;;
16649
16650     solaris*)
16651       no_undefined_flag_GCJ=' -z text'
16652       if test "$GCC" = yes; then
16653         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16654         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16655           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16656       else
16657         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16658         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16659         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16660       fi
16661       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16662       hardcode_shlibpath_var_GCJ=no
16663       case $host_os in
16664       solaris2.[0-5] | solaris2.[0-5].*) ;;
16665       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16666         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16667       esac
16668       link_all_deplibs_GCJ=yes
16669       ;;
16670
16671     sunos4*)
16672       if test "x$host_vendor" = xsequent; then
16673         # Use $CC to link under sequent, because it throws in some extra .o
16674         # files that make .init and .fini sections work.
16675         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16676       else
16677         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16678       fi
16679       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16680       hardcode_direct_GCJ=yes
16681       hardcode_minus_L_GCJ=yes
16682       hardcode_shlibpath_var_GCJ=no
16683       ;;
16684
16685     sysv4)
16686       case $host_vendor in
16687         sni)
16688           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16689           hardcode_direct_GCJ=yes # is this really true???
16690         ;;
16691         siemens)
16692           ## LD is ld it makes a PLAMLIB
16693           ## CC just makes a GrossModule.
16694           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16695           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16696           hardcode_direct_GCJ=no
16697         ;;
16698         motorola)
16699           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16700           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16701         ;;
16702       esac
16703       runpath_var='LD_RUN_PATH'
16704       hardcode_shlibpath_var_GCJ=no
16705       ;;
16706
16707     sysv4.3*)
16708       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16709       hardcode_shlibpath_var_GCJ=no
16710       export_dynamic_flag_spec_GCJ='-Bexport'
16711       ;;
16712
16713     sysv4*MP*)
16714       if test -d /usr/nec; then
16715         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16716         hardcode_shlibpath_var_GCJ=no
16717         runpath_var=LD_RUN_PATH
16718         hardcode_runpath_var=yes
16719         ld_shlibs_GCJ=yes
16720       fi
16721       ;;
16722
16723     sysv4.2uw2*)
16724       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16725       hardcode_direct_GCJ=yes
16726       hardcode_minus_L_GCJ=no
16727       hardcode_shlibpath_var_GCJ=no
16728       hardcode_runpath_var=yes
16729       runpath_var=LD_RUN_PATH
16730       ;;
16731
16732    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16733       no_undefined_flag_GCJ='${wl}-z ${wl}text'
16734       if test "$GCC" = yes; then
16735         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16736       else
16737         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16738       fi
16739       runpath_var='LD_RUN_PATH'
16740       hardcode_shlibpath_var_GCJ=no
16741       ;;
16742
16743     sysv5*)
16744       no_undefined_flag_GCJ=' -z text'
16745       # $CC -shared without GNU ld will not create a library from C++
16746       # object files and a static libstdc++, better avoid it by now
16747       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16748       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16749                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16750       hardcode_libdir_flag_spec_GCJ=
16751       hardcode_shlibpath_var_GCJ=no
16752       runpath_var='LD_RUN_PATH'
16753       ;;
16754
16755     uts4*)
16756       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16757       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16758       hardcode_shlibpath_var_GCJ=no
16759       ;;
16760
16761     *)
16762       ld_shlibs_GCJ=no
16763       ;;
16764     esac
16765   fi
16766
16767 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16768 $as_echo "$ld_shlibs_GCJ" >&6; }
16769 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16770
16771 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16772 if test "$GCC" = yes; then
16773   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16774 fi
16775
16776 #
16777 # Do we need to explicitly link libc?
16778 #
16779 case "x$archive_cmds_need_lc_GCJ" in
16780 x|xyes)
16781   # Assume -lc should be added
16782   archive_cmds_need_lc_GCJ=yes
16783
16784   if test "$enable_shared" = yes && test "$GCC" = yes; then
16785     case $archive_cmds_GCJ in
16786     *'~'*)
16787       # FIXME: we may have to deal with multi-command sequences.
16788       ;;
16789     '$CC '*)
16790       # Test whether the compiler implicitly links with -lc since on some
16791       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16792       # to ld, don't add -lc before -lgcc.
16793       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16794 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16795       $rm conftest*
16796       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16797
16798       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16799   (eval $ac_compile) 2>&5
16800   ac_status=$?
16801   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16802   (exit $ac_status); } 2>conftest.err; then
16803         soname=conftest
16804         lib=conftest
16805         libobjs=conftest.$ac_objext
16806         deplibs=
16807         wl=$lt_prog_compiler_wl_GCJ
16808         compiler_flags=-v
16809         linker_flags=-v
16810         verstring=
16811         output_objdir=.
16812         libname=conftest
16813         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16814         allow_undefined_flag_GCJ=
16815         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16816   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16817   ac_status=$?
16818   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16819   (exit $ac_status); }
16820         then
16821           archive_cmds_need_lc_GCJ=no
16822         else
16823           archive_cmds_need_lc_GCJ=yes
16824         fi
16825         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16826       else
16827         cat conftest.err 1>&5
16828       fi
16829       $rm conftest*
16830       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16831 $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
16832       ;;
16833     esac
16834   fi
16835   ;;
16836 esac
16837
16838 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16839 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16840 library_names_spec=
16841 libname_spec='lib$name'
16842 soname_spec=
16843 shrext=".so"
16844 postinstall_cmds=
16845 postuninstall_cmds=
16846 finish_cmds=
16847 finish_eval=
16848 shlibpath_var=
16849 shlibpath_overrides_runpath=unknown
16850 version_type=none
16851 dynamic_linker="$host_os ld.so"
16852 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16853 if test "$GCC" = yes; then
16854   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16855   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16856     # if the path contains ";" then we assume it to be the separator
16857     # otherwise default to the standard path separator (i.e. ":") - it is
16858     # assumed that no part of a normal pathname contains ";" but that should
16859     # okay in the real world where ";" in dirpaths is itself problematic.
16860     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16861   else
16862     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16863   fi
16864 else
16865   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16866 fi
16867 need_lib_prefix=unknown
16868 hardcode_into_libs=no
16869
16870 # when you set need_version to no, make sure it does not cause -set_version
16871 # flags to be left without arguments
16872 need_version=unknown
16873
16874 case $host_os in
16875 aix3*)
16876   version_type=linux
16877   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16878   shlibpath_var=LIBPATH
16879
16880   # AIX 3 has no versioning support, so we append a major version to the name.
16881   soname_spec='${libname}${release}${shared_ext}$major'
16882   ;;
16883
16884 aix4* | aix5*)
16885   version_type=linux
16886   need_lib_prefix=no
16887   need_version=no
16888   hardcode_into_libs=yes
16889   if test "$host_cpu" = ia64; then
16890     # AIX 5 supports IA64
16891     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16892     shlibpath_var=LD_LIBRARY_PATH
16893   else
16894     # With GCC up to 2.95.x, collect2 would create an import file
16895     # for dependence libraries.  The import file would start with
16896     # the line `#! .'.  This would cause the generated library to
16897     # depend on `.', always an invalid library.  This was fixed in
16898     # development snapshots of GCC prior to 3.0.
16899     case $host_os in
16900       aix4 | aix4.[01] | aix4.[01].*)
16901       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16902            echo ' yes '
16903            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16904         :
16905       else
16906         can_build_shared=no
16907       fi
16908       ;;
16909     esac
16910     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16911     # soname into executable. Probably we can add versioning support to
16912     # collect2, so additional links can be useful in future.
16913     if test "$aix_use_runtimelinking" = yes; then
16914       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16915       # instead of lib<name>.a to let people know that these are not
16916       # typical AIX shared libraries.
16917       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16918     else
16919       # We preserve .a as extension for shared libraries through AIX4.2
16920       # and later when we are not doing run time linking.
16921       library_names_spec='${libname}${release}.a $libname.a'
16922       soname_spec='${libname}${release}${shared_ext}$major'
16923     fi
16924     shlibpath_var=LIBPATH
16925   fi
16926   ;;
16927
16928 amigaos*)
16929   library_names_spec='$libname.ixlibrary $libname.a'
16930   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16931   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'
16932   ;;
16933
16934 beos*)
16935   library_names_spec='${libname}${shared_ext}'
16936   dynamic_linker="$host_os ld.so"
16937   shlibpath_var=LIBRARY_PATH
16938   ;;
16939
16940 bsdi4*)
16941   version_type=linux
16942   need_version=no
16943   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16944   soname_spec='${libname}${release}${shared_ext}$major'
16945   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16946   shlibpath_var=LD_LIBRARY_PATH
16947   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16948   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16949   # the default ld.so.conf also contains /usr/contrib/lib and
16950   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16951   # libtool to hard-code these into programs
16952   ;;
16953
16954 cygwin* | mingw* | pw32*)
16955   version_type=windows
16956   shrext=".dll"
16957   need_version=no
16958   need_lib_prefix=no
16959
16960   case $GCC,$host_os in
16961   yes,cygwin* | yes,mingw* | yes,pw32*)
16962     library_names_spec='$libname.dll.a'
16963     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16964     postinstall_cmds='base_file=`basename \${file}`~
16965       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16966       dldir=$destdir/`dirname \$dlpath`~
16967       test -d \$dldir || mkdir -p \$dldir~
16968       $install_prog $dir/$dlname \$dldir/$dlname'
16969     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16970       dlpath=$dir/\$dldll~
16971        $rm \$dlpath'
16972     shlibpath_overrides_runpath=yes
16973
16974     case $host_os in
16975     cygwin*)
16976       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16977       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16978       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16979       ;;
16980     mingw*)
16981       # MinGW DLLs use traditional 'lib' prefix
16982       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16983       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16984       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16985         # It is most probably a Windows format PATH printed by
16986         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16987         # path with ; separators, and with drive letters. We can handle the
16988         # drive letters (cygwin fileutils understands them), so leave them,
16989         # especially as we might pass files found there to a mingw objdump,
16990         # which wouldn't understand a cygwinified path. Ahh.
16991         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16992       else
16993         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16994       fi
16995       ;;
16996     pw32*)
16997       # pw32 DLLs use 'pw' prefix rather than 'lib'
16998       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16999       ;;
17000     esac
17001     ;;
17002
17003   *)
17004     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17005     ;;
17006   esac
17007   dynamic_linker='Win32 ld.exe'
17008   # FIXME: first we should search . and the directory the executable is in
17009   shlibpath_var=PATH
17010   ;;
17011
17012 darwin* | rhapsody*)
17013   dynamic_linker="$host_os dyld"
17014   version_type=darwin
17015   need_lib_prefix=no
17016   need_version=no
17017   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17018   soname_spec='${libname}${release}${major}$shared_ext'
17019   shlibpath_overrides_runpath=yes
17020   shlibpath_var=DYLD_LIBRARY_PATH
17021   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
17022   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17023   if test "$GCC" = yes; then
17024     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"`
17025   else
17026     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17027   fi
17028   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17029   ;;
17030
17031 dgux*)
17032   version_type=linux
17033   need_lib_prefix=no
17034   need_version=no
17035   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17036   soname_spec='${libname}${release}${shared_ext}$major'
17037   shlibpath_var=LD_LIBRARY_PATH
17038   ;;
17039
17040 freebsd1*)
17041   dynamic_linker=no
17042   ;;
17043
17044 kfreebsd*-gnu)
17045   version_type=linux
17046   need_lib_prefix=no
17047   need_version=no
17048   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17049   soname_spec='${libname}${release}${shared_ext}$major'
17050   shlibpath_var=LD_LIBRARY_PATH
17051   shlibpath_overrides_runpath=no
17052   hardcode_into_libs=yes
17053   dynamic_linker='GNU ld.so'
17054   ;;
17055
17056 freebsd*)
17057   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17058   version_type=freebsd-$objformat
17059   case $version_type in
17060     freebsd-elf*)
17061       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17062       need_version=no
17063       need_lib_prefix=no
17064       ;;
17065     freebsd-*)
17066       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17067       need_version=yes
17068       ;;
17069   esac
17070   shlibpath_var=LD_LIBRARY_PATH
17071   case $host_os in
17072   freebsd2*)
17073     shlibpath_overrides_runpath=yes
17074     ;;
17075   freebsd3.01* | freebsdelf3.01*)
17076     shlibpath_overrides_runpath=yes
17077     hardcode_into_libs=yes
17078     ;;
17079   *) # from 3.2 on
17080     shlibpath_overrides_runpath=no
17081     hardcode_into_libs=yes
17082     ;;
17083   esac
17084   ;;
17085
17086 gnu*)
17087   version_type=linux
17088   need_lib_prefix=no
17089   need_version=no
17090   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17091   soname_spec='${libname}${release}${shared_ext}$major'
17092   shlibpath_var=LD_LIBRARY_PATH
17093   hardcode_into_libs=yes
17094   ;;
17095
17096 hpux9* | hpux10* | hpux11*)
17097   # Give a soname corresponding to the major version so that dld.sl refuses to
17098   # link against other versions.
17099   version_type=sunos
17100   need_lib_prefix=no
17101   need_version=no
17102   case "$host_cpu" in
17103   ia64*)
17104     shrext='.so'
17105     hardcode_into_libs=yes
17106     dynamic_linker="$host_os dld.so"
17107     shlibpath_var=LD_LIBRARY_PATH
17108     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17109     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17110     soname_spec='${libname}${release}${shared_ext}$major'
17111     if test "X$HPUX_IA64_MODE" = X32; then
17112       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17113     else
17114       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17115     fi
17116     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17117     ;;
17118    hppa*64*)
17119      shrext='.sl'
17120      hardcode_into_libs=yes
17121      dynamic_linker="$host_os dld.sl"
17122      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17123      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17124      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17125      soname_spec='${libname}${release}${shared_ext}$major'
17126      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17127      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17128      ;;
17129    *)
17130     shrext='.sl'
17131     dynamic_linker="$host_os dld.sl"
17132     shlibpath_var=SHLIB_PATH
17133     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17134     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17135     soname_spec='${libname}${release}${shared_ext}$major'
17136     ;;
17137   esac
17138   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17139   postinstall_cmds='chmod 555 $lib'
17140   ;;
17141
17142 irix5* | irix6* | nonstopux*)
17143   case $host_os in
17144     nonstopux*) version_type=nonstopux ;;
17145     *)
17146         if test "$lt_cv_prog_gnu_ld" = yes; then
17147                 version_type=linux
17148         else
17149                 version_type=irix
17150         fi ;;
17151   esac
17152   need_lib_prefix=no
17153   need_version=no
17154   soname_spec='${libname}${release}${shared_ext}$major'
17155   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17156   case $host_os in
17157   irix5* | nonstopux*)
17158     libsuff= shlibsuff=
17159     ;;
17160   *)
17161     case $LD in # libtool.m4 will add one of these switches to LD
17162     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17163       libsuff= shlibsuff= libmagic=32-bit;;
17164     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17165       libsuff=32 shlibsuff=N32 libmagic=N32;;
17166     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17167       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17168     *) libsuff= shlibsuff= libmagic=never-match;;
17169     esac
17170     ;;
17171   esac
17172   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17173   shlibpath_overrides_runpath=no
17174   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17175   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17176   hardcode_into_libs=yes
17177   ;;
17178
17179 # No shared lib support for Linux oldld, aout, or coff.
17180 linux*oldld* | linux*aout* | linux*coff*)
17181   dynamic_linker=no
17182   ;;
17183
17184 # This must be Linux ELF.
17185 linux*)
17186   version_type=linux
17187   need_lib_prefix=no
17188   need_version=no
17189   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17190   soname_spec='${libname}${release}${shared_ext}$major'
17191   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17192   shlibpath_var=LD_LIBRARY_PATH
17193   shlibpath_overrides_runpath=no
17194   # This implies no fast_install, which is unacceptable.
17195   # Some rework will be needed to allow for fast_install
17196   # before this can be enabled.
17197   hardcode_into_libs=yes
17198
17199   # We used to test for /lib/ld.so.1 and disable shared libraries on
17200   # powerpc, because MkLinux only supported shared libraries with the
17201   # GNU dynamic linker.  Since this was broken with cross compilers,
17202   # most powerpc-linux boxes support dynamic linking these days and
17203   # people can always --disable-shared, the test was removed, and we
17204   # assume the GNU/Linux dynamic linker is in use.
17205   dynamic_linker='GNU/Linux ld.so'
17206   ;;
17207
17208 netbsd*)
17209   version_type=sunos
17210   need_lib_prefix=no
17211   need_version=no
17212   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17213     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17214     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17215     dynamic_linker='NetBSD (a.out) ld.so'
17216   else
17217     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
17218     soname_spec='${libname}${release}${shared_ext}$major'
17219     dynamic_linker='NetBSD ld.elf_so'
17220   fi
17221   shlibpath_var=LD_LIBRARY_PATH
17222   shlibpath_overrides_runpath=yes
17223   hardcode_into_libs=yes
17224   ;;
17225
17226 newsos6)
17227   version_type=linux
17228   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17229   shlibpath_var=LD_LIBRARY_PATH
17230   shlibpath_overrides_runpath=yes
17231   ;;
17232
17233 nto-qnx*)
17234   version_type=linux
17235   need_lib_prefix=no
17236   need_version=no
17237   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17238   soname_spec='${libname}${release}${shared_ext}$major'
17239   shlibpath_var=LD_LIBRARY_PATH
17240   shlibpath_overrides_runpath=yes
17241   ;;
17242
17243 openbsd*)
17244   version_type=sunos
17245   need_lib_prefix=no
17246   need_version=no
17247   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17248   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17249   shlibpath_var=LD_LIBRARY_PATH
17250   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17251     case $host_os in
17252       openbsd2.[89] | openbsd2.[89].*)
17253         shlibpath_overrides_runpath=no
17254         ;;
17255       *)
17256         shlibpath_overrides_runpath=yes
17257         ;;
17258       esac
17259   else
17260     shlibpath_overrides_runpath=yes
17261   fi
17262   ;;
17263
17264 os2*)
17265   libname_spec='$name'
17266   shrext=".dll"
17267   need_lib_prefix=no
17268   library_names_spec='$libname${shared_ext} $libname.a'
17269   dynamic_linker='OS/2 ld.exe'
17270   shlibpath_var=LIBPATH
17271   ;;
17272
17273 osf3* | osf4* | osf5*)
17274   version_type=osf
17275   need_lib_prefix=no
17276   need_version=no
17277   soname_spec='${libname}${release}${shared_ext}$major'
17278   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17279   shlibpath_var=LD_LIBRARY_PATH
17280   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17281   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17282   ;;
17283
17284 sco3.2v5*)
17285   version_type=osf
17286   soname_spec='${libname}${release}${shared_ext}$major'
17287   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17288   shlibpath_var=LD_LIBRARY_PATH
17289   ;;
17290
17291 solaris*)
17292   version_type=linux
17293   need_lib_prefix=no
17294   need_version=no
17295   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17296   soname_spec='${libname}${release}${shared_ext}$major'
17297   shlibpath_var=LD_LIBRARY_PATH
17298   shlibpath_overrides_runpath=yes
17299   hardcode_into_libs=yes
17300   # ldd complains unless libraries are executable
17301   postinstall_cmds='chmod +x $lib'
17302   ;;
17303
17304 sunos4*)
17305   version_type=sunos
17306   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17307   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17308   shlibpath_var=LD_LIBRARY_PATH
17309   shlibpath_overrides_runpath=yes
17310   if test "$with_gnu_ld" = yes; then
17311     need_lib_prefix=no
17312   fi
17313   need_version=yes
17314   ;;
17315
17316 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17317   version_type=linux
17318   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17319   soname_spec='${libname}${release}${shared_ext}$major'
17320   shlibpath_var=LD_LIBRARY_PATH
17321   case $host_vendor in
17322     sni)
17323       shlibpath_overrides_runpath=no
17324       need_lib_prefix=no
17325       export_dynamic_flag_spec='${wl}-Blargedynsym'
17326       runpath_var=LD_RUN_PATH
17327       ;;
17328     siemens)
17329       need_lib_prefix=no
17330       ;;
17331     motorola)
17332       need_lib_prefix=no
17333       need_version=no
17334       shlibpath_overrides_runpath=no
17335       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17336       ;;
17337   esac
17338   ;;
17339
17340 sysv4*MP*)
17341   if test -d /usr/nec ;then
17342     version_type=linux
17343     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17344     soname_spec='$libname${shared_ext}.$major'
17345     shlibpath_var=LD_LIBRARY_PATH
17346   fi
17347   ;;
17348
17349 uts4*)
17350   version_type=linux
17351   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17352   soname_spec='${libname}${release}${shared_ext}$major'
17353   shlibpath_var=LD_LIBRARY_PATH
17354   ;;
17355
17356 *)
17357   dynamic_linker=no
17358   ;;
17359 esac
17360 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17361 $as_echo "$dynamic_linker" >&6; }
17362 test "$dynamic_linker" = no && can_build_shared=no
17363
17364 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17365 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17366 hardcode_action_GCJ=
17367 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17368    test -n "$runpath_var GCJ" || \
17369    test "X$hardcode_automatic_GCJ"="Xyes" ; then
17370
17371   # We can hardcode non-existant directories.
17372   if test "$hardcode_direct_GCJ" != no &&
17373      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17374      # have to relink, otherwise we might link with an installed library
17375      # when we should be linking with a yet-to-be-installed one
17376      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17377      test "$hardcode_minus_L_GCJ" != no; then
17378     # Linking always hardcodes the temporary library directory.
17379     hardcode_action_GCJ=relink
17380   else
17381     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17382     hardcode_action_GCJ=immediate
17383   fi
17384 else
17385   # We cannot hardcode anything, or else we can only hardcode existing
17386   # directories.
17387   hardcode_action_GCJ=unsupported
17388 fi
17389 { $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17390 $as_echo "$hardcode_action_GCJ" >&6; }
17391
17392 if test "$hardcode_action_GCJ" = relink; then
17393   # Fast installation is not supported
17394   enable_fast_install=no
17395 elif test "$shlibpath_overrides_runpath" = yes ||
17396      test "$enable_shared" = no; then
17397   # Fast installation is not necessary
17398   enable_fast_install=needless
17399 fi
17400
17401 striplib=
17402 old_striplib=
17403 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17404 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
17405 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17406   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17407   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17408   { $as_echo "$as_me:$LINENO: result: yes" >&5
17409 $as_echo "yes" >&6; }
17410 else
17411 # FIXME - insert some real tests, host_os isn't really good enough
17412   case $host_os in
17413    darwin*)
17414        if test -n "$STRIP" ; then
17415          striplib="$STRIP -x"
17416          { $as_echo "$as_me:$LINENO: result: yes" >&5
17417 $as_echo "yes" >&6; }
17418        else
17419   { $as_echo "$as_me:$LINENO: result: no" >&5
17420 $as_echo "no" >&6; }
17421 fi
17422        ;;
17423    *)
17424   { $as_echo "$as_me:$LINENO: result: no" >&5
17425 $as_echo "no" >&6; }
17426     ;;
17427   esac
17428 fi
17429
17430 if test "x$enable_dlopen" != xyes; then
17431   enable_dlopen=unknown
17432   enable_dlopen_self=unknown
17433   enable_dlopen_self_static=unknown
17434 else
17435   lt_cv_dlopen=no
17436   lt_cv_dlopen_libs=
17437
17438   case $host_os in
17439   beos*)
17440     lt_cv_dlopen="load_add_on"
17441     lt_cv_dlopen_libs=
17442     lt_cv_dlopen_self=yes
17443     ;;
17444
17445   mingw* | pw32*)
17446     lt_cv_dlopen="LoadLibrary"
17447     lt_cv_dlopen_libs=
17448    ;;
17449
17450   cygwin*)
17451     lt_cv_dlopen="dlopen"
17452     lt_cv_dlopen_libs=
17453    ;;
17454
17455   darwin*)
17456   # if libdl is installed we need to link against it
17457     { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17458 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17459 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17460   $as_echo_n "(cached) " >&6
17461 else
17462   ac_check_lib_save_LIBS=$LIBS
17463 LIBS="-ldl  $LIBS"
17464 cat >conftest.$ac_ext <<_ACEOF
17465 /* confdefs.h.  */
17466 _ACEOF
17467 cat confdefs.h >>conftest.$ac_ext
17468 cat >>conftest.$ac_ext <<_ACEOF
17469 /* end confdefs.h.  */
17470
17471 /* Override any GCC internal prototype to avoid an error.
17472    Use char because int might match the return type of a GCC
17473    builtin and then its argument prototype would still apply.  */
17474 #ifdef __cplusplus
17475 extern "C"
17476 #endif
17477 char dlopen ();
17478 int
17479 main ()
17480 {
17481 return dlopen ();
17482   ;
17483   return 0;
17484 }
17485 _ACEOF
17486 rm -f conftest.$ac_objext conftest$ac_exeext
17487 if { (ac_try="$ac_link"
17488 case "(($ac_try" in
17489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17490   *) ac_try_echo=$ac_try;;
17491 esac
17492 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17493 $as_echo "$ac_try_echo") >&5
17494   (eval "$ac_link") 2>conftest.er1
17495   ac_status=$?
17496   grep -v '^ *+' conftest.er1 >conftest.err
17497   rm -f conftest.er1
17498   cat conftest.err >&5
17499   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17500   (exit $ac_status); } && {
17501          test -z "$ac_c_werror_flag" ||
17502          test ! -s conftest.err
17503        } && test -s conftest$ac_exeext && {
17504          test "$cross_compiling" = yes ||
17505          $as_test_x conftest$ac_exeext
17506        }; then
17507   ac_cv_lib_dl_dlopen=yes
17508 else
17509   $as_echo "$as_me: failed program was:" >&5
17510 sed 's/^/| /' conftest.$ac_ext >&5
17511
17512         ac_cv_lib_dl_dlopen=no
17513 fi
17514
17515 rm -rf conftest.dSYM
17516 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17517       conftest$ac_exeext conftest.$ac_ext
17518 LIBS=$ac_check_lib_save_LIBS
17519 fi
17520 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17521 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17522 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
17523   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17524 else
17525
17526     lt_cv_dlopen="dyld"
17527     lt_cv_dlopen_libs=
17528     lt_cv_dlopen_self=yes
17529
17530 fi
17531
17532    ;;
17533
17534   *)
17535     { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
17536 $as_echo_n "checking for shl_load... " >&6; }
17537 if test "${ac_cv_func_shl_load+set}" = set; then
17538   $as_echo_n "(cached) " >&6
17539 else
17540   cat >conftest.$ac_ext <<_ACEOF
17541 /* confdefs.h.  */
17542 _ACEOF
17543 cat confdefs.h >>conftest.$ac_ext
17544 cat >>conftest.$ac_ext <<_ACEOF
17545 /* end confdefs.h.  */
17546 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17547    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17548 #define shl_load innocuous_shl_load
17549
17550 /* System header to define __stub macros and hopefully few prototypes,
17551     which can conflict with char shl_load (); below.
17552     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17553     <limits.h> exists even on freestanding compilers.  */
17554
17555 #ifdef __STDC__
17556 # include <limits.h>
17557 #else
17558 # include <assert.h>
17559 #endif
17560
17561 #undef shl_load
17562
17563 /* Override any GCC internal prototype to avoid an error.
17564    Use char because int might match the return type of a GCC
17565    builtin and then its argument prototype would still apply.  */
17566 #ifdef __cplusplus
17567 extern "C"
17568 #endif
17569 char shl_load ();
17570 /* The GNU C library defines this for functions which it implements
17571     to always fail with ENOSYS.  Some functions are actually named
17572     something starting with __ and the normal name is an alias.  */
17573 #if defined __stub_shl_load || defined __stub___shl_load
17574 choke me
17575 #endif
17576
17577 int
17578 main ()
17579 {
17580 return shl_load ();
17581   ;
17582   return 0;
17583 }
17584 _ACEOF
17585 rm -f conftest.$ac_objext conftest$ac_exeext
17586 if { (ac_try="$ac_link"
17587 case "(($ac_try" in
17588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17589   *) ac_try_echo=$ac_try;;
17590 esac
17591 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17592 $as_echo "$ac_try_echo") >&5
17593   (eval "$ac_link") 2>conftest.er1
17594   ac_status=$?
17595   grep -v '^ *+' conftest.er1 >conftest.err
17596   rm -f conftest.er1
17597   cat conftest.err >&5
17598   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17599   (exit $ac_status); } && {
17600          test -z "$ac_c_werror_flag" ||
17601          test ! -s conftest.err
17602        } && test -s conftest$ac_exeext && {
17603          test "$cross_compiling" = yes ||
17604          $as_test_x conftest$ac_exeext
17605        }; then
17606   ac_cv_func_shl_load=yes
17607 else
17608   $as_echo "$as_me: failed program was:" >&5
17609 sed 's/^/| /' conftest.$ac_ext >&5
17610
17611         ac_cv_func_shl_load=no
17612 fi
17613
17614 rm -rf conftest.dSYM
17615 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17616       conftest$ac_exeext conftest.$ac_ext
17617 fi
17618 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17619 $as_echo "$ac_cv_func_shl_load" >&6; }
17620 if test "x$ac_cv_func_shl_load" = x""yes; then
17621   lt_cv_dlopen="shl_load"
17622 else
17623   { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17624 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17625 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17626   $as_echo_n "(cached) " >&6
17627 else
17628   ac_check_lib_save_LIBS=$LIBS
17629 LIBS="-ldld  $LIBS"
17630 cat >conftest.$ac_ext <<_ACEOF
17631 /* confdefs.h.  */
17632 _ACEOF
17633 cat confdefs.h >>conftest.$ac_ext
17634 cat >>conftest.$ac_ext <<_ACEOF
17635 /* end confdefs.h.  */
17636
17637 /* Override any GCC internal prototype to avoid an error.
17638    Use char because int might match the return type of a GCC
17639    builtin and then its argument prototype would still apply.  */
17640 #ifdef __cplusplus
17641 extern "C"
17642 #endif
17643 char shl_load ();
17644 int
17645 main ()
17646 {
17647 return shl_load ();
17648   ;
17649   return 0;
17650 }
17651 _ACEOF
17652 rm -f conftest.$ac_objext conftest$ac_exeext
17653 if { (ac_try="$ac_link"
17654 case "(($ac_try" in
17655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17656   *) ac_try_echo=$ac_try;;
17657 esac
17658 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17659 $as_echo "$ac_try_echo") >&5
17660   (eval "$ac_link") 2>conftest.er1
17661   ac_status=$?
17662   grep -v '^ *+' conftest.er1 >conftest.err
17663   rm -f conftest.er1
17664   cat conftest.err >&5
17665   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17666   (exit $ac_status); } && {
17667          test -z "$ac_c_werror_flag" ||
17668          test ! -s conftest.err
17669        } && test -s conftest$ac_exeext && {
17670          test "$cross_compiling" = yes ||
17671          $as_test_x conftest$ac_exeext
17672        }; then
17673   ac_cv_lib_dld_shl_load=yes
17674 else
17675   $as_echo "$as_me: failed program was:" >&5
17676 sed 's/^/| /' conftest.$ac_ext >&5
17677
17678         ac_cv_lib_dld_shl_load=no
17679 fi
17680
17681 rm -rf conftest.dSYM
17682 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17683       conftest$ac_exeext conftest.$ac_ext
17684 LIBS=$ac_check_lib_save_LIBS
17685 fi
17686 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17687 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17688 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
17689   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17690 else
17691   { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
17692 $as_echo_n "checking for dlopen... " >&6; }
17693 if test "${ac_cv_func_dlopen+set}" = set; then
17694   $as_echo_n "(cached) " >&6
17695 else
17696   cat >conftest.$ac_ext <<_ACEOF
17697 /* confdefs.h.  */
17698 _ACEOF
17699 cat confdefs.h >>conftest.$ac_ext
17700 cat >>conftest.$ac_ext <<_ACEOF
17701 /* end confdefs.h.  */
17702 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17703    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17704 #define dlopen innocuous_dlopen
17705
17706 /* System header to define __stub macros and hopefully few prototypes,
17707     which can conflict with char dlopen (); below.
17708     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17709     <limits.h> exists even on freestanding compilers.  */
17710
17711 #ifdef __STDC__
17712 # include <limits.h>
17713 #else
17714 # include <assert.h>
17715 #endif
17716
17717 #undef dlopen
17718
17719 /* Override any GCC internal prototype to avoid an error.
17720    Use char because int might match the return type of a GCC
17721    builtin and then its argument prototype would still apply.  */
17722 #ifdef __cplusplus
17723 extern "C"
17724 #endif
17725 char dlopen ();
17726 /* The GNU C library defines this for functions which it implements
17727     to always fail with ENOSYS.  Some functions are actually named
17728     something starting with __ and the normal name is an alias.  */
17729 #if defined __stub_dlopen || defined __stub___dlopen
17730 choke me
17731 #endif
17732
17733 int
17734 main ()
17735 {
17736 return dlopen ();
17737   ;
17738   return 0;
17739 }
17740 _ACEOF
17741 rm -f conftest.$ac_objext conftest$ac_exeext
17742 if { (ac_try="$ac_link"
17743 case "(($ac_try" in
17744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17745   *) ac_try_echo=$ac_try;;
17746 esac
17747 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17748 $as_echo "$ac_try_echo") >&5
17749   (eval "$ac_link") 2>conftest.er1
17750   ac_status=$?
17751   grep -v '^ *+' conftest.er1 >conftest.err
17752   rm -f conftest.er1
17753   cat conftest.err >&5
17754   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17755   (exit $ac_status); } && {
17756          test -z "$ac_c_werror_flag" ||
17757          test ! -s conftest.err
17758        } && test -s conftest$ac_exeext && {
17759          test "$cross_compiling" = yes ||
17760          $as_test_x conftest$ac_exeext
17761        }; then
17762   ac_cv_func_dlopen=yes
17763 else
17764   $as_echo "$as_me: failed program was:" >&5
17765 sed 's/^/| /' conftest.$ac_ext >&5
17766
17767         ac_cv_func_dlopen=no
17768 fi
17769
17770 rm -rf conftest.dSYM
17771 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17772       conftest$ac_exeext conftest.$ac_ext
17773 fi
17774 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17775 $as_echo "$ac_cv_func_dlopen" >&6; }
17776 if test "x$ac_cv_func_dlopen" = x""yes; then
17777   lt_cv_dlopen="dlopen"
17778 else
17779   { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17780 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17781 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17782   $as_echo_n "(cached) " >&6
17783 else
17784   ac_check_lib_save_LIBS=$LIBS
17785 LIBS="-ldl  $LIBS"
17786 cat >conftest.$ac_ext <<_ACEOF
17787 /* confdefs.h.  */
17788 _ACEOF
17789 cat confdefs.h >>conftest.$ac_ext
17790 cat >>conftest.$ac_ext <<_ACEOF
17791 /* end confdefs.h.  */
17792
17793 /* Override any GCC internal prototype to avoid an error.
17794    Use char because int might match the return type of a GCC
17795    builtin and then its argument prototype would still apply.  */
17796 #ifdef __cplusplus
17797 extern "C"
17798 #endif
17799 char dlopen ();
17800 int
17801 main ()
17802 {
17803 return dlopen ();
17804   ;
17805   return 0;
17806 }
17807 _ACEOF
17808 rm -f conftest.$ac_objext conftest$ac_exeext
17809 if { (ac_try="$ac_link"
17810 case "(($ac_try" in
17811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17812   *) ac_try_echo=$ac_try;;
17813 esac
17814 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17815 $as_echo "$ac_try_echo") >&5
17816   (eval "$ac_link") 2>conftest.er1
17817   ac_status=$?
17818   grep -v '^ *+' conftest.er1 >conftest.err
17819   rm -f conftest.er1
17820   cat conftest.err >&5
17821   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17822   (exit $ac_status); } && {
17823          test -z "$ac_c_werror_flag" ||
17824          test ! -s conftest.err
17825        } && test -s conftest$ac_exeext && {
17826          test "$cross_compiling" = yes ||
17827          $as_test_x conftest$ac_exeext
17828        }; then
17829   ac_cv_lib_dl_dlopen=yes
17830 else
17831   $as_echo "$as_me: failed program was:" >&5
17832 sed 's/^/| /' conftest.$ac_ext >&5
17833
17834         ac_cv_lib_dl_dlopen=no
17835 fi
17836
17837 rm -rf conftest.dSYM
17838 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17839       conftest$ac_exeext conftest.$ac_ext
17840 LIBS=$ac_check_lib_save_LIBS
17841 fi
17842 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17843 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17844 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
17845   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17846 else
17847   { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17848 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17849 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17850   $as_echo_n "(cached) " >&6
17851 else
17852   ac_check_lib_save_LIBS=$LIBS
17853 LIBS="-lsvld  $LIBS"
17854 cat >conftest.$ac_ext <<_ACEOF
17855 /* confdefs.h.  */
17856 _ACEOF
17857 cat confdefs.h >>conftest.$ac_ext
17858 cat >>conftest.$ac_ext <<_ACEOF
17859 /* end confdefs.h.  */
17860
17861 /* Override any GCC internal prototype to avoid an error.
17862    Use char because int might match the return type of a GCC
17863    builtin and then its argument prototype would still apply.  */
17864 #ifdef __cplusplus
17865 extern "C"
17866 #endif
17867 char dlopen ();
17868 int
17869 main ()
17870 {
17871 return dlopen ();
17872   ;
17873   return 0;
17874 }
17875 _ACEOF
17876 rm -f conftest.$ac_objext conftest$ac_exeext
17877 if { (ac_try="$ac_link"
17878 case "(($ac_try" in
17879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17880   *) ac_try_echo=$ac_try;;
17881 esac
17882 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17883 $as_echo "$ac_try_echo") >&5
17884   (eval "$ac_link") 2>conftest.er1
17885   ac_status=$?
17886   grep -v '^ *+' conftest.er1 >conftest.err
17887   rm -f conftest.er1
17888   cat conftest.err >&5
17889   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17890   (exit $ac_status); } && {
17891          test -z "$ac_c_werror_flag" ||
17892          test ! -s conftest.err
17893        } && test -s conftest$ac_exeext && {
17894          test "$cross_compiling" = yes ||
17895          $as_test_x conftest$ac_exeext
17896        }; then
17897   ac_cv_lib_svld_dlopen=yes
17898 else
17899   $as_echo "$as_me: failed program was:" >&5
17900 sed 's/^/| /' conftest.$ac_ext >&5
17901
17902         ac_cv_lib_svld_dlopen=no
17903 fi
17904
17905 rm -rf conftest.dSYM
17906 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17907       conftest$ac_exeext conftest.$ac_ext
17908 LIBS=$ac_check_lib_save_LIBS
17909 fi
17910 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17911 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17912 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
17913   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17914 else
17915   { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17916 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17917 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17918   $as_echo_n "(cached) " >&6
17919 else
17920   ac_check_lib_save_LIBS=$LIBS
17921 LIBS="-ldld  $LIBS"
17922 cat >conftest.$ac_ext <<_ACEOF
17923 /* confdefs.h.  */
17924 _ACEOF
17925 cat confdefs.h >>conftest.$ac_ext
17926 cat >>conftest.$ac_ext <<_ACEOF
17927 /* end confdefs.h.  */
17928
17929 /* Override any GCC internal prototype to avoid an error.
17930    Use char because int might match the return type of a GCC
17931    builtin and then its argument prototype would still apply.  */
17932 #ifdef __cplusplus
17933 extern "C"
17934 #endif
17935 char dld_link ();
17936 int
17937 main ()
17938 {
17939 return dld_link ();
17940   ;
17941   return 0;
17942 }
17943 _ACEOF
17944 rm -f conftest.$ac_objext conftest$ac_exeext
17945 if { (ac_try="$ac_link"
17946 case "(($ac_try" in
17947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17948   *) ac_try_echo=$ac_try;;
17949 esac
17950 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17951 $as_echo "$ac_try_echo") >&5
17952   (eval "$ac_link") 2>conftest.er1
17953   ac_status=$?
17954   grep -v '^ *+' conftest.er1 >conftest.err
17955   rm -f conftest.er1
17956   cat conftest.err >&5
17957   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17958   (exit $ac_status); } && {
17959          test -z "$ac_c_werror_flag" ||
17960          test ! -s conftest.err
17961        } && test -s conftest$ac_exeext && {
17962          test "$cross_compiling" = yes ||
17963          $as_test_x conftest$ac_exeext
17964        }; then
17965   ac_cv_lib_dld_dld_link=yes
17966 else
17967   $as_echo "$as_me: failed program was:" >&5
17968 sed 's/^/| /' conftest.$ac_ext >&5
17969
17970         ac_cv_lib_dld_dld_link=no
17971 fi
17972
17973 rm -rf conftest.dSYM
17974 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17975       conftest$ac_exeext conftest.$ac_ext
17976 LIBS=$ac_check_lib_save_LIBS
17977 fi
17978 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17979 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17980 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
17981   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17982 fi
17983
17984
17985 fi
17986
17987
17988 fi
17989
17990
17991 fi
17992
17993
17994 fi
17995
17996
17997 fi
17998
17999     ;;
18000   esac
18001
18002   if test "x$lt_cv_dlopen" != xno; then
18003     enable_dlopen=yes
18004   else
18005     enable_dlopen=no
18006   fi
18007
18008   case $lt_cv_dlopen in
18009   dlopen)
18010     save_CPPFLAGS="$CPPFLAGS"
18011     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18012
18013     save_LDFLAGS="$LDFLAGS"
18014     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18015
18016     save_LIBS="$LIBS"
18017     LIBS="$lt_cv_dlopen_libs $LIBS"
18018
18019     { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18020 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18021 if test "${lt_cv_dlopen_self+set}" = set; then
18022   $as_echo_n "(cached) " >&6
18023 else
18024           if test "$cross_compiling" = yes; then :
18025   lt_cv_dlopen_self=cross
18026 else
18027   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18028   lt_status=$lt_dlunknown
18029   cat > conftest.$ac_ext <<EOF
18030 #line 18030 "configure"
18031 #include "confdefs.h"
18032
18033 #if HAVE_DLFCN_H
18034 #include <dlfcn.h>
18035 #endif
18036
18037 #include <stdio.h>
18038
18039 #ifdef RTLD_GLOBAL
18040 #  define LT_DLGLOBAL           RTLD_GLOBAL
18041 #else
18042 #  ifdef DL_GLOBAL
18043 #    define LT_DLGLOBAL         DL_GLOBAL
18044 #  else
18045 #    define LT_DLGLOBAL         0
18046 #  endif
18047 #endif
18048
18049 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18050    find out it does not work in some platform. */
18051 #ifndef LT_DLLAZY_OR_NOW
18052 #  ifdef RTLD_LAZY
18053 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18054 #  else
18055 #    ifdef DL_LAZY
18056 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18057 #    else
18058 #      ifdef RTLD_NOW
18059 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18060 #      else
18061 #        ifdef DL_NOW
18062 #          define LT_DLLAZY_OR_NOW      DL_NOW
18063 #        else
18064 #          define LT_DLLAZY_OR_NOW      0
18065 #        endif
18066 #      endif
18067 #    endif
18068 #  endif
18069 #endif
18070
18071 #ifdef __cplusplus
18072 extern "C" void exit (int);
18073 #endif
18074
18075 void fnord() { int i=42;}
18076 int main ()
18077 {
18078   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18079   int status = $lt_dlunknown;
18080
18081   if (self)
18082     {
18083       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18084       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18085       /* dlclose (self); */
18086     }
18087
18088     exit (status);
18089 }
18090 EOF
18091   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18092   (eval $ac_link) 2>&5
18093   ac_status=$?
18094   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18095   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18096     (./conftest; exit; ) 2>/dev/null
18097     lt_status=$?
18098     case x$lt_status in
18099       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18100       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18101       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18102     esac
18103   else :
18104     # compilation failed
18105     lt_cv_dlopen_self=no
18106   fi
18107 fi
18108 rm -fr conftest*
18109
18110
18111 fi
18112 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18113 $as_echo "$lt_cv_dlopen_self" >&6; }
18114
18115     if test "x$lt_cv_dlopen_self" = xyes; then
18116       LDFLAGS="$LDFLAGS $link_static_flag"
18117       { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18118 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18119 if test "${lt_cv_dlopen_self_static+set}" = set; then
18120   $as_echo_n "(cached) " >&6
18121 else
18122           if test "$cross_compiling" = yes; then :
18123   lt_cv_dlopen_self_static=cross
18124 else
18125   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18126   lt_status=$lt_dlunknown
18127   cat > conftest.$ac_ext <<EOF
18128 #line 18128 "configure"
18129 #include "confdefs.h"
18130
18131 #if HAVE_DLFCN_H
18132 #include <dlfcn.h>
18133 #endif
18134
18135 #include <stdio.h>
18136
18137 #ifdef RTLD_GLOBAL
18138 #  define LT_DLGLOBAL           RTLD_GLOBAL
18139 #else
18140 #  ifdef DL_GLOBAL
18141 #    define LT_DLGLOBAL         DL_GLOBAL
18142 #  else
18143 #    define LT_DLGLOBAL         0
18144 #  endif
18145 #endif
18146
18147 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18148    find out it does not work in some platform. */
18149 #ifndef LT_DLLAZY_OR_NOW
18150 #  ifdef RTLD_LAZY
18151 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18152 #  else
18153 #    ifdef DL_LAZY
18154 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18155 #    else
18156 #      ifdef RTLD_NOW
18157 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18158 #      else
18159 #        ifdef DL_NOW
18160 #          define LT_DLLAZY_OR_NOW      DL_NOW
18161 #        else
18162 #          define LT_DLLAZY_OR_NOW      0
18163 #        endif
18164 #      endif
18165 #    endif
18166 #  endif
18167 #endif
18168
18169 #ifdef __cplusplus
18170 extern "C" void exit (int);
18171 #endif
18172
18173 void fnord() { int i=42;}
18174 int main ()
18175 {
18176   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18177   int status = $lt_dlunknown;
18178
18179   if (self)
18180     {
18181       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18182       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18183       /* dlclose (self); */
18184     }
18185
18186     exit (status);
18187 }
18188 EOF
18189   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18190   (eval $ac_link) 2>&5
18191   ac_status=$?
18192   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18193   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18194     (./conftest; exit; ) 2>/dev/null
18195     lt_status=$?
18196     case x$lt_status in
18197       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18198       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18199       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18200     esac
18201   else :
18202     # compilation failed
18203     lt_cv_dlopen_self_static=no
18204   fi
18205 fi
18206 rm -fr conftest*
18207
18208
18209 fi
18210 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18211 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18212     fi
18213
18214     CPPFLAGS="$save_CPPFLAGS"
18215     LDFLAGS="$save_LDFLAGS"
18216     LIBS="$save_LIBS"
18217     ;;
18218   esac
18219
18220   case $lt_cv_dlopen_self in
18221   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18222   *) enable_dlopen_self=unknown ;;
18223   esac
18224
18225   case $lt_cv_dlopen_self_static in
18226   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18227   *) enable_dlopen_self_static=unknown ;;
18228   esac
18229 fi
18230
18231
18232 # The else clause should only fire when bootstrapping the
18233 # libtool distribution, otherwise you forgot to ship ltmain.sh
18234 # with your package, and you will get complaints that there are
18235 # no rules to generate ltmain.sh.
18236 if test -f "$ltmain"; then
18237   # See if we are running on zsh, and set the options which allow our commands through
18238   # without removal of \ escapes.
18239   if test -n "${ZSH_VERSION+set}" ; then
18240     setopt NO_GLOB_SUBST
18241   fi
18242   # Now quote all the things that may contain metacharacters while being
18243   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18244   # variables and quote the copies for generation of the libtool script.
18245   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18246     SED SHELL STRIP \
18247     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18248     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18249     deplibs_check_method reload_flag reload_cmds need_locks \
18250     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18251     lt_cv_sys_global_symbol_to_c_name_address \
18252     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18253     old_postinstall_cmds old_postuninstall_cmds \
18254     compiler_GCJ \
18255     CC_GCJ \
18256     LD_GCJ \
18257     lt_prog_compiler_wl_GCJ \
18258     lt_prog_compiler_pic_GCJ \
18259     lt_prog_compiler_static_GCJ \
18260     lt_prog_compiler_no_builtin_flag_GCJ \
18261     export_dynamic_flag_spec_GCJ \
18262     thread_safe_flag_spec_GCJ \
18263     whole_archive_flag_spec_GCJ \
18264     enable_shared_with_static_runtimes_GCJ \
18265     old_archive_cmds_GCJ \
18266     old_archive_from_new_cmds_GCJ \
18267     predep_objects_GCJ \
18268     postdep_objects_GCJ \
18269     predeps_GCJ \
18270     postdeps_GCJ \
18271     compiler_lib_search_path_GCJ \
18272     archive_cmds_GCJ \
18273     archive_expsym_cmds_GCJ \
18274     postinstall_cmds_GCJ \
18275     postuninstall_cmds_GCJ \
18276     old_archive_from_expsyms_cmds_GCJ \
18277     allow_undefined_flag_GCJ \
18278     no_undefined_flag_GCJ \
18279     export_symbols_cmds_GCJ \
18280     hardcode_libdir_flag_spec_GCJ \
18281     hardcode_libdir_flag_spec_ld_GCJ \
18282     hardcode_libdir_separator_GCJ \
18283     hardcode_automatic_GCJ \
18284     module_cmds_GCJ \
18285     module_expsym_cmds_GCJ \
18286     lt_cv_prog_compiler_c_o_GCJ \
18287     exclude_expsyms_GCJ \
18288     include_expsyms_GCJ; do
18289
18290     case $var in
18291     old_archive_cmds_GCJ | \
18292     old_archive_from_new_cmds_GCJ | \
18293     archive_cmds_GCJ | \
18294     archive_expsym_cmds_GCJ | \
18295     module_cmds_GCJ | \
18296     module_expsym_cmds_GCJ | \
18297     old_archive_from_expsyms_cmds_GCJ | \
18298     export_symbols_cmds_GCJ | \
18299     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18300     postinstall_cmds | postuninstall_cmds | \
18301     old_postinstall_cmds | old_postuninstall_cmds | \
18302     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18303       # Double-quote double-evaled strings.
18304       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18305       ;;
18306     *)
18307       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18308       ;;
18309     esac
18310   done
18311
18312   case $lt_echo in
18313   *'\$0 --fallback-echo"')
18314     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18315     ;;
18316   esac
18317
18318 cfgfile="$ofile"
18319
18320   cat <<__EOF__ >> "$cfgfile"
18321 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18322
18323 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18324
18325 # Shell to use when invoking shell scripts.
18326 SHELL=$lt_SHELL
18327
18328 # Whether or not to build shared libraries.
18329 build_libtool_libs=$enable_shared
18330
18331 # Whether or not to build static libraries.
18332 build_old_libs=$enable_static
18333
18334 # Whether or not to add -lc for building shared libraries.
18335 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18336
18337 # Whether or not to disallow shared libs when runtime libs are static
18338 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18339
18340 # Whether or not to optimize for fast installation.
18341 fast_install=$enable_fast_install
18342
18343 # The host system.
18344 host_alias=$host_alias
18345 host=$host
18346
18347 # An echo program that does not interpret backslashes.
18348 echo=$lt_echo
18349
18350 # The archiver.
18351 AR=$lt_AR
18352 AR_FLAGS=$lt_AR_FLAGS
18353
18354 # A C compiler.
18355 LTCC=$lt_LTCC
18356
18357 # A language-specific compiler.
18358 CC=$lt_compiler_GCJ
18359
18360 # Is the compiler the GNU C compiler?
18361 with_gcc=$GCC_GCJ
18362
18363 # An ERE matcher.
18364 EGREP=$lt_EGREP
18365
18366 # The linker used to build libraries.
18367 LD=$lt_LD_GCJ
18368
18369 # Whether we need hard or soft links.
18370 LN_S=$lt_LN_S
18371
18372 # A BSD-compatible nm program.
18373 NM=$lt_NM
18374
18375 # A symbol stripping program
18376 STRIP=$lt_STRIP
18377
18378 # Used to examine libraries when file_magic_cmd begins "file"
18379 MAGIC_CMD=$MAGIC_CMD
18380
18381 # Used on cygwin: DLL creation program.
18382 DLLTOOL="$DLLTOOL"
18383
18384 # Used on cygwin: object dumper.
18385 OBJDUMP="$OBJDUMP"
18386
18387 # Used on cygwin: assembler.
18388 AS="$AS"
18389
18390 # The name of the directory that contains temporary libtool files.
18391 objdir=$objdir
18392
18393 # How to create reloadable object files.
18394 reload_flag=$lt_reload_flag
18395 reload_cmds=$lt_reload_cmds
18396
18397 # How to pass a linker flag through the compiler.
18398 wl=$lt_lt_prog_compiler_wl_GCJ
18399
18400 # Object file suffix (normally "o").
18401 objext="$ac_objext"
18402
18403 # Old archive suffix (normally "a").
18404 libext="$libext"
18405
18406 # Shared library suffix (normally ".so").
18407 shrext='$shrext'
18408
18409 # Executable file suffix (normally "").
18410 exeext="$exeext"
18411
18412 # Additional compiler flags for building library objects.
18413 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18414 pic_mode=$pic_mode
18415
18416 # What is the maximum length of a command?
18417 max_cmd_len=$lt_cv_sys_max_cmd_len
18418
18419 # Does compiler simultaneously support -c and -o options?
18420 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18421
18422 # Must we lock files when doing compilation ?
18423 need_locks=$lt_need_locks
18424
18425 # Do we need the lib prefix for modules?
18426 need_lib_prefix=$need_lib_prefix
18427
18428 # Do we need a version for libraries?
18429 need_version=$need_version
18430
18431 # Whether dlopen is supported.
18432 dlopen_support=$enable_dlopen
18433
18434 # Whether dlopen of programs is supported.
18435 dlopen_self=$enable_dlopen_self
18436
18437 # Whether dlopen of statically linked programs is supported.
18438 dlopen_self_static=$enable_dlopen_self_static
18439
18440 # Compiler flag to prevent dynamic linking.
18441 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18442
18443 # Compiler flag to turn off builtin functions.
18444 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18445
18446 # Compiler flag to allow reflexive dlopens.
18447 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18448
18449 # Compiler flag to generate shared objects directly from archives.
18450 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18451
18452 # Compiler flag to generate thread-safe objects.
18453 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18454
18455 # Library versioning type.
18456 version_type=$version_type
18457
18458 # Format of library name prefix.
18459 libname_spec=$lt_libname_spec
18460
18461 # List of archive names.  First name is the real one, the rest are links.
18462 # The last name is the one that the linker finds with -lNAME.
18463 library_names_spec=$lt_library_names_spec
18464
18465 # The coded name of the library, if different from the real name.
18466 soname_spec=$lt_soname_spec
18467
18468 # Commands used to build and install an old-style archive.
18469 RANLIB=$lt_RANLIB
18470 old_archive_cmds=$lt_old_archive_cmds_GCJ
18471 old_postinstall_cmds=$lt_old_postinstall_cmds
18472 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18473
18474 # Create an old-style archive from a shared archive.
18475 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18476
18477 # Create a temporary old-style archive to link instead of a shared archive.
18478 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18479
18480 # Commands used to build and install a shared archive.
18481 archive_cmds=$lt_archive_cmds_GCJ
18482 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18483 postinstall_cmds=$lt_postinstall_cmds
18484 postuninstall_cmds=$lt_postuninstall_cmds
18485
18486 # Commands used to build a loadable module (assumed same as above if empty)
18487 module_cmds=$lt_module_cmds_GCJ
18488 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18489
18490 # Commands to strip libraries.
18491 old_striplib=$lt_old_striplib
18492 striplib=$lt_striplib
18493
18494 # Dependencies to place before the objects being linked to create a
18495 # shared library.
18496 predep_objects=$lt_predep_objects_GCJ
18497
18498 # Dependencies to place after the objects being linked to create a
18499 # shared library.
18500 postdep_objects=$lt_postdep_objects_GCJ
18501
18502 # Dependencies to place before the objects being linked to create a
18503 # shared library.
18504 predeps=$lt_predeps_GCJ
18505
18506 # Dependencies to place after the objects being linked to create a
18507 # shared library.
18508 postdeps=$lt_postdeps_GCJ
18509
18510 # The library search path used internally by the compiler when linking
18511 # a shared library.
18512 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18513
18514 # Method to check whether dependent libraries are shared objects.
18515 deplibs_check_method=$lt_deplibs_check_method
18516
18517 # Command to use when deplibs_check_method == file_magic.
18518 file_magic_cmd=$lt_file_magic_cmd
18519
18520 # Flag that allows shared libraries with undefined symbols to be built.
18521 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18522
18523 # Flag that forces no undefined symbols.
18524 no_undefined_flag=$lt_no_undefined_flag_GCJ
18525
18526 # Commands used to finish a libtool library installation in a directory.
18527 finish_cmds=$lt_finish_cmds
18528
18529 # Same as above, but a single script fragment to be evaled but not shown.
18530 finish_eval=$lt_finish_eval
18531
18532 # Take the output of nm and produce a listing of raw symbols and C names.
18533 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18534
18535 # Transform the output of nm in a proper C declaration
18536 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18537
18538 # Transform the output of nm in a C name address pair
18539 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18540
18541 # This is the shared library runtime path variable.
18542 runpath_var=$runpath_var
18543
18544 # This is the shared library path variable.
18545 shlibpath_var=$shlibpath_var
18546
18547 # Is shlibpath searched before the hard-coded library search path?
18548 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18549
18550 # How to hardcode a shared library path into an executable.
18551 hardcode_action=$hardcode_action_GCJ
18552
18553 # Whether we should hardcode library paths into libraries.
18554 hardcode_into_libs=$hardcode_into_libs
18555
18556 # Flag to hardcode \$libdir into a binary during linking.
18557 # This must work even if \$libdir does not exist.
18558 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18559
18560 # If ld is used when linking, flag to hardcode \$libdir into
18561 # a binary during linking. This must work even if \$libdir does
18562 # not exist.
18563 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18564
18565 # Whether we need a single -rpath flag with a separated argument.
18566 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18567
18568 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18569 # resulting binary.
18570 hardcode_direct=$hardcode_direct_GCJ
18571
18572 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18573 # resulting binary.
18574 hardcode_minus_L=$hardcode_minus_L_GCJ
18575
18576 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18577 # the resulting binary.
18578 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18579
18580 # Set to yes if building a shared library automatically hardcodes DIR into the library
18581 # and all subsequent libraries and executables linked against it.
18582 hardcode_automatic=$hardcode_automatic_GCJ
18583
18584 # Variables whose values should be saved in libtool wrapper scripts and
18585 # restored at relink time.
18586 variables_saved_for_relink="$variables_saved_for_relink"
18587
18588 # Whether libtool must link a program against all its dependency libraries.
18589 link_all_deplibs=$link_all_deplibs_GCJ
18590
18591 # Compile-time system search path for libraries
18592 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18593
18594 # Run-time system search path for libraries
18595 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18596
18597 # Fix the shell variable \$srcfile for the compiler.
18598 fix_srcfile_path="$fix_srcfile_path_GCJ"
18599
18600 # Set to yes if exported symbols are required.
18601 always_export_symbols=$always_export_symbols_GCJ
18602
18603 # The commands to list exported symbols.
18604 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18605
18606 # The commands to extract the exported symbol list from a shared archive.
18607 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18608
18609 # Symbols that should not be listed in the preloaded symbols.
18610 exclude_expsyms=$lt_exclude_expsyms_GCJ
18611
18612 # Symbols that must always be exported.
18613 include_expsyms=$lt_include_expsyms_GCJ
18614
18615 # ### END LIBTOOL TAG CONFIG: $tagname
18616
18617 __EOF__
18618
18619
18620 else
18621   # If there is no Makefile yet, we rely on a make rule to execute
18622   # `config.status --recheck' to rerun these tests and create the
18623   # libtool script then.
18624   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18625   if test -f "$ltmain_in"; then
18626     test -f Makefile && make "$ltmain"
18627   fi
18628 fi
18629
18630
18631 ac_ext=c
18632 ac_cpp='$CPP $CPPFLAGS'
18633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18636
18637 CC="$lt_save_CC"
18638
18639         else
18640           tagname=""
18641         fi
18642         ;;
18643
18644       RC)
18645
18646
18647 # Source file extension for RC test sources.
18648 ac_ext=rc
18649
18650 # Object file extension for compiled RC test sources.
18651 objext=o
18652 objext_RC=$objext
18653
18654 # Code to be used in simple compile tests
18655 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18656
18657 # Code to be used in simple link tests
18658 lt_simple_link_test_code="$lt_simple_compile_test_code"
18659
18660 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18661
18662 # If no C compiler was specified, use CC.
18663 LTCC=${LTCC-"$CC"}
18664
18665 # Allow CC to be a program name with arguments.
18666 compiler=$CC
18667
18668
18669 # Allow CC to be a program name with arguments.
18670 lt_save_CC="$CC"
18671 CC=${RC-"windres"}
18672 compiler=$CC
18673 compiler_RC=$CC
18674 lt_cv_prog_compiler_c_o_RC=yes
18675
18676 # The else clause should only fire when bootstrapping the
18677 # libtool distribution, otherwise you forgot to ship ltmain.sh
18678 # with your package, and you will get complaints that there are
18679 # no rules to generate ltmain.sh.
18680 if test -f "$ltmain"; then
18681   # See if we are running on zsh, and set the options which allow our commands through
18682   # without removal of \ escapes.
18683   if test -n "${ZSH_VERSION+set}" ; then
18684     setopt NO_GLOB_SUBST
18685   fi
18686   # Now quote all the things that may contain metacharacters while being
18687   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18688   # variables and quote the copies for generation of the libtool script.
18689   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18690     SED SHELL STRIP \
18691     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18692     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18693     deplibs_check_method reload_flag reload_cmds need_locks \
18694     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18695     lt_cv_sys_global_symbol_to_c_name_address \
18696     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18697     old_postinstall_cmds old_postuninstall_cmds \
18698     compiler_RC \
18699     CC_RC \
18700     LD_RC \
18701     lt_prog_compiler_wl_RC \
18702     lt_prog_compiler_pic_RC \
18703     lt_prog_compiler_static_RC \
18704     lt_prog_compiler_no_builtin_flag_RC \
18705     export_dynamic_flag_spec_RC \
18706     thread_safe_flag_spec_RC \
18707     whole_archive_flag_spec_RC \
18708     enable_shared_with_static_runtimes_RC \
18709     old_archive_cmds_RC \
18710     old_archive_from_new_cmds_RC \
18711     predep_objects_RC \
18712     postdep_objects_RC \
18713     predeps_RC \
18714     postdeps_RC \
18715     compiler_lib_search_path_RC \
18716     archive_cmds_RC \
18717     archive_expsym_cmds_RC \
18718     postinstall_cmds_RC \
18719     postuninstall_cmds_RC \
18720     old_archive_from_expsyms_cmds_RC \
18721     allow_undefined_flag_RC \
18722     no_undefined_flag_RC \
18723     export_symbols_cmds_RC \
18724     hardcode_libdir_flag_spec_RC \
18725     hardcode_libdir_flag_spec_ld_RC \
18726     hardcode_libdir_separator_RC \
18727     hardcode_automatic_RC \
18728     module_cmds_RC \
18729     module_expsym_cmds_RC \
18730     lt_cv_prog_compiler_c_o_RC \
18731     exclude_expsyms_RC \
18732     include_expsyms_RC; do
18733
18734     case $var in
18735     old_archive_cmds_RC | \
18736     old_archive_from_new_cmds_RC | \
18737     archive_cmds_RC | \
18738     archive_expsym_cmds_RC | \
18739     module_cmds_RC | \
18740     module_expsym_cmds_RC | \
18741     old_archive_from_expsyms_cmds_RC | \
18742     export_symbols_cmds_RC | \
18743     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18744     postinstall_cmds | postuninstall_cmds | \
18745     old_postinstall_cmds | old_postuninstall_cmds | \
18746     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18747       # Double-quote double-evaled strings.
18748       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18749       ;;
18750     *)
18751       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18752       ;;
18753     esac
18754   done
18755
18756   case $lt_echo in
18757   *'\$0 --fallback-echo"')
18758     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18759     ;;
18760   esac
18761
18762 cfgfile="$ofile"
18763
18764   cat <<__EOF__ >> "$cfgfile"
18765 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18766
18767 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18768
18769 # Shell to use when invoking shell scripts.
18770 SHELL=$lt_SHELL
18771
18772 # Whether or not to build shared libraries.
18773 build_libtool_libs=$enable_shared
18774
18775 # Whether or not to build static libraries.
18776 build_old_libs=$enable_static
18777
18778 # Whether or not to add -lc for building shared libraries.
18779 build_libtool_need_lc=$archive_cmds_need_lc_RC
18780
18781 # Whether or not to disallow shared libs when runtime libs are static
18782 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18783
18784 # Whether or not to optimize for fast installation.
18785 fast_install=$enable_fast_install
18786
18787 # The host system.
18788 host_alias=$host_alias
18789 host=$host
18790
18791 # An echo program that does not interpret backslashes.
18792 echo=$lt_echo
18793
18794 # The archiver.
18795 AR=$lt_AR
18796 AR_FLAGS=$lt_AR_FLAGS
18797
18798 # A C compiler.
18799 LTCC=$lt_LTCC
18800
18801 # A language-specific compiler.
18802 CC=$lt_compiler_RC
18803
18804 # Is the compiler the GNU C compiler?
18805 with_gcc=$GCC_RC
18806
18807 # An ERE matcher.
18808 EGREP=$lt_EGREP
18809
18810 # The linker used to build libraries.
18811 LD=$lt_LD_RC
18812
18813 # Whether we need hard or soft links.
18814 LN_S=$lt_LN_S
18815
18816 # A BSD-compatible nm program.
18817 NM=$lt_NM
18818
18819 # A symbol stripping program
18820 STRIP=$lt_STRIP
18821
18822 # Used to examine libraries when file_magic_cmd begins "file"
18823 MAGIC_CMD=$MAGIC_CMD
18824
18825 # Used on cygwin: DLL creation program.
18826 DLLTOOL="$DLLTOOL"
18827
18828 # Used on cygwin: object dumper.
18829 OBJDUMP="$OBJDUMP"
18830
18831 # Used on cygwin: assembler.
18832 AS="$AS"
18833
18834 # The name of the directory that contains temporary libtool files.
18835 objdir=$objdir
18836
18837 # How to create reloadable object files.
18838 reload_flag=$lt_reload_flag
18839 reload_cmds=$lt_reload_cmds
18840
18841 # How to pass a linker flag through the compiler.
18842 wl=$lt_lt_prog_compiler_wl_RC
18843
18844 # Object file suffix (normally "o").
18845 objext="$ac_objext"
18846
18847 # Old archive suffix (normally "a").
18848 libext="$libext"
18849
18850 # Shared library suffix (normally ".so").
18851 shrext='$shrext'
18852
18853 # Executable file suffix (normally "").
18854 exeext="$exeext"
18855
18856 # Additional compiler flags for building library objects.
18857 pic_flag=$lt_lt_prog_compiler_pic_RC
18858 pic_mode=$pic_mode
18859
18860 # What is the maximum length of a command?
18861 max_cmd_len=$lt_cv_sys_max_cmd_len
18862
18863 # Does compiler simultaneously support -c and -o options?
18864 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18865
18866 # Must we lock files when doing compilation ?
18867 need_locks=$lt_need_locks
18868
18869 # Do we need the lib prefix for modules?
18870 need_lib_prefix=$need_lib_prefix
18871
18872 # Do we need a version for libraries?
18873 need_version=$need_version
18874
18875 # Whether dlopen is supported.
18876 dlopen_support=$enable_dlopen
18877
18878 # Whether dlopen of programs is supported.
18879 dlopen_self=$enable_dlopen_self
18880
18881 # Whether dlopen of statically linked programs is supported.
18882 dlopen_self_static=$enable_dlopen_self_static
18883
18884 # Compiler flag to prevent dynamic linking.
18885 link_static_flag=$lt_lt_prog_compiler_static_RC
18886
18887 # Compiler flag to turn off builtin functions.
18888 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18889
18890 # Compiler flag to allow reflexive dlopens.
18891 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18892
18893 # Compiler flag to generate shared objects directly from archives.
18894 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18895
18896 # Compiler flag to generate thread-safe objects.
18897 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18898
18899 # Library versioning type.
18900 version_type=$version_type
18901
18902 # Format of library name prefix.
18903 libname_spec=$lt_libname_spec
18904
18905 # List of archive names.  First name is the real one, the rest are links.
18906 # The last name is the one that the linker finds with -lNAME.
18907 library_names_spec=$lt_library_names_spec
18908
18909 # The coded name of the library, if different from the real name.
18910 soname_spec=$lt_soname_spec
18911
18912 # Commands used to build and install an old-style archive.
18913 RANLIB=$lt_RANLIB
18914 old_archive_cmds=$lt_old_archive_cmds_RC
18915 old_postinstall_cmds=$lt_old_postinstall_cmds
18916 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18917
18918 # Create an old-style archive from a shared archive.
18919 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18920
18921 # Create a temporary old-style archive to link instead of a shared archive.
18922 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18923
18924 # Commands used to build and install a shared archive.
18925 archive_cmds=$lt_archive_cmds_RC
18926 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18927 postinstall_cmds=$lt_postinstall_cmds
18928 postuninstall_cmds=$lt_postuninstall_cmds
18929
18930 # Commands used to build a loadable module (assumed same as above if empty)
18931 module_cmds=$lt_module_cmds_RC
18932 module_expsym_cmds=$lt_module_expsym_cmds_RC
18933
18934 # Commands to strip libraries.
18935 old_striplib=$lt_old_striplib
18936 striplib=$lt_striplib
18937
18938 # Dependencies to place before the objects being linked to create a
18939 # shared library.
18940 predep_objects=$lt_predep_objects_RC
18941
18942 # Dependencies to place after the objects being linked to create a
18943 # shared library.
18944 postdep_objects=$lt_postdep_objects_RC
18945
18946 # Dependencies to place before the objects being linked to create a
18947 # shared library.
18948 predeps=$lt_predeps_RC
18949
18950 # Dependencies to place after the objects being linked to create a
18951 # shared library.
18952 postdeps=$lt_postdeps_RC
18953
18954 # The library search path used internally by the compiler when linking
18955 # a shared library.
18956 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18957
18958 # Method to check whether dependent libraries are shared objects.
18959 deplibs_check_method=$lt_deplibs_check_method
18960
18961 # Command to use when deplibs_check_method == file_magic.
18962 file_magic_cmd=$lt_file_magic_cmd
18963
18964 # Flag that allows shared libraries with undefined symbols to be built.
18965 allow_undefined_flag=$lt_allow_undefined_flag_RC
18966
18967 # Flag that forces no undefined symbols.
18968 no_undefined_flag=$lt_no_undefined_flag_RC
18969
18970 # Commands used to finish a libtool library installation in a directory.
18971 finish_cmds=$lt_finish_cmds
18972
18973 # Same as above, but a single script fragment to be evaled but not shown.
18974 finish_eval=$lt_finish_eval
18975
18976 # Take the output of nm and produce a listing of raw symbols and C names.
18977 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18978
18979 # Transform the output of nm in a proper C declaration
18980 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18981
18982 # Transform the output of nm in a C name address pair
18983 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18984
18985 # This is the shared library runtime path variable.
18986 runpath_var=$runpath_var
18987
18988 # This is the shared library path variable.
18989 shlibpath_var=$shlibpath_var
18990
18991 # Is shlibpath searched before the hard-coded library search path?
18992 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18993
18994 # How to hardcode a shared library path into an executable.
18995 hardcode_action=$hardcode_action_RC
18996
18997 # Whether we should hardcode library paths into libraries.
18998 hardcode_into_libs=$hardcode_into_libs
18999
19000 # Flag to hardcode \$libdir into a binary during linking.
19001 # This must work even if \$libdir does not exist.
19002 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19003
19004 # If ld is used when linking, flag to hardcode \$libdir into
19005 # a binary during linking. This must work even if \$libdir does
19006 # not exist.
19007 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19008
19009 # Whether we need a single -rpath flag with a separated argument.
19010 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19011
19012 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19013 # resulting binary.
19014 hardcode_direct=$hardcode_direct_RC
19015
19016 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19017 # resulting binary.
19018 hardcode_minus_L=$hardcode_minus_L_RC
19019
19020 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19021 # the resulting binary.
19022 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19023
19024 # Set to yes if building a shared library automatically hardcodes DIR into the library
19025 # and all subsequent libraries and executables linked against it.
19026 hardcode_automatic=$hardcode_automatic_RC
19027
19028 # Variables whose values should be saved in libtool wrapper scripts and
19029 # restored at relink time.
19030 variables_saved_for_relink="$variables_saved_for_relink"
19031
19032 # Whether libtool must link a program against all its dependency libraries.
19033 link_all_deplibs=$link_all_deplibs_RC
19034
19035 # Compile-time system search path for libraries
19036 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19037
19038 # Run-time system search path for libraries
19039 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19040
19041 # Fix the shell variable \$srcfile for the compiler.
19042 fix_srcfile_path="$fix_srcfile_path_RC"
19043
19044 # Set to yes if exported symbols are required.
19045 always_export_symbols=$always_export_symbols_RC
19046
19047 # The commands to list exported symbols.
19048 export_symbols_cmds=$lt_export_symbols_cmds_RC
19049
19050 # The commands to extract the exported symbol list from a shared archive.
19051 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19052
19053 # Symbols that should not be listed in the preloaded symbols.
19054 exclude_expsyms=$lt_exclude_expsyms_RC
19055
19056 # Symbols that must always be exported.
19057 include_expsyms=$lt_include_expsyms_RC
19058
19059 # ### END LIBTOOL TAG CONFIG: $tagname
19060
19061 __EOF__
19062
19063
19064 else
19065   # If there is no Makefile yet, we rely on a make rule to execute
19066   # `config.status --recheck' to rerun these tests and create the
19067   # libtool script then.
19068   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19069   if test -f "$ltmain_in"; then
19070     test -f Makefile && make "$ltmain"
19071   fi
19072 fi
19073
19074
19075 ac_ext=c
19076 ac_cpp='$CPP $CPPFLAGS'
19077 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19078 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19079 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19080
19081 CC="$lt_save_CC"
19082
19083         ;;
19084
19085       *)
19086         { { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19087 $as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19088    { (exit 1); exit 1; }; }
19089         ;;
19090       esac
19091
19092       # Append the new tag name to the list of available tags.
19093       if test -n "$tagname" ; then
19094       available_tags="$available_tags $tagname"
19095     fi
19096     fi
19097   done
19098   IFS="$lt_save_ifs"
19099
19100   # Now substitute the updated list of available tags.
19101   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19102     mv "${ofile}T" "$ofile"
19103     chmod +x "$ofile"
19104   else
19105     rm -f "${ofile}T"
19106     { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19107 $as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19108    { (exit 1); exit 1; }; }
19109   fi
19110 fi
19111
19112
19113
19114 # This can be used to rebuild libtool when needed
19115 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19116
19117 # Always use our own libtool.
19118 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19119
19120 # Prevent multiple expansion
19121
19122
19123
19124
19125
19126
19127
19128
19129
19130
19131
19132
19133
19134
19135
19136
19137
19138
19139
19140
19141 #  AC_CHECK_PROGS(LIBTOOL, glibtool libtool, libtool, \
19142 #       /usr/local/bin:/opt/bin:/sw/bin:/usr/bin:/bin)
19143
19144 # Settings for optional paths
19145
19146 # Check whether --with-site_includes was given.
19147 if test "${with_site_includes+set}" = set; then
19148   withval=$with_site_includes; for dir in `echo "$with_site_includes"|sed 's/:/ /'`
19149 do
19150     SITE_INCLUDES_CFLAGS="$SITE_INCLUDES_CFLAGS -I$dir"
19151 done
19152 CFLAGS=`echo "$SITE_INCLUDES_CFLAGS $CFLAGS"|sed 's/^  *//'`
19153
19154 else
19155   if test -f /sw/include/db3/db.h; then
19156         CFLAGS="-I/sw/include/db3 $CFLAGS"
19157 elif test -f /sw/include/db4/db.h; then
19158         CFLAGS="-I/sw/include/db4 $CFLAGS"
19159 fi
19160
19161 fi
19162
19163
19164
19165 # Check whether --with-site_libraries was given.
19166 if test "${with_site_libraries+set}" = set; then
19167   withval=$with_site_libraries; for dir in `echo "$with_site_libraries"|sed 's/:/ /'`
19168 do
19169     SITE_LIBS="$SITE_LIBS -L$dir"
19170 done
19171 LIBS=`echo "$SITE_LIBS $LIBS"|sed 's/^  *//'`
19172
19173 fi
19174
19175
19176 # Checks for libraries.
19177
19178 { $as_echo "$as_me:$LINENO: checking for concord_open_ds in -lconcord" >&5
19179 $as_echo_n "checking for concord_open_ds in -lconcord... " >&6; }
19180 if test "${ac_cv_lib_concord_concord_open_ds+set}" = set; then
19181   $as_echo_n "(cached) " >&6
19182 else
19183   ac_check_lib_save_LIBS=$LIBS
19184 LIBS="-lconcord  $LIBS"
19185 cat >conftest.$ac_ext <<_ACEOF
19186 /* confdefs.h.  */
19187 _ACEOF
19188 cat confdefs.h >>conftest.$ac_ext
19189 cat >>conftest.$ac_ext <<_ACEOF
19190 /* end confdefs.h.  */
19191
19192 /* Override any GCC internal prototype to avoid an error.
19193    Use char because int might match the return type of a GCC
19194    builtin and then its argument prototype would still apply.  */
19195 #ifdef __cplusplus
19196 extern "C"
19197 #endif
19198 char concord_open_ds ();
19199 int
19200 main ()
19201 {
19202 return concord_open_ds ();
19203   ;
19204   return 0;
19205 }
19206 _ACEOF
19207 rm -f conftest.$ac_objext conftest$ac_exeext
19208 if { (ac_try="$ac_link"
19209 case "(($ac_try" in
19210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19211   *) ac_try_echo=$ac_try;;
19212 esac
19213 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19214 $as_echo "$ac_try_echo") >&5
19215   (eval "$ac_link") 2>conftest.er1
19216   ac_status=$?
19217   grep -v '^ *+' conftest.er1 >conftest.err
19218   rm -f conftest.er1
19219   cat conftest.err >&5
19220   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19221   (exit $ac_status); } && {
19222          test -z "$ac_c_werror_flag" ||
19223          test ! -s conftest.err
19224        } && test -s conftest$ac_exeext && {
19225          test "$cross_compiling" = yes ||
19226          $as_test_x conftest$ac_exeext
19227        }; then
19228   ac_cv_lib_concord_concord_open_ds=yes
19229 else
19230   $as_echo "$as_me: failed program was:" >&5
19231 sed 's/^/| /' conftest.$ac_ext >&5
19232
19233         ac_cv_lib_concord_concord_open_ds=no
19234 fi
19235
19236 rm -rf conftest.dSYM
19237 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19238       conftest$ac_exeext conftest.$ac_ext
19239 LIBS=$ac_check_lib_save_LIBS
19240 fi
19241 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_concord_concord_open_ds" >&5
19242 $as_echo "$ac_cv_lib_concord_concord_open_ds" >&6; }
19243 if test "x$ac_cv_lib_concord_concord_open_ds" = x""yes; then
19244   cat >>confdefs.h <<_ACEOF
19245 #define HAVE_LIBCONCORD 1
19246 _ACEOF
19247
19248   LIBS="-lconcord $LIBS"
19249
19250 else
19251   { { $as_echo "$as_me:$LINENO: error: libconcord is not found." >&5
19252 $as_echo "$as_me: error: libconcord is not found." >&2;}
19253    { (exit 1); exit 1; }; }
19254 fi
19255
19256
19257 # Checks for header files.
19258
19259 # Checks for typedefs, structures, and compiler characteristics.
19260 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19261 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
19262 if test "${ac_cv_c_const+set}" = set; then
19263   $as_echo_n "(cached) " >&6
19264 else
19265   cat >conftest.$ac_ext <<_ACEOF
19266 /* confdefs.h.  */
19267 _ACEOF
19268 cat confdefs.h >>conftest.$ac_ext
19269 cat >>conftest.$ac_ext <<_ACEOF
19270 /* end confdefs.h.  */
19271
19272 int
19273 main ()
19274 {
19275 /* FIXME: Include the comments suggested by Paul. */
19276 #ifndef __cplusplus
19277   /* Ultrix mips cc rejects this.  */
19278   typedef int charset[2];
19279   const charset cs;
19280   /* SunOS 4.1.1 cc rejects this.  */
19281   char const *const *pcpcc;
19282   char **ppc;
19283   /* NEC SVR4.0.2 mips cc rejects this.  */
19284   struct point {int x, y;};
19285   static struct point const zero = {0,0};
19286   /* AIX XL C 1.02.0.0 rejects this.
19287      It does not let you subtract one const X* pointer from another in
19288      an arm of an if-expression whose if-part is not a constant
19289      expression */
19290   const char *g = "string";
19291   pcpcc = &g + (g ? g-g : 0);
19292   /* HPUX 7.0 cc rejects these. */
19293   ++pcpcc;
19294   ppc = (char**) pcpcc;
19295   pcpcc = (char const *const *) ppc;
19296   { /* SCO 3.2v4 cc rejects this.  */
19297     char *t;
19298     char const *s = 0 ? (char *) 0 : (char const *) 0;
19299
19300     *t++ = 0;
19301     if (s) return 0;
19302   }
19303   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
19304     int x[] = {25, 17};
19305     const int *foo = &x[0];
19306     ++foo;
19307   }
19308   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19309     typedef const int *iptr;
19310     iptr p = 0;
19311     ++p;
19312   }
19313   { /* AIX XL C 1.02.0.0 rejects this saying
19314        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19315     struct s { int j; const int *ap[3]; };
19316     struct s *b; b->j = 5;
19317   }
19318   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19319     const int foo = 10;
19320     if (!foo) return 0;
19321   }
19322   return !cs[0] && !zero.x;
19323 #endif
19324
19325   ;
19326   return 0;
19327 }
19328 _ACEOF
19329 rm -f conftest.$ac_objext
19330 if { (ac_try="$ac_compile"
19331 case "(($ac_try" in
19332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19333   *) ac_try_echo=$ac_try;;
19334 esac
19335 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19336 $as_echo "$ac_try_echo") >&5
19337   (eval "$ac_compile") 2>conftest.er1
19338   ac_status=$?
19339   grep -v '^ *+' conftest.er1 >conftest.err
19340   rm -f conftest.er1
19341   cat conftest.err >&5
19342   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19343   (exit $ac_status); } && {
19344          test -z "$ac_c_werror_flag" ||
19345          test ! -s conftest.err
19346        } && test -s conftest.$ac_objext; then
19347   ac_cv_c_const=yes
19348 else
19349   $as_echo "$as_me: failed program was:" >&5
19350 sed 's/^/| /' conftest.$ac_ext >&5
19351
19352         ac_cv_c_const=no
19353 fi
19354
19355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19356 fi
19357 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19358 $as_echo "$ac_cv_c_const" >&6; }
19359 if test $ac_cv_c_const = no; then
19360
19361 cat >>confdefs.h <<\_ACEOF
19362 #define const /**/
19363 _ACEOF
19364
19365 fi
19366
19367 { $as_echo "$as_me:$LINENO: checking for inline" >&5
19368 $as_echo_n "checking for inline... " >&6; }
19369 if test "${ac_cv_c_inline+set}" = set; then
19370   $as_echo_n "(cached) " >&6
19371 else
19372   ac_cv_c_inline=no
19373 for ac_kw in inline __inline__ __inline; do
19374   cat >conftest.$ac_ext <<_ACEOF
19375 /* confdefs.h.  */
19376 _ACEOF
19377 cat confdefs.h >>conftest.$ac_ext
19378 cat >>conftest.$ac_ext <<_ACEOF
19379 /* end confdefs.h.  */
19380 #ifndef __cplusplus
19381 typedef int foo_t;
19382 static $ac_kw foo_t static_foo () {return 0; }
19383 $ac_kw foo_t foo () {return 0; }
19384 #endif
19385
19386 _ACEOF
19387 rm -f conftest.$ac_objext
19388 if { (ac_try="$ac_compile"
19389 case "(($ac_try" in
19390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19391   *) ac_try_echo=$ac_try;;
19392 esac
19393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19394 $as_echo "$ac_try_echo") >&5
19395   (eval "$ac_compile") 2>conftest.er1
19396   ac_status=$?
19397   grep -v '^ *+' conftest.er1 >conftest.err
19398   rm -f conftest.er1
19399   cat conftest.err >&5
19400   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19401   (exit $ac_status); } && {
19402          test -z "$ac_c_werror_flag" ||
19403          test ! -s conftest.err
19404        } && test -s conftest.$ac_objext; then
19405   ac_cv_c_inline=$ac_kw
19406 else
19407   $as_echo "$as_me: failed program was:" >&5
19408 sed 's/^/| /' conftest.$ac_ext >&5
19409
19410
19411 fi
19412
19413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19414   test "$ac_cv_c_inline" != no && break
19415 done
19416
19417 fi
19418 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
19419 $as_echo "$ac_cv_c_inline" >&6; }
19420
19421
19422 case $ac_cv_c_inline in
19423   inline | yes) ;;
19424   *)
19425     case $ac_cv_c_inline in
19426       no) ac_val=;;
19427       *) ac_val=$ac_cv_c_inline;;
19428     esac
19429     cat >>confdefs.h <<_ACEOF
19430 #ifndef __cplusplus
19431 #define inline $ac_val
19432 #endif
19433 _ACEOF
19434     ;;
19435 esac
19436
19437
19438 # Checks for library functions.
19439 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19440 # for constant arguments.  Useless!
19441 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
19442 $as_echo_n "checking for working alloca.h... " >&6; }
19443 if test "${ac_cv_working_alloca_h+set}" = set; then
19444   $as_echo_n "(cached) " >&6
19445 else
19446   cat >conftest.$ac_ext <<_ACEOF
19447 /* confdefs.h.  */
19448 _ACEOF
19449 cat confdefs.h >>conftest.$ac_ext
19450 cat >>conftest.$ac_ext <<_ACEOF
19451 /* end confdefs.h.  */
19452 #include <alloca.h>
19453 int
19454 main ()
19455 {
19456 char *p = (char *) alloca (2 * sizeof (int));
19457                           if (p) return 0;
19458   ;
19459   return 0;
19460 }
19461 _ACEOF
19462 rm -f conftest.$ac_objext conftest$ac_exeext
19463 if { (ac_try="$ac_link"
19464 case "(($ac_try" in
19465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19466   *) ac_try_echo=$ac_try;;
19467 esac
19468 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19469 $as_echo "$ac_try_echo") >&5
19470   (eval "$ac_link") 2>conftest.er1
19471   ac_status=$?
19472   grep -v '^ *+' conftest.er1 >conftest.err
19473   rm -f conftest.er1
19474   cat conftest.err >&5
19475   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19476   (exit $ac_status); } && {
19477          test -z "$ac_c_werror_flag" ||
19478          test ! -s conftest.err
19479        } && test -s conftest$ac_exeext && {
19480          test "$cross_compiling" = yes ||
19481          $as_test_x conftest$ac_exeext
19482        }; then
19483   ac_cv_working_alloca_h=yes
19484 else
19485   $as_echo "$as_me: failed program was:" >&5
19486 sed 's/^/| /' conftest.$ac_ext >&5
19487
19488         ac_cv_working_alloca_h=no
19489 fi
19490
19491 rm -rf conftest.dSYM
19492 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19493       conftest$ac_exeext conftest.$ac_ext
19494 fi
19495 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19496 $as_echo "$ac_cv_working_alloca_h" >&6; }
19497 if test $ac_cv_working_alloca_h = yes; then
19498
19499 cat >>confdefs.h <<\_ACEOF
19500 #define HAVE_ALLOCA_H 1
19501 _ACEOF
19502
19503 fi
19504
19505 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
19506 $as_echo_n "checking for alloca... " >&6; }
19507 if test "${ac_cv_func_alloca_works+set}" = set; then
19508   $as_echo_n "(cached) " >&6
19509 else
19510   cat >conftest.$ac_ext <<_ACEOF
19511 /* confdefs.h.  */
19512 _ACEOF
19513 cat confdefs.h >>conftest.$ac_ext
19514 cat >>conftest.$ac_ext <<_ACEOF
19515 /* end confdefs.h.  */
19516 #ifdef __GNUC__
19517 # define alloca __builtin_alloca
19518 #else
19519 # ifdef _MSC_VER
19520 #  include <malloc.h>
19521 #  define alloca _alloca
19522 # else
19523 #  ifdef HAVE_ALLOCA_H
19524 #   include <alloca.h>
19525 #  else
19526 #   ifdef _AIX
19527  #pragma alloca
19528 #   else
19529 #    ifndef alloca /* predefined by HP cc +Olibcalls */
19530 char *alloca ();
19531 #    endif
19532 #   endif
19533 #  endif
19534 # endif
19535 #endif
19536
19537 int
19538 main ()
19539 {
19540 char *p = (char *) alloca (1);
19541                                     if (p) return 0;
19542   ;
19543   return 0;
19544 }
19545 _ACEOF
19546 rm -f conftest.$ac_objext conftest$ac_exeext
19547 if { (ac_try="$ac_link"
19548 case "(($ac_try" in
19549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19550   *) ac_try_echo=$ac_try;;
19551 esac
19552 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19553 $as_echo "$ac_try_echo") >&5
19554   (eval "$ac_link") 2>conftest.er1
19555   ac_status=$?
19556   grep -v '^ *+' conftest.er1 >conftest.err
19557   rm -f conftest.er1
19558   cat conftest.err >&5
19559   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19560   (exit $ac_status); } && {
19561          test -z "$ac_c_werror_flag" ||
19562          test ! -s conftest.err
19563        } && test -s conftest$ac_exeext && {
19564          test "$cross_compiling" = yes ||
19565          $as_test_x conftest$ac_exeext
19566        }; then
19567   ac_cv_func_alloca_works=yes
19568 else
19569   $as_echo "$as_me: failed program was:" >&5
19570 sed 's/^/| /' conftest.$ac_ext >&5
19571
19572         ac_cv_func_alloca_works=no
19573 fi
19574
19575 rm -rf conftest.dSYM
19576 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19577       conftest$ac_exeext conftest.$ac_ext
19578 fi
19579 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19580 $as_echo "$ac_cv_func_alloca_works" >&6; }
19581
19582 if test $ac_cv_func_alloca_works = yes; then
19583
19584 cat >>confdefs.h <<\_ACEOF
19585 #define HAVE_ALLOCA 1
19586 _ACEOF
19587
19588 else
19589   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19590 # that cause trouble.  Some versions do not even contain alloca or
19591 # contain a buggy version.  If you still want to use their alloca,
19592 # use ar to extract alloca.o from them instead of compiling alloca.c.
19593
19594 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19595
19596 cat >>confdefs.h <<\_ACEOF
19597 #define C_ALLOCA 1
19598 _ACEOF
19599
19600
19601 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19602 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
19603 if test "${ac_cv_os_cray+set}" = set; then
19604   $as_echo_n "(cached) " >&6
19605 else
19606   cat >conftest.$ac_ext <<_ACEOF
19607 /* confdefs.h.  */
19608 _ACEOF
19609 cat confdefs.h >>conftest.$ac_ext
19610 cat >>conftest.$ac_ext <<_ACEOF
19611 /* end confdefs.h.  */
19612 #if defined CRAY && ! defined CRAY2
19613 webecray
19614 #else
19615 wenotbecray
19616 #endif
19617
19618 _ACEOF
19619 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19620   $EGREP "webecray" >/dev/null 2>&1; then
19621   ac_cv_os_cray=yes
19622 else
19623   ac_cv_os_cray=no
19624 fi
19625 rm -f conftest*
19626
19627 fi
19628 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19629 $as_echo "$ac_cv_os_cray" >&6; }
19630 if test $ac_cv_os_cray = yes; then
19631   for ac_func in _getb67 GETB67 getb67; do
19632     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19633 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19634 $as_echo_n "checking for $ac_func... " >&6; }
19635 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19636   $as_echo_n "(cached) " >&6
19637 else
19638   cat >conftest.$ac_ext <<_ACEOF
19639 /* confdefs.h.  */
19640 _ACEOF
19641 cat confdefs.h >>conftest.$ac_ext
19642 cat >>conftest.$ac_ext <<_ACEOF
19643 /* end confdefs.h.  */
19644 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19645    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19646 #define $ac_func innocuous_$ac_func
19647
19648 /* System header to define __stub macros and hopefully few prototypes,
19649     which can conflict with char $ac_func (); below.
19650     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19651     <limits.h> exists even on freestanding compilers.  */
19652
19653 #ifdef __STDC__
19654 # include <limits.h>
19655 #else
19656 # include <assert.h>
19657 #endif
19658
19659 #undef $ac_func
19660
19661 /* Override any GCC internal prototype to avoid an error.
19662    Use char because int might match the return type of a GCC
19663    builtin and then its argument prototype would still apply.  */
19664 #ifdef __cplusplus
19665 extern "C"
19666 #endif
19667 char $ac_func ();
19668 /* The GNU C library defines this for functions which it implements
19669     to always fail with ENOSYS.  Some functions are actually named
19670     something starting with __ and the normal name is an alias.  */
19671 #if defined __stub_$ac_func || defined __stub___$ac_func
19672 choke me
19673 #endif
19674
19675 int
19676 main ()
19677 {
19678 return $ac_func ();
19679   ;
19680   return 0;
19681 }
19682 _ACEOF
19683 rm -f conftest.$ac_objext conftest$ac_exeext
19684 if { (ac_try="$ac_link"
19685 case "(($ac_try" in
19686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19687   *) ac_try_echo=$ac_try;;
19688 esac
19689 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19690 $as_echo "$ac_try_echo") >&5
19691   (eval "$ac_link") 2>conftest.er1
19692   ac_status=$?
19693   grep -v '^ *+' conftest.er1 >conftest.err
19694   rm -f conftest.er1
19695   cat conftest.err >&5
19696   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19697   (exit $ac_status); } && {
19698          test -z "$ac_c_werror_flag" ||
19699          test ! -s conftest.err
19700        } && test -s conftest$ac_exeext && {
19701          test "$cross_compiling" = yes ||
19702          $as_test_x conftest$ac_exeext
19703        }; then
19704   eval "$as_ac_var=yes"
19705 else
19706   $as_echo "$as_me: failed program was:" >&5
19707 sed 's/^/| /' conftest.$ac_ext >&5
19708
19709         eval "$as_ac_var=no"
19710 fi
19711
19712 rm -rf conftest.dSYM
19713 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19714       conftest$ac_exeext conftest.$ac_ext
19715 fi
19716 ac_res=`eval 'as_val=${'$as_ac_var'}
19717                  $as_echo "$as_val"'`
19718                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19719 $as_echo "$ac_res" >&6; }
19720 as_val=`eval 'as_val=${'$as_ac_var'}
19721                  $as_echo "$as_val"'`
19722    if test "x$as_val" = x""yes; then
19723
19724 cat >>confdefs.h <<_ACEOF
19725 #define CRAY_STACKSEG_END $ac_func
19726 _ACEOF
19727
19728     break
19729 fi
19730
19731   done
19732 fi
19733
19734 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19735 $as_echo_n "checking stack direction for C alloca... " >&6; }
19736 if test "${ac_cv_c_stack_direction+set}" = set; then
19737   $as_echo_n "(cached) " >&6
19738 else
19739   if test "$cross_compiling" = yes; then
19740   ac_cv_c_stack_direction=0
19741 else
19742   cat >conftest.$ac_ext <<_ACEOF
19743 /* confdefs.h.  */
19744 _ACEOF
19745 cat confdefs.h >>conftest.$ac_ext
19746 cat >>conftest.$ac_ext <<_ACEOF
19747 /* end confdefs.h.  */
19748 $ac_includes_default
19749 int
19750 find_stack_direction ()
19751 {
19752   static char *addr = 0;
19753   auto char dummy;
19754   if (addr == 0)
19755     {
19756       addr = &dummy;
19757       return find_stack_direction ();
19758     }
19759   else
19760     return (&dummy > addr) ? 1 : -1;
19761 }
19762
19763 int
19764 main ()
19765 {
19766   return find_stack_direction () < 0;
19767 }
19768 _ACEOF
19769 rm -f conftest$ac_exeext
19770 if { (ac_try="$ac_link"
19771 case "(($ac_try" in
19772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19773   *) ac_try_echo=$ac_try;;
19774 esac
19775 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19776 $as_echo "$ac_try_echo") >&5
19777   (eval "$ac_link") 2>&5
19778   ac_status=$?
19779   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19780   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19781   { (case "(($ac_try" in
19782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19783   *) ac_try_echo=$ac_try;;
19784 esac
19785 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19786 $as_echo "$ac_try_echo") >&5
19787   (eval "$ac_try") 2>&5
19788   ac_status=$?
19789   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19790   (exit $ac_status); }; }; then
19791   ac_cv_c_stack_direction=1
19792 else
19793   $as_echo "$as_me: program exited with status $ac_status" >&5
19794 $as_echo "$as_me: failed program was:" >&5
19795 sed 's/^/| /' conftest.$ac_ext >&5
19796
19797 ( exit $ac_status )
19798 ac_cv_c_stack_direction=-1
19799 fi
19800 rm -rf conftest.dSYM
19801 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19802 fi
19803
19804
19805 fi
19806 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19807 $as_echo "$ac_cv_c_stack_direction" >&6; }
19808
19809 cat >>confdefs.h <<_ACEOF
19810 #define STACK_DIRECTION $ac_cv_c_stack_direction
19811 _ACEOF
19812
19813
19814 fi
19815
19816
19817   if test "${ac_cv_header_minix_config_h+set}" = set; then
19818   { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
19819 $as_echo_n "checking for minix/config.h... " >&6; }
19820 if test "${ac_cv_header_minix_config_h+set}" = set; then
19821   $as_echo_n "(cached) " >&6
19822 fi
19823 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
19824 $as_echo "$ac_cv_header_minix_config_h" >&6; }
19825 else
19826   # Is the header compilable?
19827 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
19828 $as_echo_n "checking minix/config.h usability... " >&6; }
19829 cat >conftest.$ac_ext <<_ACEOF
19830 /* confdefs.h.  */
19831 _ACEOF
19832 cat confdefs.h >>conftest.$ac_ext
19833 cat >>conftest.$ac_ext <<_ACEOF
19834 /* end confdefs.h.  */
19835 $ac_includes_default
19836 #include <minix/config.h>
19837 _ACEOF
19838 rm -f conftest.$ac_objext
19839 if { (ac_try="$ac_compile"
19840 case "(($ac_try" in
19841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19842   *) ac_try_echo=$ac_try;;
19843 esac
19844 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19845 $as_echo "$ac_try_echo") >&5
19846   (eval "$ac_compile") 2>conftest.er1
19847   ac_status=$?
19848   grep -v '^ *+' conftest.er1 >conftest.err
19849   rm -f conftest.er1
19850   cat conftest.err >&5
19851   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19852   (exit $ac_status); } && {
19853          test -z "$ac_c_werror_flag" ||
19854          test ! -s conftest.err
19855        } && test -s conftest.$ac_objext; then
19856   ac_header_compiler=yes
19857 else
19858   $as_echo "$as_me: failed program was:" >&5
19859 sed 's/^/| /' conftest.$ac_ext >&5
19860
19861         ac_header_compiler=no
19862 fi
19863
19864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19865 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19866 $as_echo "$ac_header_compiler" >&6; }
19867
19868 # Is the header present?
19869 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
19870 $as_echo_n "checking minix/config.h presence... " >&6; }
19871 cat >conftest.$ac_ext <<_ACEOF
19872 /* confdefs.h.  */
19873 _ACEOF
19874 cat confdefs.h >>conftest.$ac_ext
19875 cat >>conftest.$ac_ext <<_ACEOF
19876 /* end confdefs.h.  */
19877 #include <minix/config.h>
19878 _ACEOF
19879 if { (ac_try="$ac_cpp conftest.$ac_ext"
19880 case "(($ac_try" in
19881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19882   *) ac_try_echo=$ac_try;;
19883 esac
19884 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19885 $as_echo "$ac_try_echo") >&5
19886   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19887   ac_status=$?
19888   grep -v '^ *+' conftest.er1 >conftest.err
19889   rm -f conftest.er1
19890   cat conftest.err >&5
19891   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19892   (exit $ac_status); } >/dev/null && {
19893          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19894          test ! -s conftest.err
19895        }; then
19896   ac_header_preproc=yes
19897 else
19898   $as_echo "$as_me: failed program was:" >&5
19899 sed 's/^/| /' conftest.$ac_ext >&5
19900
19901   ac_header_preproc=no
19902 fi
19903
19904 rm -f conftest.err conftest.$ac_ext
19905 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19906 $as_echo "$ac_header_preproc" >&6; }
19907
19908 # So?  What about this header?
19909 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19910   yes:no: )
19911     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
19912 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19913     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
19914 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
19915     ac_header_preproc=yes
19916     ;;
19917   no:yes:* )
19918     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
19919 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
19920     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
19921 $as_echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
19922     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
19923 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
19924     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
19925 $as_echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
19926     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
19927 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
19928     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
19929 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
19930     ( cat <<\_ASBOX
19931 ## -------------------------------- ##
19932 ## Report this to chise-en@m17n.org ##
19933 ## -------------------------------- ##
19934 _ASBOX
19935      ) | sed "s/^/$as_me: WARNING:     /" >&2
19936     ;;
19937 esac
19938 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
19939 $as_echo_n "checking for minix/config.h... " >&6; }
19940 if test "${ac_cv_header_minix_config_h+set}" = set; then
19941   $as_echo_n "(cached) " >&6
19942 else
19943   ac_cv_header_minix_config_h=$ac_header_preproc
19944 fi
19945 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
19946 $as_echo "$ac_cv_header_minix_config_h" >&6; }
19947
19948 fi
19949 if test "x$ac_cv_header_minix_config_h" = x""yes; then
19950   MINIX=yes
19951 else
19952   MINIX=
19953 fi
19954
19955
19956   if test "$MINIX" = yes; then
19957
19958 cat >>confdefs.h <<\_ACEOF
19959 #define _POSIX_SOURCE 1
19960 _ACEOF
19961
19962
19963 cat >>confdefs.h <<\_ACEOF
19964 #define _POSIX_1_SOURCE 2
19965 _ACEOF
19966
19967
19968 cat >>confdefs.h <<\_ACEOF
19969 #define _MINIX 1
19970 _ACEOF
19971
19972   fi
19973
19974
19975
19976   { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
19977 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
19978 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
19979   $as_echo_n "(cached) " >&6
19980 else
19981   cat >conftest.$ac_ext <<_ACEOF
19982 /* confdefs.h.  */
19983 _ACEOF
19984 cat confdefs.h >>conftest.$ac_ext
19985 cat >>conftest.$ac_ext <<_ACEOF
19986 /* end confdefs.h.  */
19987
19988 #         define __EXTENSIONS__ 1
19989           $ac_includes_default
19990 int
19991 main ()
19992 {
19993
19994   ;
19995   return 0;
19996 }
19997 _ACEOF
19998 rm -f conftest.$ac_objext
19999 if { (ac_try="$ac_compile"
20000 case "(($ac_try" in
20001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20002   *) ac_try_echo=$ac_try;;
20003 esac
20004 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20005 $as_echo "$ac_try_echo") >&5
20006   (eval "$ac_compile") 2>conftest.er1
20007   ac_status=$?
20008   grep -v '^ *+' conftest.er1 >conftest.err
20009   rm -f conftest.er1
20010   cat conftest.err >&5
20011   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20012   (exit $ac_status); } && {
20013          test -z "$ac_c_werror_flag" ||
20014          test ! -s conftest.err
20015        } && test -s conftest.$ac_objext; then
20016   ac_cv_safe_to_define___extensions__=yes
20017 else
20018   $as_echo "$as_me: failed program was:" >&5
20019 sed 's/^/| /' conftest.$ac_ext >&5
20020
20021         ac_cv_safe_to_define___extensions__=no
20022 fi
20023
20024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20025 fi
20026 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
20027 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
20028   test $ac_cv_safe_to_define___extensions__ = yes &&
20029     cat >>confdefs.h <<\_ACEOF
20030 #define __EXTENSIONS__ 1
20031 _ACEOF
20032
20033   cat >>confdefs.h <<\_ACEOF
20034 #define _ALL_SOURCE 1
20035 _ACEOF
20036
20037   cat >>confdefs.h <<\_ACEOF
20038 #define _GNU_SOURCE 1
20039 _ACEOF
20040
20041   cat >>confdefs.h <<\_ACEOF
20042 #define _POSIX_PTHREAD_SEMANTICS 1
20043 _ACEOF
20044
20045   cat >>confdefs.h <<\_ACEOF
20046 #define _TANDEM_SOURCE 1
20047 _ACEOF
20048
20049
20050 { $as_echo "$as_me:$LINENO: checking for working strnlen" >&5
20051 $as_echo_n "checking for working strnlen... " >&6; }
20052 if test "${ac_cv_func_strnlen_working+set}" = set; then
20053   $as_echo_n "(cached) " >&6
20054 else
20055   if test "$cross_compiling" = yes; then
20056   ac_cv_func_strnlen_working=no
20057 else
20058   cat >conftest.$ac_ext <<_ACEOF
20059 /* confdefs.h.  */
20060 _ACEOF
20061 cat confdefs.h >>conftest.$ac_ext
20062 cat >>conftest.$ac_ext <<_ACEOF
20063 /* end confdefs.h.  */
20064 $ac_includes_default
20065 int
20066 main ()
20067 {
20068
20069 #define S "foobar"
20070 #define S_LEN (sizeof S - 1)
20071
20072   /* At least one implementation is buggy: that of AIX 4.3 would
20073      give strnlen (S, 1) == 3.  */
20074
20075   int i;
20076   for (i = 0; i < S_LEN + 1; ++i)
20077     {
20078       int expected = i <= S_LEN ? i : S_LEN;
20079       if (strnlen (S, i) != expected)
20080         return 1;
20081     }
20082   return 0;
20083
20084   ;
20085   return 0;
20086 }
20087 _ACEOF
20088 rm -f conftest$ac_exeext
20089 if { (ac_try="$ac_link"
20090 case "(($ac_try" in
20091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20092   *) ac_try_echo=$ac_try;;
20093 esac
20094 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20095 $as_echo "$ac_try_echo") >&5
20096   (eval "$ac_link") 2>&5
20097   ac_status=$?
20098   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20099   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20100   { (case "(($ac_try" in
20101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20102   *) ac_try_echo=$ac_try;;
20103 esac
20104 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20105 $as_echo "$ac_try_echo") >&5
20106   (eval "$ac_try") 2>&5
20107   ac_status=$?
20108   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20109   (exit $ac_status); }; }; then
20110   ac_cv_func_strnlen_working=yes
20111 else
20112   $as_echo "$as_me: program exited with status $ac_status" >&5
20113 $as_echo "$as_me: failed program was:" >&5
20114 sed 's/^/| /' conftest.$ac_ext >&5
20115
20116 ( exit $ac_status )
20117 ac_cv_func_strnlen_working=no
20118 fi
20119 rm -rf conftest.dSYM
20120 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20121 fi
20122
20123
20124 fi
20125 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
20126 $as_echo "$ac_cv_func_strnlen_working" >&6; }
20127 test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in
20128   *" strnlen.$ac_objext "* ) ;;
20129   *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
20130  ;;
20131 esac
20132
20133
20134
20135
20136 for ac_func in strnlen
20137 do
20138 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20139 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20140 $as_echo_n "checking for $ac_func... " >&6; }
20141 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20142   $as_echo_n "(cached) " >&6
20143 else
20144   cat >conftest.$ac_ext <<_ACEOF
20145 /* confdefs.h.  */
20146 _ACEOF
20147 cat confdefs.h >>conftest.$ac_ext
20148 cat >>conftest.$ac_ext <<_ACEOF
20149 /* end confdefs.h.  */
20150 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20151    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20152 #define $ac_func innocuous_$ac_func
20153
20154 /* System header to define __stub macros and hopefully few prototypes,
20155     which can conflict with char $ac_func (); below.
20156     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20157     <limits.h> exists even on freestanding compilers.  */
20158
20159 #ifdef __STDC__
20160 # include <limits.h>
20161 #else
20162 # include <assert.h>
20163 #endif
20164
20165 #undef $ac_func
20166
20167 /* Override any GCC internal prototype to avoid an error.
20168    Use char because int might match the return type of a GCC
20169    builtin and then its argument prototype would still apply.  */
20170 #ifdef __cplusplus
20171 extern "C"
20172 #endif
20173 char $ac_func ();
20174 /* The GNU C library defines this for functions which it implements
20175     to always fail with ENOSYS.  Some functions are actually named
20176     something starting with __ and the normal name is an alias.  */
20177 #if defined __stub_$ac_func || defined __stub___$ac_func
20178 choke me
20179 #endif
20180
20181 int
20182 main ()
20183 {
20184 return $ac_func ();
20185   ;
20186   return 0;
20187 }
20188 _ACEOF
20189 rm -f conftest.$ac_objext conftest$ac_exeext
20190 if { (ac_try="$ac_link"
20191 case "(($ac_try" in
20192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20193   *) ac_try_echo=$ac_try;;
20194 esac
20195 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20196 $as_echo "$ac_try_echo") >&5
20197   (eval "$ac_link") 2>conftest.er1
20198   ac_status=$?
20199   grep -v '^ *+' conftest.er1 >conftest.err
20200   rm -f conftest.er1
20201   cat conftest.err >&5
20202   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20203   (exit $ac_status); } && {
20204          test -z "$ac_c_werror_flag" ||
20205          test ! -s conftest.err
20206        } && test -s conftest$ac_exeext && {
20207          test "$cross_compiling" = yes ||
20208          $as_test_x conftest$ac_exeext
20209        }; then
20210   eval "$as_ac_var=yes"
20211 else
20212   $as_echo "$as_me: failed program was:" >&5
20213 sed 's/^/| /' conftest.$ac_ext >&5
20214
20215         eval "$as_ac_var=no"
20216 fi
20217
20218 rm -rf conftest.dSYM
20219 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20220       conftest$ac_exeext conftest.$ac_ext
20221 fi
20222 ac_res=`eval 'as_val=${'$as_ac_var'}
20223                  $as_echo "$as_val"'`
20224                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20225 $as_echo "$ac_res" >&6; }
20226 as_val=`eval 'as_val=${'$as_ac_var'}
20227                  $as_echo "$as_val"'`
20228    if test "x$as_val" = x""yes; then
20229   cat >>confdefs.h <<_ACEOF
20230 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20231 _ACEOF
20232
20233 fi
20234 done
20235
20236
20237 ac_config_files="$ac_config_files Makefile"
20238
20239 cat >confcache <<\_ACEOF
20240 # This file is a shell script that caches the results of configure
20241 # tests run on this system so they can be shared between configure
20242 # scripts and configure runs, see configure's option --config-cache.
20243 # It is not useful on other systems.  If it contains results you don't
20244 # want to keep, you may remove or edit it.
20245 #
20246 # config.status only pays attention to the cache file if you give it
20247 # the --recheck option to rerun configure.
20248 #
20249 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20250 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20251 # following values.
20252
20253 _ACEOF
20254
20255 # The following way of writing the cache mishandles newlines in values,
20256 # but we know of no workaround that is simple, portable, and efficient.
20257 # So, we kill variables containing newlines.
20258 # Ultrix sh set writes to stderr and can't be redirected directly,
20259 # and sets the high bit in the cache file unless we assign to the vars.
20260 (
20261   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20262     eval ac_val=\$$ac_var
20263     case $ac_val in #(
20264     *${as_nl}*)
20265       case $ac_var in #(
20266       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
20267 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20268       esac
20269       case $ac_var in #(
20270       _ | IFS | as_nl) ;; #(
20271       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20272       *) $as_unset $ac_var ;;
20273       esac ;;
20274     esac
20275   done
20276
20277   (set) 2>&1 |
20278     case $as_nl`(ac_space=' '; set) 2>&1` in #(
20279     *${as_nl}ac_space=\ *)
20280       # `set' does not quote correctly, so add quotes (double-quote
20281       # substitution turns \\\\ into \\, and sed turns \\ into \).
20282       sed -n \
20283         "s/'/'\\\\''/g;
20284           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20285       ;; #(
20286     *)
20287       # `set' quotes correctly as required by POSIX, so do not add quotes.
20288       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20289       ;;
20290     esac |
20291     sort
20292 ) |
20293   sed '
20294      /^ac_cv_env_/b end
20295      t clear
20296      :clear
20297      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20298      t end
20299      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20300      :end' >>confcache
20301 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20302   if test -w "$cache_file"; then
20303     test "x$cache_file" != "x/dev/null" &&
20304       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
20305 $as_echo "$as_me: updating cache $cache_file" >&6;}
20306     cat confcache >$cache_file
20307   else
20308     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20309 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20310   fi
20311 fi
20312 rm -f confcache
20313
20314 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20315 # Let make expand exec_prefix.
20316 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20317
20318 DEFS=-DHAVE_CONFIG_H
20319
20320 ac_libobjs=
20321 ac_ltlibobjs=
20322 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20323   # 1. Remove the extension, and $U if already installed.
20324   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20325   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20326   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20327   #    will be set to the directory where LIBOBJS objects are built.
20328   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20329   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20330 done
20331 LIBOBJS=$ac_libobjs
20332
20333 LTLIBOBJS=$ac_ltlibobjs
20334
20335
20336
20337 : ${CONFIG_STATUS=./config.status}
20338 ac_write_fail=0
20339 ac_clean_files_save=$ac_clean_files
20340 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20341 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20342 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20343 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20344 #! $SHELL
20345 # Generated by $as_me.
20346 # Run this file to recreate the current configuration.
20347 # Compiler output produced by configure, useful for debugging
20348 # configure, is in config.log if it exists.
20349
20350 debug=false
20351 ac_cs_recheck=false
20352 ac_cs_silent=false
20353 SHELL=\${CONFIG_SHELL-$SHELL}
20354 _ACEOF
20355
20356 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20357 ## --------------------- ##
20358 ## M4sh Initialization.  ##
20359 ## --------------------- ##
20360
20361 # Be more Bourne compatible
20362 DUALCASE=1; export DUALCASE # for MKS sh
20363 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20364   emulate sh
20365   NULLCMD=:
20366   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20367   # is contrary to our usage.  Disable this feature.
20368   alias -g '${1+"$@"}'='"$@"'
20369   setopt NO_GLOB_SUBST
20370 else
20371   case `(set -o) 2>/dev/null` in
20372   *posix*) set -o posix ;;
20373 esac
20374
20375 fi
20376
20377
20378
20379
20380 # PATH needs CR
20381 # Avoid depending upon Character Ranges.
20382 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20383 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20384 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20385 as_cr_digits='0123456789'
20386 as_cr_alnum=$as_cr_Letters$as_cr_digits
20387
20388 as_nl='
20389 '
20390 export as_nl
20391 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20392 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20393 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20394 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20395 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20396   as_echo='printf %s\n'
20397   as_echo_n='printf %s'
20398 else
20399   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20400     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20401     as_echo_n='/usr/ucb/echo -n'
20402   else
20403     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20404     as_echo_n_body='eval
20405       arg=$1;
20406       case $arg in
20407       *"$as_nl"*)
20408         expr "X$arg" : "X\\(.*\\)$as_nl";
20409         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20410       esac;
20411       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20412     '
20413     export as_echo_n_body
20414     as_echo_n='sh -c $as_echo_n_body as_echo'
20415   fi
20416   export as_echo_body
20417   as_echo='sh -c $as_echo_body as_echo'
20418 fi
20419
20420 # The user is always right.
20421 if test "${PATH_SEPARATOR+set}" != set; then
20422   PATH_SEPARATOR=:
20423   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20424     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20425       PATH_SEPARATOR=';'
20426   }
20427 fi
20428
20429 # Support unset when possible.
20430 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20431   as_unset=unset
20432 else
20433   as_unset=false
20434 fi
20435
20436
20437 # IFS
20438 # We need space, tab and new line, in precisely that order.  Quoting is
20439 # there to prevent editors from complaining about space-tab.
20440 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20441 # splitting by setting IFS to empty value.)
20442 IFS=" ""        $as_nl"
20443
20444 # Find who we are.  Look in the path if we contain no directory separator.
20445 case $0 in
20446   *[\\/]* ) as_myself=$0 ;;
20447   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20448 for as_dir in $PATH
20449 do
20450   IFS=$as_save_IFS
20451   test -z "$as_dir" && as_dir=.
20452   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20453 done
20454 IFS=$as_save_IFS
20455
20456      ;;
20457 esac
20458 # We did not find ourselves, most probably we were run as `sh COMMAND'
20459 # in which case we are not to be found in the path.
20460 if test "x$as_myself" = x; then
20461   as_myself=$0
20462 fi
20463 if test ! -f "$as_myself"; then
20464   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20465   { (exit 1); exit 1; }
20466 fi
20467
20468 # Work around bugs in pre-3.0 UWIN ksh.
20469 for as_var in ENV MAIL MAILPATH
20470 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20471 done
20472 PS1='$ '
20473 PS2='> '
20474 PS4='+ '
20475
20476 # NLS nuisances.
20477 LC_ALL=C
20478 export LC_ALL
20479 LANGUAGE=C
20480 export LANGUAGE
20481
20482 # Required to use basename.
20483 if expr a : '\(a\)' >/dev/null 2>&1 &&
20484    test "X`expr 00001 : '.*\(...\)'`" = X001; then
20485   as_expr=expr
20486 else
20487   as_expr=false
20488 fi
20489
20490 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20491   as_basename=basename
20492 else
20493   as_basename=false
20494 fi
20495
20496
20497 # Name of the executable.
20498 as_me=`$as_basename -- "$0" ||
20499 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20500          X"$0" : 'X\(//\)$' \| \
20501          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20502 $as_echo X/"$0" |
20503     sed '/^.*\/\([^/][^/]*\)\/*$/{
20504             s//\1/
20505             q
20506           }
20507           /^X\/\(\/\/\)$/{
20508             s//\1/
20509             q
20510           }
20511           /^X\/\(\/\).*/{
20512             s//\1/
20513             q
20514           }
20515           s/.*/./; q'`
20516
20517 # CDPATH.
20518 $as_unset CDPATH
20519
20520
20521
20522   as_lineno_1=$LINENO
20523   as_lineno_2=$LINENO
20524   test "x$as_lineno_1" != "x$as_lineno_2" &&
20525   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20526
20527   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20528   # uniformly replaced by the line number.  The first 'sed' inserts a
20529   # line-number line after each line using $LINENO; the second 'sed'
20530   # does the real work.  The second script uses 'N' to pair each
20531   # line-number line with the line containing $LINENO, and appends
20532   # trailing '-' during substitution so that $LINENO is not a special
20533   # case at line end.
20534   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20535   # scripts with optimization help from Paolo Bonzini.  Blame Lee
20536   # E. McMahon (1931-1989) for sed's syntax.  :-)
20537   sed -n '
20538     p
20539     /[$]LINENO/=
20540   ' <$as_myself |
20541     sed '
20542       s/[$]LINENO.*/&-/
20543       t lineno
20544       b
20545       :lineno
20546       N
20547       :loop
20548       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20549       t loop
20550       s/-\n.*//
20551     ' >$as_me.lineno &&
20552   chmod +x "$as_me.lineno" ||
20553     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20554    { (exit 1); exit 1; }; }
20555
20556   # Don't try to exec as it changes $[0], causing all sort of problems
20557   # (the dirname of $[0] is not the place where we might find the
20558   # original and so on.  Autoconf is especially sensitive to this).
20559   . "./$as_me.lineno"
20560   # Exit status is that of the last command.
20561   exit
20562 }
20563
20564
20565 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20566   as_dirname=dirname
20567 else
20568   as_dirname=false
20569 fi
20570
20571 ECHO_C= ECHO_N= ECHO_T=
20572 case `echo -n x` in
20573 -n*)
20574   case `echo 'x\c'` in
20575   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
20576   *)   ECHO_C='\c';;
20577   esac;;
20578 *)
20579   ECHO_N='-n';;
20580 esac
20581 if expr a : '\(a\)' >/dev/null 2>&1 &&
20582    test "X`expr 00001 : '.*\(...\)'`" = X001; then
20583   as_expr=expr
20584 else
20585   as_expr=false
20586 fi
20587
20588 rm -f conf$$ conf$$.exe conf$$.file
20589 if test -d conf$$.dir; then
20590   rm -f conf$$.dir/conf$$.file
20591 else
20592   rm -f conf$$.dir
20593   mkdir conf$$.dir 2>/dev/null
20594 fi
20595 if (echo >conf$$.file) 2>/dev/null; then
20596   if ln -s conf$$.file conf$$ 2>/dev/null; then
20597     as_ln_s='ln -s'
20598     # ... but there are two gotchas:
20599     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20600     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20601     # In both cases, we have to default to `cp -p'.
20602     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20603       as_ln_s='cp -p'
20604   elif ln conf$$.file conf$$ 2>/dev/null; then
20605     as_ln_s=ln
20606   else
20607     as_ln_s='cp -p'
20608   fi
20609 else
20610   as_ln_s='cp -p'
20611 fi
20612 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20613 rmdir conf$$.dir 2>/dev/null
20614
20615 if mkdir -p . 2>/dev/null; then
20616   as_mkdir_p=:
20617 else
20618   test -d ./-p && rmdir ./-p
20619   as_mkdir_p=false
20620 fi
20621
20622 if test -x / >/dev/null 2>&1; then
20623   as_test_x='test -x'
20624 else
20625   if ls -dL / >/dev/null 2>&1; then
20626     as_ls_L_option=L
20627   else
20628     as_ls_L_option=
20629   fi
20630   as_test_x='
20631     eval sh -c '\''
20632       if test -d "$1"; then
20633         test -d "$1/.";
20634       else
20635         case $1 in
20636         -*)set "./$1";;
20637         esac;
20638         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
20639         ???[sx]*):;;*)false;;esac;fi
20640     '\'' sh
20641   '
20642 fi
20643 as_executable_p=$as_test_x
20644
20645 # Sed expression to map a string onto a valid CPP name.
20646 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20647
20648 # Sed expression to map a string onto a valid variable name.
20649 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20650
20651
20652 exec 6>&1
20653
20654 # Save the log message, to keep $[0] and so on meaningful, and to
20655 # report actual input values of CONFIG_FILES etc. instead of their
20656 # values after options handling.
20657 ac_log="
20658 This file was extended by libchise $as_me 0.5.0, which was
20659 generated by GNU Autoconf 2.63.  Invocation command line was
20660
20661   CONFIG_FILES    = $CONFIG_FILES
20662   CONFIG_HEADERS  = $CONFIG_HEADERS
20663   CONFIG_LINKS    = $CONFIG_LINKS
20664   CONFIG_COMMANDS = $CONFIG_COMMANDS
20665   $ $0 $@
20666
20667 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20668 "
20669
20670 _ACEOF
20671
20672 case $ac_config_files in *"
20673 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20674 esac
20675
20676 case $ac_config_headers in *"
20677 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20678 esac
20679
20680
20681 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20682 # Files that config.status was made for.
20683 config_files="$ac_config_files"
20684 config_headers="$ac_config_headers"
20685
20686 _ACEOF
20687
20688 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20689 ac_cs_usage="\
20690 \`$as_me' instantiates files from templates according to the
20691 current configuration.
20692
20693 Usage: $0 [OPTION]... [FILE]...
20694
20695   -h, --help       print this help, then exit
20696   -V, --version    print version number and configuration settings, then exit
20697   -q, --quiet, --silent
20698                    do not print progress messages
20699   -d, --debug      don't remove temporary files
20700       --recheck    update $as_me by reconfiguring in the same conditions
20701       --file=FILE[:TEMPLATE]
20702                    instantiate the configuration file FILE
20703       --header=FILE[:TEMPLATE]
20704                    instantiate the configuration header FILE
20705
20706 Configuration files:
20707 $config_files
20708
20709 Configuration headers:
20710 $config_headers
20711
20712 Report bugs to <bug-autoconf@gnu.org>."
20713
20714 _ACEOF
20715 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20716 ac_cs_version="\\
20717 libchise config.status 0.5.0
20718 configured by $0, generated by GNU Autoconf 2.63,
20719   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20720
20721 Copyright (C) 2008 Free Software Foundation, Inc.
20722 This config.status script is free software; the Free Software Foundation
20723 gives unlimited permission to copy, distribute and modify it."
20724
20725 ac_pwd='$ac_pwd'
20726 srcdir='$srcdir'
20727 test -n "\$AWK" || AWK=awk
20728 _ACEOF
20729
20730 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20731 # The default lists apply if the user does not specify any file.
20732 ac_need_defaults=:
20733 while test $# != 0
20734 do
20735   case $1 in
20736   --*=*)
20737     ac_option=`expr "X$1" : 'X\([^=]*\)='`
20738     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20739     ac_shift=:
20740     ;;
20741   *)
20742     ac_option=$1
20743     ac_optarg=$2
20744     ac_shift=shift
20745     ;;
20746   esac
20747
20748   case $ac_option in
20749   # Handling of the options.
20750   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20751     ac_cs_recheck=: ;;
20752   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20753     $as_echo "$ac_cs_version"; exit ;;
20754   --debug | --debu | --deb | --de | --d | -d )
20755     debug=: ;;
20756   --file | --fil | --fi | --f )
20757     $ac_shift
20758     case $ac_optarg in
20759     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20760     esac
20761     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
20762     ac_need_defaults=false;;
20763   --header | --heade | --head | --hea )
20764     $ac_shift
20765     case $ac_optarg in
20766     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20767     esac
20768     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
20769     ac_need_defaults=false;;
20770   --he | --h)
20771     # Conflict between --help and --header
20772     { $as_echo "$as_me: error: ambiguous option: $1
20773 Try \`$0 --help' for more information." >&2
20774    { (exit 1); exit 1; }; };;
20775   --help | --hel | -h )
20776     $as_echo "$ac_cs_usage"; exit ;;
20777   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20778   | -silent | --silent | --silen | --sile | --sil | --si | --s)
20779     ac_cs_silent=: ;;
20780
20781   # This is an error.
20782   -*) { $as_echo "$as_me: error: unrecognized option: $1
20783 Try \`$0 --help' for more information." >&2
20784    { (exit 1); exit 1; }; } ;;
20785
20786   *) ac_config_targets="$ac_config_targets $1"
20787      ac_need_defaults=false ;;
20788
20789   esac
20790   shift
20791 done
20792
20793 ac_configure_extra_args=
20794
20795 if $ac_cs_silent; then
20796   exec 6>/dev/null
20797   ac_configure_extra_args="$ac_configure_extra_args --silent"
20798 fi
20799
20800 _ACEOF
20801 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20802 if \$ac_cs_recheck; then
20803   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20804   shift
20805   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20806   CONFIG_SHELL='$SHELL'
20807   export CONFIG_SHELL
20808   exec "\$@"
20809 fi
20810
20811 _ACEOF
20812 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20813 exec 5>>config.log
20814 {
20815   echo
20816   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20817 ## Running $as_me. ##
20818 _ASBOX
20819   $as_echo "$ac_log"
20820 } >&5
20821
20822 _ACEOF
20823 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20824 _ACEOF
20825
20826 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20827
20828 # Handling of arguments.
20829 for ac_config_target in $ac_config_targets
20830 do
20831   case $ac_config_target in
20832     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20833     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20834
20835   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20836 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20837    { (exit 1); exit 1; }; };;
20838   esac
20839 done
20840
20841
20842 # If the user did not use the arguments to specify the items to instantiate,
20843 # then the envvar interface is used.  Set only those that are not.
20844 # We use the long form for the default assignment because of an extremely
20845 # bizarre bug on SunOS 4.1.3.
20846 if $ac_need_defaults; then
20847   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20848   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20849 fi
20850
20851 # Have a temporary directory for convenience.  Make it in the build tree
20852 # simply because there is no reason against having it here, and in addition,
20853 # creating and moving files from /tmp can sometimes cause problems.
20854 # Hook for its removal unless debugging.
20855 # Note that there is a small window in which the directory will not be cleaned:
20856 # after its creation but before its name has been assigned to `$tmp'.
20857 $debug ||
20858 {
20859   tmp=
20860   trap 'exit_status=$?
20861   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20862 ' 0
20863   trap '{ (exit 1); exit 1; }' 1 2 13 15
20864 }
20865 # Create a (secure) tmp directory for tmp files.
20866
20867 {
20868   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20869   test -n "$tmp" && test -d "$tmp"
20870 }  ||
20871 {
20872   tmp=./conf$$-$RANDOM
20873   (umask 077 && mkdir "$tmp")
20874 } ||
20875 {
20876    $as_echo "$as_me: cannot create a temporary directory in ." >&2
20877    { (exit 1); exit 1; }
20878 }
20879
20880 # Set up the scripts for CONFIG_FILES section.
20881 # No need to generate them if there are no CONFIG_FILES.
20882 # This happens for instance with `./config.status config.h'.
20883 if test -n "$CONFIG_FILES"; then
20884
20885
20886 ac_cr='\r'
20887 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20888 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20889   ac_cs_awk_cr='\\r'
20890 else
20891   ac_cs_awk_cr=$ac_cr
20892 fi
20893
20894 echo 'BEGIN {' >"$tmp/subs1.awk" &&
20895 _ACEOF
20896
20897
20898 {
20899   echo "cat >conf$$subs.awk <<_ACEOF" &&
20900   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20901   echo "_ACEOF"
20902 } >conf$$subs.sh ||
20903   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20904 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20905    { (exit 1); exit 1; }; }
20906 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
20907 ac_delim='%!_!# '
20908 for ac_last_try in false false false false false :; do
20909   . ./conf$$subs.sh ||
20910     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20911 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20912    { (exit 1); exit 1; }; }
20913
20914   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20915   if test $ac_delim_n = $ac_delim_num; then
20916     break
20917   elif $ac_last_try; then
20918     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20919 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20920    { (exit 1); exit 1; }; }
20921   else
20922     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20923   fi
20924 done
20925 rm -f conf$$subs.sh
20926
20927 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20928 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
20929 _ACEOF
20930 sed -n '
20931 h
20932 s/^/S["/; s/!.*/"]=/
20933 p
20934 g
20935 s/^[^!]*!//
20936 :repl
20937 t repl
20938 s/'"$ac_delim"'$//
20939 t delim
20940 :nl
20941 h
20942 s/\(.\{148\}\).*/\1/
20943 t more1
20944 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20945 p
20946 n
20947 b repl
20948 :more1
20949 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20950 p
20951 g
20952 s/.\{148\}//
20953 t nl
20954 :delim
20955 h
20956 s/\(.\{148\}\).*/\1/
20957 t more2
20958 s/["\\]/\\&/g; s/^/"/; s/$/"/
20959 p
20960 b
20961 :more2
20962 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20963 p
20964 g
20965 s/.\{148\}//
20966 t delim
20967 ' <conf$$subs.awk | sed '
20968 /^[^""]/{
20969   N
20970   s/\n//
20971 }
20972 ' >>$CONFIG_STATUS || ac_write_fail=1
20973 rm -f conf$$subs.awk
20974 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20975 _ACAWK
20976 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
20977   for (key in S) S_is_set[key] = 1
20978   FS = "\a"
20979
20980 }
20981 {
20982   line = $ 0
20983   nfields = split(line, field, "@")
20984   substed = 0
20985   len = length(field[1])
20986   for (i = 2; i < nfields; i++) {
20987     key = field[i]
20988     keylen = length(key)
20989     if (S_is_set[key]) {
20990       value = S[key]
20991       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20992       len += length(value) + length(field[++i])
20993       substed = 1
20994     } else
20995       len += 1 + keylen
20996   }
20997
20998   print line
20999 }
21000
21001 _ACAWK
21002 _ACEOF
21003 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21004 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21005   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21006 else
21007   cat
21008 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
21009   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
21010 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
21011    { (exit 1); exit 1; }; }
21012 _ACEOF
21013
21014 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21015 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21016 # trailing colons and then remove the whole line if VPATH becomes empty
21017 # (actually we leave an empty line to preserve line numbers).
21018 if test "x$srcdir" = x.; then
21019   ac_vpsub='/^[  ]*VPATH[        ]*=/{
21020 s/:*\$(srcdir):*/:/
21021 s/:*\${srcdir}:*/:/
21022 s/:*@srcdir@:*/:/
21023 s/^\([^=]*=[     ]*\):*/\1/
21024 s/:*$//
21025 s/^[^=]*=[       ]*$//
21026 }'
21027 fi
21028
21029 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21030 fi # test -n "$CONFIG_FILES"
21031
21032 # Set up the scripts for CONFIG_HEADERS section.
21033 # No need to generate them if there are no CONFIG_HEADERS.
21034 # This happens for instance with `./config.status Makefile'.
21035 if test -n "$CONFIG_HEADERS"; then
21036 cat >"$tmp/defines.awk" <<\_ACAWK ||
21037 BEGIN {
21038 _ACEOF
21039
21040 # Transform confdefs.h into an awk script `defines.awk', embedded as
21041 # here-document in config.status, that substitutes the proper values into
21042 # config.h.in to produce config.h.
21043
21044 # Create a delimiter string that does not exist in confdefs.h, to ease
21045 # handling of long lines.
21046 ac_delim='%!_!# '
21047 for ac_last_try in false false :; do
21048   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
21049   if test -z "$ac_t"; then
21050     break
21051   elif $ac_last_try; then
21052     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
21053 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
21054    { (exit 1); exit 1; }; }
21055   else
21056     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21057   fi
21058 done
21059
21060 # For the awk script, D is an array of macro values keyed by name,
21061 # likewise P contains macro parameters if any.  Preserve backslash
21062 # newline sequences.
21063
21064 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21065 sed -n '
21066 s/.\{148\}/&'"$ac_delim"'/g
21067 t rset
21068 :rset
21069 s/^[     ]*#[    ]*define[       ][      ]*/ /
21070 t def
21071 d
21072 :def
21073 s/\\$//
21074 t bsnl
21075 s/["\\]/\\&/g
21076 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
21077 D["\1"]=" \3"/p
21078 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
21079 d
21080 :bsnl
21081 s/["\\]/\\&/g
21082 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
21083 D["\1"]=" \3\\\\\\n"\\/p
21084 t cont
21085 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21086 t cont
21087 d
21088 :cont
21089 n
21090 s/.\{148\}/&'"$ac_delim"'/g
21091 t clear
21092 :clear
21093 s/\\$//
21094 t bsnlc
21095 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21096 d
21097 :bsnlc
21098 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21099 b cont
21100 ' <confdefs.h | sed '
21101 s/'"$ac_delim"'/"\\\
21102 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21103
21104 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21105   for (key in D) D_is_set[key] = 1
21106   FS = "\a"
21107 }
21108 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21109   line = \$ 0
21110   split(line, arg, " ")
21111   if (arg[1] == "#") {
21112     defundef = arg[2]
21113     mac1 = arg[3]
21114   } else {
21115     defundef = substr(arg[1], 2)
21116     mac1 = arg[2]
21117   }
21118   split(mac1, mac2, "(") #)
21119   macro = mac2[1]
21120   prefix = substr(line, 1, index(line, defundef) - 1)
21121   if (D_is_set[macro]) {
21122     # Preserve the white space surrounding the "#".
21123     print prefix "define", macro P[macro] D[macro]
21124     next
21125   } else {
21126     # Replace #undef with comments.  This is necessary, for example,
21127     # in the case of _POSIX_SOURCE, which is predefined and required
21128     # on some systems where configure will not decide to define it.
21129     if (defundef == "undef") {
21130       print "/*", prefix defundef, macro, "*/"
21131       next
21132     }
21133   }
21134 }
21135 { print }
21136 _ACAWK
21137 _ACEOF
21138 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21139   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
21140 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
21141    { (exit 1); exit 1; }; }
21142 fi # test -n "$CONFIG_HEADERS"
21143
21144
21145 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
21146 shift
21147 for ac_tag
21148 do
21149   case $ac_tag in
21150   :[FHLC]) ac_mode=$ac_tag; continue;;
21151   esac
21152   case $ac_mode$ac_tag in
21153   :[FHL]*:*);;
21154   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
21155 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
21156    { (exit 1); exit 1; }; };;
21157   :[FH]-) ac_tag=-:-;;
21158   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21159   esac
21160   ac_save_IFS=$IFS
21161   IFS=:
21162   set x $ac_tag
21163   IFS=$ac_save_IFS
21164   shift
21165   ac_file=$1
21166   shift
21167
21168   case $ac_mode in
21169   :L) ac_source=$1;;
21170   :[FH])
21171     ac_file_inputs=
21172     for ac_f
21173     do
21174       case $ac_f in
21175       -) ac_f="$tmp/stdin";;
21176       *) # Look for the file first in the build tree, then in the source tree
21177          # (if the path is not absolute).  The absolute path cannot be DOS-style,
21178          # because $ac_f cannot contain `:'.
21179          test -f "$ac_f" ||
21180            case $ac_f in
21181            [\\/$]*) false;;
21182            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21183            esac ||
21184            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21185 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21186    { (exit 1); exit 1; }; };;
21187       esac
21188       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21189       ac_file_inputs="$ac_file_inputs '$ac_f'"
21190     done
21191
21192     # Let's still pretend it is `configure' which instantiates (i.e., don't
21193     # use $as_me), people would be surprised to read:
21194     #    /* config.h.  Generated by config.status.  */
21195     configure_input='Generated from '`
21196           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21197         `' by configure.'
21198     if test x"$ac_file" != x-; then
21199       configure_input="$ac_file.  $configure_input"
21200       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
21201 $as_echo "$as_me: creating $ac_file" >&6;}
21202     fi
21203     # Neutralize special characters interpreted by sed in replacement strings.
21204     case $configure_input in #(
21205     *\&* | *\|* | *\\* )
21206        ac_sed_conf_input=`$as_echo "$configure_input" |
21207        sed 's/[\\\\&|]/\\\\&/g'`;; #(
21208     *) ac_sed_conf_input=$configure_input;;
21209     esac
21210
21211     case $ac_tag in
21212     *:-:* | *:-) cat >"$tmp/stdin" \
21213       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21214 $as_echo "$as_me: error: could not create $ac_file" >&2;}
21215    { (exit 1); exit 1; }; } ;;
21216     esac
21217     ;;
21218   esac
21219
21220   ac_dir=`$as_dirname -- "$ac_file" ||
21221 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21222          X"$ac_file" : 'X\(//\)[^/]' \| \
21223          X"$ac_file" : 'X\(//\)$' \| \
21224          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21225 $as_echo X"$ac_file" |
21226     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21227             s//\1/
21228             q
21229           }
21230           /^X\(\/\/\)[^/].*/{
21231             s//\1/
21232             q
21233           }
21234           /^X\(\/\/\)$/{
21235             s//\1/
21236             q
21237           }
21238           /^X\(\/\).*/{
21239             s//\1/
21240             q
21241           }
21242           s/.*/./; q'`
21243   { as_dir="$ac_dir"
21244   case $as_dir in #(
21245   -*) as_dir=./$as_dir;;
21246   esac
21247   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21248     as_dirs=
21249     while :; do
21250       case $as_dir in #(
21251       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21252       *) as_qdir=$as_dir;;
21253       esac
21254       as_dirs="'$as_qdir' $as_dirs"
21255       as_dir=`$as_dirname -- "$as_dir" ||
21256 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21257          X"$as_dir" : 'X\(//\)[^/]' \| \
21258          X"$as_dir" : 'X\(//\)$' \| \
21259          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21260 $as_echo X"$as_dir" |
21261     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21262             s//\1/
21263             q
21264           }
21265           /^X\(\/\/\)[^/].*/{
21266             s//\1/
21267             q
21268           }
21269           /^X\(\/\/\)$/{
21270             s//\1/
21271             q
21272           }
21273           /^X\(\/\).*/{
21274             s//\1/
21275             q
21276           }
21277           s/.*/./; q'`
21278       test -d "$as_dir" && break
21279     done
21280     test -z "$as_dirs" || eval "mkdir $as_dirs"
21281   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21282 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
21283    { (exit 1); exit 1; }; }; }
21284   ac_builddir=.
21285
21286 case "$ac_dir" in
21287 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21288 *)
21289   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21290   # A ".." for each directory in $ac_dir_suffix.
21291   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21292   case $ac_top_builddir_sub in
21293   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21294   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21295   esac ;;
21296 esac
21297 ac_abs_top_builddir=$ac_pwd
21298 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21299 # for backward compatibility:
21300 ac_top_builddir=$ac_top_build_prefix
21301
21302 case $srcdir in
21303   .)  # We are building in place.
21304     ac_srcdir=.
21305     ac_top_srcdir=$ac_top_builddir_sub
21306     ac_abs_top_srcdir=$ac_pwd ;;
21307   [\\/]* | ?:[\\/]* )  # Absolute name.
21308     ac_srcdir=$srcdir$ac_dir_suffix;
21309     ac_top_srcdir=$srcdir
21310     ac_abs_top_srcdir=$srcdir ;;
21311   *) # Relative name.
21312     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21313     ac_top_srcdir=$ac_top_build_prefix$srcdir
21314     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21315 esac
21316 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21317
21318
21319   case $ac_mode in
21320   :F)
21321   #
21322   # CONFIG_FILE
21323   #
21324
21325 _ACEOF
21326
21327 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21328 # If the template does not know about datarootdir, expand it.
21329 # FIXME: This hack should be removed a few years after 2.60.
21330 ac_datarootdir_hack=; ac_datarootdir_seen=
21331
21332 ac_sed_dataroot='
21333 /datarootdir/ {
21334   p
21335   q
21336 }
21337 /@datadir@/p
21338 /@docdir@/p
21339 /@infodir@/p
21340 /@localedir@/p
21341 /@mandir@/p
21342 '
21343 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21344 *datarootdir*) ac_datarootdir_seen=yes;;
21345 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21346   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21347 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21348 _ACEOF
21349 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21350   ac_datarootdir_hack='
21351   s&@datadir@&$datadir&g
21352   s&@docdir@&$docdir&g
21353   s&@infodir@&$infodir&g
21354   s&@localedir@&$localedir&g
21355   s&@mandir@&$mandir&g
21356     s&\\\${datarootdir}&$datarootdir&g' ;;
21357 esac
21358 _ACEOF
21359
21360 # Neutralize VPATH when `$srcdir' = `.'.
21361 # Shell code in configure.ac might set extrasub.
21362 # FIXME: do we really want to maintain this feature?
21363 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21364 ac_sed_extra="$ac_vpsub
21365 $extrasub
21366 _ACEOF
21367 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21368 :t
21369 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21370 s|@configure_input@|$ac_sed_conf_input|;t t
21371 s&@top_builddir@&$ac_top_builddir_sub&;t t
21372 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21373 s&@srcdir@&$ac_srcdir&;t t
21374 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21375 s&@top_srcdir@&$ac_top_srcdir&;t t
21376 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21377 s&@builddir@&$ac_builddir&;t t
21378 s&@abs_builddir@&$ac_abs_builddir&;t t
21379 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21380 $ac_datarootdir_hack
21381 "
21382 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
21383   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21384 $as_echo "$as_me: error: could not create $ac_file" >&2;}
21385    { (exit 1); exit 1; }; }
21386
21387 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21388   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21389   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21390   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21391 which seems to be undefined.  Please make sure it is defined." >&5
21392 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21393 which seems to be undefined.  Please make sure it is defined." >&2;}
21394
21395   rm -f "$tmp/stdin"
21396   case $ac_file in
21397   -) cat "$tmp/out" && rm -f "$tmp/out";;
21398   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
21399   esac \
21400   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21401 $as_echo "$as_me: error: could not create $ac_file" >&2;}
21402    { (exit 1); exit 1; }; }
21403  ;;
21404   :H)
21405   #
21406   # CONFIG_HEADER
21407   #
21408   if test x"$ac_file" != x-; then
21409     {
21410       $as_echo "/* $configure_input  */" \
21411       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
21412     } >"$tmp/config.h" \
21413       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21414 $as_echo "$as_me: error: could not create $ac_file" >&2;}
21415    { (exit 1); exit 1; }; }
21416     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
21417       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21418 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21419     else
21420       rm -f "$ac_file"
21421       mv "$tmp/config.h" "$ac_file" \
21422         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21423 $as_echo "$as_me: error: could not create $ac_file" >&2;}
21424    { (exit 1); exit 1; }; }
21425     fi
21426   else
21427     $as_echo "/* $configure_input  */" \
21428       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
21429       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
21430 $as_echo "$as_me: error: could not create -" >&2;}
21431    { (exit 1); exit 1; }; }
21432   fi
21433  ;;
21434
21435
21436   esac
21437
21438 done # for ac_tag
21439
21440
21441 { (exit 0); exit 0; }
21442 _ACEOF
21443 chmod +x $CONFIG_STATUS
21444 ac_clean_files=$ac_clean_files_save
21445
21446 test $ac_write_fail = 0 ||
21447   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
21448 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
21449    { (exit 1); exit 1; }; }
21450
21451
21452 # configure is writing to config.log, and then calls config.status.
21453 # config.status does its own redirection, appending to config.log.
21454 # Unfortunately, on DOS this fails, as config.log is still kept open
21455 # by configure, so config.status won't be able to write to it; its
21456 # output is simply discarded.  So we exec the FD to /dev/null,
21457 # effectively closing config.log, so it can be properly (re)opened and
21458 # appended to by config.status.  When coming back to configure, we
21459 # need to make the FD available again.
21460 if test "$no_create" != yes; then
21461   ac_cs_success=:
21462   ac_config_status_args=
21463   test "$silent" = yes &&
21464     ac_config_status_args="$ac_config_status_args --quiet"
21465   exec 5>/dev/null
21466   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21467   exec 5>>config.log
21468   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21469   # would make configure fail if this is the last instruction.
21470   $ac_cs_success || { (exit 1); exit 1; }
21471 fi
21472 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21473   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21474 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21475 fi
21476