update.
[chise/concord.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.62 for concord 0.0.1.
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='concord'
752 PACKAGE_TARNAME='concord'
753 PACKAGE_VERSION='0.0.1'
754 PACKAGE_STRING='concord 0.0.1'
755 PACKAGE_BUGREPORT='chise-en@m17n.org'
756
757 ac_unique_file="concord.c"
758 # Factoring default headers for most tests.
759 ac_includes_default="\
760 #include <stdio.h>
761 #ifdef HAVE_SYS_TYPES_H
762 # include <sys/types.h>
763 #endif
764 #ifdef HAVE_SYS_STAT_H
765 # include <sys/stat.h>
766 #endif
767 #ifdef STDC_HEADERS
768 # include <stdlib.h>
769 # include <stddef.h>
770 #else
771 # ifdef HAVE_STDLIB_H
772 #  include <stdlib.h>
773 # endif
774 #endif
775 #ifdef HAVE_STRING_H
776 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
777 #  include <memory.h>
778 # endif
779 # include <string.h>
780 #endif
781 #ifdef HAVE_STRINGS_H
782 # include <strings.h>
783 #endif
784 #ifdef HAVE_INTTYPES_H
785 # include <inttypes.h>
786 #endif
787 #ifdef HAVE_STDINT_H
788 # include <stdint.h>
789 #endif
790 #ifdef HAVE_UNISTD_H
791 # include <unistd.h>
792 #endif"
793
794 ac_subst_vars='SHELL
795 PATH_SEPARATOR
796 PACKAGE_NAME
797 PACKAGE_TARNAME
798 PACKAGE_VERSION
799 PACKAGE_STRING
800 PACKAGE_BUGREPORT
801 exec_prefix
802 prefix
803 program_transform_name
804 bindir
805 sbindir
806 libexecdir
807 datarootdir
808 datadir
809 sysconfdir
810 sharedstatedir
811 localstatedir
812 includedir
813 oldincludedir
814 docdir
815 infodir
816 htmldir
817 dvidir
818 pdfdir
819 psdir
820 libdir
821 localedir
822 mandir
823 DEFS
824 ECHO_C
825 ECHO_N
826 ECHO_T
827 LIBS
828 build_alias
829 host_alias
830 target_alias
831 build
832 build_cpu
833 build_vendor
834 build_os
835 host
836 host_cpu
837 host_vendor
838 host_os
839 target
840 target_cpu
841 target_vendor
842 target_os
843 CC
844 CFLAGS
845 LDFLAGS
846 CPPFLAGS
847 ac_ct_CC
848 EXEEXT
849 OBJEXT
850 GREP
851 EGREP
852 LN_S
853 ECHO
854 AR
855 RANLIB
856 STRIP
857 CPP
858 CXX
859 CXXFLAGS
860 ac_ct_CXX
861 CXXCPP
862 F77
863 FFLAGS
864 ac_ct_F77
865 LIBTOOL
866 ALLOCA
867 LIBOBJS
868 LTLIBOBJS'
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 concord 0.0.1 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/concord]
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 concord 0.0.1:";;
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 concord configure 0.0.1
1623 generated by GNU Autoconf 2.62
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 concord $as_me 0.0.1, which was
1637 generated by GNU Autoconf 2.62.  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: changes in the environment can compromise the build" >&5
1965 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1966   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1967 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1968    { (exit 1); exit 1; }; }
1969 fi
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995 ac_ext=c
1996 ac_cpp='$CPP $CPPFLAGS'
1997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2000
2001
2002
2003 ac_config_headers="$ac_config_headers config.h"
2004
2005
2006 ac_aux_dir=
2007 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2008   if test -f "$ac_dir/install-sh"; then
2009     ac_aux_dir=$ac_dir
2010     ac_install_sh="$ac_aux_dir/install-sh -c"
2011     break
2012   elif test -f "$ac_dir/install.sh"; then
2013     ac_aux_dir=$ac_dir
2014     ac_install_sh="$ac_aux_dir/install.sh -c"
2015     break
2016   elif test -f "$ac_dir/shtool"; then
2017     ac_aux_dir=$ac_dir
2018     ac_install_sh="$ac_aux_dir/shtool install -c"
2019     break
2020   fi
2021 done
2022 if test -z "$ac_aux_dir"; then
2023   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2024 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2025    { (exit 1); exit 1; }; }
2026 fi
2027
2028 # These three variables are undocumented and unsupported,
2029 # and are intended to be withdrawn in a future Autoconf release.
2030 # They can cause serious problems if a builder's source tree is in a directory
2031 # whose full name contains unusual characters.
2032 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2033 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2034 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2035
2036
2037 # Make sure we can run config.sub.
2038 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2039   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2040 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2041    { (exit 1); exit 1; }; }
2042
2043 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2044 $as_echo_n "checking build system type... " >&6; }
2045 if test "${ac_cv_build+set}" = set; then
2046   $as_echo_n "(cached) " >&6
2047 else
2048   ac_build_alias=$build_alias
2049 test "x$ac_build_alias" = x &&
2050   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2051 test "x$ac_build_alias" = x &&
2052   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2053 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2054    { (exit 1); exit 1; }; }
2055 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2056   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2057 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2058    { (exit 1); exit 1; }; }
2059
2060 fi
2061 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2062 $as_echo "$ac_cv_build" >&6; }
2063 case $ac_cv_build in
2064 *-*-*) ;;
2065 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2066 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2067    { (exit 1); exit 1; }; };;
2068 esac
2069 build=$ac_cv_build
2070 ac_save_IFS=$IFS; IFS='-'
2071 set x $ac_cv_build
2072 shift
2073 build_cpu=$1
2074 build_vendor=$2
2075 shift; shift
2076 # Remember, the first character of IFS is used to create $*,
2077 # except with old shells:
2078 build_os=$*
2079 IFS=$ac_save_IFS
2080 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2081
2082
2083 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2084 $as_echo_n "checking host system type... " >&6; }
2085 if test "${ac_cv_host+set}" = set; then
2086   $as_echo_n "(cached) " >&6
2087 else
2088   if test "x$host_alias" = x; then
2089   ac_cv_host=$ac_cv_build
2090 else
2091   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2092     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2093 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2094    { (exit 1); exit 1; }; }
2095 fi
2096
2097 fi
2098 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2099 $as_echo "$ac_cv_host" >&6; }
2100 case $ac_cv_host in
2101 *-*-*) ;;
2102 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2103 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2104    { (exit 1); exit 1; }; };;
2105 esac
2106 host=$ac_cv_host
2107 ac_save_IFS=$IFS; IFS='-'
2108 set x $ac_cv_host
2109 shift
2110 host_cpu=$1
2111 host_vendor=$2
2112 shift; shift
2113 # Remember, the first character of IFS is used to create $*,
2114 # except with old shells:
2115 host_os=$*
2116 IFS=$ac_save_IFS
2117 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2118
2119
2120 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2121 $as_echo_n "checking target system type... " >&6; }
2122 if test "${ac_cv_target+set}" = set; then
2123   $as_echo_n "(cached) " >&6
2124 else
2125   if test "x$target_alias" = x; then
2126   ac_cv_target=$ac_cv_host
2127 else
2128   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2129     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2130 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2131    { (exit 1); exit 1; }; }
2132 fi
2133
2134 fi
2135 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2136 $as_echo "$ac_cv_target" >&6; }
2137 case $ac_cv_target in
2138 *-*-*) ;;
2139 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2140 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2141    { (exit 1); exit 1; }; };;
2142 esac
2143 target=$ac_cv_target
2144 ac_save_IFS=$IFS; IFS='-'
2145 set x $ac_cv_target
2146 shift
2147 target_cpu=$1
2148 target_vendor=$2
2149 shift; shift
2150 # Remember, the first character of IFS is used to create $*,
2151 # except with old shells:
2152 target_os=$*
2153 IFS=$ac_save_IFS
2154 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2155
2156
2157 # The aliases save the names the user supplied, while $host etc.
2158 # will get canonicalized.
2159 test -n "$target_alias" &&
2160   test "$program_prefix$program_suffix$program_transform_name" = \
2161     NONENONEs,x,x, &&
2162   program_prefix=${target_alias}-
2163
2164 # Checks for programs.
2165 ac_ext=c
2166 ac_cpp='$CPP $CPPFLAGS'
2167 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2168 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2169 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2170 if test -n "$ac_tool_prefix"; then
2171   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2172 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2173 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2174 $as_echo_n "checking for $ac_word... " >&6; }
2175 if test "${ac_cv_prog_CC+set}" = set; then
2176   $as_echo_n "(cached) " >&6
2177 else
2178   if test -n "$CC"; then
2179   ac_cv_prog_CC="$CC" # Let the user override the test.
2180 else
2181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2182 for as_dir in $PATH
2183 do
2184   IFS=$as_save_IFS
2185   test -z "$as_dir" && as_dir=.
2186   for ac_exec_ext in '' $ac_executable_extensions; do
2187   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2188     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2189     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2190     break 2
2191   fi
2192 done
2193 done
2194 IFS=$as_save_IFS
2195
2196 fi
2197 fi
2198 CC=$ac_cv_prog_CC
2199 if test -n "$CC"; then
2200   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2201 $as_echo "$CC" >&6; }
2202 else
2203   { $as_echo "$as_me:$LINENO: result: no" >&5
2204 $as_echo "no" >&6; }
2205 fi
2206
2207
2208 fi
2209 if test -z "$ac_cv_prog_CC"; then
2210   ac_ct_CC=$CC
2211   # Extract the first word of "gcc", so it can be a program name with args.
2212 set dummy gcc; ac_word=$2
2213 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2214 $as_echo_n "checking for $ac_word... " >&6; }
2215 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2216   $as_echo_n "(cached) " >&6
2217 else
2218   if test -n "$ac_ct_CC"; then
2219   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2220 else
2221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2222 for as_dir in $PATH
2223 do
2224   IFS=$as_save_IFS
2225   test -z "$as_dir" && as_dir=.
2226   for ac_exec_ext in '' $ac_executable_extensions; do
2227   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2228     ac_cv_prog_ac_ct_CC="gcc"
2229     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2230     break 2
2231   fi
2232 done
2233 done
2234 IFS=$as_save_IFS
2235
2236 fi
2237 fi
2238 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2239 if test -n "$ac_ct_CC"; then
2240   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2241 $as_echo "$ac_ct_CC" >&6; }
2242 else
2243   { $as_echo "$as_me:$LINENO: result: no" >&5
2244 $as_echo "no" >&6; }
2245 fi
2246
2247   if test "x$ac_ct_CC" = x; then
2248     CC=""
2249   else
2250     case $cross_compiling:$ac_tool_warned in
2251 yes:)
2252 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2253 whose name does not start with the host triplet.  If you think this
2254 configuration is useful to you, please write to autoconf@gnu.org." >&5
2255 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2256 whose name does not start with the host triplet.  If you think this
2257 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2258 ac_tool_warned=yes ;;
2259 esac
2260     CC=$ac_ct_CC
2261   fi
2262 else
2263   CC="$ac_cv_prog_CC"
2264 fi
2265
2266 if test -z "$CC"; then
2267           if test -n "$ac_tool_prefix"; then
2268     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2269 set dummy ${ac_tool_prefix}cc; ac_word=$2
2270 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2271 $as_echo_n "checking for $ac_word... " >&6; }
2272 if test "${ac_cv_prog_CC+set}" = set; then
2273   $as_echo_n "(cached) " >&6
2274 else
2275   if test -n "$CC"; then
2276   ac_cv_prog_CC="$CC" # Let the user override the test.
2277 else
2278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2279 for as_dir in $PATH
2280 do
2281   IFS=$as_save_IFS
2282   test -z "$as_dir" && as_dir=.
2283   for ac_exec_ext in '' $ac_executable_extensions; do
2284   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2285     ac_cv_prog_CC="${ac_tool_prefix}cc"
2286     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2287     break 2
2288   fi
2289 done
2290 done
2291 IFS=$as_save_IFS
2292
2293 fi
2294 fi
2295 CC=$ac_cv_prog_CC
2296 if test -n "$CC"; then
2297   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2298 $as_echo "$CC" >&6; }
2299 else
2300   { $as_echo "$as_me:$LINENO: result: no" >&5
2301 $as_echo "no" >&6; }
2302 fi
2303
2304
2305   fi
2306 fi
2307 if test -z "$CC"; then
2308   # Extract the first word of "cc", so it can be a program name with args.
2309 set dummy cc; ac_word=$2
2310 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2311 $as_echo_n "checking for $ac_word... " >&6; }
2312 if test "${ac_cv_prog_CC+set}" = set; then
2313   $as_echo_n "(cached) " >&6
2314 else
2315   if test -n "$CC"; then
2316   ac_cv_prog_CC="$CC" # Let the user override the test.
2317 else
2318   ac_prog_rejected=no
2319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2320 for as_dir in $PATH
2321 do
2322   IFS=$as_save_IFS
2323   test -z "$as_dir" && as_dir=.
2324   for ac_exec_ext in '' $ac_executable_extensions; do
2325   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2326     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2327        ac_prog_rejected=yes
2328        continue
2329      fi
2330     ac_cv_prog_CC="cc"
2331     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2332     break 2
2333   fi
2334 done
2335 done
2336 IFS=$as_save_IFS
2337
2338 if test $ac_prog_rejected = yes; then
2339   # We found a bogon in the path, so make sure we never use it.
2340   set dummy $ac_cv_prog_CC
2341   shift
2342   if test $# != 0; then
2343     # We chose a different compiler from the bogus one.
2344     # However, it has the same basename, so the bogon will be chosen
2345     # first if we set CC to just the basename; use the full file name.
2346     shift
2347     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2348   fi
2349 fi
2350 fi
2351 fi
2352 CC=$ac_cv_prog_CC
2353 if test -n "$CC"; then
2354   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2355 $as_echo "$CC" >&6; }
2356 else
2357   { $as_echo "$as_me:$LINENO: result: no" >&5
2358 $as_echo "no" >&6; }
2359 fi
2360
2361
2362 fi
2363 if test -z "$CC"; then
2364   if test -n "$ac_tool_prefix"; then
2365   for ac_prog in cl.exe
2366   do
2367     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2368 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2369 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2370 $as_echo_n "checking for $ac_word... " >&6; }
2371 if test "${ac_cv_prog_CC+set}" = set; then
2372   $as_echo_n "(cached) " >&6
2373 else
2374   if test -n "$CC"; then
2375   ac_cv_prog_CC="$CC" # Let the user override the test.
2376 else
2377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2378 for as_dir in $PATH
2379 do
2380   IFS=$as_save_IFS
2381   test -z "$as_dir" && as_dir=.
2382   for ac_exec_ext in '' $ac_executable_extensions; do
2383   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2384     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2385     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2386     break 2
2387   fi
2388 done
2389 done
2390 IFS=$as_save_IFS
2391
2392 fi
2393 fi
2394 CC=$ac_cv_prog_CC
2395 if test -n "$CC"; then
2396   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2397 $as_echo "$CC" >&6; }
2398 else
2399   { $as_echo "$as_me:$LINENO: result: no" >&5
2400 $as_echo "no" >&6; }
2401 fi
2402
2403
2404     test -n "$CC" && break
2405   done
2406 fi
2407 if test -z "$CC"; then
2408   ac_ct_CC=$CC
2409   for ac_prog in cl.exe
2410 do
2411   # Extract the first word of "$ac_prog", so it can be a program name with args.
2412 set dummy $ac_prog; ac_word=$2
2413 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2414 $as_echo_n "checking for $ac_word... " >&6; }
2415 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2416   $as_echo_n "(cached) " >&6
2417 else
2418   if test -n "$ac_ct_CC"; then
2419   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2420 else
2421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2422 for as_dir in $PATH
2423 do
2424   IFS=$as_save_IFS
2425   test -z "$as_dir" && as_dir=.
2426   for ac_exec_ext in '' $ac_executable_extensions; do
2427   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2428     ac_cv_prog_ac_ct_CC="$ac_prog"
2429     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2430     break 2
2431   fi
2432 done
2433 done
2434 IFS=$as_save_IFS
2435
2436 fi
2437 fi
2438 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2439 if test -n "$ac_ct_CC"; then
2440   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2441 $as_echo "$ac_ct_CC" >&6; }
2442 else
2443   { $as_echo "$as_me:$LINENO: result: no" >&5
2444 $as_echo "no" >&6; }
2445 fi
2446
2447
2448   test -n "$ac_ct_CC" && break
2449 done
2450
2451   if test "x$ac_ct_CC" = x; then
2452     CC=""
2453   else
2454     case $cross_compiling:$ac_tool_warned in
2455 yes:)
2456 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2457 whose name does not start with the host triplet.  If you think this
2458 configuration is useful to you, please write to autoconf@gnu.org." >&5
2459 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2460 whose name does not start with the host triplet.  If you think this
2461 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2462 ac_tool_warned=yes ;;
2463 esac
2464     CC=$ac_ct_CC
2465   fi
2466 fi
2467
2468 fi
2469
2470
2471 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2472 See \`config.log' for more details." >&5
2473 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2474 See \`config.log' for more details." >&2;}
2475    { (exit 1); exit 1; }; }
2476
2477 # Provide some information about the compiler.
2478 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2479 set X $ac_compile
2480 ac_compiler=$2
2481 { (ac_try="$ac_compiler --version >&5"
2482 case "(($ac_try" in
2483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2484   *) ac_try_echo=$ac_try;;
2485 esac
2486 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2487 $as_echo "$ac_try_echo") >&5
2488   (eval "$ac_compiler --version >&5") 2>&5
2489   ac_status=$?
2490   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491   (exit $ac_status); }
2492 { (ac_try="$ac_compiler -v >&5"
2493 case "(($ac_try" in
2494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2495   *) ac_try_echo=$ac_try;;
2496 esac
2497 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2498 $as_echo "$ac_try_echo") >&5
2499   (eval "$ac_compiler -v >&5") 2>&5
2500   ac_status=$?
2501   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502   (exit $ac_status); }
2503 { (ac_try="$ac_compiler -V >&5"
2504 case "(($ac_try" in
2505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2506   *) ac_try_echo=$ac_try;;
2507 esac
2508 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2509 $as_echo "$ac_try_echo") >&5
2510   (eval "$ac_compiler -V >&5") 2>&5
2511   ac_status=$?
2512   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513   (exit $ac_status); }
2514
2515 cat >conftest.$ac_ext <<_ACEOF
2516 /* confdefs.h.  */
2517 _ACEOF
2518 cat confdefs.h >>conftest.$ac_ext
2519 cat >>conftest.$ac_ext <<_ACEOF
2520 /* end confdefs.h.  */
2521
2522 int
2523 main ()
2524 {
2525
2526   ;
2527   return 0;
2528 }
2529 _ACEOF
2530 ac_clean_files_save=$ac_clean_files
2531 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2532 # Try to create an executable without -o first, disregard a.out.
2533 # It will help us diagnose broken compilers, and finding out an intuition
2534 # of exeext.
2535 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2536 $as_echo_n "checking for C compiler default output file name... " >&6; }
2537 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2538
2539 # The possible output files:
2540 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2541
2542 ac_rmfiles=
2543 for ac_file in $ac_files
2544 do
2545   case $ac_file in
2546     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2547     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2548   esac
2549 done
2550 rm -f $ac_rmfiles
2551
2552 if { (ac_try="$ac_link_default"
2553 case "(($ac_try" in
2554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2555   *) ac_try_echo=$ac_try;;
2556 esac
2557 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2558 $as_echo "$ac_try_echo") >&5
2559   (eval "$ac_link_default") 2>&5
2560   ac_status=$?
2561   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562   (exit $ac_status); }; then
2563   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2564 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2565 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2566 # so that the user can short-circuit this test for compilers unknown to
2567 # Autoconf.
2568 for ac_file in $ac_files ''
2569 do
2570   test -f "$ac_file" || continue
2571   case $ac_file in
2572     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2573         ;;
2574     [ab].out )
2575         # We found the default executable, but exeext='' is most
2576         # certainly right.
2577         break;;
2578     *.* )
2579         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2580         then :; else
2581            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2582         fi
2583         # We set ac_cv_exeext here because the later test for it is not
2584         # safe: cross compilers may not add the suffix if given an `-o'
2585         # argument, so we may need to know it at that point already.
2586         # Even if this section looks crufty: it has the advantage of
2587         # actually working.
2588         break;;
2589     * )
2590         break;;
2591   esac
2592 done
2593 test "$ac_cv_exeext" = no && ac_cv_exeext=
2594
2595 else
2596   ac_file=''
2597 fi
2598
2599 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2600 $as_echo "$ac_file" >&6; }
2601 if test -z "$ac_file"; then
2602   $as_echo "$as_me: failed program was:" >&5
2603 sed 's/^/| /' conftest.$ac_ext >&5
2604
2605 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2606 See \`config.log' for more details." >&5
2607 $as_echo "$as_me: error: C compiler cannot create executables
2608 See \`config.log' for more details." >&2;}
2609    { (exit 77); exit 77; }; }
2610 fi
2611
2612 ac_exeext=$ac_cv_exeext
2613
2614 # Check that the compiler produces executables we can run.  If not, either
2615 # the compiler is broken, or we cross compile.
2616 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2617 $as_echo_n "checking whether the C compiler works... " >&6; }
2618 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2619 # If not cross compiling, check that we can run a simple program.
2620 if test "$cross_compiling" != yes; then
2621   if { ac_try='./$ac_file'
2622   { (case "(($ac_try" in
2623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2624   *) ac_try_echo=$ac_try;;
2625 esac
2626 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2627 $as_echo "$ac_try_echo") >&5
2628   (eval "$ac_try") 2>&5
2629   ac_status=$?
2630   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631   (exit $ac_status); }; }; then
2632     cross_compiling=no
2633   else
2634     if test "$cross_compiling" = maybe; then
2635         cross_compiling=yes
2636     else
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: cannot compute suffix of executables: cannot compile and link
2687 See \`config.log' for more details." >&5
2688 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2689 See \`config.log' for more details." >&2;}
2690    { (exit 1); exit 1; }; }
2691 fi
2692
2693 rm -f conftest$ac_cv_exeext
2694 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2695 $as_echo "$ac_cv_exeext" >&6; }
2696
2697 rm -f conftest.$ac_ext
2698 EXEEXT=$ac_cv_exeext
2699 ac_exeext=$EXEEXT
2700 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2701 $as_echo_n "checking for suffix of object files... " >&6; }
2702 if test "${ac_cv_objext+set}" = set; then
2703   $as_echo_n "(cached) " >&6
2704 else
2705   cat >conftest.$ac_ext <<_ACEOF
2706 /* confdefs.h.  */
2707 _ACEOF
2708 cat confdefs.h >>conftest.$ac_ext
2709 cat >>conftest.$ac_ext <<_ACEOF
2710 /* end confdefs.h.  */
2711
2712 int
2713 main ()
2714 {
2715
2716   ;
2717   return 0;
2718 }
2719 _ACEOF
2720 rm -f conftest.o conftest.obj
2721 if { (ac_try="$ac_compile"
2722 case "(($ac_try" in
2723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2724   *) ac_try_echo=$ac_try;;
2725 esac
2726 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2727 $as_echo "$ac_try_echo") >&5
2728   (eval "$ac_compile") 2>&5
2729   ac_status=$?
2730   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731   (exit $ac_status); }; then
2732   for ac_file in conftest.o conftest.obj conftest.*; do
2733   test -f "$ac_file" || continue;
2734   case $ac_file in
2735     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2736     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2737        break;;
2738   esac
2739 done
2740 else
2741   $as_echo "$as_me: failed program was:" >&5
2742 sed 's/^/| /' conftest.$ac_ext >&5
2743
2744 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2745 See \`config.log' for more details." >&5
2746 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2747 See \`config.log' for more details." >&2;}
2748    { (exit 1); exit 1; }; }
2749 fi
2750
2751 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2752 fi
2753 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2754 $as_echo "$ac_cv_objext" >&6; }
2755 OBJEXT=$ac_cv_objext
2756 ac_objext=$OBJEXT
2757 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2758 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2759 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2760   $as_echo_n "(cached) " >&6
2761 else
2762   cat >conftest.$ac_ext <<_ACEOF
2763 /* confdefs.h.  */
2764 _ACEOF
2765 cat confdefs.h >>conftest.$ac_ext
2766 cat >>conftest.$ac_ext <<_ACEOF
2767 /* end confdefs.h.  */
2768
2769 int
2770 main ()
2771 {
2772 #ifndef __GNUC__
2773        choke me
2774 #endif
2775
2776   ;
2777   return 0;
2778 }
2779 _ACEOF
2780 rm -f conftest.$ac_objext
2781 if { (ac_try="$ac_compile"
2782 case "(($ac_try" in
2783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2784   *) ac_try_echo=$ac_try;;
2785 esac
2786 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2787 $as_echo "$ac_try_echo") >&5
2788   (eval "$ac_compile") 2>conftest.er1
2789   ac_status=$?
2790   grep -v '^ *+' conftest.er1 >conftest.err
2791   rm -f conftest.er1
2792   cat conftest.err >&5
2793   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794   (exit $ac_status); } && {
2795          test -z "$ac_c_werror_flag" ||
2796          test ! -s conftest.err
2797        } && test -s conftest.$ac_objext; then
2798   ac_compiler_gnu=yes
2799 else
2800   $as_echo "$as_me: failed program was:" >&5
2801 sed 's/^/| /' conftest.$ac_ext >&5
2802
2803         ac_compiler_gnu=no
2804 fi
2805
2806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2807 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2808
2809 fi
2810 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2811 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2812 if test $ac_compiler_gnu = yes; then
2813   GCC=yes
2814 else
2815   GCC=
2816 fi
2817 ac_test_CFLAGS=${CFLAGS+set}
2818 ac_save_CFLAGS=$CFLAGS
2819 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2820 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2821 if test "${ac_cv_prog_cc_g+set}" = set; then
2822   $as_echo_n "(cached) " >&6
2823 else
2824   ac_save_c_werror_flag=$ac_c_werror_flag
2825    ac_c_werror_flag=yes
2826    ac_cv_prog_cc_g=no
2827    CFLAGS="-g"
2828    cat >conftest.$ac_ext <<_ACEOF
2829 /* confdefs.h.  */
2830 _ACEOF
2831 cat confdefs.h >>conftest.$ac_ext
2832 cat >>conftest.$ac_ext <<_ACEOF
2833 /* end confdefs.h.  */
2834
2835 int
2836 main ()
2837 {
2838
2839   ;
2840   return 0;
2841 }
2842 _ACEOF
2843 rm -f conftest.$ac_objext
2844 if { (ac_try="$ac_compile"
2845 case "(($ac_try" in
2846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2847   *) ac_try_echo=$ac_try;;
2848 esac
2849 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2850 $as_echo "$ac_try_echo") >&5
2851   (eval "$ac_compile") 2>conftest.er1
2852   ac_status=$?
2853   grep -v '^ *+' conftest.er1 >conftest.err
2854   rm -f conftest.er1
2855   cat conftest.err >&5
2856   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857   (exit $ac_status); } && {
2858          test -z "$ac_c_werror_flag" ||
2859          test ! -s conftest.err
2860        } && test -s conftest.$ac_objext; then
2861   ac_cv_prog_cc_g=yes
2862 else
2863   $as_echo "$as_me: failed program was:" >&5
2864 sed 's/^/| /' conftest.$ac_ext >&5
2865
2866         CFLAGS=""
2867       cat >conftest.$ac_ext <<_ACEOF
2868 /* confdefs.h.  */
2869 _ACEOF
2870 cat confdefs.h >>conftest.$ac_ext
2871 cat >>conftest.$ac_ext <<_ACEOF
2872 /* end confdefs.h.  */
2873
2874 int
2875 main ()
2876 {
2877
2878   ;
2879   return 0;
2880 }
2881 _ACEOF
2882 rm -f conftest.$ac_objext
2883 if { (ac_try="$ac_compile"
2884 case "(($ac_try" in
2885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2886   *) ac_try_echo=$ac_try;;
2887 esac
2888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2889 $as_echo "$ac_try_echo") >&5
2890   (eval "$ac_compile") 2>conftest.er1
2891   ac_status=$?
2892   grep -v '^ *+' conftest.er1 >conftest.err
2893   rm -f conftest.er1
2894   cat conftest.err >&5
2895   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896   (exit $ac_status); } && {
2897          test -z "$ac_c_werror_flag" ||
2898          test ! -s conftest.err
2899        } && test -s conftest.$ac_objext; then
2900   :
2901 else
2902   $as_echo "$as_me: failed program was:" >&5
2903 sed 's/^/| /' conftest.$ac_ext >&5
2904
2905         ac_c_werror_flag=$ac_save_c_werror_flag
2906          CFLAGS="-g"
2907          cat >conftest.$ac_ext <<_ACEOF
2908 /* confdefs.h.  */
2909 _ACEOF
2910 cat confdefs.h >>conftest.$ac_ext
2911 cat >>conftest.$ac_ext <<_ACEOF
2912 /* end confdefs.h.  */
2913
2914 int
2915 main ()
2916 {
2917
2918   ;
2919   return 0;
2920 }
2921 _ACEOF
2922 rm -f conftest.$ac_objext
2923 if { (ac_try="$ac_compile"
2924 case "(($ac_try" in
2925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2926   *) ac_try_echo=$ac_try;;
2927 esac
2928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2929 $as_echo "$ac_try_echo") >&5
2930   (eval "$ac_compile") 2>conftest.er1
2931   ac_status=$?
2932   grep -v '^ *+' conftest.er1 >conftest.err
2933   rm -f conftest.er1
2934   cat conftest.err >&5
2935   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936   (exit $ac_status); } && {
2937          test -z "$ac_c_werror_flag" ||
2938          test ! -s conftest.err
2939        } && test -s conftest.$ac_objext; then
2940   ac_cv_prog_cc_g=yes
2941 else
2942   $as_echo "$as_me: failed program was:" >&5
2943 sed 's/^/| /' conftest.$ac_ext >&5
2944
2945
2946 fi
2947
2948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2949 fi
2950
2951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2952 fi
2953
2954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2955    ac_c_werror_flag=$ac_save_c_werror_flag
2956 fi
2957 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2958 $as_echo "$ac_cv_prog_cc_g" >&6; }
2959 if test "$ac_test_CFLAGS" = set; then
2960   CFLAGS=$ac_save_CFLAGS
2961 elif test $ac_cv_prog_cc_g = yes; then
2962   if test "$GCC" = yes; then
2963     CFLAGS="-g -O2"
2964   else
2965     CFLAGS="-g"
2966   fi
2967 else
2968   if test "$GCC" = yes; then
2969     CFLAGS="-O2"
2970   else
2971     CFLAGS=
2972   fi
2973 fi
2974 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2975 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2976 if test "${ac_cv_prog_cc_c89+set}" = set; then
2977   $as_echo_n "(cached) " >&6
2978 else
2979   ac_cv_prog_cc_c89=no
2980 ac_save_CC=$CC
2981 cat >conftest.$ac_ext <<_ACEOF
2982 /* confdefs.h.  */
2983 _ACEOF
2984 cat confdefs.h >>conftest.$ac_ext
2985 cat >>conftest.$ac_ext <<_ACEOF
2986 /* end confdefs.h.  */
2987 #include <stdarg.h>
2988 #include <stdio.h>
2989 #include <sys/types.h>
2990 #include <sys/stat.h>
2991 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2992 struct buf { int x; };
2993 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2994 static char *e (p, i)
2995      char **p;
2996      int i;
2997 {
2998   return p[i];
2999 }
3000 static char *f (char * (*g) (char **, int), char **p, ...)
3001 {
3002   char *s;
3003   va_list v;
3004   va_start (v,p);
3005   s = g (p, va_arg (v,int));
3006   va_end (v);
3007   return s;
3008 }
3009
3010 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3011    function prototypes and stuff, but not '\xHH' hex character constants.
3012    These don't provoke an error unfortunately, instead are silently treated
3013    as 'x'.  The following induces an error, until -std is added to get
3014    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3015    array size at least.  It's necessary to write '\x00'==0 to get something
3016    that's true only with -std.  */
3017 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3018
3019 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3020    inside strings and character constants.  */
3021 #define FOO(x) 'x'
3022 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3023
3024 int test (int i, double x);
3025 struct s1 {int (*f) (int a);};
3026 struct s2 {int (*f) (double a);};
3027 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3028 int argc;
3029 char **argv;
3030 int
3031 main ()
3032 {
3033 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3034   ;
3035   return 0;
3036 }
3037 _ACEOF
3038 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3039         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3040 do
3041   CC="$ac_save_CC $ac_arg"
3042   rm -f conftest.$ac_objext
3043 if { (ac_try="$ac_compile"
3044 case "(($ac_try" in
3045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3046   *) ac_try_echo=$ac_try;;
3047 esac
3048 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3049 $as_echo "$ac_try_echo") >&5
3050   (eval "$ac_compile") 2>conftest.er1
3051   ac_status=$?
3052   grep -v '^ *+' conftest.er1 >conftest.err
3053   rm -f conftest.er1
3054   cat conftest.err >&5
3055   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056   (exit $ac_status); } && {
3057          test -z "$ac_c_werror_flag" ||
3058          test ! -s conftest.err
3059        } && test -s conftest.$ac_objext; then
3060   ac_cv_prog_cc_c89=$ac_arg
3061 else
3062   $as_echo "$as_me: failed program was:" >&5
3063 sed 's/^/| /' conftest.$ac_ext >&5
3064
3065
3066 fi
3067
3068 rm -f core conftest.err conftest.$ac_objext
3069   test "x$ac_cv_prog_cc_c89" != "xno" && break
3070 done
3071 rm -f conftest.$ac_ext
3072 CC=$ac_save_CC
3073
3074 fi
3075 # AC_CACHE_VAL
3076 case "x$ac_cv_prog_cc_c89" in
3077   x)
3078     { $as_echo "$as_me:$LINENO: result: none needed" >&5
3079 $as_echo "none needed" >&6; } ;;
3080   xno)
3081     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3082 $as_echo "unsupported" >&6; } ;;
3083   *)
3084     CC="$CC $ac_cv_prog_cc_c89"
3085     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3086 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3087 esac
3088
3089
3090 ac_ext=c
3091 ac_cpp='$CPP $CPPFLAGS'
3092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3095
3096 # Check whether --enable-shared was given.
3097 if test "${enable_shared+set}" = set; then
3098   enableval=$enable_shared; p=${PACKAGE-default}
3099     case $enableval in
3100     yes) enable_shared=yes ;;
3101     no) enable_shared=no ;;
3102     *)
3103       enable_shared=no
3104       # Look at the argument we got.  We use all the common list separators.
3105       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3106       for pkg in $enableval; do
3107         IFS="$lt_save_ifs"
3108         if test "X$pkg" = "X$p"; then
3109           enable_shared=yes
3110         fi
3111       done
3112       IFS="$lt_save_ifs"
3113       ;;
3114     esac
3115 else
3116   enable_shared=yes
3117 fi
3118
3119
3120 # Check whether --enable-static was given.
3121 if test "${enable_static+set}" = set; then
3122   enableval=$enable_static; p=${PACKAGE-default}
3123     case $enableval in
3124     yes) enable_static=yes ;;
3125     no) enable_static=no ;;
3126     *)
3127      enable_static=no
3128       # Look at the argument we got.  We use all the common list separators.
3129       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3130       for pkg in $enableval; do
3131         IFS="$lt_save_ifs"
3132         if test "X$pkg" = "X$p"; then
3133           enable_static=yes
3134         fi
3135       done
3136       IFS="$lt_save_ifs"
3137       ;;
3138     esac
3139 else
3140   enable_static=yes
3141 fi
3142
3143
3144 # Check whether --enable-fast-install was given.
3145 if test "${enable_fast_install+set}" = set; then
3146   enableval=$enable_fast_install; p=${PACKAGE-default}
3147     case $enableval in
3148     yes) enable_fast_install=yes ;;
3149     no) enable_fast_install=no ;;
3150     *)
3151       enable_fast_install=no
3152       # Look at the argument we got.  We use all the common list separators.
3153       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3154       for pkg in $enableval; do
3155         IFS="$lt_save_ifs"
3156         if test "X$pkg" = "X$p"; then
3157           enable_fast_install=yes
3158         fi
3159       done
3160       IFS="$lt_save_ifs"
3161       ;;
3162     esac
3163 else
3164   enable_fast_install=yes
3165 fi
3166
3167
3168 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3169 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3170 if test "${lt_cv_path_SED+set}" = set; then
3171   $as_echo_n "(cached) " >&6
3172 else
3173   # Loop through the user's path and test for sed and gsed.
3174 # Then use that list of sed's as ones to test for truncation.
3175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3176 for as_dir in $PATH
3177 do
3178   IFS=$as_save_IFS
3179   test -z "$as_dir" && as_dir=.
3180   for lt_ac_prog in sed gsed; do
3181     for ac_exec_ext in '' $ac_executable_extensions; do
3182       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3183         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3184       fi
3185     done
3186   done
3187 done
3188 lt_ac_max=0
3189 lt_ac_count=0
3190 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3191 # along with /bin/sed that truncates output.
3192 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3193   test ! -f $lt_ac_sed && break
3194   cat /dev/null > conftest.in
3195   lt_ac_count=0
3196   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3197   # Check for GNU sed and select it if it is found.
3198   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3199     lt_cv_path_SED=$lt_ac_sed
3200     break
3201   fi
3202   while true; do
3203     cat conftest.in conftest.in >conftest.tmp
3204     mv conftest.tmp conftest.in
3205     cp conftest.in conftest.nl
3206     echo >>conftest.nl
3207     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3208     cmp -s conftest.out conftest.nl || break
3209     # 10000 chars as input seems more than enough
3210     test $lt_ac_count -gt 10 && break
3211     lt_ac_count=`expr $lt_ac_count + 1`
3212     if test $lt_ac_count -gt $lt_ac_max; then
3213       lt_ac_max=$lt_ac_count
3214       lt_cv_path_SED=$lt_ac_sed
3215     fi
3216   done
3217 done
3218 SED=$lt_cv_path_SED
3219
3220 fi
3221
3222 { $as_echo "$as_me:$LINENO: result: $SED" >&5
3223 $as_echo "$SED" >&6; }
3224
3225 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3226 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3227 if test "${ac_cv_path_GREP+set}" = set; then
3228   $as_echo_n "(cached) " >&6
3229 else
3230   if test -z "$GREP"; then
3231   ac_path_GREP_found=false
3232   # Loop through the user's path and test for each of PROGNAME-LIST
3233   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3234 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3235 do
3236   IFS=$as_save_IFS
3237   test -z "$as_dir" && as_dir=.
3238   for ac_prog in grep ggrep; do
3239     for ac_exec_ext in '' $ac_executable_extensions; do
3240       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3241       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3242 # Check for GNU ac_path_GREP and select it if it is found.
3243   # Check for GNU $ac_path_GREP
3244 case `"$ac_path_GREP" --version 2>&1` in
3245 *GNU*)
3246   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3247 *)
3248   ac_count=0
3249   $as_echo_n 0123456789 >"conftest.in"
3250   while :
3251   do
3252     cat "conftest.in" "conftest.in" >"conftest.tmp"
3253     mv "conftest.tmp" "conftest.in"
3254     cp "conftest.in" "conftest.nl"
3255     $as_echo 'GREP' >> "conftest.nl"
3256     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3257     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3258     ac_count=`expr $ac_count + 1`
3259     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3260       # Best one so far, save it but keep looking for a better one
3261       ac_cv_path_GREP="$ac_path_GREP"
3262       ac_path_GREP_max=$ac_count
3263     fi
3264     # 10*(2^10) chars as input seems more than enough
3265     test $ac_count -gt 10 && break
3266   done
3267   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3268 esac
3269
3270       $ac_path_GREP_found && break 3
3271     done
3272   done
3273 done
3274 IFS=$as_save_IFS
3275   if test -z "$ac_cv_path_GREP"; then
3276     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3277 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3278    { (exit 1); exit 1; }; }
3279   fi
3280 else
3281   ac_cv_path_GREP=$GREP
3282 fi
3283
3284 fi
3285 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3286 $as_echo "$ac_cv_path_GREP" >&6; }
3287  GREP="$ac_cv_path_GREP"
3288
3289
3290 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3291 $as_echo_n "checking for egrep... " >&6; }
3292 if test "${ac_cv_path_EGREP+set}" = set; then
3293   $as_echo_n "(cached) " >&6
3294 else
3295   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3296    then ac_cv_path_EGREP="$GREP -E"
3297    else
3298      if test -z "$EGREP"; then
3299   ac_path_EGREP_found=false
3300   # Loop through the user's path and test for each of PROGNAME-LIST
3301   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3302 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3303 do
3304   IFS=$as_save_IFS
3305   test -z "$as_dir" && as_dir=.
3306   for ac_prog in egrep; do
3307     for ac_exec_ext in '' $ac_executable_extensions; do
3308       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3309       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3310 # Check for GNU ac_path_EGREP and select it if it is found.
3311   # Check for GNU $ac_path_EGREP
3312 case `"$ac_path_EGREP" --version 2>&1` in
3313 *GNU*)
3314   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3315 *)
3316   ac_count=0
3317   $as_echo_n 0123456789 >"conftest.in"
3318   while :
3319   do
3320     cat "conftest.in" "conftest.in" >"conftest.tmp"
3321     mv "conftest.tmp" "conftest.in"
3322     cp "conftest.in" "conftest.nl"
3323     $as_echo 'EGREP' >> "conftest.nl"
3324     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3325     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3326     ac_count=`expr $ac_count + 1`
3327     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3328       # Best one so far, save it but keep looking for a better one
3329       ac_cv_path_EGREP="$ac_path_EGREP"
3330       ac_path_EGREP_max=$ac_count
3331     fi
3332     # 10*(2^10) chars as input seems more than enough
3333     test $ac_count -gt 10 && break
3334   done
3335   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3336 esac
3337
3338       $ac_path_EGREP_found && break 3
3339     done
3340   done
3341 done
3342 IFS=$as_save_IFS
3343   if test -z "$ac_cv_path_EGREP"; then
3344     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3345 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3346    { (exit 1); exit 1; }; }
3347   fi
3348 else
3349   ac_cv_path_EGREP=$EGREP
3350 fi
3351
3352    fi
3353 fi
3354 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3355 $as_echo "$ac_cv_path_EGREP" >&6; }
3356  EGREP="$ac_cv_path_EGREP"
3357
3358
3359
3360 # Check whether --with-gnu-ld was given.
3361 if test "${with_gnu_ld+set}" = set; then
3362   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3363 else
3364   with_gnu_ld=no
3365 fi
3366
3367 ac_prog=ld
3368 if test "$GCC" = yes; then
3369   # Check if gcc -print-prog-name=ld gives a path.
3370   { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3371 $as_echo_n "checking for ld used by $CC... " >&6; }
3372   case $host in
3373   *-*-mingw*)
3374     # gcc leaves a trailing carriage return which upsets mingw
3375     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3376   *)
3377     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3378   esac
3379   case $ac_prog in
3380     # Accept absolute paths.
3381     [\\/]* | ?:[\\/]*)
3382       re_direlt='/[^/][^/]*/\.\./'
3383       # Canonicalize the pathname of ld
3384       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3385       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3386         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3387       done
3388       test -z "$LD" && LD="$ac_prog"
3389       ;;
3390   "")
3391     # If it fails, then pretend we aren't using GCC.
3392     ac_prog=ld
3393     ;;
3394   *)
3395     # If it is relative, then search for the first ld in PATH.
3396     with_gnu_ld=unknown
3397     ;;
3398   esac
3399 elif test "$with_gnu_ld" = yes; then
3400   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
3401 $as_echo_n "checking for GNU ld... " >&6; }
3402 else
3403   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3404 $as_echo_n "checking for non-GNU ld... " >&6; }
3405 fi
3406 if test "${lt_cv_path_LD+set}" = set; then
3407   $as_echo_n "(cached) " >&6
3408 else
3409   if test -z "$LD"; then
3410   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3411   for ac_dir in $PATH; do
3412     IFS="$lt_save_ifs"
3413     test -z "$ac_dir" && ac_dir=.
3414     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3415       lt_cv_path_LD="$ac_dir/$ac_prog"
3416       # Check to see if the program is GNU ld.  I'd rather use --version,
3417       # but apparently some GNU ld's only accept -v.
3418       # Break only if it was the GNU/non-GNU ld that we prefer.
3419       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3420       *GNU* | *'with BFD'*)
3421         test "$with_gnu_ld" != no && break
3422         ;;
3423       *)
3424         test "$with_gnu_ld" != yes && break
3425         ;;
3426       esac
3427     fi
3428   done
3429   IFS="$lt_save_ifs"
3430 else
3431   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3432 fi
3433 fi
3434
3435 LD="$lt_cv_path_LD"
3436 if test -n "$LD"; then
3437   { $as_echo "$as_me:$LINENO: result: $LD" >&5
3438 $as_echo "$LD" >&6; }
3439 else
3440   { $as_echo "$as_me:$LINENO: result: no" >&5
3441 $as_echo "no" >&6; }
3442 fi
3443 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3444 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3445    { (exit 1); exit 1; }; }
3446 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3447 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
3448 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3449   $as_echo_n "(cached) " >&6
3450 else
3451   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3452 case `$LD -v 2>&1 </dev/null` in
3453 *GNU* | *'with BFD'*)
3454   lt_cv_prog_gnu_ld=yes
3455   ;;
3456 *)
3457   lt_cv_prog_gnu_ld=no
3458   ;;
3459 esac
3460 fi
3461 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3462 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
3463 with_gnu_ld=$lt_cv_prog_gnu_ld
3464
3465
3466 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3467 $as_echo_n "checking for $LD option to reload object files... " >&6; }
3468 if test "${lt_cv_ld_reload_flag+set}" = set; then
3469   $as_echo_n "(cached) " >&6
3470 else
3471   lt_cv_ld_reload_flag='-r'
3472 fi
3473 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3474 $as_echo "$lt_cv_ld_reload_flag" >&6; }
3475 reload_flag=$lt_cv_ld_reload_flag
3476 case $reload_flag in
3477 "" | " "*) ;;
3478 *) reload_flag=" $reload_flag" ;;
3479 esac
3480 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3481
3482 { $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3483 $as_echo_n "checking for BSD-compatible nm... " >&6; }
3484 if test "${lt_cv_path_NM+set}" = set; then
3485   $as_echo_n "(cached) " >&6
3486 else
3487   if test -n "$NM"; then
3488   # Let the user override the test.
3489   lt_cv_path_NM="$NM"
3490 else
3491   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3492   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3493     IFS="$lt_save_ifs"
3494     test -z "$ac_dir" && ac_dir=.
3495     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3496     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3497       # Check to see if the nm accepts a BSD-compat flag.
3498       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3499       #   nm: unknown option "B" ignored
3500       # Tru64's nm complains that /dev/null is an invalid object file
3501       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3502       */dev/null* | *'Invalid file or object type'*)
3503         lt_cv_path_NM="$tmp_nm -B"
3504         break
3505         ;;
3506       *)
3507         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3508         */dev/null*)
3509           lt_cv_path_NM="$tmp_nm -p"
3510           break
3511           ;;
3512         *)
3513           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3514           continue # so that we can try to find one that supports BSD flags
3515           ;;
3516         esac
3517       esac
3518     fi
3519   done
3520   IFS="$lt_save_ifs"
3521   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3522 fi
3523 fi
3524 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3525 $as_echo "$lt_cv_path_NM" >&6; }
3526 NM="$lt_cv_path_NM"
3527
3528 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3529 $as_echo_n "checking whether ln -s works... " >&6; }
3530 LN_S=$as_ln_s
3531 if test "$LN_S" = "ln -s"; then
3532   { $as_echo "$as_me:$LINENO: result: yes" >&5
3533 $as_echo "yes" >&6; }
3534 else
3535   { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3536 $as_echo "no, using $LN_S" >&6; }
3537 fi
3538
3539 { $as_echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3540 $as_echo_n "checking how to recognise dependent libraries... " >&6; }
3541 if test "${lt_cv_deplibs_check_method+set}" = set; then
3542   $as_echo_n "(cached) " >&6
3543 else
3544   lt_cv_file_magic_cmd='$MAGIC_CMD'
3545 lt_cv_file_magic_test_file=
3546 lt_cv_deplibs_check_method='unknown'
3547 # Need to set the preceding variable on all platforms that support
3548 # interlibrary dependencies.
3549 # 'none' -- dependencies not supported.
3550 # `unknown' -- same as none, but documents that we really don't know.
3551 # 'pass_all' -- all dependencies passed with no checks.
3552 # 'test_compile' -- check by making test program.
3553 # 'file_magic [[regex]]' -- check by looking for files in library path
3554 # which responds to the $file_magic_cmd with a given extended regex.
3555 # If you have `file' or equivalent on your system and you're not sure
3556 # whether `pass_all' will *always* work, you probably want this one.
3557
3558 case $host_os in
3559 aix4* | aix5*)
3560   lt_cv_deplibs_check_method=pass_all
3561   ;;
3562
3563 beos*)
3564   lt_cv_deplibs_check_method=pass_all
3565   ;;
3566
3567 bsdi4*)
3568   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3569   lt_cv_file_magic_cmd='/usr/bin/file -L'
3570   lt_cv_file_magic_test_file=/shlib/libc.so
3571   ;;
3572
3573 cygwin* | mingw* | pw32*)
3574   # win32_libid is a shell function defined in ltmain.sh
3575   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3576   lt_cv_file_magic_cmd='win32_libid'
3577   ;;
3578
3579 darwin* | rhapsody*)
3580   # this will be overwritten by pass_all, but leave it in just in case
3581   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3582   lt_cv_file_magic_cmd='/usr/bin/file -L'
3583   case "$host_os" in
3584   rhapsody* | darwin1.[012])
3585     lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
3586     ;;
3587   *) # Darwin 1.3 on
3588     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3589     ;;
3590   esac
3591   lt_cv_deplibs_check_method=pass_all
3592   ;;
3593
3594 freebsd* | kfreebsd*-gnu)
3595   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3596     case $host_cpu in
3597     i*86 )
3598       # Not sure whether the presence of OpenBSD here was a mistake.
3599       # Let's accept both of them until this is cleared up.
3600       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3601       lt_cv_file_magic_cmd=/usr/bin/file
3602       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3603       ;;
3604     esac
3605   else
3606     lt_cv_deplibs_check_method=pass_all
3607   fi
3608   ;;
3609
3610 gnu*)
3611   lt_cv_deplibs_check_method=pass_all
3612   ;;
3613
3614 hpux10.20* | hpux11*)
3615   lt_cv_file_magic_cmd=/usr/bin/file
3616   case "$host_cpu" in
3617   ia64*)
3618     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3619     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3620     ;;
3621   hppa*64*)
3622     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]'
3623     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3624     ;;
3625   *)
3626     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3627     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3628     ;;
3629   esac
3630   ;;
3631
3632 irix5* | irix6* | nonstopux*)
3633   case $host_os in
3634   irix5* | nonstopux*)
3635     # this will be overridden with pass_all, but let us keep it just in case
3636     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3637     ;;
3638   *)
3639     case $LD in
3640     *-32|*"-32 ") libmagic=32-bit;;
3641     *-n32|*"-n32 ") libmagic=N32;;
3642     *-64|*"-64 ") libmagic=64-bit;;
3643     *) libmagic=never-match;;
3644     esac
3645     # this will be overridden with pass_all, but let us keep it just in case
3646     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3647     ;;
3648   esac
3649   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3650   lt_cv_deplibs_check_method=pass_all
3651   ;;
3652
3653 # This must be Linux ELF.
3654 linux*)
3655   # linux always uses pass_all now, this code is the old way (tm)
3656   case $host_cpu in
3657   alpha* | hppa* | i*86 | ia64* | m68* | mips* | powerpc* | sparc* | s390* | sh*)
3658     lt_cv_deplibs_check_method=pass_all ;;
3659   *)
3660     # glibc up to 2.1.1 does not perform some relocations on ARM
3661     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3662   esac
3663   lt_cv_deplibs_check_method=pass_all
3664   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3665   ;;
3666
3667 netbsd*)
3668   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3669     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3670   else
3671     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3672   fi
3673   ;;
3674
3675 newos6*)
3676   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3677   lt_cv_file_magic_cmd=/usr/bin/file
3678   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3679   ;;
3680
3681 nto-qnx*)
3682   lt_cv_deplibs_check_method=unknown
3683   ;;
3684
3685 openbsd*)
3686   lt_cv_file_magic_cmd=/usr/bin/file
3687   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3688   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3689     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3690   else
3691     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3692   fi
3693   ;;
3694
3695 osf3* | osf4* | osf5*)
3696   # this will be overridden with pass_all, but let us keep it just in case
3697   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3698   lt_cv_file_magic_test_file=/shlib/libc.so
3699   lt_cv_deplibs_check_method=pass_all
3700   ;;
3701
3702 sco3.2v5*)
3703   lt_cv_deplibs_check_method=pass_all
3704   ;;
3705
3706 solaris*)
3707   lt_cv_deplibs_check_method=pass_all
3708   lt_cv_file_magic_test_file=/lib/libc.so
3709   ;;
3710
3711 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3712   case $host_vendor in
3713   motorola)
3714     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]'
3715     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3716     ;;
3717   ncr)
3718     lt_cv_deplibs_check_method=pass_all
3719     ;;
3720   sequent)
3721     lt_cv_file_magic_cmd='/bin/file'
3722     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3723     ;;
3724   sni)
3725     lt_cv_file_magic_cmd='/bin/file'
3726     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3727     lt_cv_file_magic_test_file=/lib/libc.so
3728     ;;
3729   siemens)
3730     lt_cv_deplibs_check_method=pass_all
3731     ;;
3732   esac
3733   ;;
3734
3735 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3736   lt_cv_deplibs_check_method=pass_all
3737   ;;
3738 esac
3739
3740 fi
3741 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3742 $as_echo "$lt_cv_deplibs_check_method" >&6; }
3743 file_magic_cmd=$lt_cv_file_magic_cmd
3744 deplibs_check_method=$lt_cv_deplibs_check_method
3745 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3746
3747
3748
3749
3750 # If no C compiler was specified, use CC.
3751 LTCC=${LTCC-"$CC"}
3752
3753 # Allow CC to be a program name with arguments.
3754 compiler=$CC
3755
3756
3757 # Check whether --enable-libtool-lock was given.
3758 if test "${enable_libtool_lock+set}" = set; then
3759   enableval=$enable_libtool_lock;
3760 fi
3761
3762 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3763
3764 # Some flags need to be propagated to the compiler or linker for good
3765 # libtool support.
3766 case $host in
3767 ia64-*-hpux*)
3768   # Find out which ABI we are using.
3769   echo 'int i;' > conftest.$ac_ext
3770   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3771   (eval $ac_compile) 2>&5
3772   ac_status=$?
3773   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3774   (exit $ac_status); }; then
3775     case `/usr/bin/file conftest.$ac_objext` in
3776     *ELF-32*)
3777       HPUX_IA64_MODE="32"
3778       ;;
3779     *ELF-64*)
3780       HPUX_IA64_MODE="64"
3781       ;;
3782     esac
3783   fi
3784   rm -rf conftest*
3785   ;;
3786 *-*-irix6*)
3787   # Find out which ABI we are using.
3788   echo '#line 3788 "configure"' > conftest.$ac_ext
3789   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3790   (eval $ac_compile) 2>&5
3791   ac_status=$?
3792   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793   (exit $ac_status); }; then
3794    if test "$lt_cv_prog_gnu_ld" = yes; then
3795     case `/usr/bin/file conftest.$ac_objext` in
3796     *32-bit*)
3797       LD="${LD-ld} -melf32bsmip"
3798       ;;
3799     *N32*)
3800       LD="${LD-ld} -melf32bmipn32"
3801       ;;
3802     *64-bit*)
3803       LD="${LD-ld} -melf64bmip"
3804       ;;
3805     esac
3806    else
3807     case `/usr/bin/file conftest.$ac_objext` in
3808     *32-bit*)
3809       LD="${LD-ld} -32"
3810       ;;
3811     *N32*)
3812       LD="${LD-ld} -n32"
3813       ;;
3814     *64-bit*)
3815       LD="${LD-ld} -64"
3816       ;;
3817     esac
3818    fi
3819   fi
3820   rm -rf conftest*
3821   ;;
3822
3823 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3824   # Find out which ABI we are using.
3825   echo 'int i;' > conftest.$ac_ext
3826   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3827   (eval $ac_compile) 2>&5
3828   ac_status=$?
3829   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3830   (exit $ac_status); }; then
3831     case "`/usr/bin/file conftest.o`" in
3832     *32-bit*)
3833       case $host in
3834         x86_64-*linux*)
3835           LD="${LD-ld} -m elf_i386"
3836           ;;
3837         ppc64-*linux*|powerpc64-*linux*)
3838           LD="${LD-ld} -m elf32ppclinux"
3839           ;;
3840         s390x-*linux*)
3841           LD="${LD-ld} -m elf_s390"
3842           ;;
3843         sparc64-*linux*)
3844           LD="${LD-ld} -m elf32_sparc"
3845           ;;
3846       esac
3847       ;;
3848     *64-bit*)
3849       case $host in
3850         x86_64-*linux*)
3851           LD="${LD-ld} -m elf_x86_64"
3852           ;;
3853         ppc*-*linux*|powerpc*-*linux*)
3854           LD="${LD-ld} -m elf64ppc"
3855           ;;
3856         s390*-*linux*)
3857           LD="${LD-ld} -m elf64_s390"
3858           ;;
3859         sparc*-*linux*)
3860           LD="${LD-ld} -m elf64_sparc"
3861           ;;
3862       esac
3863       ;;
3864     esac
3865   fi
3866   rm -rf conftest*
3867   ;;
3868
3869 *-*-sco3.2v5*)
3870   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3871   SAVE_CFLAGS="$CFLAGS"
3872   CFLAGS="$CFLAGS -belf"
3873   { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3874 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
3875 if test "${lt_cv_cc_needs_belf+set}" = set; then
3876   $as_echo_n "(cached) " >&6
3877 else
3878   ac_ext=c
3879 ac_cpp='$CPP $CPPFLAGS'
3880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3883
3884      cat >conftest.$ac_ext <<_ACEOF
3885 /* confdefs.h.  */
3886 _ACEOF
3887 cat confdefs.h >>conftest.$ac_ext
3888 cat >>conftest.$ac_ext <<_ACEOF
3889 /* end confdefs.h.  */
3890
3891 int
3892 main ()
3893 {
3894
3895   ;
3896   return 0;
3897 }
3898 _ACEOF
3899 rm -f conftest.$ac_objext conftest$ac_exeext
3900 if { (ac_try="$ac_link"
3901 case "(($ac_try" in
3902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3903   *) ac_try_echo=$ac_try;;
3904 esac
3905 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3906 $as_echo "$ac_try_echo") >&5
3907   (eval "$ac_link") 2>conftest.er1
3908   ac_status=$?
3909   grep -v '^ *+' conftest.er1 >conftest.err
3910   rm -f conftest.er1
3911   cat conftest.err >&5
3912   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3913   (exit $ac_status); } && {
3914          test -z "$ac_c_werror_flag" ||
3915          test ! -s conftest.err
3916        } && test -s conftest$ac_exeext && {
3917          test "$cross_compiling" = yes ||
3918          $as_test_x conftest$ac_exeext
3919        }; then
3920   lt_cv_cc_needs_belf=yes
3921 else
3922   $as_echo "$as_me: failed program was:" >&5
3923 sed 's/^/| /' conftest.$ac_ext >&5
3924
3925         lt_cv_cc_needs_belf=no
3926 fi
3927
3928 rm -rf conftest.dSYM
3929 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3930       conftest$ac_exeext conftest.$ac_ext
3931      ac_ext=c
3932 ac_cpp='$CPP $CPPFLAGS'
3933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3936
3937 fi
3938 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3939 $as_echo "$lt_cv_cc_needs_belf" >&6; }
3940   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3941     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3942     CFLAGS="$SAVE_CFLAGS"
3943   fi
3944   ;;
3945
3946 esac
3947
3948 need_locks="$enable_libtool_lock"
3949
3950
3951 ac_ext=c
3952 ac_cpp='$CPP $CPPFLAGS'
3953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3956 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3957 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3958 # On Suns, sometimes $CPP names a directory.
3959 if test -n "$CPP" && test -d "$CPP"; then
3960   CPP=
3961 fi
3962 if test -z "$CPP"; then
3963   if test "${ac_cv_prog_CPP+set}" = set; then
3964   $as_echo_n "(cached) " >&6
3965 else
3966       # Double quotes because CPP needs to be expanded
3967     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3968     do
3969       ac_preproc_ok=false
3970 for ac_c_preproc_warn_flag in '' yes
3971 do
3972   # Use a header file that comes with gcc, so configuring glibc
3973   # with a fresh cross-compiler works.
3974   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3975   # <limits.h> exists even on freestanding compilers.
3976   # On the NeXT, cc -E runs the code through the compiler's parser,
3977   # not just through cpp. "Syntax error" is here to catch this case.
3978   cat >conftest.$ac_ext <<_ACEOF
3979 /* confdefs.h.  */
3980 _ACEOF
3981 cat confdefs.h >>conftest.$ac_ext
3982 cat >>conftest.$ac_ext <<_ACEOF
3983 /* end confdefs.h.  */
3984 #ifdef __STDC__
3985 # include <limits.h>
3986 #else
3987 # include <assert.h>
3988 #endif
3989                      Syntax error
3990 _ACEOF
3991 if { (ac_try="$ac_cpp conftest.$ac_ext"
3992 case "(($ac_try" in
3993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3994   *) ac_try_echo=$ac_try;;
3995 esac
3996 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3997 $as_echo "$ac_try_echo") >&5
3998   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3999   ac_status=$?
4000   grep -v '^ *+' conftest.er1 >conftest.err
4001   rm -f conftest.er1
4002   cat conftest.err >&5
4003   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4004   (exit $ac_status); } >/dev/null && {
4005          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4006          test ! -s conftest.err
4007        }; then
4008   :
4009 else
4010   $as_echo "$as_me: failed program was:" >&5
4011 sed 's/^/| /' conftest.$ac_ext >&5
4012
4013   # Broken: fails on valid input.
4014 continue
4015 fi
4016
4017 rm -f conftest.err conftest.$ac_ext
4018
4019   # OK, works on sane cases.  Now check whether nonexistent headers
4020   # can be detected and how.
4021   cat >conftest.$ac_ext <<_ACEOF
4022 /* confdefs.h.  */
4023 _ACEOF
4024 cat confdefs.h >>conftest.$ac_ext
4025 cat >>conftest.$ac_ext <<_ACEOF
4026 /* end confdefs.h.  */
4027 #include <ac_nonexistent.h>
4028 _ACEOF
4029 if { (ac_try="$ac_cpp conftest.$ac_ext"
4030 case "(($ac_try" in
4031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4032   *) ac_try_echo=$ac_try;;
4033 esac
4034 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4035 $as_echo "$ac_try_echo") >&5
4036   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4037   ac_status=$?
4038   grep -v '^ *+' conftest.er1 >conftest.err
4039   rm -f conftest.er1
4040   cat conftest.err >&5
4041   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042   (exit $ac_status); } >/dev/null && {
4043          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4044          test ! -s conftest.err
4045        }; then
4046   # Broken: success on invalid input.
4047 continue
4048 else
4049   $as_echo "$as_me: failed program was:" >&5
4050 sed 's/^/| /' conftest.$ac_ext >&5
4051
4052   # Passes both tests.
4053 ac_preproc_ok=:
4054 break
4055 fi
4056
4057 rm -f conftest.err conftest.$ac_ext
4058
4059 done
4060 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4061 rm -f conftest.err conftest.$ac_ext
4062 if $ac_preproc_ok; then
4063   break
4064 fi
4065
4066     done
4067     ac_cv_prog_CPP=$CPP
4068
4069 fi
4070   CPP=$ac_cv_prog_CPP
4071 else
4072   ac_cv_prog_CPP=$CPP
4073 fi
4074 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4075 $as_echo "$CPP" >&6; }
4076 ac_preproc_ok=false
4077 for ac_c_preproc_warn_flag in '' yes
4078 do
4079   # Use a header file that comes with gcc, so configuring glibc
4080   # with a fresh cross-compiler works.
4081   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4082   # <limits.h> exists even on freestanding compilers.
4083   # On the NeXT, cc -E runs the code through the compiler's parser,
4084   # not just through cpp. "Syntax error" is here to catch this case.
4085   cat >conftest.$ac_ext <<_ACEOF
4086 /* confdefs.h.  */
4087 _ACEOF
4088 cat confdefs.h >>conftest.$ac_ext
4089 cat >>conftest.$ac_ext <<_ACEOF
4090 /* end confdefs.h.  */
4091 #ifdef __STDC__
4092 # include <limits.h>
4093 #else
4094 # include <assert.h>
4095 #endif
4096                      Syntax error
4097 _ACEOF
4098 if { (ac_try="$ac_cpp conftest.$ac_ext"
4099 case "(($ac_try" in
4100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4101   *) ac_try_echo=$ac_try;;
4102 esac
4103 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4104 $as_echo "$ac_try_echo") >&5
4105   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4106   ac_status=$?
4107   grep -v '^ *+' conftest.er1 >conftest.err
4108   rm -f conftest.er1
4109   cat conftest.err >&5
4110   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4111   (exit $ac_status); } >/dev/null && {
4112          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4113          test ! -s conftest.err
4114        }; then
4115   :
4116 else
4117   $as_echo "$as_me: failed program was:" >&5
4118 sed 's/^/| /' conftest.$ac_ext >&5
4119
4120   # Broken: fails on valid input.
4121 continue
4122 fi
4123
4124 rm -f conftest.err conftest.$ac_ext
4125
4126   # OK, works on sane cases.  Now check whether nonexistent headers
4127   # can be detected and how.
4128   cat >conftest.$ac_ext <<_ACEOF
4129 /* confdefs.h.  */
4130 _ACEOF
4131 cat confdefs.h >>conftest.$ac_ext
4132 cat >>conftest.$ac_ext <<_ACEOF
4133 /* end confdefs.h.  */
4134 #include <ac_nonexistent.h>
4135 _ACEOF
4136 if { (ac_try="$ac_cpp conftest.$ac_ext"
4137 case "(($ac_try" in
4138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4139   *) ac_try_echo=$ac_try;;
4140 esac
4141 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4142 $as_echo "$ac_try_echo") >&5
4143   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4144   ac_status=$?
4145   grep -v '^ *+' conftest.er1 >conftest.err
4146   rm -f conftest.er1
4147   cat conftest.err >&5
4148   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149   (exit $ac_status); } >/dev/null && {
4150          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4151          test ! -s conftest.err
4152        }; then
4153   # Broken: success on invalid input.
4154 continue
4155 else
4156   $as_echo "$as_me: failed program was:" >&5
4157 sed 's/^/| /' conftest.$ac_ext >&5
4158
4159   # Passes both tests.
4160 ac_preproc_ok=:
4161 break
4162 fi
4163
4164 rm -f conftest.err conftest.$ac_ext
4165
4166 done
4167 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4168 rm -f conftest.err conftest.$ac_ext
4169 if $ac_preproc_ok; then
4170   :
4171 else
4172   { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4173 See \`config.log' for more details." >&5
4174 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4175 See \`config.log' for more details." >&2;}
4176    { (exit 1); exit 1; }; }
4177 fi
4178
4179 ac_ext=c
4180 ac_cpp='$CPP $CPPFLAGS'
4181 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4182 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4184
4185
4186 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4187 $as_echo_n "checking for ANSI C header files... " >&6; }
4188 if test "${ac_cv_header_stdc+set}" = set; then
4189   $as_echo_n "(cached) " >&6
4190 else
4191   cat >conftest.$ac_ext <<_ACEOF
4192 /* confdefs.h.  */
4193 _ACEOF
4194 cat confdefs.h >>conftest.$ac_ext
4195 cat >>conftest.$ac_ext <<_ACEOF
4196 /* end confdefs.h.  */
4197 #include <stdlib.h>
4198 #include <stdarg.h>
4199 #include <string.h>
4200 #include <float.h>
4201
4202 int
4203 main ()
4204 {
4205
4206   ;
4207   return 0;
4208 }
4209 _ACEOF
4210 rm -f conftest.$ac_objext
4211 if { (ac_try="$ac_compile"
4212 case "(($ac_try" in
4213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4214   *) ac_try_echo=$ac_try;;
4215 esac
4216 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4217 $as_echo "$ac_try_echo") >&5
4218   (eval "$ac_compile") 2>conftest.er1
4219   ac_status=$?
4220   grep -v '^ *+' conftest.er1 >conftest.err
4221   rm -f conftest.er1
4222   cat conftest.err >&5
4223   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224   (exit $ac_status); } && {
4225          test -z "$ac_c_werror_flag" ||
4226          test ! -s conftest.err
4227        } && test -s conftest.$ac_objext; then
4228   ac_cv_header_stdc=yes
4229 else
4230   $as_echo "$as_me: failed program was:" >&5
4231 sed 's/^/| /' conftest.$ac_ext >&5
4232
4233         ac_cv_header_stdc=no
4234 fi
4235
4236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4237
4238 if test $ac_cv_header_stdc = yes; then
4239   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4240   cat >conftest.$ac_ext <<_ACEOF
4241 /* confdefs.h.  */
4242 _ACEOF
4243 cat confdefs.h >>conftest.$ac_ext
4244 cat >>conftest.$ac_ext <<_ACEOF
4245 /* end confdefs.h.  */
4246 #include <string.h>
4247
4248 _ACEOF
4249 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4250   $EGREP "memchr" >/dev/null 2>&1; then
4251   :
4252 else
4253   ac_cv_header_stdc=no
4254 fi
4255 rm -f conftest*
4256
4257 fi
4258
4259 if test $ac_cv_header_stdc = yes; then
4260   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4261   cat >conftest.$ac_ext <<_ACEOF
4262 /* confdefs.h.  */
4263 _ACEOF
4264 cat confdefs.h >>conftest.$ac_ext
4265 cat >>conftest.$ac_ext <<_ACEOF
4266 /* end confdefs.h.  */
4267 #include <stdlib.h>
4268
4269 _ACEOF
4270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4271   $EGREP "free" >/dev/null 2>&1; then
4272   :
4273 else
4274   ac_cv_header_stdc=no
4275 fi
4276 rm -f conftest*
4277
4278 fi
4279
4280 if test $ac_cv_header_stdc = yes; then
4281   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4282   if test "$cross_compiling" = yes; then
4283   :
4284 else
4285   cat >conftest.$ac_ext <<_ACEOF
4286 /* confdefs.h.  */
4287 _ACEOF
4288 cat confdefs.h >>conftest.$ac_ext
4289 cat >>conftest.$ac_ext <<_ACEOF
4290 /* end confdefs.h.  */
4291 #include <ctype.h>
4292 #include <stdlib.h>
4293 #if ((' ' & 0x0FF) == 0x020)
4294 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4295 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4296 #else
4297 # define ISLOWER(c) \
4298                    (('a' <= (c) && (c) <= 'i') \
4299                      || ('j' <= (c) && (c) <= 'r') \
4300                      || ('s' <= (c) && (c) <= 'z'))
4301 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4302 #endif
4303
4304 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4305 int
4306 main ()
4307 {
4308   int i;
4309   for (i = 0; i < 256; i++)
4310     if (XOR (islower (i), ISLOWER (i))
4311         || toupper (i) != TOUPPER (i))
4312       return 2;
4313   return 0;
4314 }
4315 _ACEOF
4316 rm -f conftest$ac_exeext
4317 if { (ac_try="$ac_link"
4318 case "(($ac_try" in
4319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4320   *) ac_try_echo=$ac_try;;
4321 esac
4322 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4323 $as_echo "$ac_try_echo") >&5
4324   (eval "$ac_link") 2>&5
4325   ac_status=$?
4326   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4327   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4328   { (case "(($ac_try" in
4329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4330   *) ac_try_echo=$ac_try;;
4331 esac
4332 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4333 $as_echo "$ac_try_echo") >&5
4334   (eval "$ac_try") 2>&5
4335   ac_status=$?
4336   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4337   (exit $ac_status); }; }; then
4338   :
4339 else
4340   $as_echo "$as_me: program exited with status $ac_status" >&5
4341 $as_echo "$as_me: failed program was:" >&5
4342 sed 's/^/| /' conftest.$ac_ext >&5
4343
4344 ( exit $ac_status )
4345 ac_cv_header_stdc=no
4346 fi
4347 rm -rf conftest.dSYM
4348 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4349 fi
4350
4351
4352 fi
4353 fi
4354 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4355 $as_echo "$ac_cv_header_stdc" >&6; }
4356 if test $ac_cv_header_stdc = yes; then
4357
4358 cat >>confdefs.h <<\_ACEOF
4359 #define STDC_HEADERS 1
4360 _ACEOF
4361
4362 fi
4363
4364 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4375                   inttypes.h stdint.h unistd.h
4376 do
4377 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4378 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4379 $as_echo_n "checking for $ac_header... " >&6; }
4380 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4381   $as_echo_n "(cached) " >&6
4382 else
4383   cat >conftest.$ac_ext <<_ACEOF
4384 /* confdefs.h.  */
4385 _ACEOF
4386 cat confdefs.h >>conftest.$ac_ext
4387 cat >>conftest.$ac_ext <<_ACEOF
4388 /* end confdefs.h.  */
4389 $ac_includes_default
4390
4391 #include <$ac_header>
4392 _ACEOF
4393 rm -f conftest.$ac_objext
4394 if { (ac_try="$ac_compile"
4395 case "(($ac_try" in
4396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4397   *) ac_try_echo=$ac_try;;
4398 esac
4399 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4400 $as_echo "$ac_try_echo") >&5
4401   (eval "$ac_compile") 2>conftest.er1
4402   ac_status=$?
4403   grep -v '^ *+' conftest.er1 >conftest.err
4404   rm -f conftest.er1
4405   cat conftest.err >&5
4406   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407   (exit $ac_status); } && {
4408          test -z "$ac_c_werror_flag" ||
4409          test ! -s conftest.err
4410        } && test -s conftest.$ac_objext; then
4411   eval "$as_ac_Header=yes"
4412 else
4413   $as_echo "$as_me: failed program was:" >&5
4414 sed 's/^/| /' conftest.$ac_ext >&5
4415
4416         eval "$as_ac_Header=no"
4417 fi
4418
4419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4420 fi
4421 ac_res=`eval 'as_val=${'$as_ac_Header'}
4422                  $as_echo "$as_val"'`
4423                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4424 $as_echo "$ac_res" >&6; }
4425 if test `eval 'as_val=${'$as_ac_Header'}
4426                  $as_echo "$as_val"'` = yes; then
4427   cat >>confdefs.h <<_ACEOF
4428 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4429 _ACEOF
4430
4431 fi
4432
4433 done
4434
4435
4436
4437 for ac_header in dlfcn.h
4438 do
4439 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4440 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4441   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4442 $as_echo_n "checking for $ac_header... " >&6; }
4443 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4444   $as_echo_n "(cached) " >&6
4445 fi
4446 ac_res=`eval 'as_val=${'$as_ac_Header'}
4447                  $as_echo "$as_val"'`
4448                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4449 $as_echo "$ac_res" >&6; }
4450 else
4451   # Is the header compilable?
4452 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4453 $as_echo_n "checking $ac_header usability... " >&6; }
4454 cat >conftest.$ac_ext <<_ACEOF
4455 /* confdefs.h.  */
4456 _ACEOF
4457 cat confdefs.h >>conftest.$ac_ext
4458 cat >>conftest.$ac_ext <<_ACEOF
4459 /* end confdefs.h.  */
4460 $ac_includes_default
4461 #include <$ac_header>
4462 _ACEOF
4463 rm -f conftest.$ac_objext
4464 if { (ac_try="$ac_compile"
4465 case "(($ac_try" in
4466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4467   *) ac_try_echo=$ac_try;;
4468 esac
4469 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4470 $as_echo "$ac_try_echo") >&5
4471   (eval "$ac_compile") 2>conftest.er1
4472   ac_status=$?
4473   grep -v '^ *+' conftest.er1 >conftest.err
4474   rm -f conftest.er1
4475   cat conftest.err >&5
4476   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477   (exit $ac_status); } && {
4478          test -z "$ac_c_werror_flag" ||
4479          test ! -s conftest.err
4480        } && test -s conftest.$ac_objext; then
4481   ac_header_compiler=yes
4482 else
4483   $as_echo "$as_me: failed program was:" >&5
4484 sed 's/^/| /' conftest.$ac_ext >&5
4485
4486         ac_header_compiler=no
4487 fi
4488
4489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4490 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4491 $as_echo "$ac_header_compiler" >&6; }
4492
4493 # Is the header present?
4494 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4495 $as_echo_n "checking $ac_header presence... " >&6; }
4496 cat >conftest.$ac_ext <<_ACEOF
4497 /* confdefs.h.  */
4498 _ACEOF
4499 cat confdefs.h >>conftest.$ac_ext
4500 cat >>conftest.$ac_ext <<_ACEOF
4501 /* end confdefs.h.  */
4502 #include <$ac_header>
4503 _ACEOF
4504 if { (ac_try="$ac_cpp conftest.$ac_ext"
4505 case "(($ac_try" in
4506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4507   *) ac_try_echo=$ac_try;;
4508 esac
4509 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4510 $as_echo "$ac_try_echo") >&5
4511   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4512   ac_status=$?
4513   grep -v '^ *+' conftest.er1 >conftest.err
4514   rm -f conftest.er1
4515   cat conftest.err >&5
4516   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4517   (exit $ac_status); } >/dev/null && {
4518          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4519          test ! -s conftest.err
4520        }; then
4521   ac_header_preproc=yes
4522 else
4523   $as_echo "$as_me: failed program was:" >&5
4524 sed 's/^/| /' conftest.$ac_ext >&5
4525
4526   ac_header_preproc=no
4527 fi
4528
4529 rm -f conftest.err conftest.$ac_ext
4530 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4531 $as_echo "$ac_header_preproc" >&6; }
4532
4533 # So?  What about this header?
4534 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4535   yes:no: )
4536     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4537 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4538     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4539 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4540     ac_header_preproc=yes
4541     ;;
4542   no:yes:* )
4543     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4544 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4545     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4546 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4547     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4548 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4549     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4550 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4551     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4552 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4553     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4554 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4555     ( cat <<\_ASBOX
4556 ## -------------------------------- ##
4557 ## Report this to chise-en@m17n.org ##
4558 ## -------------------------------- ##
4559 _ASBOX
4560      ) | sed "s/^/$as_me: WARNING:     /" >&2
4561     ;;
4562 esac
4563 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4564 $as_echo_n "checking for $ac_header... " >&6; }
4565 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4566   $as_echo_n "(cached) " >&6
4567 else
4568   eval "$as_ac_Header=\$ac_header_preproc"
4569 fi
4570 ac_res=`eval 'as_val=${'$as_ac_Header'}
4571                  $as_echo "$as_val"'`
4572                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4573 $as_echo "$ac_res" >&6; }
4574
4575 fi
4576 if test `eval 'as_val=${'$as_ac_Header'}
4577                  $as_echo "$as_val"'` = yes; then
4578   cat >>confdefs.h <<_ACEOF
4579 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4580 _ACEOF
4581
4582 fi
4583
4584 done
4585
4586 ac_ext=cpp
4587 ac_cpp='$CXXCPP $CPPFLAGS'
4588 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4589 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4590 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4591 if test -z "$CXX"; then
4592   if test -n "$CCC"; then
4593     CXX=$CCC
4594   else
4595     if test -n "$ac_tool_prefix"; then
4596   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4597   do
4598     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4599 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4600 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4601 $as_echo_n "checking for $ac_word... " >&6; }
4602 if test "${ac_cv_prog_CXX+set}" = set; then
4603   $as_echo_n "(cached) " >&6
4604 else
4605   if test -n "$CXX"; then
4606   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4607 else
4608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4609 for as_dir in $PATH
4610 do
4611   IFS=$as_save_IFS
4612   test -z "$as_dir" && as_dir=.
4613   for ac_exec_ext in '' $ac_executable_extensions; do
4614   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4615     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4616     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4617     break 2
4618   fi
4619 done
4620 done
4621 IFS=$as_save_IFS
4622
4623 fi
4624 fi
4625 CXX=$ac_cv_prog_CXX
4626 if test -n "$CXX"; then
4627   { $as_echo "$as_me:$LINENO: result: $CXX" >&5
4628 $as_echo "$CXX" >&6; }
4629 else
4630   { $as_echo "$as_me:$LINENO: result: no" >&5
4631 $as_echo "no" >&6; }
4632 fi
4633
4634
4635     test -n "$CXX" && break
4636   done
4637 fi
4638 if test -z "$CXX"; then
4639   ac_ct_CXX=$CXX
4640   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4641 do
4642   # Extract the first word of "$ac_prog", so it can be a program name with args.
4643 set dummy $ac_prog; ac_word=$2
4644 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4645 $as_echo_n "checking for $ac_word... " >&6; }
4646 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4647   $as_echo_n "(cached) " >&6
4648 else
4649   if test -n "$ac_ct_CXX"; then
4650   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4651 else
4652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4653 for as_dir in $PATH
4654 do
4655   IFS=$as_save_IFS
4656   test -z "$as_dir" && as_dir=.
4657   for ac_exec_ext in '' $ac_executable_extensions; do
4658   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4659     ac_cv_prog_ac_ct_CXX="$ac_prog"
4660     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4661     break 2
4662   fi
4663 done
4664 done
4665 IFS=$as_save_IFS
4666
4667 fi
4668 fi
4669 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4670 if test -n "$ac_ct_CXX"; then
4671   { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4672 $as_echo "$ac_ct_CXX" >&6; }
4673 else
4674   { $as_echo "$as_me:$LINENO: result: no" >&5
4675 $as_echo "no" >&6; }
4676 fi
4677
4678
4679   test -n "$ac_ct_CXX" && break
4680 done
4681
4682   if test "x$ac_ct_CXX" = x; then
4683     CXX="g++"
4684   else
4685     case $cross_compiling:$ac_tool_warned in
4686 yes:)
4687 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4688 whose name does not start with the host triplet.  If you think this
4689 configuration is useful to you, please write to autoconf@gnu.org." >&5
4690 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4691 whose name does not start with the host triplet.  If you think this
4692 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4693 ac_tool_warned=yes ;;
4694 esac
4695     CXX=$ac_ct_CXX
4696   fi
4697 fi
4698
4699   fi
4700 fi
4701 # Provide some information about the compiler.
4702 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4703 set X $ac_compile
4704 ac_compiler=$2
4705 { (ac_try="$ac_compiler --version >&5"
4706 case "(($ac_try" in
4707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4708   *) ac_try_echo=$ac_try;;
4709 esac
4710 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4711 $as_echo "$ac_try_echo") >&5
4712   (eval "$ac_compiler --version >&5") 2>&5
4713   ac_status=$?
4714   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4715   (exit $ac_status); }
4716 { (ac_try="$ac_compiler -v >&5"
4717 case "(($ac_try" in
4718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4719   *) ac_try_echo=$ac_try;;
4720 esac
4721 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4722 $as_echo "$ac_try_echo") >&5
4723   (eval "$ac_compiler -v >&5") 2>&5
4724   ac_status=$?
4725   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4726   (exit $ac_status); }
4727 { (ac_try="$ac_compiler -V >&5"
4728 case "(($ac_try" in
4729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4730   *) ac_try_echo=$ac_try;;
4731 esac
4732 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4733 $as_echo "$ac_try_echo") >&5
4734   (eval "$ac_compiler -V >&5") 2>&5
4735   ac_status=$?
4736   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737   (exit $ac_status); }
4738
4739 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4740 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4741 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4742   $as_echo_n "(cached) " >&6
4743 else
4744   cat >conftest.$ac_ext <<_ACEOF
4745 /* confdefs.h.  */
4746 _ACEOF
4747 cat confdefs.h >>conftest.$ac_ext
4748 cat >>conftest.$ac_ext <<_ACEOF
4749 /* end confdefs.h.  */
4750
4751 int
4752 main ()
4753 {
4754 #ifndef __GNUC__
4755        choke me
4756 #endif
4757
4758   ;
4759   return 0;
4760 }
4761 _ACEOF
4762 rm -f conftest.$ac_objext
4763 if { (ac_try="$ac_compile"
4764 case "(($ac_try" in
4765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4766   *) ac_try_echo=$ac_try;;
4767 esac
4768 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4769 $as_echo "$ac_try_echo") >&5
4770   (eval "$ac_compile") 2>conftest.er1
4771   ac_status=$?
4772   grep -v '^ *+' conftest.er1 >conftest.err
4773   rm -f conftest.er1
4774   cat conftest.err >&5
4775   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4776   (exit $ac_status); } && {
4777          test -z "$ac_cxx_werror_flag" ||
4778          test ! -s conftest.err
4779        } && test -s conftest.$ac_objext; then
4780   ac_compiler_gnu=yes
4781 else
4782   $as_echo "$as_me: failed program was:" >&5
4783 sed 's/^/| /' conftest.$ac_ext >&5
4784
4785         ac_compiler_gnu=no
4786 fi
4787
4788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4789 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4790
4791 fi
4792 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4793 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4794 if test $ac_compiler_gnu = yes; then
4795   GXX=yes
4796 else
4797   GXX=
4798 fi
4799 ac_test_CXXFLAGS=${CXXFLAGS+set}
4800 ac_save_CXXFLAGS=$CXXFLAGS
4801 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4802 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4803 if test "${ac_cv_prog_cxx_g+set}" = set; then
4804   $as_echo_n "(cached) " >&6
4805 else
4806   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4807    ac_cxx_werror_flag=yes
4808    ac_cv_prog_cxx_g=no
4809    CXXFLAGS="-g"
4810    cat >conftest.$ac_ext <<_ACEOF
4811 /* confdefs.h.  */
4812 _ACEOF
4813 cat confdefs.h >>conftest.$ac_ext
4814 cat >>conftest.$ac_ext <<_ACEOF
4815 /* end confdefs.h.  */
4816
4817 int
4818 main ()
4819 {
4820
4821   ;
4822   return 0;
4823 }
4824 _ACEOF
4825 rm -f conftest.$ac_objext
4826 if { (ac_try="$ac_compile"
4827 case "(($ac_try" in
4828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4829   *) ac_try_echo=$ac_try;;
4830 esac
4831 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4832 $as_echo "$ac_try_echo") >&5
4833   (eval "$ac_compile") 2>conftest.er1
4834   ac_status=$?
4835   grep -v '^ *+' conftest.er1 >conftest.err
4836   rm -f conftest.er1
4837   cat conftest.err >&5
4838   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4839   (exit $ac_status); } && {
4840          test -z "$ac_cxx_werror_flag" ||
4841          test ! -s conftest.err
4842        } && test -s conftest.$ac_objext; then
4843   ac_cv_prog_cxx_g=yes
4844 else
4845   $as_echo "$as_me: failed program was:" >&5
4846 sed 's/^/| /' conftest.$ac_ext >&5
4847
4848         CXXFLAGS=""
4849       cat >conftest.$ac_ext <<_ACEOF
4850 /* confdefs.h.  */
4851 _ACEOF
4852 cat confdefs.h >>conftest.$ac_ext
4853 cat >>conftest.$ac_ext <<_ACEOF
4854 /* end confdefs.h.  */
4855
4856 int
4857 main ()
4858 {
4859
4860   ;
4861   return 0;
4862 }
4863 _ACEOF
4864 rm -f conftest.$ac_objext
4865 if { (ac_try="$ac_compile"
4866 case "(($ac_try" in
4867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4868   *) ac_try_echo=$ac_try;;
4869 esac
4870 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4871 $as_echo "$ac_try_echo") >&5
4872   (eval "$ac_compile") 2>conftest.er1
4873   ac_status=$?
4874   grep -v '^ *+' conftest.er1 >conftest.err
4875   rm -f conftest.er1
4876   cat conftest.err >&5
4877   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4878   (exit $ac_status); } && {
4879          test -z "$ac_cxx_werror_flag" ||
4880          test ! -s conftest.err
4881        } && test -s conftest.$ac_objext; then
4882   :
4883 else
4884   $as_echo "$as_me: failed program was:" >&5
4885 sed 's/^/| /' conftest.$ac_ext >&5
4886
4887         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4888          CXXFLAGS="-g"
4889          cat >conftest.$ac_ext <<_ACEOF
4890 /* confdefs.h.  */
4891 _ACEOF
4892 cat confdefs.h >>conftest.$ac_ext
4893 cat >>conftest.$ac_ext <<_ACEOF
4894 /* end confdefs.h.  */
4895
4896 int
4897 main ()
4898 {
4899
4900   ;
4901   return 0;
4902 }
4903 _ACEOF
4904 rm -f conftest.$ac_objext
4905 if { (ac_try="$ac_compile"
4906 case "(($ac_try" in
4907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4908   *) ac_try_echo=$ac_try;;
4909 esac
4910 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4911 $as_echo "$ac_try_echo") >&5
4912   (eval "$ac_compile") 2>conftest.er1
4913   ac_status=$?
4914   grep -v '^ *+' conftest.er1 >conftest.err
4915   rm -f conftest.er1
4916   cat conftest.err >&5
4917   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4918   (exit $ac_status); } && {
4919          test -z "$ac_cxx_werror_flag" ||
4920          test ! -s conftest.err
4921        } && test -s conftest.$ac_objext; then
4922   ac_cv_prog_cxx_g=yes
4923 else
4924   $as_echo "$as_me: failed program was:" >&5
4925 sed 's/^/| /' conftest.$ac_ext >&5
4926
4927
4928 fi
4929
4930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4931 fi
4932
4933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4934 fi
4935
4936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4937    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4938 fi
4939 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4940 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4941 if test "$ac_test_CXXFLAGS" = set; then
4942   CXXFLAGS=$ac_save_CXXFLAGS
4943 elif test $ac_cv_prog_cxx_g = yes; then
4944   if test "$GXX" = yes; then
4945     CXXFLAGS="-g -O2"
4946   else
4947     CXXFLAGS="-g"
4948   fi
4949 else
4950   if test "$GXX" = yes; then
4951     CXXFLAGS="-O2"
4952   else
4953     CXXFLAGS=
4954   fi
4955 fi
4956 ac_ext=cpp
4957 ac_cpp='$CXXCPP $CPPFLAGS'
4958 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4959 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4960 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4961
4962 ac_ext=cpp
4963 ac_cpp='$CXXCPP $CPPFLAGS'
4964 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4965 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4966 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4967 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4968 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
4969 if test -z "$CXXCPP"; then
4970   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4971   $as_echo_n "(cached) " >&6
4972 else
4973       # Double quotes because CXXCPP needs to be expanded
4974     for CXXCPP in "$CXX -E" "/lib/cpp"
4975     do
4976       ac_preproc_ok=false
4977 for ac_cxx_preproc_warn_flag in '' yes
4978 do
4979   # Use a header file that comes with gcc, so configuring glibc
4980   # with a fresh cross-compiler works.
4981   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4982   # <limits.h> exists even on freestanding compilers.
4983   # On the NeXT, cc -E runs the code through the compiler's parser,
4984   # not just through cpp. "Syntax error" is here to catch this case.
4985   cat >conftest.$ac_ext <<_ACEOF
4986 /* confdefs.h.  */
4987 _ACEOF
4988 cat confdefs.h >>conftest.$ac_ext
4989 cat >>conftest.$ac_ext <<_ACEOF
4990 /* end confdefs.h.  */
4991 #ifdef __STDC__
4992 # include <limits.h>
4993 #else
4994 # include <assert.h>
4995 #endif
4996                      Syntax error
4997 _ACEOF
4998 if { (ac_try="$ac_cpp conftest.$ac_ext"
4999 case "(($ac_try" in
5000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5001   *) ac_try_echo=$ac_try;;
5002 esac
5003 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5004 $as_echo "$ac_try_echo") >&5
5005   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5006   ac_status=$?
5007   grep -v '^ *+' conftest.er1 >conftest.err
5008   rm -f conftest.er1
5009   cat conftest.err >&5
5010   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5011   (exit $ac_status); } >/dev/null && {
5012          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5013          test ! -s conftest.err
5014        }; then
5015   :
5016 else
5017   $as_echo "$as_me: failed program was:" >&5
5018 sed 's/^/| /' conftest.$ac_ext >&5
5019
5020   # Broken: fails on valid input.
5021 continue
5022 fi
5023
5024 rm -f conftest.err conftest.$ac_ext
5025
5026   # OK, works on sane cases.  Now check whether nonexistent headers
5027   # can be detected and how.
5028   cat >conftest.$ac_ext <<_ACEOF
5029 /* confdefs.h.  */
5030 _ACEOF
5031 cat confdefs.h >>conftest.$ac_ext
5032 cat >>conftest.$ac_ext <<_ACEOF
5033 /* end confdefs.h.  */
5034 #include <ac_nonexistent.h>
5035 _ACEOF
5036 if { (ac_try="$ac_cpp conftest.$ac_ext"
5037 case "(($ac_try" in
5038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5039   *) ac_try_echo=$ac_try;;
5040 esac
5041 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5042 $as_echo "$ac_try_echo") >&5
5043   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5044   ac_status=$?
5045   grep -v '^ *+' conftest.er1 >conftest.err
5046   rm -f conftest.er1
5047   cat conftest.err >&5
5048   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5049   (exit $ac_status); } >/dev/null && {
5050          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5051          test ! -s conftest.err
5052        }; then
5053   # Broken: success on invalid input.
5054 continue
5055 else
5056   $as_echo "$as_me: failed program was:" >&5
5057 sed 's/^/| /' conftest.$ac_ext >&5
5058
5059   # Passes both tests.
5060 ac_preproc_ok=:
5061 break
5062 fi
5063
5064 rm -f conftest.err conftest.$ac_ext
5065
5066 done
5067 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5068 rm -f conftest.err conftest.$ac_ext
5069 if $ac_preproc_ok; then
5070   break
5071 fi
5072
5073     done
5074     ac_cv_prog_CXXCPP=$CXXCPP
5075
5076 fi
5077   CXXCPP=$ac_cv_prog_CXXCPP
5078 else
5079   ac_cv_prog_CXXCPP=$CXXCPP
5080 fi
5081 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
5082 $as_echo "$CXXCPP" >&6; }
5083 ac_preproc_ok=false
5084 for ac_cxx_preproc_warn_flag in '' yes
5085 do
5086   # Use a header file that comes with gcc, so configuring glibc
5087   # with a fresh cross-compiler works.
5088   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5089   # <limits.h> exists even on freestanding compilers.
5090   # On the NeXT, cc -E runs the code through the compiler's parser,
5091   # not just through cpp. "Syntax error" is here to catch this case.
5092   cat >conftest.$ac_ext <<_ACEOF
5093 /* confdefs.h.  */
5094 _ACEOF
5095 cat confdefs.h >>conftest.$ac_ext
5096 cat >>conftest.$ac_ext <<_ACEOF
5097 /* end confdefs.h.  */
5098 #ifdef __STDC__
5099 # include <limits.h>
5100 #else
5101 # include <assert.h>
5102 #endif
5103                      Syntax error
5104 _ACEOF
5105 if { (ac_try="$ac_cpp conftest.$ac_ext"
5106 case "(($ac_try" in
5107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5108   *) ac_try_echo=$ac_try;;
5109 esac
5110 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5111 $as_echo "$ac_try_echo") >&5
5112   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5113   ac_status=$?
5114   grep -v '^ *+' conftest.er1 >conftest.err
5115   rm -f conftest.er1
5116   cat conftest.err >&5
5117   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118   (exit $ac_status); } >/dev/null && {
5119          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5120          test ! -s conftest.err
5121        }; then
5122   :
5123 else
5124   $as_echo "$as_me: failed program was:" >&5
5125 sed 's/^/| /' conftest.$ac_ext >&5
5126
5127   # Broken: fails on valid input.
5128 continue
5129 fi
5130
5131 rm -f conftest.err conftest.$ac_ext
5132
5133   # OK, works on sane cases.  Now check whether nonexistent headers
5134   # can be detected and how.
5135   cat >conftest.$ac_ext <<_ACEOF
5136 /* confdefs.h.  */
5137 _ACEOF
5138 cat confdefs.h >>conftest.$ac_ext
5139 cat >>conftest.$ac_ext <<_ACEOF
5140 /* end confdefs.h.  */
5141 #include <ac_nonexistent.h>
5142 _ACEOF
5143 if { (ac_try="$ac_cpp conftest.$ac_ext"
5144 case "(($ac_try" in
5145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5146   *) ac_try_echo=$ac_try;;
5147 esac
5148 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5149 $as_echo "$ac_try_echo") >&5
5150   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5151   ac_status=$?
5152   grep -v '^ *+' conftest.er1 >conftest.err
5153   rm -f conftest.er1
5154   cat conftest.err >&5
5155   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5156   (exit $ac_status); } >/dev/null && {
5157          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5158          test ! -s conftest.err
5159        }; then
5160   # Broken: success on invalid input.
5161 continue
5162 else
5163   $as_echo "$as_me: failed program was:" >&5
5164 sed 's/^/| /' conftest.$ac_ext >&5
5165
5166   # Passes both tests.
5167 ac_preproc_ok=:
5168 break
5169 fi
5170
5171 rm -f conftest.err conftest.$ac_ext
5172
5173 done
5174 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5175 rm -f conftest.err conftest.$ac_ext
5176 if $ac_preproc_ok; then
5177   :
5178 else
5179   { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5180 See \`config.log' for more details." >&5
5181 $as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5182 See \`config.log' for more details." >&2;}
5183    { (exit 1); exit 1; }; }
5184 fi
5185
5186 ac_ext=cpp
5187 ac_cpp='$CXXCPP $CPPFLAGS'
5188 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5189 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5190 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5191
5192
5193 ac_ext=f
5194 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5195 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5196 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5197 if test -n "$ac_tool_prefix"; then
5198   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
5199   do
5200     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5201 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5202 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5203 $as_echo_n "checking for $ac_word... " >&6; }
5204 if test "${ac_cv_prog_F77+set}" = set; then
5205   $as_echo_n "(cached) " >&6
5206 else
5207   if test -n "$F77"; then
5208   ac_cv_prog_F77="$F77" # Let the user override the test.
5209 else
5210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5211 for as_dir in $PATH
5212 do
5213   IFS=$as_save_IFS
5214   test -z "$as_dir" && as_dir=.
5215   for ac_exec_ext in '' $ac_executable_extensions; do
5216   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5217     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5218     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5219     break 2
5220   fi
5221 done
5222 done
5223 IFS=$as_save_IFS
5224
5225 fi
5226 fi
5227 F77=$ac_cv_prog_F77
5228 if test -n "$F77"; then
5229   { $as_echo "$as_me:$LINENO: result: $F77" >&5
5230 $as_echo "$F77" >&6; }
5231 else
5232   { $as_echo "$as_me:$LINENO: result: no" >&5
5233 $as_echo "no" >&6; }
5234 fi
5235
5236
5237     test -n "$F77" && break
5238   done
5239 fi
5240 if test -z "$F77"; then
5241   ac_ct_F77=$F77
5242   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
5243 do
5244   # Extract the first word of "$ac_prog", so it can be a program name with args.
5245 set dummy $ac_prog; ac_word=$2
5246 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5247 $as_echo_n "checking for $ac_word... " >&6; }
5248 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5249   $as_echo_n "(cached) " >&6
5250 else
5251   if test -n "$ac_ct_F77"; then
5252   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5253 else
5254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5255 for as_dir in $PATH
5256 do
5257   IFS=$as_save_IFS
5258   test -z "$as_dir" && as_dir=.
5259   for ac_exec_ext in '' $ac_executable_extensions; do
5260   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5261     ac_cv_prog_ac_ct_F77="$ac_prog"
5262     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5263     break 2
5264   fi
5265 done
5266 done
5267 IFS=$as_save_IFS
5268
5269 fi
5270 fi
5271 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5272 if test -n "$ac_ct_F77"; then
5273   { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5274 $as_echo "$ac_ct_F77" >&6; }
5275 else
5276   { $as_echo "$as_me:$LINENO: result: no" >&5
5277 $as_echo "no" >&6; }
5278 fi
5279
5280
5281   test -n "$ac_ct_F77" && break
5282 done
5283
5284   if test "x$ac_ct_F77" = x; then
5285     F77=""
5286   else
5287     case $cross_compiling:$ac_tool_warned in
5288 yes:)
5289 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5290 whose name does not start with the host triplet.  If you think this
5291 configuration is useful to you, please write to autoconf@gnu.org." >&5
5292 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5293 whose name does not start with the host triplet.  If you think this
5294 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5295 ac_tool_warned=yes ;;
5296 esac
5297     F77=$ac_ct_F77
5298   fi
5299 fi
5300
5301
5302 # Provide some information about the compiler.
5303 $as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5304 set X $ac_compile
5305 ac_compiler=$2
5306 { (ac_try="$ac_compiler --version >&5"
5307 case "(($ac_try" in
5308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5309   *) ac_try_echo=$ac_try;;
5310 esac
5311 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5312 $as_echo "$ac_try_echo") >&5
5313   (eval "$ac_compiler --version >&5") 2>&5
5314   ac_status=$?
5315   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316   (exit $ac_status); }
5317 { (ac_try="$ac_compiler -v >&5"
5318 case "(($ac_try" in
5319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5320   *) ac_try_echo=$ac_try;;
5321 esac
5322 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5323 $as_echo "$ac_try_echo") >&5
5324   (eval "$ac_compiler -v >&5") 2>&5
5325   ac_status=$?
5326   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5327   (exit $ac_status); }
5328 { (ac_try="$ac_compiler -V >&5"
5329 case "(($ac_try" in
5330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5331   *) ac_try_echo=$ac_try;;
5332 esac
5333 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5334 $as_echo "$ac_try_echo") >&5
5335   (eval "$ac_compiler -V >&5") 2>&5
5336   ac_status=$?
5337   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5338   (exit $ac_status); }
5339 rm -f a.out
5340
5341 # If we don't use `.F' as extension, the preprocessor is not run on the
5342 # input file.  (Note that this only needs to work for GNU compilers.)
5343 ac_save_ext=$ac_ext
5344 ac_ext=F
5345 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5346 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
5347 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5348   $as_echo_n "(cached) " >&6
5349 else
5350   cat >conftest.$ac_ext <<_ACEOF
5351       program main
5352 #ifndef __GNUC__
5353        choke me
5354 #endif
5355
5356       end
5357 _ACEOF
5358 rm -f conftest.$ac_objext
5359 if { (ac_try="$ac_compile"
5360 case "(($ac_try" in
5361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5362   *) ac_try_echo=$ac_try;;
5363 esac
5364 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5365 $as_echo "$ac_try_echo") >&5
5366   (eval "$ac_compile") 2>conftest.er1
5367   ac_status=$?
5368   grep -v '^ *+' conftest.er1 >conftest.err
5369   rm -f conftest.er1
5370   cat conftest.err >&5
5371   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372   (exit $ac_status); } && {
5373          test -z "$ac_f77_werror_flag" ||
5374          test ! -s conftest.err
5375        } && test -s conftest.$ac_objext; then
5376   ac_compiler_gnu=yes
5377 else
5378   $as_echo "$as_me: failed program was:" >&5
5379 sed 's/^/| /' conftest.$ac_ext >&5
5380
5381         ac_compiler_gnu=no
5382 fi
5383
5384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5385 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5386
5387 fi
5388 { $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5389 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
5390 ac_ext=$ac_save_ext
5391 ac_test_FFLAGS=${FFLAGS+set}
5392 ac_save_FFLAGS=$FFLAGS
5393 FFLAGS=
5394 { $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5395 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
5396 if test "${ac_cv_prog_f77_g+set}" = set; then
5397   $as_echo_n "(cached) " >&6
5398 else
5399   FFLAGS=-g
5400 cat >conftest.$ac_ext <<_ACEOF
5401       program main
5402
5403       end
5404 _ACEOF
5405 rm -f conftest.$ac_objext
5406 if { (ac_try="$ac_compile"
5407 case "(($ac_try" in
5408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5409   *) ac_try_echo=$ac_try;;
5410 esac
5411 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5412 $as_echo "$ac_try_echo") >&5
5413   (eval "$ac_compile") 2>conftest.er1
5414   ac_status=$?
5415   grep -v '^ *+' conftest.er1 >conftest.err
5416   rm -f conftest.er1
5417   cat conftest.err >&5
5418   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5419   (exit $ac_status); } && {
5420          test -z "$ac_f77_werror_flag" ||
5421          test ! -s conftest.err
5422        } && test -s conftest.$ac_objext; then
5423   ac_cv_prog_f77_g=yes
5424 else
5425   $as_echo "$as_me: failed program was:" >&5
5426 sed 's/^/| /' conftest.$ac_ext >&5
5427
5428         ac_cv_prog_f77_g=no
5429 fi
5430
5431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5432
5433 fi
5434 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5435 $as_echo "$ac_cv_prog_f77_g" >&6; }
5436 if test "$ac_test_FFLAGS" = set; then
5437   FFLAGS=$ac_save_FFLAGS
5438 elif test $ac_cv_prog_f77_g = yes; then
5439   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5440     FFLAGS="-g -O2"
5441   else
5442     FFLAGS="-g"
5443   fi
5444 else
5445   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5446     FFLAGS="-O2"
5447   else
5448     FFLAGS=
5449   fi
5450 fi
5451
5452 if test $ac_compiler_gnu = yes; then
5453   G77=yes
5454 else
5455   G77=
5456 fi
5457 ac_ext=c
5458 ac_cpp='$CPP $CPPFLAGS'
5459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5462
5463
5464
5465 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5466
5467 # find the maximum length of command line arguments
5468 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5469 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5470 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5471   $as_echo_n "(cached) " >&6
5472 else
5473     i=0
5474   testring="ABCD"
5475
5476   case $build_os in
5477   msdosdjgpp*)
5478     # On DJGPP, this test can blow up pretty badly due to problems in libc
5479     # (any single argument exceeding 2000 bytes causes a buffer overrun
5480     # during glob expansion).  Even if it were fixed, the result of this
5481     # check would be larger than it should be.
5482     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5483     ;;
5484
5485   gnu*)
5486     # Under GNU Hurd, this test is not required because there is
5487     # no limit to the length of command line arguments.
5488     # Libtool will interpret -1 as no limit whatsoever
5489     lt_cv_sys_max_cmd_len=-1;
5490     ;;
5491
5492   cygwin* | mingw*)
5493     # On Win9x/ME, this test blows up -- it succeeds, but takes
5494     # about 5 minutes as the teststring grows exponentially.
5495     # Worse, since 9x/ME are not pre-emptively multitasking,
5496     # you end up with a "frozen" computer, even though with patience
5497     # the test eventually succeeds (with a max line length of 256k).
5498     # Instead, let's just punt: use the minimum linelength reported by
5499     # all of the supported platforms: 8192 (on NT/2K/XP).
5500     lt_cv_sys_max_cmd_len=8192;
5501     ;;
5502
5503   amigaos*)
5504     # On AmigaOS with pdksh, this test takes hours, literally.
5505     # So we just punt and use a minimum line length of 8192.
5506     lt_cv_sys_max_cmd_len=8192;
5507     ;;
5508
5509  *)
5510     # If test is not a shell built-in, we'll probably end up computing a
5511     # maximum length that is only half of the actual maximum length, but
5512     # we can't tell.
5513     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5514                = "XX$testring") >/dev/null 2>&1 &&
5515             new_result=`expr "X$testring" : ".*" 2>&1` &&
5516             lt_cv_sys_max_cmd_len=$new_result &&
5517             test $i != 17 # 1/2 MB should be enough
5518     do
5519       i=`expr $i + 1`
5520       testring=$testring$testring
5521     done
5522     testring=
5523     # Add a significant safety factor because C++ compilers can tack on massive
5524     # amounts of additional arguments before passing them to the linker.
5525     # It appears as though 1/2 is a usable value.
5526     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5527     ;;
5528   esac
5529
5530 fi
5531
5532 if test -n $lt_cv_sys_max_cmd_len ; then
5533   { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5534 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5535 else
5536   { $as_echo "$as_me:$LINENO: result: none" >&5
5537 $as_echo "none" >&6; }
5538 fi
5539
5540
5541
5542
5543 # Check for command to grab the raw symbol name followed by C symbol from nm.
5544 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5545 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5546 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5547   $as_echo_n "(cached) " >&6
5548 else
5549
5550 # These are sane defaults that work on at least a few old systems.
5551 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5552
5553 # Character class describing NM global symbol codes.
5554 symcode='[BCDEGRST]'
5555
5556 # Regexp to match symbols that can be accessed directly from C.
5557 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5558
5559 # Transform the above into a raw symbol and a C symbol.
5560 symxfrm='\1 \2\3 \3'
5561
5562 # Transform an extracted symbol line into a proper C declaration
5563 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5564
5565 # Transform an extracted symbol line into symbol name and symbol address
5566 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'"
5567
5568 # Define system-specific variables.
5569 case $host_os in
5570 aix*)
5571   symcode='[BCDT]'
5572   ;;
5573 cygwin* | mingw* | pw32*)
5574   symcode='[ABCDGISTW]'
5575   ;;
5576 hpux*) # Its linker distinguishes data from code symbols
5577   if test "$host_cpu" = ia64; then
5578     symcode='[ABCDEGRST]'
5579   fi
5580   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5581   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'"
5582   ;;
5583 irix* | nonstopux*)
5584   symcode='[BCDEGRST]'
5585   ;;
5586 osf*)
5587   symcode='[BCDEGQRST]'
5588   ;;
5589 solaris* | sysv5*)
5590   symcode='[BDRT]'
5591   ;;
5592 sysv4)
5593   symcode='[DFNSTU]'
5594   ;;
5595 esac
5596
5597 # Handle CRLF in mingw tool chain
5598 opt_cr=
5599 case $build_os in
5600 mingw*)
5601   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5602   ;;
5603 esac
5604
5605 # If we're using GNU nm, then use its standard symbol codes.
5606 case `$NM -V 2>&1` in
5607 *GNU* | *'with BFD'*)
5608   symcode='[ABCDGIRSTW]' ;;
5609 esac
5610
5611 # Try without a prefix undercore, then with it.
5612 for ac_symprfx in "" "_"; do
5613
5614   # Write the raw and C identifiers.
5615   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5616
5617   # Check to see that the pipe works correctly.
5618   pipe_works=no
5619
5620   rm -f conftest*
5621   cat > conftest.$ac_ext <<EOF
5622 #ifdef __cplusplus
5623 extern "C" {
5624 #endif
5625 char nm_test_var;
5626 void nm_test_func(){}
5627 #ifdef __cplusplus
5628 }
5629 #endif
5630 int main(){nm_test_var='a';nm_test_func();return(0);}
5631 EOF
5632
5633   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5634   (eval $ac_compile) 2>&5
5635   ac_status=$?
5636   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5637   (exit $ac_status); }; then
5638     # Now try to grab the symbols.
5639     nlist=conftest.nm
5640     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5641   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5642   ac_status=$?
5643   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5644   (exit $ac_status); } && test -s "$nlist"; then
5645       # Try sorting and uniquifying the output.
5646       if sort "$nlist" | uniq > "$nlist"T; then
5647         mv -f "$nlist"T "$nlist"
5648       else
5649         rm -f "$nlist"T
5650       fi
5651
5652       # Make sure that we snagged all the symbols we need.
5653       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5654         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5655           cat <<EOF > conftest.$ac_ext
5656 #ifdef __cplusplus
5657 extern "C" {
5658 #endif
5659
5660 EOF
5661           # Now generate the symbol file.
5662           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5663
5664           cat <<EOF >> conftest.$ac_ext
5665 #if defined (__STDC__) && __STDC__
5666 # define lt_ptr_t void *
5667 #else
5668 # define lt_ptr_t char *
5669 # define const
5670 #endif
5671
5672 /* The mapping between symbol names and symbols. */
5673 const struct {
5674   const char *name;
5675   lt_ptr_t address;
5676 }
5677 lt_preloaded_symbols[] =
5678 {
5679 EOF
5680           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5681           cat <<\EOF >> conftest.$ac_ext
5682   {0, (lt_ptr_t) 0}
5683 };
5684
5685 #ifdef __cplusplus
5686 }
5687 #endif
5688 EOF
5689           # Now try linking the two files.
5690           mv conftest.$ac_objext conftstm.$ac_objext
5691           lt_save_LIBS="$LIBS"
5692           lt_save_CFLAGS="$CFLAGS"
5693           LIBS="conftstm.$ac_objext"
5694           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5695           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5696   (eval $ac_link) 2>&5
5697   ac_status=$?
5698   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5699   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5700             pipe_works=yes
5701           fi
5702           LIBS="$lt_save_LIBS"
5703           CFLAGS="$lt_save_CFLAGS"
5704         else
5705           echo "cannot find nm_test_func in $nlist" >&5
5706         fi
5707       else
5708         echo "cannot find nm_test_var in $nlist" >&5
5709       fi
5710     else
5711       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5712     fi
5713   else
5714     echo "$progname: failed program was:" >&5
5715     cat conftest.$ac_ext >&5
5716   fi
5717   rm -f conftest* conftst*
5718
5719   # Do not use the global_symbol_pipe unless it works.
5720   if test "$pipe_works" = yes; then
5721     break
5722   else
5723     lt_cv_sys_global_symbol_pipe=
5724   fi
5725 done
5726
5727 fi
5728
5729 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5730   lt_cv_sys_global_symbol_to_cdecl=
5731 fi
5732 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5733   { $as_echo "$as_me:$LINENO: result: failed" >&5
5734 $as_echo "failed" >&6; }
5735 else
5736   { $as_echo "$as_me:$LINENO: result: ok" >&5
5737 $as_echo "ok" >&6; }
5738 fi
5739
5740 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
5741 $as_echo_n "checking for objdir... " >&6; }
5742 if test "${lt_cv_objdir+set}" = set; then
5743   $as_echo_n "(cached) " >&6
5744 else
5745   rm -f .libs 2>/dev/null
5746 mkdir .libs 2>/dev/null
5747 if test -d .libs; then
5748   lt_cv_objdir=.libs
5749 else
5750   # MS-DOS does not allow filenames that begin with a dot.
5751   lt_cv_objdir=_libs
5752 fi
5753 rmdir .libs 2>/dev/null
5754 fi
5755 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5756 $as_echo "$lt_cv_objdir" >&6; }
5757 objdir=$lt_cv_objdir
5758
5759
5760
5761
5762
5763 case $host_os in
5764 aix3*)
5765   # AIX sometimes has problems with the GCC collect2 program.  For some
5766   # reason, if we set the COLLECT_NAMES environment variable, the problems
5767   # vanish in a puff of smoke.
5768   if test "X${COLLECT_NAMES+set}" != Xset; then
5769     COLLECT_NAMES=
5770     export COLLECT_NAMES
5771   fi
5772   ;;
5773 esac
5774
5775 # Sed substitution that helps us do robust quoting.  It backslashifies
5776 # metacharacters that are still active within double-quoted strings.
5777 Xsed='sed -e s/^X//'
5778 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5779
5780 # Same as above, but do not quote variable references.
5781 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5782
5783 # Sed substitution to delay expansion of an escaped shell variable in a
5784 # double_quote_subst'ed string.
5785 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5786
5787 # Sed substitution to avoid accidental globbing in evaled expressions
5788 no_glob_subst='s/\*/\\\*/g'
5789
5790 # Constants:
5791 rm="rm -f"
5792
5793 # Global variables:
5794 default_ofile=libtool
5795 can_build_shared=yes
5796
5797 # All known linkers require a `.a' archive for static linking (except M$VC,
5798 # which needs '.lib').
5799 libext=a
5800 ltmain="$ac_aux_dir/ltmain.sh"
5801 ofile="$default_ofile"
5802 with_gnu_ld="$lt_cv_prog_gnu_ld"
5803
5804 if test -n "$ac_tool_prefix"; then
5805   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5806 set dummy ${ac_tool_prefix}ar; ac_word=$2
5807 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5808 $as_echo_n "checking for $ac_word... " >&6; }
5809 if test "${ac_cv_prog_AR+set}" = set; then
5810   $as_echo_n "(cached) " >&6
5811 else
5812   if test -n "$AR"; then
5813   ac_cv_prog_AR="$AR" # Let the user override the test.
5814 else
5815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5816 for as_dir in $PATH
5817 do
5818   IFS=$as_save_IFS
5819   test -z "$as_dir" && as_dir=.
5820   for ac_exec_ext in '' $ac_executable_extensions; do
5821   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5822     ac_cv_prog_AR="${ac_tool_prefix}ar"
5823     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5824     break 2
5825   fi
5826 done
5827 done
5828 IFS=$as_save_IFS
5829
5830 fi
5831 fi
5832 AR=$ac_cv_prog_AR
5833 if test -n "$AR"; then
5834   { $as_echo "$as_me:$LINENO: result: $AR" >&5
5835 $as_echo "$AR" >&6; }
5836 else
5837   { $as_echo "$as_me:$LINENO: result: no" >&5
5838 $as_echo "no" >&6; }
5839 fi
5840
5841
5842 fi
5843 if test -z "$ac_cv_prog_AR"; then
5844   ac_ct_AR=$AR
5845   # Extract the first word of "ar", so it can be a program name with args.
5846 set dummy ar; ac_word=$2
5847 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5848 $as_echo_n "checking for $ac_word... " >&6; }
5849 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5850   $as_echo_n "(cached) " >&6
5851 else
5852   if test -n "$ac_ct_AR"; then
5853   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5854 else
5855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5856 for as_dir in $PATH
5857 do
5858   IFS=$as_save_IFS
5859   test -z "$as_dir" && as_dir=.
5860   for ac_exec_ext in '' $ac_executable_extensions; do
5861   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5862     ac_cv_prog_ac_ct_AR="ar"
5863     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5864     break 2
5865   fi
5866 done
5867 done
5868 IFS=$as_save_IFS
5869
5870 fi
5871 fi
5872 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5873 if test -n "$ac_ct_AR"; then
5874   { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5875 $as_echo "$ac_ct_AR" >&6; }
5876 else
5877   { $as_echo "$as_me:$LINENO: result: no" >&5
5878 $as_echo "no" >&6; }
5879 fi
5880
5881   if test "x$ac_ct_AR" = x; then
5882     AR="false"
5883   else
5884     case $cross_compiling:$ac_tool_warned in
5885 yes:)
5886 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5887 whose name does not start with the host triplet.  If you think this
5888 configuration is useful to you, please write to autoconf@gnu.org." >&5
5889 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5890 whose name does not start with the host triplet.  If you think this
5891 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5892 ac_tool_warned=yes ;;
5893 esac
5894     AR=$ac_ct_AR
5895   fi
5896 else
5897   AR="$ac_cv_prog_AR"
5898 fi
5899
5900 if test -n "$ac_tool_prefix"; then
5901   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5902 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5903 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5904 $as_echo_n "checking for $ac_word... " >&6; }
5905 if test "${ac_cv_prog_RANLIB+set}" = set; then
5906   $as_echo_n "(cached) " >&6
5907 else
5908   if test -n "$RANLIB"; then
5909   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5910 else
5911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5912 for as_dir in $PATH
5913 do
5914   IFS=$as_save_IFS
5915   test -z "$as_dir" && as_dir=.
5916   for ac_exec_ext in '' $ac_executable_extensions; do
5917   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5918     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5919     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5920     break 2
5921   fi
5922 done
5923 done
5924 IFS=$as_save_IFS
5925
5926 fi
5927 fi
5928 RANLIB=$ac_cv_prog_RANLIB
5929 if test -n "$RANLIB"; then
5930   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5931 $as_echo "$RANLIB" >&6; }
5932 else
5933   { $as_echo "$as_me:$LINENO: result: no" >&5
5934 $as_echo "no" >&6; }
5935 fi
5936
5937
5938 fi
5939 if test -z "$ac_cv_prog_RANLIB"; then
5940   ac_ct_RANLIB=$RANLIB
5941   # Extract the first word of "ranlib", so it can be a program name with args.
5942 set dummy ranlib; ac_word=$2
5943 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5944 $as_echo_n "checking for $ac_word... " >&6; }
5945 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5946   $as_echo_n "(cached) " >&6
5947 else
5948   if test -n "$ac_ct_RANLIB"; then
5949   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5950 else
5951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5952 for as_dir in $PATH
5953 do
5954   IFS=$as_save_IFS
5955   test -z "$as_dir" && as_dir=.
5956   for ac_exec_ext in '' $ac_executable_extensions; do
5957   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5958     ac_cv_prog_ac_ct_RANLIB="ranlib"
5959     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5960     break 2
5961   fi
5962 done
5963 done
5964 IFS=$as_save_IFS
5965
5966 fi
5967 fi
5968 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5969 if test -n "$ac_ct_RANLIB"; then
5970   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5971 $as_echo "$ac_ct_RANLIB" >&6; }
5972 else
5973   { $as_echo "$as_me:$LINENO: result: no" >&5
5974 $as_echo "no" >&6; }
5975 fi
5976
5977   if test "x$ac_ct_RANLIB" = x; then
5978     RANLIB=":"
5979   else
5980     case $cross_compiling:$ac_tool_warned in
5981 yes:)
5982 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5983 whose name does not start with the host triplet.  If you think this
5984 configuration is useful to you, please write to autoconf@gnu.org." >&5
5985 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5986 whose name does not start with the host triplet.  If you think this
5987 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5988 ac_tool_warned=yes ;;
5989 esac
5990     RANLIB=$ac_ct_RANLIB
5991   fi
5992 else
5993   RANLIB="$ac_cv_prog_RANLIB"
5994 fi
5995
5996 if test -n "$ac_tool_prefix"; then
5997   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5998 set dummy ${ac_tool_prefix}strip; ac_word=$2
5999 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6000 $as_echo_n "checking for $ac_word... " >&6; }
6001 if test "${ac_cv_prog_STRIP+set}" = set; then
6002   $as_echo_n "(cached) " >&6
6003 else
6004   if test -n "$STRIP"; then
6005   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6006 else
6007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6008 for as_dir in $PATH
6009 do
6010   IFS=$as_save_IFS
6011   test -z "$as_dir" && as_dir=.
6012   for ac_exec_ext in '' $ac_executable_extensions; do
6013   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6014     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6015     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6016     break 2
6017   fi
6018 done
6019 done
6020 IFS=$as_save_IFS
6021
6022 fi
6023 fi
6024 STRIP=$ac_cv_prog_STRIP
6025 if test -n "$STRIP"; then
6026   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6027 $as_echo "$STRIP" >&6; }
6028 else
6029   { $as_echo "$as_me:$LINENO: result: no" >&5
6030 $as_echo "no" >&6; }
6031 fi
6032
6033
6034 fi
6035 if test -z "$ac_cv_prog_STRIP"; then
6036   ac_ct_STRIP=$STRIP
6037   # Extract the first word of "strip", so it can be a program name with args.
6038 set dummy strip; ac_word=$2
6039 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6040 $as_echo_n "checking for $ac_word... " >&6; }
6041 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6042   $as_echo_n "(cached) " >&6
6043 else
6044   if test -n "$ac_ct_STRIP"; then
6045   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6046 else
6047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6048 for as_dir in $PATH
6049 do
6050   IFS=$as_save_IFS
6051   test -z "$as_dir" && as_dir=.
6052   for ac_exec_ext in '' $ac_executable_extensions; do
6053   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6054     ac_cv_prog_ac_ct_STRIP="strip"
6055     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6056     break 2
6057   fi
6058 done
6059 done
6060 IFS=$as_save_IFS
6061
6062 fi
6063 fi
6064 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6065 if test -n "$ac_ct_STRIP"; then
6066   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6067 $as_echo "$ac_ct_STRIP" >&6; }
6068 else
6069   { $as_echo "$as_me:$LINENO: result: no" >&5
6070 $as_echo "no" >&6; }
6071 fi
6072
6073   if test "x$ac_ct_STRIP" = x; then
6074     STRIP=":"
6075   else
6076     case $cross_compiling:$ac_tool_warned in
6077 yes:)
6078 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6079 whose name does not start with the host triplet.  If you think this
6080 configuration is useful to you, please write to autoconf@gnu.org." >&5
6081 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6082 whose name does not start with the host triplet.  If you think this
6083 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6084 ac_tool_warned=yes ;;
6085 esac
6086     STRIP=$ac_ct_STRIP
6087   fi
6088 else
6089   STRIP="$ac_cv_prog_STRIP"
6090 fi
6091
6092
6093 old_CC="$CC"
6094 old_CFLAGS="$CFLAGS"
6095
6096 # Set sane defaults for various variables
6097 test -z "$AR" && AR=ar
6098 test -z "$AR_FLAGS" && AR_FLAGS=cru
6099 test -z "$AS" && AS=as
6100 test -z "$CC" && CC=cc
6101 test -z "$LTCC" && LTCC=$CC
6102 test -z "$DLLTOOL" && DLLTOOL=dlltool
6103 test -z "$LD" && LD=ld
6104 test -z "$LN_S" && LN_S="ln -s"
6105 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6106 test -z "$NM" && NM=nm
6107 test -z "$SED" && SED=sed
6108 test -z "$OBJDUMP" && OBJDUMP=objdump
6109 test -z "$RANLIB" && RANLIB=:
6110 test -z "$STRIP" && STRIP=:
6111 test -z "$ac_objext" && ac_objext=o
6112
6113 # Determine commands to create old-style static archives.
6114 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6115 old_postinstall_cmds='chmod 644 $oldlib'
6116 old_postuninstall_cmds=
6117
6118 if test -n "$RANLIB"; then
6119   case $host_os in
6120   openbsd*)
6121     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6122     ;;
6123   *)
6124     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6125     ;;
6126   esac
6127   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6128 fi
6129
6130 # Only perform the check for file, if the check method requires it
6131 case $deplibs_check_method in
6132 file_magic*)
6133   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6134     { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6135 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6136 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6137   $as_echo_n "(cached) " >&6
6138 else
6139   case $MAGIC_CMD in
6140 [\\/*] |  ?:[\\/]*)
6141   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6142   ;;
6143 *)
6144   lt_save_MAGIC_CMD="$MAGIC_CMD"
6145   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6146   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6147   for ac_dir in $ac_dummy; do
6148     IFS="$lt_save_ifs"
6149     test -z "$ac_dir" && ac_dir=.
6150     if test -f $ac_dir/${ac_tool_prefix}file; then
6151       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6152       if test -n "$file_magic_test_file"; then
6153         case $deplibs_check_method in
6154         "file_magic "*)
6155           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6156           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6157           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6158             $EGREP "$file_magic_regex" > /dev/null; then
6159             :
6160           else
6161             cat <<EOF 1>&2
6162
6163 *** Warning: the command libtool uses to detect shared libraries,
6164 *** $file_magic_cmd, produces output that libtool cannot recognize.
6165 *** The result is that libtool may fail to recognize shared libraries
6166 *** as such.  This will affect the creation of libtool libraries that
6167 *** depend on shared libraries, but programs linked with such libtool
6168 *** libraries will work regardless of this problem.  Nevertheless, you
6169 *** may want to report the problem to your system manager and/or to
6170 *** bug-libtool@gnu.org
6171
6172 EOF
6173           fi ;;
6174         esac
6175       fi
6176       break
6177     fi
6178   done
6179   IFS="$lt_save_ifs"
6180   MAGIC_CMD="$lt_save_MAGIC_CMD"
6181   ;;
6182 esac
6183 fi
6184
6185 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6186 if test -n "$MAGIC_CMD"; then
6187   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6188 $as_echo "$MAGIC_CMD" >&6; }
6189 else
6190   { $as_echo "$as_me:$LINENO: result: no" >&5
6191 $as_echo "no" >&6; }
6192 fi
6193
6194 if test -z "$lt_cv_path_MAGIC_CMD"; then
6195   if test -n "$ac_tool_prefix"; then
6196     { $as_echo "$as_me:$LINENO: checking for file" >&5
6197 $as_echo_n "checking for file... " >&6; }
6198 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6199   $as_echo_n "(cached) " >&6
6200 else
6201   case $MAGIC_CMD in
6202 [\\/*] |  ?:[\\/]*)
6203   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6204   ;;
6205 *)
6206   lt_save_MAGIC_CMD="$MAGIC_CMD"
6207   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6208   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6209   for ac_dir in $ac_dummy; do
6210     IFS="$lt_save_ifs"
6211     test -z "$ac_dir" && ac_dir=.
6212     if test -f $ac_dir/file; then
6213       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6214       if test -n "$file_magic_test_file"; then
6215         case $deplibs_check_method in
6216         "file_magic "*)
6217           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6218           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6219           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6220             $EGREP "$file_magic_regex" > /dev/null; then
6221             :
6222           else
6223             cat <<EOF 1>&2
6224
6225 *** Warning: the command libtool uses to detect shared libraries,
6226 *** $file_magic_cmd, produces output that libtool cannot recognize.
6227 *** The result is that libtool may fail to recognize shared libraries
6228 *** as such.  This will affect the creation of libtool libraries that
6229 *** depend on shared libraries, but programs linked with such libtool
6230 *** libraries will work regardless of this problem.  Nevertheless, you
6231 *** may want to report the problem to your system manager and/or to
6232 *** bug-libtool@gnu.org
6233
6234 EOF
6235           fi ;;
6236         esac
6237       fi
6238       break
6239     fi
6240   done
6241   IFS="$lt_save_ifs"
6242   MAGIC_CMD="$lt_save_MAGIC_CMD"
6243   ;;
6244 esac
6245 fi
6246
6247 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6248 if test -n "$MAGIC_CMD"; then
6249   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6250 $as_echo "$MAGIC_CMD" >&6; }
6251 else
6252   { $as_echo "$as_me:$LINENO: result: no" >&5
6253 $as_echo "no" >&6; }
6254 fi
6255
6256   else
6257     MAGIC_CMD=:
6258   fi
6259 fi
6260
6261   fi
6262   ;;
6263 esac
6264
6265 enable_dlopen=no
6266 enable_win32_dll=no
6267
6268 # Check whether --enable-libtool-lock was given.
6269 if test "${enable_libtool_lock+set}" = set; then
6270   enableval=$enable_libtool_lock;
6271 fi
6272
6273 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6274
6275
6276 # Check whether --with-pic was given.
6277 if test "${with_pic+set}" = set; then
6278   withval=$with_pic; pic_mode="$withval"
6279 else
6280   pic_mode=default
6281 fi
6282
6283 test -z "$pic_mode" && pic_mode=default
6284
6285 # Use C for the default configuration in the libtool script
6286 tagname=
6287 lt_save_CC="$CC"
6288 ac_ext=c
6289 ac_cpp='$CPP $CPPFLAGS'
6290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6293
6294
6295 # Source file extension for C test sources.
6296 ac_ext=c
6297
6298 # Object file extension for compiled C test sources.
6299 objext=o
6300 objext=$objext
6301
6302 # Code to be used in simple compile tests
6303 lt_simple_compile_test_code="int some_variable = 0;\n"
6304
6305 # Code to be used in simple link tests
6306 lt_simple_link_test_code='int main(){return(0);}\n'
6307
6308
6309 # If no C compiler was specified, use CC.
6310 LTCC=${LTCC-"$CC"}
6311
6312 # Allow CC to be a program name with arguments.
6313 compiler=$CC
6314
6315
6316 #
6317 # Check for any special shared library compilation flags.
6318 #
6319 lt_prog_cc_shlib=
6320 if test "$GCC" = no; then
6321   case $host_os in
6322   sco3.2v5*)
6323     lt_prog_cc_shlib='-belf'
6324     ;;
6325   esac
6326 fi
6327 if test -n "$lt_prog_cc_shlib"; then
6328   { $as_echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6329 $as_echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6330   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6331   else
6332     { $as_echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6333 $as_echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6334     lt_cv_prog_cc_can_build_shared=no
6335   fi
6336 fi
6337
6338
6339 #
6340 # Check to make sure the static flag actually works.
6341 #
6342 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6343 $as_echo_n "checking if $compiler static flag $lt_prog_compiler_static works... " >&6; }
6344 if test "${lt_prog_compiler_static_works+set}" = set; then
6345   $as_echo_n "(cached) " >&6
6346 else
6347   lt_prog_compiler_static_works=no
6348    save_LDFLAGS="$LDFLAGS"
6349    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6350    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6351    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6352      # The compiler can only warn and ignore the option if not recognized
6353      # So say no if there are warnings
6354      if test -s conftest.err; then
6355        # Append any errors to the config.log.
6356        cat conftest.err 1>&5
6357      else
6358        lt_prog_compiler_static_works=yes
6359      fi
6360    fi
6361    $rm conftest*
6362    LDFLAGS="$save_LDFLAGS"
6363
6364 fi
6365 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6366 $as_echo "$lt_prog_compiler_static_works" >&6; }
6367
6368 if test x"$lt_prog_compiler_static_works" = xyes; then
6369     :
6370 else
6371     lt_prog_compiler_static=
6372 fi
6373
6374
6375
6376 ## CAVEAT EMPTOR:
6377 ## There is no encapsulation within the following macros, do not change
6378 ## the running order or otherwise move them around unless you know exactly
6379 ## what you are doing...
6380
6381 lt_prog_compiler_no_builtin_flag=
6382
6383 if test "$GCC" = yes; then
6384   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6385
6386
6387 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6388 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
6389 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6390   $as_echo_n "(cached) " >&6
6391 else
6392   lt_cv_prog_compiler_rtti_exceptions=no
6393   ac_outfile=conftest.$ac_objext
6394    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6395    lt_compiler_flag="-fno-rtti -fno-exceptions"
6396    # Insert the option either (1) after the last *FLAGS variable, or
6397    # (2) before a word containing "conftest.", or (3) at the end.
6398    # Note that $ac_compile itself does not contain backslashes and begins
6399    # with a dollar sign (not a hyphen), so the echo should work correctly.
6400    # The option is referenced via a variable to avoid confusing sed.
6401    lt_compile=`echo "$ac_compile" | $SED \
6402    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6403    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6404    -e 's:$: $lt_compiler_flag:'`
6405    (eval echo "\"\$as_me:6405: $lt_compile\"" >&5)
6406    (eval "$lt_compile" 2>conftest.err)
6407    ac_status=$?
6408    cat conftest.err >&5
6409    echo "$as_me:6409: \$? = $ac_status" >&5
6410    if (exit $ac_status) && test -s "$ac_outfile"; then
6411      # The compiler can only warn and ignore the option if not recognized
6412      # So say no if there are warnings
6413      if test ! -s conftest.err; then
6414        lt_cv_prog_compiler_rtti_exceptions=yes
6415      fi
6416    fi
6417    $rm conftest*
6418
6419 fi
6420 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6421 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6422
6423 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6424     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6425 else
6426     :
6427 fi
6428
6429 fi
6430
6431 lt_prog_compiler_wl=
6432 lt_prog_compiler_pic=
6433 lt_prog_compiler_static=
6434
6435 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6436 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
6437
6438   if test "$GCC" = yes; then
6439     lt_prog_compiler_wl='-Wl,'
6440     lt_prog_compiler_static='-static'
6441
6442     case $host_os in
6443       aix*)
6444       # All AIX code is PIC.
6445       if test "$host_cpu" = ia64; then
6446         # AIX 5 now supports IA64 processor
6447         lt_prog_compiler_static='-Bstatic'
6448       fi
6449       ;;
6450
6451     amigaos*)
6452       # FIXME: we need at least 68020 code to build shared libraries, but
6453       # adding the `-m68020' flag to GCC prevents building anything better,
6454       # like `-m68040'.
6455       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6456       ;;
6457
6458     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6459       # PIC is the default for these OSes.
6460       ;;
6461
6462     mingw* | pw32* | os2*)
6463       # This hack is so that the source file can tell whether it is being
6464       # built for inclusion in a dll (and should export symbols for example).
6465       lt_prog_compiler_pic='-DDLL_EXPORT'
6466       ;;
6467
6468     darwin* | rhapsody*)
6469       # PIC is the default on this platform
6470       # Common symbols not allowed in MH_DYLIB files
6471       lt_prog_compiler_pic='-fno-common'
6472       ;;
6473
6474     msdosdjgpp*)
6475       # Just because we use GCC doesn't mean we suddenly get shared libraries
6476       # on systems that don't support them.
6477       lt_prog_compiler_can_build_shared=no
6478       enable_shared=no
6479       ;;
6480
6481     sysv4*MP*)
6482       if test -d /usr/nec; then
6483         lt_prog_compiler_pic=-Kconform_pic
6484       fi
6485       ;;
6486
6487     hpux*)
6488       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6489       # not for PA HP-UX.
6490       case "$host_cpu" in
6491       hppa*64*|ia64*)
6492         # +Z the default
6493         ;;
6494       *)
6495         lt_prog_compiler_pic='-fPIC'
6496         ;;
6497       esac
6498       ;;
6499
6500     *)
6501       lt_prog_compiler_pic='-fPIC'
6502       ;;
6503     esac
6504   else
6505     # PORTME Check for flag to pass linker flags through the system compiler.
6506     case $host_os in
6507     aix*)
6508       lt_prog_compiler_wl='-Wl,'
6509       if test "$host_cpu" = ia64; then
6510         # AIX 5 now supports IA64 processor
6511         lt_prog_compiler_static='-Bstatic'
6512       else
6513         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6514       fi
6515       ;;
6516
6517     mingw* | pw32* | os2*)
6518       # This hack is so that the source file can tell whether it is being
6519       # built for inclusion in a dll (and should export symbols for example).
6520       lt_prog_compiler_pic='-DDLL_EXPORT'
6521       ;;
6522
6523     hpux9* | hpux10* | hpux11*)
6524       lt_prog_compiler_wl='-Wl,'
6525       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6526       # not for PA HP-UX.
6527       case "$host_cpu" in
6528       hppa*64*|ia64*)
6529         # +Z the default
6530         ;;
6531       *)
6532         lt_prog_compiler_pic='+Z'
6533         ;;
6534       esac
6535       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6536       lt_prog_compiler_static='${wl}-a ${wl}archive'
6537       ;;
6538
6539     irix5* | irix6* | nonstopux*)
6540       lt_prog_compiler_wl='-Wl,'
6541       # PIC (with -KPIC) is the default.
6542       lt_prog_compiler_static='-non_shared'
6543       ;;
6544
6545     newsos6)
6546       lt_prog_compiler_pic='-KPIC'
6547       lt_prog_compiler_static='-Bstatic'
6548       ;;
6549
6550     linux*)
6551       case $CC in
6552       icc* | ecc*)
6553         lt_prog_compiler_wl='-Wl,'
6554         lt_prog_compiler_pic='-KPIC'
6555         lt_prog_compiler_static='-static'
6556         ;;
6557       ccc*)
6558         lt_prog_compiler_wl='-Wl,'
6559         # All Alpha code is PIC.
6560         lt_prog_compiler_static='-non_shared'
6561         ;;
6562       esac
6563       ;;
6564
6565     osf3* | osf4* | osf5*)
6566       lt_prog_compiler_wl='-Wl,'
6567       # All OSF/1 code is PIC.
6568       lt_prog_compiler_static='-non_shared'
6569       ;;
6570
6571     sco3.2v5*)
6572       lt_prog_compiler_pic='-Kpic'
6573       lt_prog_compiler_static='-dn'
6574       ;;
6575
6576     solaris*)
6577       lt_prog_compiler_wl='-Wl,'
6578       lt_prog_compiler_pic='-KPIC'
6579       lt_prog_compiler_static='-Bstatic'
6580       ;;
6581
6582     sunos4*)
6583       lt_prog_compiler_wl='-Qoption ld '
6584       lt_prog_compiler_pic='-PIC'
6585       lt_prog_compiler_static='-Bstatic'
6586       ;;
6587
6588     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6589       lt_prog_compiler_wl='-Wl,'
6590       lt_prog_compiler_pic='-KPIC'
6591       lt_prog_compiler_static='-Bstatic'
6592       ;;
6593
6594     sysv4*MP*)
6595       if test -d /usr/nec ;then
6596         lt_prog_compiler_pic='-Kconform_pic'
6597         lt_prog_compiler_static='-Bstatic'
6598       fi
6599       ;;
6600
6601     uts4*)
6602       lt_prog_compiler_pic='-pic'
6603       lt_prog_compiler_static='-Bstatic'
6604       ;;
6605
6606     *)
6607       lt_prog_compiler_can_build_shared=no
6608       ;;
6609     esac
6610   fi
6611
6612 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6613 $as_echo "$lt_prog_compiler_pic" >&6; }
6614
6615 #
6616 # Check to make sure the PIC flag actually works.
6617 #
6618 if test -n "$lt_prog_compiler_pic"; then
6619
6620 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6621 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
6622 if test "${lt_prog_compiler_pic_works+set}" = set; then
6623   $as_echo_n "(cached) " >&6
6624 else
6625   lt_prog_compiler_pic_works=no
6626   ac_outfile=conftest.$ac_objext
6627    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6628    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6629    # Insert the option either (1) after the last *FLAGS variable, or
6630    # (2) before a word containing "conftest.", or (3) at the end.
6631    # Note that $ac_compile itself does not contain backslashes and begins
6632    # with a dollar sign (not a hyphen), so the echo should work correctly.
6633    # The option is referenced via a variable to avoid confusing sed.
6634    lt_compile=`echo "$ac_compile" | $SED \
6635    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6636    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6637    -e 's:$: $lt_compiler_flag:'`
6638    (eval echo "\"\$as_me:6638: $lt_compile\"" >&5)
6639    (eval "$lt_compile" 2>conftest.err)
6640    ac_status=$?
6641    cat conftest.err >&5
6642    echo "$as_me:6642: \$? = $ac_status" >&5
6643    if (exit $ac_status) && test -s "$ac_outfile"; then
6644      # The compiler can only warn and ignore the option if not recognized
6645      # So say no if there are warnings
6646      if test ! -s conftest.err; then
6647        lt_prog_compiler_pic_works=yes
6648      fi
6649    fi
6650    $rm conftest*
6651
6652 fi
6653 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6654 $as_echo "$lt_prog_compiler_pic_works" >&6; }
6655
6656 if test x"$lt_prog_compiler_pic_works" = xyes; then
6657     case $lt_prog_compiler_pic in
6658      "" | " "*) ;;
6659      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6660      esac
6661 else
6662     lt_prog_compiler_pic=
6663      lt_prog_compiler_can_build_shared=no
6664 fi
6665
6666 fi
6667 case "$host_os" in
6668   # For platforms which do not support PIC, -DPIC is meaningless:
6669   *djgpp*)
6670     lt_prog_compiler_pic=
6671     ;;
6672   *)
6673     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6674     ;;
6675 esac
6676
6677 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6678 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
6679 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6680   $as_echo_n "(cached) " >&6
6681 else
6682   lt_cv_prog_compiler_c_o=no
6683    $rm -r conftest 2>/dev/null
6684    mkdir conftest
6685    cd conftest
6686    mkdir out
6687    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6688
6689    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6690    # that will create temporary files in the current directory regardless of
6691    # the output directory.  Thus, making CWD read-only will cause this test
6692    # to fail, enabling locking or at least warning the user not to do parallel
6693    # builds.
6694    chmod -w .
6695
6696    lt_compiler_flag="-o out/conftest2.$ac_objext"
6697    # Insert the option either (1) after the last *FLAGS variable, or
6698    # (2) before a word containing "conftest.", or (3) at the end.
6699    # Note that $ac_compile itself does not contain backslashes and begins
6700    # with a dollar sign (not a hyphen), so the echo should work correctly.
6701    lt_compile=`echo "$ac_compile" | $SED \
6702    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6703    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6704    -e 's:$: $lt_compiler_flag:'`
6705    (eval echo "\"\$as_me:6705: $lt_compile\"" >&5)
6706    (eval "$lt_compile" 2>out/conftest.err)
6707    ac_status=$?
6708    cat out/conftest.err >&5
6709    echo "$as_me:6709: \$? = $ac_status" >&5
6710    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6711    then
6712      # The compiler can only warn and ignore the option if not recognized
6713      # So say no if there are warnings
6714      if test ! -s out/conftest.err; then
6715        lt_cv_prog_compiler_c_o=yes
6716      fi
6717    fi
6718    chmod u+w .
6719    $rm conftest*
6720    # SGI C++ compiler will create directory out/ii_files/ for
6721    # template instantiation
6722    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6723    $rm out/* && rmdir out
6724    cd ..
6725    rmdir conftest
6726    $rm conftest*
6727
6728 fi
6729 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6730 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
6731
6732
6733 hard_links="nottested"
6734 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6735   # do not overwrite the value of need_locks provided by the user
6736   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6737 $as_echo_n "checking if we can lock with hard links... " >&6; }
6738   hard_links=yes
6739   $rm conftest*
6740   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6741   touch conftest.a
6742   ln conftest.a conftest.b 2>&5 || hard_links=no
6743   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6744   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
6745 $as_echo "$hard_links" >&6; }
6746   if test "$hard_links" = no; then
6747     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6748 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6749     need_locks=warn
6750   fi
6751 else
6752   need_locks=no
6753 fi
6754
6755 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6756 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
6757
6758   runpath_var=
6759   allow_undefined_flag=
6760   enable_shared_with_static_runtimes=no
6761   archive_cmds=
6762   archive_expsym_cmds=
6763   old_archive_From_new_cmds=
6764   old_archive_from_expsyms_cmds=
6765   export_dynamic_flag_spec=
6766   whole_archive_flag_spec=
6767   thread_safe_flag_spec=
6768   hardcode_libdir_flag_spec=
6769   hardcode_libdir_flag_spec_ld=
6770   hardcode_libdir_separator=
6771   hardcode_direct=no
6772   hardcode_minus_L=no
6773   hardcode_shlibpath_var=unsupported
6774   link_all_deplibs=unknown
6775   hardcode_automatic=no
6776   module_cmds=
6777   module_expsym_cmds=
6778   always_export_symbols=no
6779   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6780   # include_expsyms should be a list of space-separated symbols to be *always*
6781   # included in the symbol list
6782   include_expsyms=
6783   # exclude_expsyms can be an extended regexp of symbols to exclude
6784   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6785   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6786   # as well as any symbol that contains `d'.
6787   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6788   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6789   # platforms (ab)use it in PIC code, but their linkers get confused if
6790   # the symbol is explicitly referenced.  Since portable code cannot
6791   # rely on this symbol name, it's probably fine to never include it in
6792   # preloaded symbol tables.
6793   extract_expsyms_cmds=
6794
6795   case $host_os in
6796   cygwin* | mingw* | pw32*)
6797     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6798     # When not using gcc, we currently assume that we are using
6799     # Microsoft Visual C++.
6800     if test "$GCC" != yes; then
6801       with_gnu_ld=no
6802     fi
6803     ;;
6804   openbsd*)
6805     with_gnu_ld=no
6806     ;;
6807   esac
6808
6809   ld_shlibs=yes
6810   if test "$with_gnu_ld" = yes; then
6811     # If archive_cmds runs LD, not CC, wlarc should be empty
6812     wlarc='${wl}'
6813
6814     # See if GNU ld supports shared libraries.
6815     case $host_os in
6816     aix3* | aix4* | aix5*)
6817       # On AIX/PPC, the GNU linker is very broken
6818       if test "$host_cpu" != ia64; then
6819         ld_shlibs=no
6820         cat <<EOF 1>&2
6821
6822 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6823 *** to be unable to reliably create shared libraries on AIX.
6824 *** Therefore, libtool is disabling shared libraries support.  If you
6825 *** really care for shared libraries, you may want to modify your PATH
6826 *** so that a non-GNU linker is found, and then restart.
6827
6828 EOF
6829       fi
6830       ;;
6831
6832     amigaos*)
6833       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)'
6834       hardcode_libdir_flag_spec='-L$libdir'
6835       hardcode_minus_L=yes
6836
6837       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6838       # that the semantics of dynamic libraries on AmigaOS, at least up
6839       # to version 4, is to share data among multiple programs linked
6840       # with the same dynamic library.  Since this doesn't match the
6841       # behavior of shared libraries on other platforms, we can't use
6842       # them.
6843       ld_shlibs=no
6844       ;;
6845
6846     beos*)
6847       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6848         allow_undefined_flag=unsupported
6849         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6850         # support --undefined.  This deserves some investigation.  FIXME
6851         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6852       else
6853         ld_shlibs=no
6854       fi
6855       ;;
6856
6857     cygwin* | mingw* | pw32*)
6858       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6859       # as there is no search path for DLLs.
6860       hardcode_libdir_flag_spec='-L$libdir'
6861       allow_undefined_flag=unsupported
6862       always_export_symbols=no
6863       enable_shared_with_static_runtimes=yes
6864       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6865
6866       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6867         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6868         # If the export-symbols file already is a .def file (1st line
6869         # is EXPORTS), use it as is; otherwise, prepend...
6870         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6871           cp $export_symbols $output_objdir/$soname.def;
6872         else
6873           echo EXPORTS > $output_objdir/$soname.def;
6874           cat $export_symbols >> $output_objdir/$soname.def;
6875         fi~
6876         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6877       else
6878         ld_shlibs=no
6879       fi
6880       ;;
6881
6882     netbsd*)
6883       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6884         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6885         wlarc=
6886       else
6887         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6888         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6889       fi
6890       ;;
6891
6892     solaris* | sysv5*)
6893       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6894         ld_shlibs=no
6895         cat <<EOF 1>&2
6896
6897 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6898 *** create shared libraries on Solaris systems.  Therefore, libtool
6899 *** is disabling shared libraries support.  We urge you to upgrade GNU
6900 *** binutils to release 2.9.1 or newer.  Another option is to modify
6901 *** your PATH or compiler configuration so that the native linker is
6902 *** used, and then restart.
6903
6904 EOF
6905       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6906         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6907         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6908       else
6909         ld_shlibs=no
6910       fi
6911       ;;
6912
6913     sunos4*)
6914       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6915       wlarc=
6916       hardcode_direct=yes
6917       hardcode_shlibpath_var=no
6918       ;;
6919
6920   linux*)
6921     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6922         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6923         archive_cmds="$tmp_archive_cmds"
6924       supports_anon_versioning=no
6925       case `$LD -v 2>/dev/null` in
6926         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6927         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6928         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6929         *\ 2.11.*) ;; # other 2.11 versions
6930         *) supports_anon_versioning=yes ;;
6931       esac
6932       if test $supports_anon_versioning = yes; then
6933         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6934 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6935 $echo "local: *; };" >> $output_objdir/$libname.ver~
6936         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6937       else
6938         archive_expsym_cmds="$tmp_archive_cmds"
6939       fi
6940     else
6941       ld_shlibs=no
6942     fi
6943     ;;
6944
6945     *)
6946       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6947         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6948         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6949       else
6950         ld_shlibs=no
6951       fi
6952       ;;
6953     esac
6954
6955     if test "$ld_shlibs" = yes; then
6956       runpath_var=LD_RUN_PATH
6957       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6958       export_dynamic_flag_spec='${wl}--export-dynamic'
6959       # ancient GNU ld didn't support --whole-archive et. al.
6960       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6961         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6962       else
6963         whole_archive_flag_spec=
6964       fi
6965     fi
6966   else
6967     # PORTME fill in a description of your system's linker (not GNU ld)
6968     case $host_os in
6969     aix3*)
6970       allow_undefined_flag=unsupported
6971       always_export_symbols=yes
6972       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'
6973       # Note: this linker hardcodes the directories in LIBPATH if there
6974       # are no directories specified by -L.
6975       hardcode_minus_L=yes
6976       if test "$GCC" = yes && test -z "$link_static_flag"; then
6977         # Neither direct hardcoding nor static linking is supported with a
6978         # broken collect2.
6979         hardcode_direct=unsupported
6980       fi
6981       ;;
6982
6983     aix4* | aix5*)
6984       if test "$host_cpu" = ia64; then
6985         # On IA64, the linker does run time linking by default, so we don't
6986         # have to do anything special.
6987         aix_use_runtimelinking=no
6988         exp_sym_flag='-Bexport'
6989         no_entry_flag=""
6990       else
6991         # If we're using GNU nm, then we don't want the "-C" option.
6992         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6993         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6994           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'
6995         else
6996           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'
6997         fi
6998         aix_use_runtimelinking=no
6999
7000         # Test if we are trying to use run time linking or normal
7001         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7002         # need to do runtime linking.
7003         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7004           for ld_flag in $LDFLAGS; do
7005           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7006             aix_use_runtimelinking=yes
7007             break
7008           fi
7009           done
7010         esac
7011
7012         exp_sym_flag='-bexport'
7013         no_entry_flag='-bnoentry'
7014       fi
7015
7016       # When large executables or shared objects are built, AIX ld can
7017       # have problems creating the table of contents.  If linking a library
7018       # or program results in "error TOC overflow" add -mminimal-toc to
7019       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7020       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7021
7022       archive_cmds=''
7023       hardcode_direct=yes
7024       hardcode_libdir_separator=':'
7025       link_all_deplibs=yes
7026
7027       if test "$GCC" = yes; then
7028         case $host_os in aix4.012|aix4.012.*)
7029         # We only want to do this on AIX 4.2 and lower, the check
7030         # below for broken collect2 doesn't work under 4.3+
7031           collect2name=`${CC} -print-prog-name=collect2`
7032           if test -f "$collect2name" && \
7033            strings "$collect2name" | grep resolve_lib_name >/dev/null
7034           then
7035           # We have reworked collect2
7036           hardcode_direct=yes
7037           else
7038           # We have old collect2
7039           hardcode_direct=unsupported
7040           # It fails to find uninstalled libraries when the uninstalled
7041           # path is not listed in the libpath.  Setting hardcode_minus_L
7042           # to unsupported forces relinking
7043           hardcode_minus_L=yes
7044           hardcode_libdir_flag_spec='-L$libdir'
7045           hardcode_libdir_separator=
7046           fi
7047         esac
7048         shared_flag='-shared'
7049       else
7050         # not using gcc
7051         if test "$host_cpu" = ia64; then
7052         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7053         # chokes on -Wl,-G. The following line is correct:
7054           shared_flag='-G'
7055         else
7056         if test "$aix_use_runtimelinking" = yes; then
7057             shared_flag='${wl}-G'
7058           else
7059             shared_flag='${wl}-bM:SRE'
7060         fi
7061         fi
7062       fi
7063
7064       # It seems that -bexpall does not export symbols beginning with
7065       # underscore (_), so it is better to generate a list of symbols to export.
7066       always_export_symbols=yes
7067       if test "$aix_use_runtimelinking" = yes; then
7068         # Warning - without using the other runtime loading flags (-brtl),
7069         # -berok will link without error, but may produce a broken library.
7070         allow_undefined_flag='-berok'
7071        # Determine the default libpath from the value encoded in an empty executable.
7072        cat >conftest.$ac_ext <<_ACEOF
7073 /* confdefs.h.  */
7074 _ACEOF
7075 cat confdefs.h >>conftest.$ac_ext
7076 cat >>conftest.$ac_ext <<_ACEOF
7077 /* end confdefs.h.  */
7078
7079 int
7080 main ()
7081 {
7082
7083   ;
7084   return 0;
7085 }
7086 _ACEOF
7087 rm -f conftest.$ac_objext conftest$ac_exeext
7088 if { (ac_try="$ac_link"
7089 case "(($ac_try" in
7090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7091   *) ac_try_echo=$ac_try;;
7092 esac
7093 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7094 $as_echo "$ac_try_echo") >&5
7095   (eval "$ac_link") 2>conftest.er1
7096   ac_status=$?
7097   grep -v '^ *+' conftest.er1 >conftest.err
7098   rm -f conftest.er1
7099   cat conftest.err >&5
7100   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7101   (exit $ac_status); } && {
7102          test -z "$ac_c_werror_flag" ||
7103          test ! -s conftest.err
7104        } && test -s conftest$ac_exeext && {
7105          test "$cross_compiling" = yes ||
7106          $as_test_x conftest$ac_exeext
7107        }; then
7108
7109 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7110 }'`
7111 # Check for a 64-bit object if we didn't find anything.
7112 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; }
7113 }'`; fi
7114 else
7115   $as_echo "$as_me: failed program was:" >&5
7116 sed 's/^/| /' conftest.$ac_ext >&5
7117
7118
7119 fi
7120
7121 rm -rf conftest.dSYM
7122 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7123       conftest$ac_exeext conftest.$ac_ext
7124 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7125
7126        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7127         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"
7128        else
7129         if test "$host_cpu" = ia64; then
7130           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7131           allow_undefined_flag="-z nodefs"
7132           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"
7133         else
7134          # Determine the default libpath from the value encoded in an empty executable.
7135          cat >conftest.$ac_ext <<_ACEOF
7136 /* confdefs.h.  */
7137 _ACEOF
7138 cat confdefs.h >>conftest.$ac_ext
7139 cat >>conftest.$ac_ext <<_ACEOF
7140 /* end confdefs.h.  */
7141
7142 int
7143 main ()
7144 {
7145
7146   ;
7147   return 0;
7148 }
7149 _ACEOF
7150 rm -f conftest.$ac_objext conftest$ac_exeext
7151 if { (ac_try="$ac_link"
7152 case "(($ac_try" in
7153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7154   *) ac_try_echo=$ac_try;;
7155 esac
7156 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7157 $as_echo "$ac_try_echo") >&5
7158   (eval "$ac_link") 2>conftest.er1
7159   ac_status=$?
7160   grep -v '^ *+' conftest.er1 >conftest.err
7161   rm -f conftest.er1
7162   cat conftest.err >&5
7163   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7164   (exit $ac_status); } && {
7165          test -z "$ac_c_werror_flag" ||
7166          test ! -s conftest.err
7167        } && test -s conftest$ac_exeext && {
7168          test "$cross_compiling" = yes ||
7169          $as_test_x conftest$ac_exeext
7170        }; then
7171
7172 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7173 }'`
7174 # Check for a 64-bit object if we didn't find anything.
7175 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; }
7176 }'`; fi
7177 else
7178   $as_echo "$as_me: failed program was:" >&5
7179 sed 's/^/| /' conftest.$ac_ext >&5
7180
7181
7182 fi
7183
7184 rm -rf conftest.dSYM
7185 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7186       conftest$ac_exeext conftest.$ac_ext
7187 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7188
7189          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7190           # Warning - without using the other run time loading flags,
7191           # -berok will link without error, but may produce a broken library.
7192           no_undefined_flag=' ${wl}-bernotok'
7193           allow_undefined_flag=' ${wl}-berok'
7194           # -bexpall does not export symbols beginning with underscore (_)
7195           always_export_symbols=yes
7196           # Exported symbols can be pulled into shared objects from archives
7197           whole_archive_flag_spec=' '
7198           archive_cmds_need_lc=yes
7199           # This is similar to how AIX traditionally builds it's shared libraries.
7200           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'
7201         fi
7202       fi
7203       ;;
7204
7205     amigaos*)
7206       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)'
7207       hardcode_libdir_flag_spec='-L$libdir'
7208       hardcode_minus_L=yes
7209       # see comment about different semantics on the GNU ld section
7210       ld_shlibs=no
7211       ;;
7212
7213     bsdi4*)
7214       export_dynamic_flag_spec=-rdynamic
7215       ;;
7216
7217     cygwin* | mingw* | pw32*)
7218       # When not using gcc, we currently assume that we are using
7219       # Microsoft Visual C++.
7220       # hardcode_libdir_flag_spec is actually meaningless, as there is
7221       # no search path for DLLs.
7222       hardcode_libdir_flag_spec=' '
7223       allow_undefined_flag=unsupported
7224       # Tell ltmain to make .lib files, not .a files.
7225       libext=lib
7226       # Tell ltmain to make .dll files, not .so files.
7227       shrext=".dll"
7228       # FIXME: Setting linknames here is a bad hack.
7229       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7230       # The linker will automatically build a .lib file if we build a DLL.
7231       old_archive_From_new_cmds='true'
7232       # FIXME: Should let the user specify the lib program.
7233       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7234       fix_srcfile_path='`cygpath -w "$srcfile"`'
7235       enable_shared_with_static_runtimes=yes
7236       ;;
7237
7238     darwin* | rhapsody*)
7239     if test "$GXX" = yes ; then
7240       archive_cmds_need_lc=no
7241       case "$host_os" in
7242       rhapsody* | darwin1.[012])
7243         allow_undefined_flag='-undefined suppress'
7244         ;;
7245       *) # Darwin 1.3 on
7246       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7247         allow_undefined_flag='-flat_namespace -undefined suppress'
7248       else
7249         case ${MACOSX_DEPLOYMENT_TARGET} in
7250           10.[012])
7251             allow_undefined_flag='-flat_namespace -undefined suppress'
7252             ;;
7253           10.*)
7254             allow_undefined_flag='-undefined dynamic_lookup'
7255             ;;
7256         esac
7257       fi
7258         ;;
7259       esac
7260         lt_int_apple_cc_single_mod=no
7261         output_verbose_link_cmd='echo'
7262         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7263           lt_int_apple_cc_single_mod=yes
7264         fi
7265         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7266           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7267         else
7268         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'
7269       fi
7270       module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7271       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7272         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7273           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}'
7274         else
7275           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}'
7276         fi
7277           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}'
7278       hardcode_direct=no
7279       hardcode_automatic=yes
7280       hardcode_shlibpath_var=unsupported
7281       whole_archive_flag_spec='-all_load $convenience'
7282       link_all_deplibs=yes
7283     else
7284       ld_shlibs=no
7285     fi
7286       ;;
7287
7288     dgux*)
7289       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7290       hardcode_libdir_flag_spec='-L$libdir'
7291       hardcode_shlibpath_var=no
7292       ;;
7293
7294     freebsd1*)
7295       ld_shlibs=no
7296       ;;
7297
7298     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7299     # support.  Future versions do this automatically, but an explicit c++rt0.o
7300     # does not break anything, and helps significantly (at the cost of a little
7301     # extra space).
7302     freebsd2.2*)
7303       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7304       hardcode_libdir_flag_spec='-R$libdir'
7305       hardcode_direct=yes
7306       hardcode_shlibpath_var=no
7307       ;;
7308
7309     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7310     freebsd2*)
7311       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7312       hardcode_direct=yes
7313       hardcode_minus_L=yes
7314       hardcode_shlibpath_var=no
7315       ;;
7316
7317     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7318     freebsd* | kfreebsd*-gnu)
7319       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7320       hardcode_libdir_flag_spec='-R$libdir'
7321       hardcode_direct=yes
7322       hardcode_shlibpath_var=no
7323       ;;
7324
7325     hpux9*)
7326       if test "$GCC" = yes; then
7327         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'
7328       else
7329         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'
7330       fi
7331       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7332       hardcode_libdir_separator=:
7333       hardcode_direct=yes
7334
7335       # hardcode_minus_L: Not really in the search PATH,
7336       # but as the default location of the library.
7337       hardcode_minus_L=yes
7338       export_dynamic_flag_spec='${wl}-E'
7339       ;;
7340
7341     hpux10* | hpux11*)
7342       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7343         case "$host_cpu" in
7344         hppa*64*|ia64*)
7345           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7346           ;;
7347         *)
7348           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7349           ;;
7350         esac
7351       else
7352         case "$host_cpu" in
7353         hppa*64*|ia64*)
7354           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7355           ;;
7356         *)
7357           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7358           ;;
7359         esac
7360       fi
7361       if test "$with_gnu_ld" = no; then
7362         case "$host_cpu" in
7363         hppa*64*)
7364           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7365           hardcode_libdir_flag_spec_ld='+b $libdir'
7366           hardcode_libdir_separator=:
7367           hardcode_direct=no
7368           hardcode_shlibpath_var=no
7369           ;;
7370         ia64*)
7371           hardcode_libdir_flag_spec='-L$libdir'
7372           hardcode_direct=no
7373           hardcode_shlibpath_var=no
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         *)
7380           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7381           hardcode_libdir_separator=:
7382           hardcode_direct=yes
7383           export_dynamic_flag_spec='${wl}-E'
7384
7385           # hardcode_minus_L: Not really in the search PATH,
7386           # but as the default location of the library.
7387           hardcode_minus_L=yes
7388           ;;
7389         esac
7390       fi
7391       ;;
7392
7393     irix5* | irix6* | nonstopux*)
7394       if test "$GCC" = yes; then
7395         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'
7396       else
7397         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'
7398         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7399       fi
7400       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7401       hardcode_libdir_separator=:
7402       link_all_deplibs=yes
7403       ;;
7404
7405     netbsd*)
7406       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7407         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7408       else
7409         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7410       fi
7411       hardcode_libdir_flag_spec='-R$libdir'
7412       hardcode_direct=yes
7413       hardcode_shlibpath_var=no
7414       ;;
7415
7416     newsos6)
7417       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7418       hardcode_direct=yes
7419       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7420       hardcode_libdir_separator=:
7421       hardcode_shlibpath_var=no
7422       ;;
7423
7424     openbsd*)
7425       hardcode_direct=yes
7426       hardcode_shlibpath_var=no
7427       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7428         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7429         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7430         export_dynamic_flag_spec='${wl}-E'
7431       else
7432        case $host_os in
7433          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7434            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7435            hardcode_libdir_flag_spec='-R$libdir'
7436            ;;
7437          *)
7438            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7439            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7440            ;;
7441        esac
7442       fi
7443       ;;
7444
7445     os2*)
7446       hardcode_libdir_flag_spec='-L$libdir'
7447       hardcode_minus_L=yes
7448       allow_undefined_flag=unsupported
7449       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'
7450       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7451       ;;
7452
7453     osf3*)
7454       if test "$GCC" = yes; then
7455         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7456         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'
7457       else
7458         allow_undefined_flag=' -expect_unresolved \*'
7459         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'
7460       fi
7461       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7462       hardcode_libdir_separator=:
7463       ;;
7464
7465     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7466       if test "$GCC" = yes; then
7467         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7468         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'
7469         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7470       else
7471         allow_undefined_flag=' -expect_unresolved \*'
7472         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'
7473         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7474         $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'
7475
7476         # Both c and cxx compiler support -rpath directly
7477         hardcode_libdir_flag_spec='-rpath $libdir'
7478       fi
7479       hardcode_libdir_separator=:
7480       ;;
7481
7482     sco3.2v5*)
7483       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7484       hardcode_shlibpath_var=no
7485       export_dynamic_flag_spec='${wl}-Bexport'
7486       runpath_var=LD_RUN_PATH
7487       hardcode_runpath_var=yes
7488       ;;
7489
7490     solaris*)
7491       no_undefined_flag=' -z text'
7492       if test "$GCC" = yes; then
7493         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7494         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7495           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7496       else
7497         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7498         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7499         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7500       fi
7501       hardcode_libdir_flag_spec='-R$libdir'
7502       hardcode_shlibpath_var=no
7503       case $host_os in
7504       solaris2.[0-5] | solaris2.[0-5].*) ;;
7505       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7506         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7507       esac
7508       link_all_deplibs=yes
7509       ;;
7510
7511     sunos4*)
7512       if test "x$host_vendor" = xsequent; then
7513         # Use $CC to link under sequent, because it throws in some extra .o
7514         # files that make .init and .fini sections work.
7515         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7516       else
7517         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7518       fi
7519       hardcode_libdir_flag_spec='-L$libdir'
7520       hardcode_direct=yes
7521       hardcode_minus_L=yes
7522       hardcode_shlibpath_var=no
7523       ;;
7524
7525     sysv4)
7526       case $host_vendor in
7527         sni)
7528           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7529           hardcode_direct=yes # is this really true???
7530         ;;
7531         siemens)
7532           ## LD is ld it makes a PLAMLIB
7533           ## CC just makes a GrossModule.
7534           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7535           reload_cmds='$CC -r -o $output$reload_objs'
7536           hardcode_direct=no
7537         ;;
7538         motorola)
7539           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7540           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7541         ;;
7542       esac
7543       runpath_var='LD_RUN_PATH'
7544       hardcode_shlibpath_var=no
7545       ;;
7546
7547     sysv4.3*)
7548       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7549       hardcode_shlibpath_var=no
7550       export_dynamic_flag_spec='-Bexport'
7551       ;;
7552
7553     sysv4*MP*)
7554       if test -d /usr/nec; then
7555         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7556         hardcode_shlibpath_var=no
7557         runpath_var=LD_RUN_PATH
7558         hardcode_runpath_var=yes
7559         ld_shlibs=yes
7560       fi
7561       ;;
7562
7563     sysv4.2uw2*)
7564       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7565       hardcode_direct=yes
7566       hardcode_minus_L=no
7567       hardcode_shlibpath_var=no
7568       hardcode_runpath_var=yes
7569       runpath_var=LD_RUN_PATH
7570       ;;
7571
7572    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7573       no_undefined_flag='${wl}-z ${wl}text'
7574       if test "$GCC" = yes; then
7575         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7576       else
7577         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7578       fi
7579       runpath_var='LD_RUN_PATH'
7580       hardcode_shlibpath_var=no
7581       ;;
7582
7583     sysv5*)
7584       no_undefined_flag=' -z text'
7585       # $CC -shared without GNU ld will not create a library from C++
7586       # object files and a static libstdc++, better avoid it by now
7587       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7588       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7589                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7590       hardcode_libdir_flag_spec=
7591       hardcode_shlibpath_var=no
7592       runpath_var='LD_RUN_PATH'
7593       ;;
7594
7595     uts4*)
7596       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7597       hardcode_libdir_flag_spec='-L$libdir'
7598       hardcode_shlibpath_var=no
7599       ;;
7600
7601     *)
7602       ld_shlibs=no
7603       ;;
7604     esac
7605   fi
7606
7607 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7608 $as_echo "$ld_shlibs" >&6; }
7609 test "$ld_shlibs" = no && can_build_shared=no
7610
7611 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7612 if test "$GCC" = yes; then
7613   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7614 fi
7615
7616 #
7617 # Do we need to explicitly link libc?
7618 #
7619 case "x$archive_cmds_need_lc" in
7620 x|xyes)
7621   # Assume -lc should be added
7622   archive_cmds_need_lc=yes
7623
7624   if test "$enable_shared" = yes && test "$GCC" = yes; then
7625     case $archive_cmds in
7626     *'~'*)
7627       # FIXME: we may have to deal with multi-command sequences.
7628       ;;
7629     '$CC '*)
7630       # Test whether the compiler implicitly links with -lc since on some
7631       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7632       # to ld, don't add -lc before -lgcc.
7633       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7634 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
7635       $rm conftest*
7636       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7637
7638       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7639   (eval $ac_compile) 2>&5
7640   ac_status=$?
7641   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7642   (exit $ac_status); } 2>conftest.err; then
7643         soname=conftest
7644         lib=conftest
7645         libobjs=conftest.$ac_objext
7646         deplibs=
7647         wl=$lt_prog_compiler_wl
7648         compiler_flags=-v
7649         linker_flags=-v
7650         verstring=
7651         output_objdir=.
7652         libname=conftest
7653         lt_save_allow_undefined_flag=$allow_undefined_flag
7654         allow_undefined_flag=
7655         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7656   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7657   ac_status=$?
7658   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7659   (exit $ac_status); }
7660         then
7661           archive_cmds_need_lc=no
7662         else
7663           archive_cmds_need_lc=yes
7664         fi
7665         allow_undefined_flag=$lt_save_allow_undefined_flag
7666       else
7667         cat conftest.err 1>&5
7668       fi
7669       $rm conftest*
7670       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7671 $as_echo "$archive_cmds_need_lc" >&6; }
7672       ;;
7673     esac
7674   fi
7675   ;;
7676 esac
7677
7678 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7679 $as_echo_n "checking dynamic linker characteristics... " >&6; }
7680 library_names_spec=
7681 libname_spec='lib$name'
7682 soname_spec=
7683 shrext=".so"
7684 postinstall_cmds=
7685 postuninstall_cmds=
7686 finish_cmds=
7687 finish_eval=
7688 shlibpath_var=
7689 shlibpath_overrides_runpath=unknown
7690 version_type=none
7691 dynamic_linker="$host_os ld.so"
7692 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7693 if test "$GCC" = yes; then
7694   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7695   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7696     # if the path contains ";" then we assume it to be the separator
7697     # otherwise default to the standard path separator (i.e. ":") - it is
7698     # assumed that no part of a normal pathname contains ";" but that should
7699     # okay in the real world where ";" in dirpaths is itself problematic.
7700     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7701   else
7702     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7703   fi
7704 else
7705   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7706 fi
7707 need_lib_prefix=unknown
7708 hardcode_into_libs=no
7709
7710 # when you set need_version to no, make sure it does not cause -set_version
7711 # flags to be left without arguments
7712 need_version=unknown
7713
7714 case $host_os in
7715 aix3*)
7716   version_type=linux
7717   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7718   shlibpath_var=LIBPATH
7719
7720   # AIX 3 has no versioning support, so we append a major version to the name.
7721   soname_spec='${libname}${release}${shared_ext}$major'
7722   ;;
7723
7724 aix4* | aix5*)
7725   version_type=linux
7726   need_lib_prefix=no
7727   need_version=no
7728   hardcode_into_libs=yes
7729   if test "$host_cpu" = ia64; then
7730     # AIX 5 supports IA64
7731     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7732     shlibpath_var=LD_LIBRARY_PATH
7733   else
7734     # With GCC up to 2.95.x, collect2 would create an import file
7735     # for dependence libraries.  The import file would start with
7736     # the line `#! .'.  This would cause the generated library to
7737     # depend on `.', always an invalid library.  This was fixed in
7738     # development snapshots of GCC prior to 3.0.
7739     case $host_os in
7740       aix4 | aix4.[01] | aix4.[01].*)
7741       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7742            echo ' yes '
7743            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7744         :
7745       else
7746         can_build_shared=no
7747       fi
7748       ;;
7749     esac
7750     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7751     # soname into executable. Probably we can add versioning support to
7752     # collect2, so additional links can be useful in future.
7753     if test "$aix_use_runtimelinking" = yes; then
7754       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7755       # instead of lib<name>.a to let people know that these are not
7756       # typical AIX shared libraries.
7757       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7758     else
7759       # We preserve .a as extension for shared libraries through AIX4.2
7760       # and later when we are not doing run time linking.
7761       library_names_spec='${libname}${release}.a $libname.a'
7762       soname_spec='${libname}${release}${shared_ext}$major'
7763     fi
7764     shlibpath_var=LIBPATH
7765   fi
7766   ;;
7767
7768 amigaos*)
7769   library_names_spec='$libname.ixlibrary $libname.a'
7770   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7771   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'
7772   ;;
7773
7774 beos*)
7775   library_names_spec='${libname}${shared_ext}'
7776   dynamic_linker="$host_os ld.so"
7777   shlibpath_var=LIBRARY_PATH
7778   ;;
7779
7780 bsdi4*)
7781   version_type=linux
7782   need_version=no
7783   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7784   soname_spec='${libname}${release}${shared_ext}$major'
7785   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7786   shlibpath_var=LD_LIBRARY_PATH
7787   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7788   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7789   # the default ld.so.conf also contains /usr/contrib/lib and
7790   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7791   # libtool to hard-code these into programs
7792   ;;
7793
7794 cygwin* | mingw* | pw32*)
7795   version_type=windows
7796   shrext=".dll"
7797   need_version=no
7798   need_lib_prefix=no
7799
7800   case $GCC,$host_os in
7801   yes,cygwin* | yes,mingw* | yes,pw32*)
7802     library_names_spec='$libname.dll.a'
7803     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7804     postinstall_cmds='base_file=`basename \${file}`~
7805       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7806       dldir=$destdir/`dirname \$dlpath`~
7807       test -d \$dldir || mkdir -p \$dldir~
7808       $install_prog $dir/$dlname \$dldir/$dlname'
7809     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7810       dlpath=$dir/\$dldll~
7811        $rm \$dlpath'
7812     shlibpath_overrides_runpath=yes
7813
7814     case $host_os in
7815     cygwin*)
7816       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7817       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7818       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7819       ;;
7820     mingw*)
7821       # MinGW DLLs use traditional 'lib' prefix
7822       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7823       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7824       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7825         # It is most probably a Windows format PATH printed by
7826         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7827         # path with ; separators, and with drive letters. We can handle the
7828         # drive letters (cygwin fileutils understands them), so leave them,
7829         # especially as we might pass files found there to a mingw objdump,
7830         # which wouldn't understand a cygwinified path. Ahh.
7831         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7832       else
7833         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7834       fi
7835       ;;
7836     pw32*)
7837       # pw32 DLLs use 'pw' prefix rather than 'lib'
7838       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7839       ;;
7840     esac
7841     ;;
7842
7843   *)
7844     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7845     ;;
7846   esac
7847   dynamic_linker='Win32 ld.exe'
7848   # FIXME: first we should search . and the directory the executable is in
7849   shlibpath_var=PATH
7850   ;;
7851
7852 darwin* | rhapsody*)
7853   dynamic_linker="$host_os dyld"
7854   version_type=darwin
7855   need_lib_prefix=no
7856   need_version=no
7857   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7858   soname_spec='${libname}${release}${major}$shared_ext'
7859   shlibpath_overrides_runpath=yes
7860   shlibpath_var=DYLD_LIBRARY_PATH
7861   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7862   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7863   if test "$GCC" = yes; then
7864     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"`
7865   else
7866     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7867   fi
7868   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7869   ;;
7870
7871 dgux*)
7872   version_type=linux
7873   need_lib_prefix=no
7874   need_version=no
7875   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7876   soname_spec='${libname}${release}${shared_ext}$major'
7877   shlibpath_var=LD_LIBRARY_PATH
7878   ;;
7879
7880 freebsd1*)
7881   dynamic_linker=no
7882   ;;
7883
7884 kfreebsd*-gnu)
7885   version_type=linux
7886   need_lib_prefix=no
7887   need_version=no
7888   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7889   soname_spec='${libname}${release}${shared_ext}$major'
7890   shlibpath_var=LD_LIBRARY_PATH
7891   shlibpath_overrides_runpath=no
7892   hardcode_into_libs=yes
7893   dynamic_linker='GNU ld.so'
7894   ;;
7895
7896 freebsd*)
7897   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7898   version_type=freebsd-$objformat
7899   case $version_type in
7900     freebsd-elf*)
7901       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7902       need_version=no
7903       need_lib_prefix=no
7904       ;;
7905     freebsd-*)
7906       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7907       need_version=yes
7908       ;;
7909   esac
7910   shlibpath_var=LD_LIBRARY_PATH
7911   case $host_os in
7912   freebsd2*)
7913     shlibpath_overrides_runpath=yes
7914     ;;
7915   freebsd3.01* | freebsdelf3.01*)
7916     shlibpath_overrides_runpath=yes
7917     hardcode_into_libs=yes
7918     ;;
7919   *) # from 3.2 on
7920     shlibpath_overrides_runpath=no
7921     hardcode_into_libs=yes
7922     ;;
7923   esac
7924   ;;
7925
7926 gnu*)
7927   version_type=linux
7928   need_lib_prefix=no
7929   need_version=no
7930   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7931   soname_spec='${libname}${release}${shared_ext}$major'
7932   shlibpath_var=LD_LIBRARY_PATH
7933   hardcode_into_libs=yes
7934   ;;
7935
7936 hpux9* | hpux10* | hpux11*)
7937   # Give a soname corresponding to the major version so that dld.sl refuses to
7938   # link against other versions.
7939   version_type=sunos
7940   need_lib_prefix=no
7941   need_version=no
7942   case "$host_cpu" in
7943   ia64*)
7944     shrext='.so'
7945     hardcode_into_libs=yes
7946     dynamic_linker="$host_os dld.so"
7947     shlibpath_var=LD_LIBRARY_PATH
7948     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7949     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7950     soname_spec='${libname}${release}${shared_ext}$major'
7951     if test "X$HPUX_IA64_MODE" = X32; then
7952       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7953     else
7954       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7955     fi
7956     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7957     ;;
7958    hppa*64*)
7959      shrext='.sl'
7960      hardcode_into_libs=yes
7961      dynamic_linker="$host_os dld.sl"
7962      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7963      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7967      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7968      ;;
7969    *)
7970     shrext='.sl'
7971     dynamic_linker="$host_os dld.sl"
7972     shlibpath_var=SHLIB_PATH
7973     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7974     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7975     soname_spec='${libname}${release}${shared_ext}$major'
7976     ;;
7977   esac
7978   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7979   postinstall_cmds='chmod 555 $lib'
7980   ;;
7981
7982 irix5* | irix6* | nonstopux*)
7983   case $host_os in
7984     nonstopux*) version_type=nonstopux ;;
7985     *)
7986         if test "$lt_cv_prog_gnu_ld" = yes; then
7987                 version_type=linux
7988         else
7989                 version_type=irix
7990         fi ;;
7991   esac
7992   need_lib_prefix=no
7993   need_version=no
7994   soname_spec='${libname}${release}${shared_ext}$major'
7995   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7996   case $host_os in
7997   irix5* | nonstopux*)
7998     libsuff= shlibsuff=
7999     ;;
8000   *)
8001     case $LD in # libtool.m4 will add one of these switches to LD
8002     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8003       libsuff= shlibsuff= libmagic=32-bit;;
8004     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8005       libsuff=32 shlibsuff=N32 libmagic=N32;;
8006     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8007       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8008     *) libsuff= shlibsuff= libmagic=never-match;;
8009     esac
8010     ;;
8011   esac
8012   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8013   shlibpath_overrides_runpath=no
8014   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8015   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8016   hardcode_into_libs=yes
8017   ;;
8018
8019 # No shared lib support for Linux oldld, aout, or coff.
8020 linux*oldld* | linux*aout* | linux*coff*)
8021   dynamic_linker=no
8022   ;;
8023
8024 # This must be Linux ELF.
8025 linux*)
8026   version_type=linux
8027   need_lib_prefix=no
8028   need_version=no
8029   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8030   soname_spec='${libname}${release}${shared_ext}$major'
8031   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8032   shlibpath_var=LD_LIBRARY_PATH
8033   shlibpath_overrides_runpath=no
8034   # This implies no fast_install, which is unacceptable.
8035   # Some rework will be needed to allow for fast_install
8036   # before this can be enabled.
8037   hardcode_into_libs=yes
8038
8039   # We used to test for /lib/ld.so.1 and disable shared libraries on
8040   # powerpc, because MkLinux only supported shared libraries with the
8041   # GNU dynamic linker.  Since this was broken with cross compilers,
8042   # most powerpc-linux boxes support dynamic linking these days and
8043   # people can always --disable-shared, the test was removed, and we
8044   # assume the GNU/Linux dynamic linker is in use.
8045   dynamic_linker='GNU/Linux ld.so'
8046   ;;
8047
8048 netbsd*)
8049   version_type=sunos
8050   need_lib_prefix=no
8051   need_version=no
8052   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8053     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8054     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8055     dynamic_linker='NetBSD (a.out) ld.so'
8056   else
8057     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
8058     soname_spec='${libname}${release}${shared_ext}$major'
8059     dynamic_linker='NetBSD ld.elf_so'
8060   fi
8061   shlibpath_var=LD_LIBRARY_PATH
8062   shlibpath_overrides_runpath=yes
8063   hardcode_into_libs=yes
8064   ;;
8065
8066 newsos6)
8067   version_type=linux
8068   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8069   shlibpath_var=LD_LIBRARY_PATH
8070   shlibpath_overrides_runpath=yes
8071   ;;
8072
8073 nto-qnx*)
8074   version_type=linux
8075   need_lib_prefix=no
8076   need_version=no
8077   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8078   soname_spec='${libname}${release}${shared_ext}$major'
8079   shlibpath_var=LD_LIBRARY_PATH
8080   shlibpath_overrides_runpath=yes
8081   ;;
8082
8083 openbsd*)
8084   version_type=sunos
8085   need_lib_prefix=no
8086   need_version=no
8087   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8088   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8089   shlibpath_var=LD_LIBRARY_PATH
8090   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8091     case $host_os in
8092       openbsd2.[89] | openbsd2.[89].*)
8093         shlibpath_overrides_runpath=no
8094         ;;
8095       *)
8096         shlibpath_overrides_runpath=yes
8097         ;;
8098       esac
8099   else
8100     shlibpath_overrides_runpath=yes
8101   fi
8102   ;;
8103
8104 os2*)
8105   libname_spec='$name'
8106   shrext=".dll"
8107   need_lib_prefix=no
8108   library_names_spec='$libname${shared_ext} $libname.a'
8109   dynamic_linker='OS/2 ld.exe'
8110   shlibpath_var=LIBPATH
8111   ;;
8112
8113 osf3* | osf4* | osf5*)
8114   version_type=osf
8115   need_lib_prefix=no
8116   need_version=no
8117   soname_spec='${libname}${release}${shared_ext}$major'
8118   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8119   shlibpath_var=LD_LIBRARY_PATH
8120   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8121   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8122   ;;
8123
8124 sco3.2v5*)
8125   version_type=osf
8126   soname_spec='${libname}${release}${shared_ext}$major'
8127   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8128   shlibpath_var=LD_LIBRARY_PATH
8129   ;;
8130
8131 solaris*)
8132   version_type=linux
8133   need_lib_prefix=no
8134   need_version=no
8135   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8136   soname_spec='${libname}${release}${shared_ext}$major'
8137   shlibpath_var=LD_LIBRARY_PATH
8138   shlibpath_overrides_runpath=yes
8139   hardcode_into_libs=yes
8140   # ldd complains unless libraries are executable
8141   postinstall_cmds='chmod +x $lib'
8142   ;;
8143
8144 sunos4*)
8145   version_type=sunos
8146   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8147   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8148   shlibpath_var=LD_LIBRARY_PATH
8149   shlibpath_overrides_runpath=yes
8150   if test "$with_gnu_ld" = yes; then
8151     need_lib_prefix=no
8152   fi
8153   need_version=yes
8154   ;;
8155
8156 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8157   version_type=linux
8158   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8159   soname_spec='${libname}${release}${shared_ext}$major'
8160   shlibpath_var=LD_LIBRARY_PATH
8161   case $host_vendor in
8162     sni)
8163       shlibpath_overrides_runpath=no
8164       need_lib_prefix=no
8165       export_dynamic_flag_spec='${wl}-Blargedynsym'
8166       runpath_var=LD_RUN_PATH
8167       ;;
8168     siemens)
8169       need_lib_prefix=no
8170       ;;
8171     motorola)
8172       need_lib_prefix=no
8173       need_version=no
8174       shlibpath_overrides_runpath=no
8175       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8176       ;;
8177   esac
8178   ;;
8179
8180 sysv4*MP*)
8181   if test -d /usr/nec ;then
8182     version_type=linux
8183     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8184     soname_spec='$libname${shared_ext}.$major'
8185     shlibpath_var=LD_LIBRARY_PATH
8186   fi
8187   ;;
8188
8189 uts4*)
8190   version_type=linux
8191   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8192   soname_spec='${libname}${release}${shared_ext}$major'
8193   shlibpath_var=LD_LIBRARY_PATH
8194   ;;
8195
8196 *)
8197   dynamic_linker=no
8198   ;;
8199 esac
8200 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8201 $as_echo "$dynamic_linker" >&6; }
8202 test "$dynamic_linker" = no && can_build_shared=no
8203
8204 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8205 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
8206 hardcode_action=
8207 if test -n "$hardcode_libdir_flag_spec" || \
8208    test -n "$runpath_var " || \
8209    test "X$hardcode_automatic"="Xyes" ; then
8210
8211   # We can hardcode non-existant directories.
8212   if test "$hardcode_direct" != no &&
8213      # If the only mechanism to avoid hardcoding is shlibpath_var, we
8214      # have to relink, otherwise we might link with an installed library
8215      # when we should be linking with a yet-to-be-installed one
8216      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8217      test "$hardcode_minus_L" != no; then
8218     # Linking always hardcodes the temporary library directory.
8219     hardcode_action=relink
8220   else
8221     # We can link without hardcoding, and we can hardcode nonexisting dirs.
8222     hardcode_action=immediate
8223   fi
8224 else
8225   # We cannot hardcode anything, or else we can only hardcode existing
8226   # directories.
8227   hardcode_action=unsupported
8228 fi
8229 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
8230 $as_echo "$hardcode_action" >&6; }
8231
8232 if test "$hardcode_action" = relink; then
8233   # Fast installation is not supported
8234   enable_fast_install=no
8235 elif test "$shlibpath_overrides_runpath" = yes ||
8236      test "$enable_shared" = no; then
8237   # Fast installation is not necessary
8238   enable_fast_install=needless
8239 fi
8240
8241 striplib=
8242 old_striplib=
8243 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8244 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
8245 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8246   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8247   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8248   { $as_echo "$as_me:$LINENO: result: yes" >&5
8249 $as_echo "yes" >&6; }
8250 else
8251 # FIXME - insert some real tests, host_os isn't really good enough
8252   case $host_os in
8253    darwin*)
8254        if test -n "$STRIP" ; then
8255          striplib="$STRIP -x"
8256          { $as_echo "$as_me:$LINENO: result: yes" >&5
8257 $as_echo "yes" >&6; }
8258        else
8259   { $as_echo "$as_me:$LINENO: result: no" >&5
8260 $as_echo "no" >&6; }
8261 fi
8262        ;;
8263    *)
8264   { $as_echo "$as_me:$LINENO: result: no" >&5
8265 $as_echo "no" >&6; }
8266     ;;
8267   esac
8268 fi
8269
8270 if test "x$enable_dlopen" != xyes; then
8271   enable_dlopen=unknown
8272   enable_dlopen_self=unknown
8273   enable_dlopen_self_static=unknown
8274 else
8275   lt_cv_dlopen=no
8276   lt_cv_dlopen_libs=
8277
8278   case $host_os in
8279   beos*)
8280     lt_cv_dlopen="load_add_on"
8281     lt_cv_dlopen_libs=
8282     lt_cv_dlopen_self=yes
8283     ;;
8284
8285   mingw* | pw32*)
8286     lt_cv_dlopen="LoadLibrary"
8287     lt_cv_dlopen_libs=
8288    ;;
8289
8290   cygwin*)
8291     lt_cv_dlopen="dlopen"
8292     lt_cv_dlopen_libs=
8293    ;;
8294
8295   darwin*)
8296   # if libdl is installed we need to link against it
8297     { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8298 $as_echo_n "checking for dlopen in -ldl... " >&6; }
8299 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8300   $as_echo_n "(cached) " >&6
8301 else
8302   ac_check_lib_save_LIBS=$LIBS
8303 LIBS="-ldl  $LIBS"
8304 cat >conftest.$ac_ext <<_ACEOF
8305 /* confdefs.h.  */
8306 _ACEOF
8307 cat confdefs.h >>conftest.$ac_ext
8308 cat >>conftest.$ac_ext <<_ACEOF
8309 /* end confdefs.h.  */
8310
8311 /* Override any GCC internal prototype to avoid an error.
8312    Use char because int might match the return type of a GCC
8313    builtin and then its argument prototype would still apply.  */
8314 #ifdef __cplusplus
8315 extern "C"
8316 #endif
8317 char dlopen ();
8318 int
8319 main ()
8320 {
8321 return dlopen ();
8322   ;
8323   return 0;
8324 }
8325 _ACEOF
8326 rm -f conftest.$ac_objext conftest$ac_exeext
8327 if { (ac_try="$ac_link"
8328 case "(($ac_try" in
8329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8330   *) ac_try_echo=$ac_try;;
8331 esac
8332 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8333 $as_echo "$ac_try_echo") >&5
8334   (eval "$ac_link") 2>conftest.er1
8335   ac_status=$?
8336   grep -v '^ *+' conftest.er1 >conftest.err
8337   rm -f conftest.er1
8338   cat conftest.err >&5
8339   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8340   (exit $ac_status); } && {
8341          test -z "$ac_c_werror_flag" ||
8342          test ! -s conftest.err
8343        } && test -s conftest$ac_exeext && {
8344          test "$cross_compiling" = yes ||
8345          $as_test_x conftest$ac_exeext
8346        }; then
8347   ac_cv_lib_dl_dlopen=yes
8348 else
8349   $as_echo "$as_me: failed program was:" >&5
8350 sed 's/^/| /' conftest.$ac_ext >&5
8351
8352         ac_cv_lib_dl_dlopen=no
8353 fi
8354
8355 rm -rf conftest.dSYM
8356 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8357       conftest$ac_exeext conftest.$ac_ext
8358 LIBS=$ac_check_lib_save_LIBS
8359 fi
8360 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8361 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
8362 if test $ac_cv_lib_dl_dlopen = yes; then
8363   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8364 else
8365
8366     lt_cv_dlopen="dyld"
8367     lt_cv_dlopen_libs=
8368     lt_cv_dlopen_self=yes
8369
8370 fi
8371
8372    ;;
8373
8374   *)
8375     { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
8376 $as_echo_n "checking for shl_load... " >&6; }
8377 if test "${ac_cv_func_shl_load+set}" = set; then
8378   $as_echo_n "(cached) " >&6
8379 else
8380   cat >conftest.$ac_ext <<_ACEOF
8381 /* confdefs.h.  */
8382 _ACEOF
8383 cat confdefs.h >>conftest.$ac_ext
8384 cat >>conftest.$ac_ext <<_ACEOF
8385 /* end confdefs.h.  */
8386 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8387    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8388 #define shl_load innocuous_shl_load
8389
8390 /* System header to define __stub macros and hopefully few prototypes,
8391     which can conflict with char shl_load (); below.
8392     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8393     <limits.h> exists even on freestanding compilers.  */
8394
8395 #ifdef __STDC__
8396 # include <limits.h>
8397 #else
8398 # include <assert.h>
8399 #endif
8400
8401 #undef shl_load
8402
8403 /* Override any GCC internal prototype to avoid an error.
8404    Use char because int might match the return type of a GCC
8405    builtin and then its argument prototype would still apply.  */
8406 #ifdef __cplusplus
8407 extern "C"
8408 #endif
8409 char shl_load ();
8410 /* The GNU C library defines this for functions which it implements
8411     to always fail with ENOSYS.  Some functions are actually named
8412     something starting with __ and the normal name is an alias.  */
8413 #if defined __stub_shl_load || defined __stub___shl_load
8414 choke me
8415 #endif
8416
8417 int
8418 main ()
8419 {
8420 return shl_load ();
8421   ;
8422   return 0;
8423 }
8424 _ACEOF
8425 rm -f conftest.$ac_objext conftest$ac_exeext
8426 if { (ac_try="$ac_link"
8427 case "(($ac_try" in
8428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8429   *) ac_try_echo=$ac_try;;
8430 esac
8431 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8432 $as_echo "$ac_try_echo") >&5
8433   (eval "$ac_link") 2>conftest.er1
8434   ac_status=$?
8435   grep -v '^ *+' conftest.er1 >conftest.err
8436   rm -f conftest.er1
8437   cat conftest.err >&5
8438   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8439   (exit $ac_status); } && {
8440          test -z "$ac_c_werror_flag" ||
8441          test ! -s conftest.err
8442        } && test -s conftest$ac_exeext && {
8443          test "$cross_compiling" = yes ||
8444          $as_test_x conftest$ac_exeext
8445        }; then
8446   ac_cv_func_shl_load=yes
8447 else
8448   $as_echo "$as_me: failed program was:" >&5
8449 sed 's/^/| /' conftest.$ac_ext >&5
8450
8451         ac_cv_func_shl_load=no
8452 fi
8453
8454 rm -rf conftest.dSYM
8455 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8456       conftest$ac_exeext conftest.$ac_ext
8457 fi
8458 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8459 $as_echo "$ac_cv_func_shl_load" >&6; }
8460 if test $ac_cv_func_shl_load = yes; then
8461   lt_cv_dlopen="shl_load"
8462 else
8463   { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8464 $as_echo_n "checking for shl_load in -ldld... " >&6; }
8465 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8466   $as_echo_n "(cached) " >&6
8467 else
8468   ac_check_lib_save_LIBS=$LIBS
8469 LIBS="-ldld  $LIBS"
8470 cat >conftest.$ac_ext <<_ACEOF
8471 /* confdefs.h.  */
8472 _ACEOF
8473 cat confdefs.h >>conftest.$ac_ext
8474 cat >>conftest.$ac_ext <<_ACEOF
8475 /* end confdefs.h.  */
8476
8477 /* Override any GCC internal prototype to avoid an error.
8478    Use char because int might match the return type of a GCC
8479    builtin and then its argument prototype would still apply.  */
8480 #ifdef __cplusplus
8481 extern "C"
8482 #endif
8483 char shl_load ();
8484 int
8485 main ()
8486 {
8487 return shl_load ();
8488   ;
8489   return 0;
8490 }
8491 _ACEOF
8492 rm -f conftest.$ac_objext conftest$ac_exeext
8493 if { (ac_try="$ac_link"
8494 case "(($ac_try" in
8495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8496   *) ac_try_echo=$ac_try;;
8497 esac
8498 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8499 $as_echo "$ac_try_echo") >&5
8500   (eval "$ac_link") 2>conftest.er1
8501   ac_status=$?
8502   grep -v '^ *+' conftest.er1 >conftest.err
8503   rm -f conftest.er1
8504   cat conftest.err >&5
8505   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8506   (exit $ac_status); } && {
8507          test -z "$ac_c_werror_flag" ||
8508          test ! -s conftest.err
8509        } && test -s conftest$ac_exeext && {
8510          test "$cross_compiling" = yes ||
8511          $as_test_x conftest$ac_exeext
8512        }; then
8513   ac_cv_lib_dld_shl_load=yes
8514 else
8515   $as_echo "$as_me: failed program was:" >&5
8516 sed 's/^/| /' conftest.$ac_ext >&5
8517
8518         ac_cv_lib_dld_shl_load=no
8519 fi
8520
8521 rm -rf conftest.dSYM
8522 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8523       conftest$ac_exeext conftest.$ac_ext
8524 LIBS=$ac_check_lib_save_LIBS
8525 fi
8526 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8527 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
8528 if test $ac_cv_lib_dld_shl_load = yes; then
8529   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8530 else
8531   { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
8532 $as_echo_n "checking for dlopen... " >&6; }
8533 if test "${ac_cv_func_dlopen+set}" = set; then
8534   $as_echo_n "(cached) " >&6
8535 else
8536   cat >conftest.$ac_ext <<_ACEOF
8537 /* confdefs.h.  */
8538 _ACEOF
8539 cat confdefs.h >>conftest.$ac_ext
8540 cat >>conftest.$ac_ext <<_ACEOF
8541 /* end confdefs.h.  */
8542 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8543    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8544 #define dlopen innocuous_dlopen
8545
8546 /* System header to define __stub macros and hopefully few prototypes,
8547     which can conflict with char dlopen (); below.
8548     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8549     <limits.h> exists even on freestanding compilers.  */
8550
8551 #ifdef __STDC__
8552 # include <limits.h>
8553 #else
8554 # include <assert.h>
8555 #endif
8556
8557 #undef dlopen
8558
8559 /* Override any GCC internal prototype to avoid an error.
8560    Use char because int might match the return type of a GCC
8561    builtin and then its argument prototype would still apply.  */
8562 #ifdef __cplusplus
8563 extern "C"
8564 #endif
8565 char dlopen ();
8566 /* The GNU C library defines this for functions which it implements
8567     to always fail with ENOSYS.  Some functions are actually named
8568     something starting with __ and the normal name is an alias.  */
8569 #if defined __stub_dlopen || defined __stub___dlopen
8570 choke me
8571 #endif
8572
8573 int
8574 main ()
8575 {
8576 return dlopen ();
8577   ;
8578   return 0;
8579 }
8580 _ACEOF
8581 rm -f conftest.$ac_objext conftest$ac_exeext
8582 if { (ac_try="$ac_link"
8583 case "(($ac_try" in
8584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8585   *) ac_try_echo=$ac_try;;
8586 esac
8587 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8588 $as_echo "$ac_try_echo") >&5
8589   (eval "$ac_link") 2>conftest.er1
8590   ac_status=$?
8591   grep -v '^ *+' conftest.er1 >conftest.err
8592   rm -f conftest.er1
8593   cat conftest.err >&5
8594   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8595   (exit $ac_status); } && {
8596          test -z "$ac_c_werror_flag" ||
8597          test ! -s conftest.err
8598        } && test -s conftest$ac_exeext && {
8599          test "$cross_compiling" = yes ||
8600          $as_test_x conftest$ac_exeext
8601        }; then
8602   ac_cv_func_dlopen=yes
8603 else
8604   $as_echo "$as_me: failed program was:" >&5
8605 sed 's/^/| /' conftest.$ac_ext >&5
8606
8607         ac_cv_func_dlopen=no
8608 fi
8609
8610 rm -rf conftest.dSYM
8611 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8612       conftest$ac_exeext conftest.$ac_ext
8613 fi
8614 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8615 $as_echo "$ac_cv_func_dlopen" >&6; }
8616 if test $ac_cv_func_dlopen = yes; then
8617   lt_cv_dlopen="dlopen"
8618 else
8619   { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8620 $as_echo_n "checking for dlopen in -ldl... " >&6; }
8621 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8622   $as_echo_n "(cached) " >&6
8623 else
8624   ac_check_lib_save_LIBS=$LIBS
8625 LIBS="-ldl  $LIBS"
8626 cat >conftest.$ac_ext <<_ACEOF
8627 /* confdefs.h.  */
8628 _ACEOF
8629 cat confdefs.h >>conftest.$ac_ext
8630 cat >>conftest.$ac_ext <<_ACEOF
8631 /* end confdefs.h.  */
8632
8633 /* Override any GCC internal prototype to avoid an error.
8634    Use char because int might match the return type of a GCC
8635    builtin and then its argument prototype would still apply.  */
8636 #ifdef __cplusplus
8637 extern "C"
8638 #endif
8639 char dlopen ();
8640 int
8641 main ()
8642 {
8643 return dlopen ();
8644   ;
8645   return 0;
8646 }
8647 _ACEOF
8648 rm -f conftest.$ac_objext conftest$ac_exeext
8649 if { (ac_try="$ac_link"
8650 case "(($ac_try" in
8651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8652   *) ac_try_echo=$ac_try;;
8653 esac
8654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8655 $as_echo "$ac_try_echo") >&5
8656   (eval "$ac_link") 2>conftest.er1
8657   ac_status=$?
8658   grep -v '^ *+' conftest.er1 >conftest.err
8659   rm -f conftest.er1
8660   cat conftest.err >&5
8661   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8662   (exit $ac_status); } && {
8663          test -z "$ac_c_werror_flag" ||
8664          test ! -s conftest.err
8665        } && test -s conftest$ac_exeext && {
8666          test "$cross_compiling" = yes ||
8667          $as_test_x conftest$ac_exeext
8668        }; then
8669   ac_cv_lib_dl_dlopen=yes
8670 else
8671   $as_echo "$as_me: failed program was:" >&5
8672 sed 's/^/| /' conftest.$ac_ext >&5
8673
8674         ac_cv_lib_dl_dlopen=no
8675 fi
8676
8677 rm -rf conftest.dSYM
8678 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8679       conftest$ac_exeext conftest.$ac_ext
8680 LIBS=$ac_check_lib_save_LIBS
8681 fi
8682 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8683 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
8684 if test $ac_cv_lib_dl_dlopen = yes; then
8685   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8686 else
8687   { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8688 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
8689 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8690   $as_echo_n "(cached) " >&6
8691 else
8692   ac_check_lib_save_LIBS=$LIBS
8693 LIBS="-lsvld  $LIBS"
8694 cat >conftest.$ac_ext <<_ACEOF
8695 /* confdefs.h.  */
8696 _ACEOF
8697 cat confdefs.h >>conftest.$ac_ext
8698 cat >>conftest.$ac_ext <<_ACEOF
8699 /* end confdefs.h.  */
8700
8701 /* Override any GCC internal prototype to avoid an error.
8702    Use char because int might match the return type of a GCC
8703    builtin and then its argument prototype would still apply.  */
8704 #ifdef __cplusplus
8705 extern "C"
8706 #endif
8707 char dlopen ();
8708 int
8709 main ()
8710 {
8711 return dlopen ();
8712   ;
8713   return 0;
8714 }
8715 _ACEOF
8716 rm -f conftest.$ac_objext conftest$ac_exeext
8717 if { (ac_try="$ac_link"
8718 case "(($ac_try" in
8719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8720   *) ac_try_echo=$ac_try;;
8721 esac
8722 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8723 $as_echo "$ac_try_echo") >&5
8724   (eval "$ac_link") 2>conftest.er1
8725   ac_status=$?
8726   grep -v '^ *+' conftest.er1 >conftest.err
8727   rm -f conftest.er1
8728   cat conftest.err >&5
8729   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8730   (exit $ac_status); } && {
8731          test -z "$ac_c_werror_flag" ||
8732          test ! -s conftest.err
8733        } && test -s conftest$ac_exeext && {
8734          test "$cross_compiling" = yes ||
8735          $as_test_x conftest$ac_exeext
8736        }; then
8737   ac_cv_lib_svld_dlopen=yes
8738 else
8739   $as_echo "$as_me: failed program was:" >&5
8740 sed 's/^/| /' conftest.$ac_ext >&5
8741
8742         ac_cv_lib_svld_dlopen=no
8743 fi
8744
8745 rm -rf conftest.dSYM
8746 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8747       conftest$ac_exeext conftest.$ac_ext
8748 LIBS=$ac_check_lib_save_LIBS
8749 fi
8750 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8751 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
8752 if test $ac_cv_lib_svld_dlopen = yes; then
8753   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8754 else
8755   { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8756 $as_echo_n "checking for dld_link in -ldld... " >&6; }
8757 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8758   $as_echo_n "(cached) " >&6
8759 else
8760   ac_check_lib_save_LIBS=$LIBS
8761 LIBS="-ldld  $LIBS"
8762 cat >conftest.$ac_ext <<_ACEOF
8763 /* confdefs.h.  */
8764 _ACEOF
8765 cat confdefs.h >>conftest.$ac_ext
8766 cat >>conftest.$ac_ext <<_ACEOF
8767 /* end confdefs.h.  */
8768
8769 /* Override any GCC internal prototype to avoid an error.
8770    Use char because int might match the return type of a GCC
8771    builtin and then its argument prototype would still apply.  */
8772 #ifdef __cplusplus
8773 extern "C"
8774 #endif
8775 char dld_link ();
8776 int
8777 main ()
8778 {
8779 return dld_link ();
8780   ;
8781   return 0;
8782 }
8783 _ACEOF
8784 rm -f conftest.$ac_objext conftest$ac_exeext
8785 if { (ac_try="$ac_link"
8786 case "(($ac_try" in
8787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8788   *) ac_try_echo=$ac_try;;
8789 esac
8790 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8791 $as_echo "$ac_try_echo") >&5
8792   (eval "$ac_link") 2>conftest.er1
8793   ac_status=$?
8794   grep -v '^ *+' conftest.er1 >conftest.err
8795   rm -f conftest.er1
8796   cat conftest.err >&5
8797   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8798   (exit $ac_status); } && {
8799          test -z "$ac_c_werror_flag" ||
8800          test ! -s conftest.err
8801        } && test -s conftest$ac_exeext && {
8802          test "$cross_compiling" = yes ||
8803          $as_test_x conftest$ac_exeext
8804        }; then
8805   ac_cv_lib_dld_dld_link=yes
8806 else
8807   $as_echo "$as_me: failed program was:" >&5
8808 sed 's/^/| /' conftest.$ac_ext >&5
8809
8810         ac_cv_lib_dld_dld_link=no
8811 fi
8812
8813 rm -rf conftest.dSYM
8814 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8815       conftest$ac_exeext conftest.$ac_ext
8816 LIBS=$ac_check_lib_save_LIBS
8817 fi
8818 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8819 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
8820 if test $ac_cv_lib_dld_dld_link = yes; then
8821   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8822 fi
8823
8824
8825 fi
8826
8827
8828 fi
8829
8830
8831 fi
8832
8833
8834 fi
8835
8836
8837 fi
8838
8839     ;;
8840   esac
8841
8842   if test "x$lt_cv_dlopen" != xno; then
8843     enable_dlopen=yes
8844   else
8845     enable_dlopen=no
8846   fi
8847
8848   case $lt_cv_dlopen in
8849   dlopen)
8850     save_CPPFLAGS="$CPPFLAGS"
8851     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8852
8853     save_LDFLAGS="$LDFLAGS"
8854     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8855
8856     save_LIBS="$LIBS"
8857     LIBS="$lt_cv_dlopen_libs $LIBS"
8858
8859     { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8860 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
8861 if test "${lt_cv_dlopen_self+set}" = set; then
8862   $as_echo_n "(cached) " >&6
8863 else
8864           if test "$cross_compiling" = yes; then :
8865   lt_cv_dlopen_self=cross
8866 else
8867   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8868   lt_status=$lt_dlunknown
8869   cat > conftest.$ac_ext <<EOF
8870 #line 8870 "configure"
8871 #include "confdefs.h"
8872
8873 #if HAVE_DLFCN_H
8874 #include <dlfcn.h>
8875 #endif
8876
8877 #include <stdio.h>
8878
8879 #ifdef RTLD_GLOBAL
8880 #  define LT_DLGLOBAL           RTLD_GLOBAL
8881 #else
8882 #  ifdef DL_GLOBAL
8883 #    define LT_DLGLOBAL         DL_GLOBAL
8884 #  else
8885 #    define LT_DLGLOBAL         0
8886 #  endif
8887 #endif
8888
8889 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8890    find out it does not work in some platform. */
8891 #ifndef LT_DLLAZY_OR_NOW
8892 #  ifdef RTLD_LAZY
8893 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8894 #  else
8895 #    ifdef DL_LAZY
8896 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8897 #    else
8898 #      ifdef RTLD_NOW
8899 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8900 #      else
8901 #        ifdef DL_NOW
8902 #          define LT_DLLAZY_OR_NOW      DL_NOW
8903 #        else
8904 #          define LT_DLLAZY_OR_NOW      0
8905 #        endif
8906 #      endif
8907 #    endif
8908 #  endif
8909 #endif
8910
8911 #ifdef __cplusplus
8912 extern "C" void exit (int);
8913 #endif
8914
8915 void fnord() { int i=42;}
8916 int main ()
8917 {
8918   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8919   int status = $lt_dlunknown;
8920
8921   if (self)
8922     {
8923       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8924       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8925       /* dlclose (self); */
8926     }
8927
8928     exit (status);
8929 }
8930 EOF
8931   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8932   (eval $ac_link) 2>&5
8933   ac_status=$?
8934   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8936     (./conftest; exit; ) 2>/dev/null
8937     lt_status=$?
8938     case x$lt_status in
8939       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8940       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8941       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8942     esac
8943   else :
8944     # compilation failed
8945     lt_cv_dlopen_self=no
8946   fi
8947 fi
8948 rm -fr conftest*
8949
8950
8951 fi
8952 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8953 $as_echo "$lt_cv_dlopen_self" >&6; }
8954
8955     if test "x$lt_cv_dlopen_self" = xyes; then
8956       LDFLAGS="$LDFLAGS $link_static_flag"
8957       { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8958 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
8959 if test "${lt_cv_dlopen_self_static+set}" = set; then
8960   $as_echo_n "(cached) " >&6
8961 else
8962           if test "$cross_compiling" = yes; then :
8963   lt_cv_dlopen_self_static=cross
8964 else
8965   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8966   lt_status=$lt_dlunknown
8967   cat > conftest.$ac_ext <<EOF
8968 #line 8968 "configure"
8969 #include "confdefs.h"
8970
8971 #if HAVE_DLFCN_H
8972 #include <dlfcn.h>
8973 #endif
8974
8975 #include <stdio.h>
8976
8977 #ifdef RTLD_GLOBAL
8978 #  define LT_DLGLOBAL           RTLD_GLOBAL
8979 #else
8980 #  ifdef DL_GLOBAL
8981 #    define LT_DLGLOBAL         DL_GLOBAL
8982 #  else
8983 #    define LT_DLGLOBAL         0
8984 #  endif
8985 #endif
8986
8987 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8988    find out it does not work in some platform. */
8989 #ifndef LT_DLLAZY_OR_NOW
8990 #  ifdef RTLD_LAZY
8991 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8992 #  else
8993 #    ifdef DL_LAZY
8994 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8995 #    else
8996 #      ifdef RTLD_NOW
8997 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8998 #      else
8999 #        ifdef DL_NOW
9000 #          define LT_DLLAZY_OR_NOW      DL_NOW
9001 #        else
9002 #          define LT_DLLAZY_OR_NOW      0
9003 #        endif
9004 #      endif
9005 #    endif
9006 #  endif
9007 #endif
9008
9009 #ifdef __cplusplus
9010 extern "C" void exit (int);
9011 #endif
9012
9013 void fnord() { int i=42;}
9014 int main ()
9015 {
9016   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9017   int status = $lt_dlunknown;
9018
9019   if (self)
9020     {
9021       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9022       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9023       /* dlclose (self); */
9024     }
9025
9026     exit (status);
9027 }
9028 EOF
9029   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9030   (eval $ac_link) 2>&5
9031   ac_status=$?
9032   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9033   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9034     (./conftest; exit; ) 2>/dev/null
9035     lt_status=$?
9036     case x$lt_status in
9037       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9038       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9039       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9040     esac
9041   else :
9042     # compilation failed
9043     lt_cv_dlopen_self_static=no
9044   fi
9045 fi
9046 rm -fr conftest*
9047
9048
9049 fi
9050 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9051 $as_echo "$lt_cv_dlopen_self_static" >&6; }
9052     fi
9053
9054     CPPFLAGS="$save_CPPFLAGS"
9055     LDFLAGS="$save_LDFLAGS"
9056     LIBS="$save_LIBS"
9057     ;;
9058   esac
9059
9060   case $lt_cv_dlopen_self in
9061   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9062   *) enable_dlopen_self=unknown ;;
9063   esac
9064
9065   case $lt_cv_dlopen_self_static in
9066   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9067   *) enable_dlopen_self_static=unknown ;;
9068   esac
9069 fi
9070
9071
9072 # Report which librarie types wil actually be built
9073 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9074 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
9075 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
9076 $as_echo "$can_build_shared" >&6; }
9077
9078 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9079 $as_echo_n "checking whether to build shared libraries... " >&6; }
9080 test "$can_build_shared" = "no" && enable_shared=no
9081
9082 # On AIX, shared libraries and static libraries use the same namespace, and
9083 # are all built from PIC.
9084 case "$host_os" in
9085 aix3*)
9086   test "$enable_shared" = yes && enable_static=no
9087   if test -n "$RANLIB"; then
9088     archive_cmds="$archive_cmds~\$RANLIB \$lib"
9089     postinstall_cmds='$RANLIB $lib'
9090   fi
9091   ;;
9092
9093 aix4*)
9094   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9095     test "$enable_shared" = yes && enable_static=no
9096   fi
9097   ;;
9098   darwin* | rhapsody*)
9099   if test "$GCC" = yes; then
9100     archive_cmds_need_lc=no
9101     case "$host_os" in
9102     rhapsody* | darwin1.[012])
9103       allow_undefined_flag='-undefined suppress'
9104       ;;
9105     *) # Darwin 1.3 on
9106       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9107         allow_undefined_flag='-flat_namespace -undefined suppress'
9108       else
9109         case ${MACOSX_DEPLOYMENT_TARGET} in
9110           10.[012])
9111             allow_undefined_flag='-flat_namespace -undefined suppress'
9112             ;;
9113           10.*)
9114             allow_undefined_flag='-undefined dynamic_lookup'
9115             ;;
9116         esac
9117       fi
9118       ;;
9119     esac
9120     output_verbose_link_cmd='echo'
9121     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9122     module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9123     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9124     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}'
9125     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}'
9126     hardcode_direct=no
9127     hardcode_automatic=yes
9128     hardcode_shlibpath_var=unsupported
9129     whole_archive_flag_spec='-all_load $convenience'
9130     link_all_deplibs=yes
9131   else
9132     ld_shlibs=no
9133   fi
9134     ;;
9135 esac
9136 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
9137 $as_echo "$enable_shared" >&6; }
9138
9139 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9140 $as_echo_n "checking whether to build static libraries... " >&6; }
9141 # Make sure either enable_shared or enable_static is yes.
9142 test "$enable_shared" = yes || enable_static=yes
9143 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
9144 $as_echo "$enable_static" >&6; }
9145
9146 # The else clause should only fire when bootstrapping the
9147 # libtool distribution, otherwise you forgot to ship ltmain.sh
9148 # with your package, and you will get complaints that there are
9149 # no rules to generate ltmain.sh.
9150 if test -f "$ltmain"; then
9151   # See if we are running on zsh, and set the options which allow our commands through
9152   # without removal of \ escapes.
9153   if test -n "${ZSH_VERSION+set}" ; then
9154     setopt NO_GLOB_SUBST
9155   fi
9156   # Now quote all the things that may contain metacharacters while being
9157   # careful not to overquote the AC_SUBSTed values.  We take copies of the
9158   # variables and quote the copies for generation of the libtool script.
9159   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9160     SED SHELL STRIP \
9161     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9162     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9163     deplibs_check_method reload_flag reload_cmds need_locks \
9164     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9165     lt_cv_sys_global_symbol_to_c_name_address \
9166     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9167     old_postinstall_cmds old_postuninstall_cmds \
9168     compiler \
9169     CC \
9170     LD \
9171     lt_prog_compiler_wl \
9172     lt_prog_compiler_pic \
9173     lt_prog_compiler_static \
9174     lt_prog_compiler_no_builtin_flag \
9175     export_dynamic_flag_spec \
9176     thread_safe_flag_spec \
9177     whole_archive_flag_spec \
9178     enable_shared_with_static_runtimes \
9179     old_archive_cmds \
9180     old_archive_from_new_cmds \
9181     predep_objects \
9182     postdep_objects \
9183     predeps \
9184     postdeps \
9185     compiler_lib_search_path \
9186     archive_cmds \
9187     archive_expsym_cmds \
9188     postinstall_cmds \
9189     postuninstall_cmds \
9190     old_archive_from_expsyms_cmds \
9191     allow_undefined_flag \
9192     no_undefined_flag \
9193     export_symbols_cmds \
9194     hardcode_libdir_flag_spec \
9195     hardcode_libdir_flag_spec_ld \
9196     hardcode_libdir_separator \
9197     hardcode_automatic \
9198     module_cmds \
9199     module_expsym_cmds \
9200     lt_cv_prog_compiler_c_o \
9201     exclude_expsyms \
9202     include_expsyms; do
9203
9204     case $var in
9205     old_archive_cmds | \
9206     old_archive_from_new_cmds | \
9207     archive_cmds | \
9208     archive_expsym_cmds | \
9209     module_cmds | \
9210     module_expsym_cmds | \
9211     old_archive_from_expsyms_cmds | \
9212     export_symbols_cmds | \
9213     extract_expsyms_cmds | reload_cmds | finish_cmds | \
9214     postinstall_cmds | postuninstall_cmds | \
9215     old_postinstall_cmds | old_postuninstall_cmds | \
9216     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9217       # Double-quote double-evaled strings.
9218       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9219       ;;
9220     *)
9221       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9222       ;;
9223     esac
9224   done
9225
9226   case $lt_echo in
9227   *'\$0 --fallback-echo"')
9228     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9229     ;;
9230   esac
9231
9232 cfgfile="${ofile}T"
9233   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9234   $rm -f "$cfgfile"
9235   { $as_echo "$as_me:$LINENO: creating $ofile" >&5
9236 $as_echo "$as_me: creating $ofile" >&6;}
9237
9238   cat <<__EOF__ >> "$cfgfile"
9239 #! $SHELL
9240
9241 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9242 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9243 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9244 #
9245 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9246 # Free Software Foundation, Inc.
9247 #
9248 # This file is part of GNU Libtool:
9249 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9250 #
9251 # This program is free software; you can redistribute it and/or modify
9252 # it under the terms of the GNU General Public License as published by
9253 # the Free Software Foundation; either version 2 of the License, or
9254 # (at your option) any later version.
9255 #
9256 # This program is distributed in the hope that it will be useful, but
9257 # WITHOUT ANY WARRANTY; without even the implied warranty of
9258 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9259 # General Public License for more details.
9260 #
9261 # You should have received a copy of the GNU General Public License
9262 # along with this program; if not, write to the Free Software
9263 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9264 #
9265 # As a special exception to the GNU General Public License, if you
9266 # distribute this file as part of a program that contains a
9267 # configuration script generated by Autoconf, you may include it under
9268 # the same distribution terms that you use for the rest of that program.
9269
9270 # A sed program that does not truncate output.
9271 SED=$lt_SED
9272
9273 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9274 Xsed="$SED -e s/^X//"
9275
9276 # The HP-UX ksh and POSIX shell print the target directory to stdout
9277 # if CDPATH is set.
9278 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9279
9280 # The names of the tagged configurations supported by this script.
9281 available_tags=
9282
9283 # ### BEGIN LIBTOOL CONFIG
9284
9285 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9286
9287 # Shell to use when invoking shell scripts.
9288 SHELL=$lt_SHELL
9289
9290 # Whether or not to build shared libraries.
9291 build_libtool_libs=$enable_shared
9292
9293 # Whether or not to build static libraries.
9294 build_old_libs=$enable_static
9295
9296 # Whether or not to add -lc for building shared libraries.
9297 build_libtool_need_lc=$archive_cmds_need_lc
9298
9299 # Whether or not to disallow shared libs when runtime libs are static
9300 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9301
9302 # Whether or not to optimize for fast installation.
9303 fast_install=$enable_fast_install
9304
9305 # The host system.
9306 host_alias=$host_alias
9307 host=$host
9308
9309 # An echo program that does not interpret backslashes.
9310 echo=$lt_echo
9311
9312 # The archiver.
9313 AR=$lt_AR
9314 AR_FLAGS=$lt_AR_FLAGS
9315
9316 # A C compiler.
9317 LTCC=$lt_LTCC
9318
9319 # A language-specific compiler.
9320 CC=$lt_compiler
9321
9322 # Is the compiler the GNU C compiler?
9323 with_gcc=$GCC
9324
9325 # An ERE matcher.
9326 EGREP=$lt_EGREP
9327
9328 # The linker used to build libraries.
9329 LD=$lt_LD
9330
9331 # Whether we need hard or soft links.
9332 LN_S=$lt_LN_S
9333
9334 # A BSD-compatible nm program.
9335 NM=$lt_NM
9336
9337 # A symbol stripping program
9338 STRIP=$lt_STRIP
9339
9340 # Used to examine libraries when file_magic_cmd begins "file"
9341 MAGIC_CMD=$MAGIC_CMD
9342
9343 # Used on cygwin: DLL creation program.
9344 DLLTOOL="$DLLTOOL"
9345
9346 # Used on cygwin: object dumper.
9347 OBJDUMP="$OBJDUMP"
9348
9349 # Used on cygwin: assembler.
9350 AS="$AS"
9351
9352 # The name of the directory that contains temporary libtool files.
9353 objdir=$objdir
9354
9355 # How to create reloadable object files.
9356 reload_flag=$lt_reload_flag
9357 reload_cmds=$lt_reload_cmds
9358
9359 # How to pass a linker flag through the compiler.
9360 wl=$lt_lt_prog_compiler_wl
9361
9362 # Object file suffix (normally "o").
9363 objext="$ac_objext"
9364
9365 # Old archive suffix (normally "a").
9366 libext="$libext"
9367
9368 # Shared library suffix (normally ".so").
9369 shrext='$shrext'
9370
9371 # Executable file suffix (normally "").
9372 exeext="$exeext"
9373
9374 # Additional compiler flags for building library objects.
9375 pic_flag=$lt_lt_prog_compiler_pic
9376 pic_mode=$pic_mode
9377
9378 # What is the maximum length of a command?
9379 max_cmd_len=$lt_cv_sys_max_cmd_len
9380
9381 # Does compiler simultaneously support -c and -o options?
9382 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9383
9384 # Must we lock files when doing compilation ?
9385 need_locks=$lt_need_locks
9386
9387 # Do we need the lib prefix for modules?
9388 need_lib_prefix=$need_lib_prefix
9389
9390 # Do we need a version for libraries?
9391 need_version=$need_version
9392
9393 # Whether dlopen is supported.
9394 dlopen_support=$enable_dlopen
9395
9396 # Whether dlopen of programs is supported.
9397 dlopen_self=$enable_dlopen_self
9398
9399 # Whether dlopen of statically linked programs is supported.
9400 dlopen_self_static=$enable_dlopen_self_static
9401
9402 # Compiler flag to prevent dynamic linking.
9403 link_static_flag=$lt_lt_prog_compiler_static
9404
9405 # Compiler flag to turn off builtin functions.
9406 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9407
9408 # Compiler flag to allow reflexive dlopens.
9409 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9410
9411 # Compiler flag to generate shared objects directly from archives.
9412 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9413
9414 # Compiler flag to generate thread-safe objects.
9415 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9416
9417 # Library versioning type.
9418 version_type=$version_type
9419
9420 # Format of library name prefix.
9421 libname_spec=$lt_libname_spec
9422
9423 # List of archive names.  First name is the real one, the rest are links.
9424 # The last name is the one that the linker finds with -lNAME.
9425 library_names_spec=$lt_library_names_spec
9426
9427 # The coded name of the library, if different from the real name.
9428 soname_spec=$lt_soname_spec
9429
9430 # Commands used to build and install an old-style archive.
9431 RANLIB=$lt_RANLIB
9432 old_archive_cmds=$lt_old_archive_cmds
9433 old_postinstall_cmds=$lt_old_postinstall_cmds
9434 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9435
9436 # Create an old-style archive from a shared archive.
9437 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9438
9439 # Create a temporary old-style archive to link instead of a shared archive.
9440 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9441
9442 # Commands used to build and install a shared archive.
9443 archive_cmds=$lt_archive_cmds
9444 archive_expsym_cmds=$lt_archive_expsym_cmds
9445 postinstall_cmds=$lt_postinstall_cmds
9446 postuninstall_cmds=$lt_postuninstall_cmds
9447
9448 # Commands used to build a loadable module (assumed same as above if empty)
9449 module_cmds=$lt_module_cmds
9450 module_expsym_cmds=$lt_module_expsym_cmds
9451
9452 # Commands to strip libraries.
9453 old_striplib=$lt_old_striplib
9454 striplib=$lt_striplib
9455
9456 # Dependencies to place before the objects being linked to create a
9457 # shared library.
9458 predep_objects=$lt_predep_objects
9459
9460 # Dependencies to place after the objects being linked to create a
9461 # shared library.
9462 postdep_objects=$lt_postdep_objects
9463
9464 # Dependencies to place before the objects being linked to create a
9465 # shared library.
9466 predeps=$lt_predeps
9467
9468 # Dependencies to place after the objects being linked to create a
9469 # shared library.
9470 postdeps=$lt_postdeps
9471
9472 # The library search path used internally by the compiler when linking
9473 # a shared library.
9474 compiler_lib_search_path=$lt_compiler_lib_search_path
9475
9476 # Method to check whether dependent libraries are shared objects.
9477 deplibs_check_method=$lt_deplibs_check_method
9478
9479 # Command to use when deplibs_check_method == file_magic.
9480 file_magic_cmd=$lt_file_magic_cmd
9481
9482 # Flag that allows shared libraries with undefined symbols to be built.
9483 allow_undefined_flag=$lt_allow_undefined_flag
9484
9485 # Flag that forces no undefined symbols.
9486 no_undefined_flag=$lt_no_undefined_flag
9487
9488 # Commands used to finish a libtool library installation in a directory.
9489 finish_cmds=$lt_finish_cmds
9490
9491 # Same as above, but a single script fragment to be evaled but not shown.
9492 finish_eval=$lt_finish_eval
9493
9494 # Take the output of nm and produce a listing of raw symbols and C names.
9495 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9496
9497 # Transform the output of nm in a proper C declaration
9498 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9499
9500 # Transform the output of nm in a C name address pair
9501 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9502
9503 # This is the shared library runtime path variable.
9504 runpath_var=$runpath_var
9505
9506 # This is the shared library path variable.
9507 shlibpath_var=$shlibpath_var
9508
9509 # Is shlibpath searched before the hard-coded library search path?
9510 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9511
9512 # How to hardcode a shared library path into an executable.
9513 hardcode_action=$hardcode_action
9514
9515 # Whether we should hardcode library paths into libraries.
9516 hardcode_into_libs=$hardcode_into_libs
9517
9518 # Flag to hardcode \$libdir into a binary during linking.
9519 # This must work even if \$libdir does not exist.
9520 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9521
9522 # If ld is used when linking, flag to hardcode \$libdir into
9523 # a binary during linking. This must work even if \$libdir does
9524 # not exist.
9525 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9526
9527 # Whether we need a single -rpath flag with a separated argument.
9528 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9529
9530 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9531 # resulting binary.
9532 hardcode_direct=$hardcode_direct
9533
9534 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9535 # resulting binary.
9536 hardcode_minus_L=$hardcode_minus_L
9537
9538 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9539 # the resulting binary.
9540 hardcode_shlibpath_var=$hardcode_shlibpath_var
9541
9542 # Set to yes if building a shared library automatically hardcodes DIR into the library
9543 # and all subsequent libraries and executables linked against it.
9544 hardcode_automatic=$hardcode_automatic
9545
9546 # Variables whose values should be saved in libtool wrapper scripts and
9547 # restored at relink time.
9548 variables_saved_for_relink="$variables_saved_for_relink"
9549
9550 # Whether libtool must link a program against all its dependency libraries.
9551 link_all_deplibs=$link_all_deplibs
9552
9553 # Compile-time system search path for libraries
9554 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9555
9556 # Run-time system search path for libraries
9557 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9558
9559 # Fix the shell variable \$srcfile for the compiler.
9560 fix_srcfile_path="$fix_srcfile_path"
9561
9562 # Set to yes if exported symbols are required.
9563 always_export_symbols=$always_export_symbols
9564
9565 # The commands to list exported symbols.
9566 export_symbols_cmds=$lt_export_symbols_cmds
9567
9568 # The commands to extract the exported symbol list from a shared archive.
9569 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9570
9571 # Symbols that should not be listed in the preloaded symbols.
9572 exclude_expsyms=$lt_exclude_expsyms
9573
9574 # Symbols that must always be exported.
9575 include_expsyms=$lt_include_expsyms
9576
9577 # ### END LIBTOOL CONFIG
9578
9579 __EOF__
9580
9581
9582   case $host_os in
9583   aix3*)
9584     cat <<\EOF >> "$cfgfile"
9585
9586 # AIX sometimes has problems with the GCC collect2 program.  For some
9587 # reason, if we set the COLLECT_NAMES environment variable, the problems
9588 # vanish in a puff of smoke.
9589 if test "X${COLLECT_NAMES+set}" != Xset; then
9590   COLLECT_NAMES=
9591   export COLLECT_NAMES
9592 fi
9593 EOF
9594     ;;
9595   esac
9596
9597   # We use sed instead of cat because bash on DJGPP gets confused if
9598   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9599   # text mode, it properly converts lines to CR/LF.  This bash problem
9600   # is reportedly fixed, but why not run on old versions too?
9601   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9602
9603   mv -f "$cfgfile" "$ofile" || \
9604     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9605   chmod +x "$ofile"
9606
9607 else
9608   # If there is no Makefile yet, we rely on a make rule to execute
9609   # `config.status --recheck' to rerun these tests and create the
9610   # libtool script then.
9611   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9612   if test -f "$ltmain_in"; then
9613     test -f Makefile && make "$ltmain"
9614   fi
9615 fi
9616
9617
9618 ac_ext=c
9619 ac_cpp='$CPP $CPPFLAGS'
9620 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9621 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9622 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9623
9624 CC="$lt_save_CC"
9625
9626
9627 # Check whether --with-tags was given.
9628 if test "${with_tags+set}" = set; then
9629   withval=$with_tags; tagnames="$withval"
9630 fi
9631
9632
9633 if test -f "$ltmain" && test -n "$tagnames"; then
9634   if test ! -f "${ofile}"; then
9635     { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9636 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9637   fi
9638
9639   if test -z "$LTCC"; then
9640     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9641     if test -z "$LTCC"; then
9642       { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9643 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9644     else
9645       { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9646 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9647     fi
9648   fi
9649
9650   # Extract list of available tagged configurations in $ofile.
9651   # Note that this assumes the entire list is on one line.
9652   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9653
9654   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9655   for tagname in $tagnames; do
9656     IFS="$lt_save_ifs"
9657     # Check whether tagname contains only valid characters
9658     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9659     "") ;;
9660     *)  { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9661 $as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
9662    { (exit 1); exit 1; }; }
9663         ;;
9664     esac
9665
9666     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9667     then
9668       { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9669 $as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9670    { (exit 1); exit 1; }; }
9671     fi
9672
9673     # Update the list of available tags.
9674     if test -n "$tagname"; then
9675       echo appending configuration tag \"$tagname\" to $ofile
9676
9677       case $tagname in
9678       CXX)
9679         if test -n "$CXX" && test "X$CXX" != "Xno"; then
9680           ac_ext=cpp
9681 ac_cpp='$CXXCPP $CPPFLAGS'
9682 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9683 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9684 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9685
9686
9687
9688
9689 archive_cmds_need_lc_CXX=no
9690 allow_undefined_flag_CXX=
9691 always_export_symbols_CXX=no
9692 archive_expsym_cmds_CXX=
9693 export_dynamic_flag_spec_CXX=
9694 hardcode_direct_CXX=no
9695 hardcode_libdir_flag_spec_CXX=
9696 hardcode_libdir_flag_spec_ld_CXX=
9697 hardcode_libdir_separator_CXX=
9698 hardcode_minus_L_CXX=no
9699 hardcode_automatic_CXX=no
9700 module_cmds_CXX=
9701 module_expsym_cmds_CXX=
9702 link_all_deplibs_CXX=unknown
9703 old_archive_cmds_CXX=$old_archive_cmds
9704 no_undefined_flag_CXX=
9705 whole_archive_flag_spec_CXX=
9706 enable_shared_with_static_runtimes_CXX=no
9707
9708 # Dependencies to place before and after the object being linked:
9709 predep_objects_CXX=
9710 postdep_objects_CXX=
9711 predeps_CXX=
9712 postdeps_CXX=
9713 compiler_lib_search_path_CXX=
9714
9715 # Source file extension for C++ test sources.
9716 ac_ext=cc
9717
9718 # Object file extension for compiled C++ test sources.
9719 objext=o
9720 objext_CXX=$objext
9721
9722 # Code to be used in simple compile tests
9723 lt_simple_compile_test_code="int some_variable = 0;\n"
9724
9725 # Code to be used in simple link tests
9726 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9727
9728 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9729
9730 # If no C compiler was specified, use CC.
9731 LTCC=${LTCC-"$CC"}
9732
9733 # Allow CC to be a program name with arguments.
9734 compiler=$CC
9735
9736
9737 # Allow CC to be a program name with arguments.
9738 lt_save_CC=$CC
9739 lt_save_LD=$LD
9740 lt_save_GCC=$GCC
9741 GCC=$GXX
9742 lt_save_with_gnu_ld=$with_gnu_ld
9743 lt_save_path_LD=$lt_cv_path_LD
9744 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9745   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9746 else
9747   unset lt_cv_prog_gnu_ld
9748 fi
9749 if test -n "${lt_cv_path_LDCXX+set}"; then
9750   lt_cv_path_LD=$lt_cv_path_LDCXX
9751 else
9752   unset lt_cv_path_LD
9753 fi
9754 test -z "${LDCXX+set}" || LD=$LDCXX
9755 CC=${CXX-"c++"}
9756 compiler=$CC
9757 compiler_CXX=$CC
9758 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9759
9760 # We don't want -fno-exception wen compiling C++ code, so set the
9761 # no_builtin_flag separately
9762 if test "$GXX" = yes; then
9763   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9764 else
9765   lt_prog_compiler_no_builtin_flag_CXX=
9766 fi
9767
9768 if test "$GXX" = yes; then
9769   # Set up default GNU C++ configuration
9770
9771
9772 # Check whether --with-gnu-ld was given.
9773 if test "${with_gnu_ld+set}" = set; then
9774   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9775 else
9776   with_gnu_ld=no
9777 fi
9778
9779 ac_prog=ld
9780 if test "$GCC" = yes; then
9781   # Check if gcc -print-prog-name=ld gives a path.
9782   { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9783 $as_echo_n "checking for ld used by $CC... " >&6; }
9784   case $host in
9785   *-*-mingw*)
9786     # gcc leaves a trailing carriage return which upsets mingw
9787     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9788   *)
9789     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9790   esac
9791   case $ac_prog in
9792     # Accept absolute paths.
9793     [\\/]* | ?:[\\/]*)
9794       re_direlt='/[^/][^/]*/\.\./'
9795       # Canonicalize the pathname of ld
9796       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9797       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9798         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9799       done
9800       test -z "$LD" && LD="$ac_prog"
9801       ;;
9802   "")
9803     # If it fails, then pretend we aren't using GCC.
9804     ac_prog=ld
9805     ;;
9806   *)
9807     # If it is relative, then search for the first ld in PATH.
9808     with_gnu_ld=unknown
9809     ;;
9810   esac
9811 elif test "$with_gnu_ld" = yes; then
9812   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
9813 $as_echo_n "checking for GNU ld... " >&6; }
9814 else
9815   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9816 $as_echo_n "checking for non-GNU ld... " >&6; }
9817 fi
9818 if test "${lt_cv_path_LD+set}" = set; then
9819   $as_echo_n "(cached) " >&6
9820 else
9821   if test -z "$LD"; then
9822   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9823   for ac_dir in $PATH; do
9824     IFS="$lt_save_ifs"
9825     test -z "$ac_dir" && ac_dir=.
9826     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9827       lt_cv_path_LD="$ac_dir/$ac_prog"
9828       # Check to see if the program is GNU ld.  I'd rather use --version,
9829       # but apparently some GNU ld's only accept -v.
9830       # Break only if it was the GNU/non-GNU ld that we prefer.
9831       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9832       *GNU* | *'with BFD'*)
9833         test "$with_gnu_ld" != no && break
9834         ;;
9835       *)
9836         test "$with_gnu_ld" != yes && break
9837         ;;
9838       esac
9839     fi
9840   done
9841   IFS="$lt_save_ifs"
9842 else
9843   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9844 fi
9845 fi
9846
9847 LD="$lt_cv_path_LD"
9848 if test -n "$LD"; then
9849   { $as_echo "$as_me:$LINENO: result: $LD" >&5
9850 $as_echo "$LD" >&6; }
9851 else
9852   { $as_echo "$as_me:$LINENO: result: no" >&5
9853 $as_echo "no" >&6; }
9854 fi
9855 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9856 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9857    { (exit 1); exit 1; }; }
9858 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9859 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9860 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9861   $as_echo_n "(cached) " >&6
9862 else
9863   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9864 case `$LD -v 2>&1 </dev/null` in
9865 *GNU* | *'with BFD'*)
9866   lt_cv_prog_gnu_ld=yes
9867   ;;
9868 *)
9869   lt_cv_prog_gnu_ld=no
9870   ;;
9871 esac
9872 fi
9873 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9874 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
9875 with_gnu_ld=$lt_cv_prog_gnu_ld
9876
9877
9878
9879   # Check if GNU C++ uses GNU ld as the underlying linker, since the
9880   # archiving commands below assume that GNU ld is being used.
9881   if test "$with_gnu_ld" = yes; then
9882     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9883     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'
9884
9885     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9886     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9887
9888     # If archive_cmds runs LD, not CC, wlarc should be empty
9889     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9890     #     investigate it a little bit more. (MM)
9891     wlarc='${wl}'
9892
9893     # ancient GNU ld didn't support --whole-archive et. al.
9894     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9895         grep 'no-whole-archive' > /dev/null; then
9896       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9897     else
9898       whole_archive_flag_spec_CXX=
9899     fi
9900   else
9901     with_gnu_ld=no
9902     wlarc=
9903
9904     # A generic and very simple default shared library creation
9905     # command for GNU C++ for the case where it uses the native
9906     # linker, instead of GNU ld.  If possible, this setting should
9907     # overridden to take advantage of the native linker features on
9908     # the platform it is being used on.
9909     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9910   fi
9911
9912   # Commands to make compiler produce verbose output that lists
9913   # what "hidden" libraries, object files and flags are used when
9914   # linking a shared library.
9915   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9916
9917 else
9918   GXX=no
9919   with_gnu_ld=no
9920   wlarc=
9921 fi
9922
9923 # PORTME: fill in a description of your system's C++ link characteristics
9924 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9925 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9926 ld_shlibs_CXX=yes
9927 case $host_os in
9928   aix3*)
9929     # FIXME: insert proper C++ library support
9930     ld_shlibs_CXX=no
9931     ;;
9932   aix4* | aix5*)
9933     if test "$host_cpu" = ia64; then
9934       # On IA64, the linker does run time linking by default, so we don't
9935       # have to do anything special.
9936       aix_use_runtimelinking=no
9937       exp_sym_flag='-Bexport'
9938       no_entry_flag=""
9939     else
9940       aix_use_runtimelinking=no
9941
9942       # Test if we are trying to use run time linking or normal
9943       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9944       # need to do runtime linking.
9945       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9946         for ld_flag in $LDFLAGS; do
9947           case $ld_flag in
9948           *-brtl*)
9949             aix_use_runtimelinking=yes
9950             break
9951             ;;
9952           esac
9953         done
9954       esac
9955
9956       exp_sym_flag='-bexport'
9957       no_entry_flag='-bnoentry'
9958     fi
9959
9960     # When large executables or shared objects are built, AIX ld can
9961     # have problems creating the table of contents.  If linking a library
9962     # or program results in "error TOC overflow" add -mminimal-toc to
9963     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9964     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9965
9966     archive_cmds_CXX=''
9967     hardcode_direct_CXX=yes
9968     hardcode_libdir_separator_CXX=':'
9969     link_all_deplibs_CXX=yes
9970
9971     if test "$GXX" = yes; then
9972       case $host_os in aix4.012|aix4.012.*)
9973       # We only want to do this on AIX 4.2 and lower, the check
9974       # below for broken collect2 doesn't work under 4.3+
9975         collect2name=`${CC} -print-prog-name=collect2`
9976         if test -f "$collect2name" && \
9977            strings "$collect2name" | grep resolve_lib_name >/dev/null
9978         then
9979           # We have reworked collect2
9980           hardcode_direct_CXX=yes
9981         else
9982           # We have old collect2
9983           hardcode_direct_CXX=unsupported
9984           # It fails to find uninstalled libraries when the uninstalled
9985           # path is not listed in the libpath.  Setting hardcode_minus_L
9986           # to unsupported forces relinking
9987           hardcode_minus_L_CXX=yes
9988           hardcode_libdir_flag_spec_CXX='-L$libdir'
9989           hardcode_libdir_separator_CXX=
9990         fi
9991       esac
9992       shared_flag='-shared'
9993     else
9994       # not using gcc
9995       if test "$host_cpu" = ia64; then
9996         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9997         # chokes on -Wl,-G. The following line is correct:
9998         shared_flag='-G'
9999       else
10000         if test "$aix_use_runtimelinking" = yes; then
10001           shared_flag='${wl}-G'
10002         else
10003           shared_flag='${wl}-bM:SRE'
10004         fi
10005       fi
10006     fi
10007
10008     # It seems that -bexpall does not export symbols beginning with
10009     # underscore (_), so it is better to generate a list of symbols to export.
10010     always_export_symbols_CXX=yes
10011     if test "$aix_use_runtimelinking" = yes; then
10012       # Warning - without using the other runtime loading flags (-brtl),
10013       # -berok will link without error, but may produce a broken library.
10014       allow_undefined_flag_CXX='-berok'
10015       # Determine the default libpath from the value encoded in an empty executable.
10016       cat >conftest.$ac_ext <<_ACEOF
10017 /* confdefs.h.  */
10018 _ACEOF
10019 cat confdefs.h >>conftest.$ac_ext
10020 cat >>conftest.$ac_ext <<_ACEOF
10021 /* end confdefs.h.  */
10022
10023 int
10024 main ()
10025 {
10026
10027   ;
10028   return 0;
10029 }
10030 _ACEOF
10031 rm -f conftest.$ac_objext conftest$ac_exeext
10032 if { (ac_try="$ac_link"
10033 case "(($ac_try" in
10034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10035   *) ac_try_echo=$ac_try;;
10036 esac
10037 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10038 $as_echo "$ac_try_echo") >&5
10039   (eval "$ac_link") 2>conftest.er1
10040   ac_status=$?
10041   grep -v '^ *+' conftest.er1 >conftest.err
10042   rm -f conftest.er1
10043   cat conftest.err >&5
10044   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10045   (exit $ac_status); } && {
10046          test -z "$ac_cxx_werror_flag" ||
10047          test ! -s conftest.err
10048        } && test -s conftest$ac_exeext && {
10049          test "$cross_compiling" = yes ||
10050          $as_test_x conftest$ac_exeext
10051        }; then
10052
10053 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10054 }'`
10055 # Check for a 64-bit object if we didn't find anything.
10056 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; }
10057 }'`; fi
10058 else
10059   $as_echo "$as_me: failed program was:" >&5
10060 sed 's/^/| /' conftest.$ac_ext >&5
10061
10062
10063 fi
10064
10065 rm -rf conftest.dSYM
10066 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10067       conftest$ac_exeext conftest.$ac_ext
10068 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10069
10070       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10071
10072       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"
10073      else
10074       if test "$host_cpu" = ia64; then
10075         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10076         allow_undefined_flag_CXX="-z nodefs"
10077         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"
10078       else
10079         # Determine the default libpath from the value encoded in an empty executable.
10080         cat >conftest.$ac_ext <<_ACEOF
10081 /* confdefs.h.  */
10082 _ACEOF
10083 cat confdefs.h >>conftest.$ac_ext
10084 cat >>conftest.$ac_ext <<_ACEOF
10085 /* end confdefs.h.  */
10086
10087 int
10088 main ()
10089 {
10090
10091   ;
10092   return 0;
10093 }
10094 _ACEOF
10095 rm -f conftest.$ac_objext conftest$ac_exeext
10096 if { (ac_try="$ac_link"
10097 case "(($ac_try" in
10098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10099   *) ac_try_echo=$ac_try;;
10100 esac
10101 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10102 $as_echo "$ac_try_echo") >&5
10103   (eval "$ac_link") 2>conftest.er1
10104   ac_status=$?
10105   grep -v '^ *+' conftest.er1 >conftest.err
10106   rm -f conftest.er1
10107   cat conftest.err >&5
10108   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10109   (exit $ac_status); } && {
10110          test -z "$ac_cxx_werror_flag" ||
10111          test ! -s conftest.err
10112        } && test -s conftest$ac_exeext && {
10113          test "$cross_compiling" = yes ||
10114          $as_test_x conftest$ac_exeext
10115        }; then
10116
10117 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10118 }'`
10119 # Check for a 64-bit object if we didn't find anything.
10120 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; }
10121 }'`; fi
10122 else
10123   $as_echo "$as_me: failed program was:" >&5
10124 sed 's/^/| /' conftest.$ac_ext >&5
10125
10126
10127 fi
10128
10129 rm -rf conftest.dSYM
10130 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10131       conftest$ac_exeext conftest.$ac_ext
10132 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10133
10134         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10135         # Warning - without using the other run time loading flags,
10136         # -berok will link without error, but may produce a broken library.
10137         no_undefined_flag_CXX=' ${wl}-bernotok'
10138         allow_undefined_flag_CXX=' ${wl}-berok'
10139         # -bexpall does not export symbols beginning with underscore (_)
10140         always_export_symbols_CXX=yes
10141         # Exported symbols can be pulled into shared objects from archives
10142         whole_archive_flag_spec_CXX=' '
10143         archive_cmds_need_lc_CXX=yes
10144         # This is similar to how AIX traditionally builds it's shared libraries.
10145         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'
10146       fi
10147     fi
10148     ;;
10149   chorus*)
10150     case $cc_basename in
10151       *)
10152         # FIXME: insert proper C++ library support
10153         ld_shlibs_CXX=no
10154         ;;
10155     esac
10156     ;;
10157
10158   cygwin* | mingw* | pw32*)
10159     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10160     # as there is no search path for DLLs.
10161     hardcode_libdir_flag_spec_CXX='-L$libdir'
10162     allow_undefined_flag_CXX=unsupported
10163     always_export_symbols_CXX=no
10164     enable_shared_with_static_runtimes_CXX=yes
10165
10166     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10167       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'
10168       # If the export-symbols file already is a .def file (1st line
10169       # is EXPORTS), use it as is; otherwise, prepend...
10170       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10171         cp $export_symbols $output_objdir/$soname.def;
10172       else
10173         echo EXPORTS > $output_objdir/$soname.def;
10174         cat $export_symbols >> $output_objdir/$soname.def;
10175       fi~
10176       $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'
10177     else
10178       ld_shlibs_CXX=no
10179     fi
10180   ;;
10181
10182   darwin* | rhapsody*)
10183   if test "$GXX" = yes; then
10184     archive_cmds_need_lc_CXX=no
10185     case "$host_os" in
10186     rhapsody* | darwin1.[012])
10187       allow_undefined_flag_CXX='-undefined suppress'
10188       ;;
10189     *) # Darwin 1.3 on
10190       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10191         allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10192       else
10193         case ${MACOSX_DEPLOYMENT_TARGET} in
10194           10.[012])
10195             allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10196             ;;
10197           10.*)
10198             allow_undefined_flag_CXX='-undefined dynamic_lookup'
10199             ;;
10200         esac
10201       fi
10202       ;;
10203     esac
10204     lt_int_apple_cc_single_mod=no
10205     output_verbose_link_cmd='echo'
10206     if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10207       lt_int_apple_cc_single_mod=yes
10208     fi
10209     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10210       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10211     else
10212       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'
10213     fi
10214     module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10215
10216     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10217     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10218       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}'
10219     else
10220       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}'
10221     fi
10222     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}'
10223     hardcode_direct_CXX=no
10224     hardcode_automatic_CXX=yes
10225     hardcode_shlibpath_var_CXX=unsupported
10226     whole_archive_flag_spec_CXX='-all_load $convenience'
10227     link_all_deplibs_CXX=yes
10228   else
10229     ld_shlibs_CXX=no
10230   fi
10231     ;;
10232
10233   dgux*)
10234     case $cc_basename in
10235       ec++)
10236         # FIXME: insert proper C++ library support
10237         ld_shlibs_CXX=no
10238         ;;
10239       ghcx)
10240         # Green Hills C++ Compiler
10241         # FIXME: insert proper C++ library support
10242         ld_shlibs_CXX=no
10243         ;;
10244       *)
10245         # FIXME: insert proper C++ library support
10246         ld_shlibs_CXX=no
10247         ;;
10248     esac
10249     ;;
10250   freebsd12*)
10251     # C++ shared libraries reported to be fairly broken before switch to ELF
10252     ld_shlibs_CXX=no
10253     ;;
10254   freebsd-elf*)
10255     archive_cmds_need_lc_CXX=no
10256     ;;
10257   freebsd* | kfreebsd*-gnu)
10258     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10259     # conventions
10260     ld_shlibs_CXX=yes
10261     ;;
10262   gnu*)
10263     ;;
10264   hpux9*)
10265     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10266     hardcode_libdir_separator_CXX=:
10267     export_dynamic_flag_spec_CXX='${wl}-E'
10268     hardcode_direct_CXX=yes
10269     hardcode_minus_L_CXX=yes # Not in the search PATH,
10270                                 # but as the default
10271                                 # location of the library.
10272
10273     case $cc_basename in
10274     CC)
10275       # FIXME: insert proper C++ library support
10276       ld_shlibs_CXX=no
10277       ;;
10278     aCC)
10279       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'
10280       # Commands to make compiler produce verbose output that lists
10281       # what "hidden" libraries, object files and flags are used when
10282       # linking a shared library.
10283       #
10284       # There doesn't appear to be a way to prevent this compiler from
10285       # explicitly linking system object files so we need to strip them
10286       # from the output so that they don't get included in the library
10287       # dependencies.
10288       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'
10289       ;;
10290     *)
10291       if test "$GXX" = yes; then
10292         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'
10293       else
10294         # FIXME: insert proper C++ library support
10295         ld_shlibs_CXX=no
10296       fi
10297       ;;
10298     esac
10299     ;;
10300   hpux10*|hpux11*)
10301     if test $with_gnu_ld = no; then
10302       case "$host_cpu" in
10303       hppa*64*)
10304         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10305         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10306         hardcode_libdir_separator_CXX=:
10307         ;;
10308       ia64*)
10309         hardcode_libdir_flag_spec_CXX='-L$libdir'
10310         ;;
10311       *)
10312         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10313         hardcode_libdir_separator_CXX=:
10314         export_dynamic_flag_spec_CXX='${wl}-E'
10315         ;;
10316       esac
10317     fi
10318     case "$host_cpu" in
10319     hppa*64*)
10320       hardcode_direct_CXX=no
10321       hardcode_shlibpath_var_CXX=no
10322       ;;
10323     ia64*)
10324       hardcode_direct_CXX=no
10325       hardcode_shlibpath_var_CXX=no
10326       hardcode_minus_L_CXX=yes # Not in the search PATH,
10327                                               # but as the default
10328                                               # location of the library.
10329       ;;
10330     *)
10331       hardcode_direct_CXX=yes
10332       hardcode_minus_L_CXX=yes # Not in the search PATH,
10333                                               # but as the default
10334                                               # location of the library.
10335       ;;
10336     esac
10337
10338     case $cc_basename in
10339       CC)
10340         # FIXME: insert proper C++ library support
10341         ld_shlibs_CXX=no
10342         ;;
10343       aCC)
10344         case "$host_cpu" in
10345         hppa*64*|ia64*)
10346           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10347           ;;
10348         *)
10349           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10350           ;;
10351         esac
10352         # Commands to make compiler produce verbose output that lists
10353         # what "hidden" libraries, object files and flags are used when
10354         # linking a shared library.
10355         #
10356         # There doesn't appear to be a way to prevent this compiler from
10357         # explicitly linking system object files so we need to strip them
10358         # from the output so that they don't get included in the library
10359         # dependencies.
10360         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'
10361         ;;
10362       *)
10363         if test "$GXX" = yes; then
10364           if test $with_gnu_ld = no; then
10365             case "$host_cpu" in
10366             ia64*|hppa*64*)
10367               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10368               ;;
10369             *)
10370               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'
10371               ;;
10372             esac
10373           fi
10374         else
10375           # FIXME: insert proper C++ library support
10376           ld_shlibs_CXX=no
10377         fi
10378         ;;
10379     esac
10380     ;;
10381   irix5* | irix6*)
10382     case $cc_basename in
10383       CC)
10384         # SGI C++
10385         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'
10386
10387         # Archives containing C++ object files must be created using
10388         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10389         # necessary to make sure instantiated templates are included
10390         # in the archive.
10391         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10392         ;;
10393       *)
10394         if test "$GXX" = yes; then
10395           if test "$with_gnu_ld" = no; then
10396             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'
10397           else
10398             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'
10399           fi
10400         fi
10401         link_all_deplibs_CXX=yes
10402         ;;
10403     esac
10404     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10405     hardcode_libdir_separator_CXX=:
10406     ;;
10407   linux*)
10408     case $cc_basename in
10409       KCC)
10410         # Kuck and Associates, Inc. (KAI) C++ Compiler
10411
10412         # KCC will only create a shared library if the output file
10413         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10414         # to its proper name (with version) after linking.
10415         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'
10416         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'
10417         # Commands to make compiler produce verbose output that lists
10418         # what "hidden" libraries, object files and flags are used when
10419         # linking a shared library.
10420         #
10421         # There doesn't appear to be a way to prevent this compiler from
10422         # explicitly linking system object files so we need to strip them
10423         # from the output so that they don't get included in the library
10424         # dependencies.
10425         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'
10426
10427         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10428         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10429
10430         # Archives containing C++ object files must be created using
10431         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10432         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10433         ;;
10434       icpc)
10435         # Intel C++
10436         with_gnu_ld=yes
10437         archive_cmds_need_lc_CXX=no
10438         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10439         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'
10440         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10441         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10442         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10443         ;;
10444       cxx)
10445         # Compaq C++
10446         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10447         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'
10448
10449         runpath_var=LD_RUN_PATH
10450         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10451         hardcode_libdir_separator_CXX=:
10452
10453         # Commands to make compiler produce verbose output that lists
10454         # what "hidden" libraries, object files and flags are used when
10455         # linking a shared library.
10456         #
10457         # There doesn't appear to be a way to prevent this compiler from
10458         # explicitly linking system object files so we need to strip them
10459         # from the output so that they don't get included in the library
10460         # dependencies.
10461         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'
10462         ;;
10463     esac
10464     ;;
10465   lynxos*)
10466     # FIXME: insert proper C++ library support
10467     ld_shlibs_CXX=no
10468     ;;
10469   m88k*)
10470     # FIXME: insert proper C++ library support
10471     ld_shlibs_CXX=no
10472     ;;
10473   mvs*)
10474     case $cc_basename in
10475       cxx)
10476         # FIXME: insert proper C++ library support
10477         ld_shlibs_CXX=no
10478         ;;
10479       *)
10480         # FIXME: insert proper C++ library support
10481         ld_shlibs_CXX=no
10482         ;;
10483     esac
10484     ;;
10485   netbsd*)
10486     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10487       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10488       wlarc=
10489       hardcode_libdir_flag_spec_CXX='-R$libdir'
10490       hardcode_direct_CXX=yes
10491       hardcode_shlibpath_var_CXX=no
10492     fi
10493     # Workaround some broken pre-1.5 toolchains
10494     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10495     ;;
10496   osf3*)
10497     case $cc_basename in
10498       KCC)
10499         # Kuck and Associates, Inc. (KAI) C++ Compiler
10500
10501         # KCC will only create a shared library if the output file
10502         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10503         # to its proper name (with version) after linking.
10504         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'
10505
10506         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10507         hardcode_libdir_separator_CXX=:
10508
10509         # Archives containing C++ object files must be created using
10510         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10511         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10512
10513         ;;
10514       RCC)
10515         # Rational C++ 2.4.1
10516         # FIXME: insert proper C++ library support
10517         ld_shlibs_CXX=no
10518         ;;
10519       cxx)
10520         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10521         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'
10522
10523         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10524         hardcode_libdir_separator_CXX=:
10525
10526         # Commands to make compiler produce verbose output that lists
10527         # what "hidden" libraries, object files and flags are used when
10528         # linking a shared library.
10529         #
10530         # There doesn't appear to be a way to prevent this compiler from
10531         # explicitly linking system object files so we need to strip them
10532         # from the output so that they don't get included in the library
10533         # dependencies.
10534         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'
10535         ;;
10536       *)
10537         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10538           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10539           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'
10540
10541           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10542           hardcode_libdir_separator_CXX=:
10543
10544           # Commands to make compiler produce verbose output that lists
10545           # what "hidden" libraries, object files and flags are used when
10546           # linking a shared library.
10547           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10548
10549         else
10550           # FIXME: insert proper C++ library support
10551           ld_shlibs_CXX=no
10552         fi
10553         ;;
10554     esac
10555     ;;
10556   osf4* | osf5*)
10557     case $cc_basename in
10558       KCC)
10559         # Kuck and Associates, Inc. (KAI) C++ Compiler
10560
10561         # KCC will only create a shared library if the output file
10562         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10563         # to its proper name (with version) after linking.
10564         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'
10565
10566         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10567         hardcode_libdir_separator_CXX=:
10568
10569         # Archives containing C++ object files must be created using
10570         # the KAI C++ compiler.
10571         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10572         ;;
10573       RCC)
10574         # Rational C++ 2.4.1
10575         # FIXME: insert proper C++ library support
10576         ld_shlibs_CXX=no
10577         ;;
10578       cxx)
10579         allow_undefined_flag_CXX=' -expect_unresolved \*'
10580         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'
10581         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10582           echo "-hidden">> $lib.exp~
10583           $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~
10584           $rm $lib.exp'
10585
10586         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10587         hardcode_libdir_separator_CXX=:
10588
10589         # Commands to make compiler produce verbose output that lists
10590         # what "hidden" libraries, object files and flags are used when
10591         # linking a shared library.
10592         #
10593         # There doesn't appear to be a way to prevent this compiler from
10594         # explicitly linking system object files so we need to strip them
10595         # from the output so that they don't get included in the library
10596         # dependencies.
10597         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'
10598         ;;
10599       *)
10600         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10601           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10602          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'
10603
10604           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10605           hardcode_libdir_separator_CXX=:
10606
10607           # Commands to make compiler produce verbose output that lists
10608           # what "hidden" libraries, object files and flags are used when
10609           # linking a shared library.
10610           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10611
10612         else
10613           # FIXME: insert proper C++ library support
10614           ld_shlibs_CXX=no
10615         fi
10616         ;;
10617     esac
10618     ;;
10619   psos*)
10620     # FIXME: insert proper C++ library support
10621     ld_shlibs_CXX=no
10622     ;;
10623   sco*)
10624     archive_cmds_need_lc_CXX=no
10625     case $cc_basename in
10626       CC)
10627         # FIXME: insert proper C++ library support
10628         ld_shlibs_CXX=no
10629         ;;
10630       *)
10631         # FIXME: insert proper C++ library support
10632         ld_shlibs_CXX=no
10633         ;;
10634     esac
10635     ;;
10636   sunos4*)
10637     case $cc_basename in
10638       CC)
10639         # Sun C++ 4.x
10640         # FIXME: insert proper C++ library support
10641         ld_shlibs_CXX=no
10642         ;;
10643       lcc)
10644         # Lucid
10645         # FIXME: insert proper C++ library support
10646         ld_shlibs_CXX=no
10647         ;;
10648       *)
10649         # FIXME: insert proper C++ library support
10650         ld_shlibs_CXX=no
10651         ;;
10652     esac
10653     ;;
10654   solaris*)
10655     case $cc_basename in
10656       CC)
10657         # Sun C++ 4.2, 5.x and Centerline C++
10658         no_undefined_flag_CXX=' -zdefs'
10659         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10660         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10661         $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'
10662
10663         hardcode_libdir_flag_spec_CXX='-R$libdir'
10664         hardcode_shlibpath_var_CXX=no
10665         case $host_os in
10666           solaris2.0-5 | solaris2.0-5.*) ;;
10667           *)
10668             # The C++ compiler is used as linker so we must use $wl
10669             # flag to pass the commands to the underlying system
10670             # linker.
10671             # Supported since Solaris 2.6 (maybe 2.5.1?)
10672             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10673             ;;
10674         esac
10675         link_all_deplibs_CXX=yes
10676
10677         # Commands to make compiler produce verbose output that lists
10678         # what "hidden" libraries, object files and flags are used when
10679         # linking a shared library.
10680         #
10681         # There doesn't appear to be a way to prevent this compiler from
10682         # explicitly linking system object files so we need to strip them
10683         # from the output so that they don't get included in the library
10684         # dependencies.
10685         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'
10686
10687         # Archives containing C++ object files must be created using
10688         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10689         # necessary to make sure instantiated templates are included
10690         # in the archive.
10691         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10692         ;;
10693       gcx)
10694         # Green Hills C++ Compiler
10695         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10696
10697         # The C++ compiler must be used to create the archive.
10698         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10699         ;;
10700       *)
10701         # GNU C++ compiler with Solaris linker
10702         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10703           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10704           if $CC --version | grep -v '^2\.7' > /dev/null; then
10705             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10706             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10707                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10708
10709             # Commands to make compiler produce verbose output that lists
10710             # what "hidden" libraries, object files and flags are used when
10711             # linking a shared library.
10712             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10713           else
10714             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10715             # platform.
10716             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10717             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10718                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10719
10720             # Commands to make compiler produce verbose output that lists
10721             # what "hidden" libraries, object files and flags are used when
10722             # linking a shared library.
10723             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10724           fi
10725
10726           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10727         fi
10728         ;;
10729     esac
10730     ;;
10731   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10732     archive_cmds_need_lc_CXX=no
10733     ;;
10734   tandem*)
10735     case $cc_basename in
10736       NCC)
10737         # NonStop-UX NCC 3.20
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     ;;
10747   vxworks*)
10748     # FIXME: insert proper C++ library support
10749     ld_shlibs_CXX=no
10750     ;;
10751   *)
10752     # FIXME: insert proper C++ library support
10753     ld_shlibs_CXX=no
10754     ;;
10755 esac
10756 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10757 $as_echo "$ld_shlibs_CXX" >&6; }
10758 test "$ld_shlibs_CXX" = no && can_build_shared=no
10759
10760 GCC_CXX="$GXX"
10761 LD_CXX="$LD"
10762
10763 ## CAVEAT EMPTOR:
10764 ## There is no encapsulation within the following macros, do not change
10765 ## the running order or otherwise move them around unless you know exactly
10766 ## what you are doing...
10767
10768 cat > conftest.$ac_ext <<EOF
10769 class Foo
10770 {
10771 public:
10772   Foo (void) { a = 0; }
10773 private:
10774   int a;
10775 };
10776 EOF
10777
10778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10779   (eval $ac_compile) 2>&5
10780   ac_status=$?
10781   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10782   (exit $ac_status); }; then
10783   # Parse the compiler output and extract the necessary
10784   # objects, libraries and library flags.
10785
10786   # Sentinel used to keep track of whether or not we are before
10787   # the conftest object file.
10788   pre_test_object_deps_done=no
10789
10790   # The `*' in the case matches for architectures that use `case' in
10791   # $output_verbose_cmd can trigger glob expansion during the loop
10792   # eval without this substitution.
10793   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10794
10795   for p in `eval $output_verbose_link_cmd`; do
10796     case $p in
10797
10798     -L* | -R* | -l*)
10799        # Some compilers place space between "-{L,R}" and the path.
10800        # Remove the space.
10801        if test $p = "-L" \
10802           || test $p = "-R"; then
10803          prev=$p
10804          continue
10805        else
10806          prev=
10807        fi
10808
10809        if test "$pre_test_object_deps_done" = no; then
10810          case $p in
10811          -L* | -R*)
10812            # Internal compiler library paths should come after those
10813            # provided the user.  The postdeps already come after the
10814            # user supplied libs so there is no need to process them.
10815            if test -z "$compiler_lib_search_path_CXX"; then
10816              compiler_lib_search_path_CXX="${prev}${p}"
10817            else
10818              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10819            fi
10820            ;;
10821          # The "-l" case would never come before the object being
10822          # linked, so don't bother handling this case.
10823          esac
10824        else
10825          if test -z "$postdeps_CXX"; then
10826            postdeps_CXX="${prev}${p}"
10827          else
10828            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10829          fi
10830        fi
10831        ;;
10832
10833     *.$objext)
10834        # This assumes that the test object file only shows up
10835        # once in the compiler output.
10836        if test "$p" = "conftest.$objext"; then
10837          pre_test_object_deps_done=yes
10838          continue
10839        fi
10840
10841        if test "$pre_test_object_deps_done" = no; then
10842          if test -z "$predep_objects_CXX"; then
10843            predep_objects_CXX="$p"
10844          else
10845            predep_objects_CXX="$predep_objects_CXX $p"
10846          fi
10847        else
10848          if test -z "$postdep_objects_CXX"; then
10849            postdep_objects_CXX="$p"
10850          else
10851            postdep_objects_CXX="$postdep_objects_CXX $p"
10852          fi
10853        fi
10854        ;;
10855
10856     *) ;; # Ignore the rest.
10857
10858     esac
10859   done
10860
10861   # Clean up.
10862   rm -f a.out a.exe
10863 else
10864   echo "libtool.m4: error: problem compiling CXX test program"
10865 fi
10866
10867 $rm -f confest.$objext
10868
10869 case " $postdeps_CXX " in
10870 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10871 esac
10872
10873 lt_prog_compiler_wl_CXX=
10874 lt_prog_compiler_pic_CXX=
10875 lt_prog_compiler_static_CXX=
10876
10877 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10878 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10879
10880   # C++ specific cases for pic, static, wl, etc.
10881   if test "$GXX" = yes; then
10882     lt_prog_compiler_wl_CXX='-Wl,'
10883     lt_prog_compiler_static_CXX='-static'
10884
10885     case $host_os in
10886     aix*)
10887       # All AIX code is PIC.
10888       if test "$host_cpu" = ia64; then
10889         # AIX 5 now supports IA64 processor
10890         lt_prog_compiler_static_CXX='-Bstatic'
10891       fi
10892       ;;
10893     amigaos*)
10894       # FIXME: we need at least 68020 code to build shared libraries, but
10895       # adding the `-m68020' flag to GCC prevents building anything better,
10896       # like `-m68040'.
10897       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10898       ;;
10899     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10900       # PIC is the default for these OSes.
10901       ;;
10902     mingw* | os2* | pw32*)
10903       # This hack is so that the source file can tell whether it is being
10904       # built for inclusion in a dll (and should export symbols for example).
10905       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10906       ;;
10907     darwin* | rhapsody*)
10908       # PIC is the default on this platform
10909       # Common symbols not allowed in MH_DYLIB files
10910       lt_prog_compiler_pic_CXX='-fno-common'
10911       ;;
10912     *djgpp*)
10913       # DJGPP does not support shared libraries at all
10914       lt_prog_compiler_pic_CXX=
10915       ;;
10916     sysv4*MP*)
10917       if test -d /usr/nec; then
10918         lt_prog_compiler_pic_CXX=-Kconform_pic
10919       fi
10920       ;;
10921     hpux*)
10922       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10923       # not for PA HP-UX.
10924       case "$host_cpu" in
10925       hppa*64*|ia64*)
10926         ;;
10927       *)
10928         lt_prog_compiler_pic_CXX='-fPIC'
10929         ;;
10930       esac
10931       ;;
10932     *)
10933       lt_prog_compiler_pic_CXX='-fPIC'
10934       ;;
10935     esac
10936   else
10937     case $host_os in
10938       aix4* | aix5*)
10939         # All AIX code is PIC.
10940         if test "$host_cpu" = ia64; then
10941           # AIX 5 now supports IA64 processor
10942           lt_prog_compiler_static_CXX='-Bstatic'
10943         else
10944           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10945         fi
10946         ;;
10947       chorus*)
10948         case $cc_basename in
10949         cxch68)
10950           # Green Hills C++ Compiler
10951           # _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"
10952           ;;
10953         esac
10954         ;;
10955       dgux*)
10956         case $cc_basename in
10957           ec++)
10958             lt_prog_compiler_pic_CXX='-KPIC'
10959             ;;
10960           ghcx)
10961             # Green Hills C++ Compiler
10962             lt_prog_compiler_pic_CXX='-pic'
10963             ;;
10964           *)
10965             ;;
10966         esac
10967         ;;
10968       freebsd* | kfreebsd*-gnu)
10969         # FreeBSD uses GNU C++
10970         ;;
10971       hpux9* | hpux10* | hpux11*)
10972         case $cc_basename in
10973           CC)
10974             lt_prog_compiler_wl_CXX='-Wl,'
10975             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10976             if test "$host_cpu" != ia64; then
10977               lt_prog_compiler_pic_CXX='+Z'
10978             fi
10979             ;;
10980           aCC)
10981             lt_prog_compiler_wl_CXX='-Wl,'
10982             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10983             case "$host_cpu" in
10984             hppa*64*|ia64*)
10985               # +Z the default
10986               ;;
10987             *)
10988               lt_prog_compiler_pic_CXX='+Z'
10989               ;;
10990             esac
10991             ;;
10992           *)
10993             ;;
10994         esac
10995         ;;
10996       irix5* | irix6* | nonstopux*)
10997         case $cc_basename in
10998           CC)
10999             lt_prog_compiler_wl_CXX='-Wl,'
11000             lt_prog_compiler_static_CXX='-non_shared'
11001             # CC pic flag -KPIC is the default.
11002             ;;
11003           *)
11004             ;;
11005         esac
11006         ;;
11007       linux*)
11008         case $cc_basename in
11009           KCC)
11010             # KAI C++ Compiler
11011             lt_prog_compiler_wl_CXX='--backend -Wl,'
11012             lt_prog_compiler_pic_CXX='-fPIC'
11013             ;;
11014           icpc)
11015             # Intel C++
11016             lt_prog_compiler_wl_CXX='-Wl,'
11017             lt_prog_compiler_pic_CXX='-KPIC'
11018             lt_prog_compiler_static_CXX='-static'
11019             ;;
11020           cxx)
11021             # Compaq C++
11022             # Make sure the PIC flag is empty.  It appears that all Alpha
11023             # Linux and Compaq Tru64 Unix objects are PIC.
11024             lt_prog_compiler_pic_CXX=
11025             lt_prog_compiler_static_CXX='-non_shared'
11026             ;;
11027           *)
11028             ;;
11029         esac
11030         ;;
11031       lynxos*)
11032         ;;
11033       m88k*)
11034         ;;
11035       mvs*)
11036         case $cc_basename in
11037           cxx)
11038             lt_prog_compiler_pic_CXX='-W c,exportall'
11039             ;;
11040           *)
11041             ;;
11042         esac
11043         ;;
11044       netbsd*)
11045         ;;
11046       osf3* | osf4* | osf5*)
11047         case $cc_basename in
11048           KCC)
11049             lt_prog_compiler_wl_CXX='--backend -Wl,'
11050             ;;
11051           RCC)
11052             # Rational C++ 2.4.1
11053             lt_prog_compiler_pic_CXX='-pic'
11054             ;;
11055           cxx)
11056             # Digital/Compaq C++
11057             lt_prog_compiler_wl_CXX='-Wl,'
11058             # Make sure the PIC flag is empty.  It appears that all Alpha
11059             # Linux and Compaq Tru64 Unix objects are PIC.
11060             lt_prog_compiler_pic_CXX=
11061             lt_prog_compiler_static_CXX='-non_shared'
11062             ;;
11063           *)
11064             ;;
11065         esac
11066         ;;
11067       psos*)
11068         ;;
11069       sco*)
11070         case $cc_basename in
11071           CC)
11072             lt_prog_compiler_pic_CXX='-fPIC'
11073             ;;
11074           *)
11075             ;;
11076         esac
11077         ;;
11078       solaris*)
11079         case $cc_basename in
11080           CC)
11081             # Sun C++ 4.2, 5.x and Centerline C++
11082             lt_prog_compiler_pic_CXX='-KPIC'
11083             lt_prog_compiler_static_CXX='-Bstatic'
11084             lt_prog_compiler_wl_CXX='-Qoption ld '
11085             ;;
11086           gcx)
11087             # Green Hills C++ Compiler
11088             lt_prog_compiler_pic_CXX='-PIC'
11089             ;;
11090           *)
11091             ;;
11092         esac
11093         ;;
11094       sunos4*)
11095         case $cc_basename in
11096           CC)
11097             # Sun C++ 4.x
11098             lt_prog_compiler_pic_CXX='-pic'
11099             lt_prog_compiler_static_CXX='-Bstatic'
11100             ;;
11101           lcc)
11102             # Lucid
11103             lt_prog_compiler_pic_CXX='-pic'
11104             ;;
11105           *)
11106             ;;
11107         esac
11108         ;;
11109       tandem*)
11110         case $cc_basename in
11111           NCC)
11112             # NonStop-UX NCC 3.20
11113             lt_prog_compiler_pic_CXX='-KPIC'
11114             ;;
11115           *)
11116             ;;
11117         esac
11118         ;;
11119       unixware*)
11120         ;;
11121       vxworks*)
11122         ;;
11123       *)
11124         lt_prog_compiler_can_build_shared_CXX=no
11125         ;;
11126     esac
11127   fi
11128
11129 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11130 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
11131
11132 #
11133 # Check to make sure the PIC flag actually works.
11134 #
11135 if test -n "$lt_prog_compiler_pic_CXX"; then
11136
11137 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11138 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
11139 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11140   $as_echo_n "(cached) " >&6
11141 else
11142   lt_prog_compiler_pic_works_CXX=no
11143   ac_outfile=conftest.$ac_objext
11144    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11145    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11146    # Insert the option either (1) after the last *FLAGS variable, or
11147    # (2) before a word containing "conftest.", or (3) at the end.
11148    # Note that $ac_compile itself does not contain backslashes and begins
11149    # with a dollar sign (not a hyphen), so the echo should work correctly.
11150    # The option is referenced via a variable to avoid confusing sed.
11151    lt_compile=`echo "$ac_compile" | $SED \
11152    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11153    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11154    -e 's:$: $lt_compiler_flag:'`
11155    (eval echo "\"\$as_me:11155: $lt_compile\"" >&5)
11156    (eval "$lt_compile" 2>conftest.err)
11157    ac_status=$?
11158    cat conftest.err >&5
11159    echo "$as_me:11159: \$? = $ac_status" >&5
11160    if (exit $ac_status) && test -s "$ac_outfile"; then
11161      # The compiler can only warn and ignore the option if not recognized
11162      # So say no if there are warnings
11163      if test ! -s conftest.err; then
11164        lt_prog_compiler_pic_works_CXX=yes
11165      fi
11166    fi
11167    $rm conftest*
11168
11169 fi
11170 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11171 $as_echo "$lt_prog_compiler_pic_works_CXX" >&6; }
11172
11173 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11174     case $lt_prog_compiler_pic_CXX in
11175      "" | " "*) ;;
11176      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11177      esac
11178 else
11179     lt_prog_compiler_pic_CXX=
11180      lt_prog_compiler_can_build_shared_CXX=no
11181 fi
11182
11183 fi
11184 case "$host_os" in
11185   # For platforms which do not support PIC, -DPIC is meaningless:
11186   *djgpp*)
11187     lt_prog_compiler_pic_CXX=
11188     ;;
11189   *)
11190     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11191     ;;
11192 esac
11193
11194 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11195 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11196 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11197   $as_echo_n "(cached) " >&6
11198 else
11199   lt_cv_prog_compiler_c_o_CXX=no
11200    $rm -r conftest 2>/dev/null
11201    mkdir conftest
11202    cd conftest
11203    mkdir out
11204    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11205
11206    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
11207    # that will create temporary files in the current directory regardless of
11208    # the output directory.  Thus, making CWD read-only will cause this test
11209    # to fail, enabling locking or at least warning the user not to do parallel
11210    # builds.
11211    chmod -w .
11212
11213    lt_compiler_flag="-o out/conftest2.$ac_objext"
11214    # Insert the option either (1) after the last *FLAGS variable, or
11215    # (2) before a word containing "conftest.", or (3) at the end.
11216    # Note that $ac_compile itself does not contain backslashes and begins
11217    # with a dollar sign (not a hyphen), so the echo should work correctly.
11218    lt_compile=`echo "$ac_compile" | $SED \
11219    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11220    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11221    -e 's:$: $lt_compiler_flag:'`
11222    (eval echo "\"\$as_me:11222: $lt_compile\"" >&5)
11223    (eval "$lt_compile" 2>out/conftest.err)
11224    ac_status=$?
11225    cat out/conftest.err >&5
11226    echo "$as_me:11226: \$? = $ac_status" >&5
11227    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11228    then
11229      # The compiler can only warn and ignore the option if not recognized
11230      # So say no if there are warnings
11231      if test ! -s out/conftest.err; then
11232        lt_cv_prog_compiler_c_o_CXX=yes
11233      fi
11234    fi
11235    chmod u+w .
11236    $rm conftest*
11237    # SGI C++ compiler will create directory out/ii_files/ for
11238    # template instantiation
11239    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11240    $rm out/* && rmdir out
11241    cd ..
11242    rmdir conftest
11243    $rm conftest*
11244
11245 fi
11246 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11247 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
11248
11249
11250 hard_links="nottested"
11251 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11252   # do not overwrite the value of need_locks provided by the user
11253   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11254 $as_echo_n "checking if we can lock with hard links... " >&6; }
11255   hard_links=yes
11256   $rm conftest*
11257   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11258   touch conftest.a
11259   ln conftest.a conftest.b 2>&5 || hard_links=no
11260   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11261   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
11262 $as_echo "$hard_links" >&6; }
11263   if test "$hard_links" = no; then
11264     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11265 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11266     need_locks=warn
11267   fi
11268 else
11269   need_locks=no
11270 fi
11271
11272 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11273 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11274
11275   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11276   case $host_os in
11277   aix4* | aix5*)
11278     # If we're using GNU nm, then we don't want the "-C" option.
11279     # -C means demangle to AIX nm, but means don't demangle with GNU nm
11280     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11281       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'
11282     else
11283       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'
11284     fi
11285     ;;
11286   pw32*)
11287     export_symbols_cmds_CXX="$ltdll_cmds"
11288   ;;
11289   cygwin* | mingw*)
11290     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11291   ;;
11292   *)
11293     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11294   ;;
11295   esac
11296
11297 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11298 $as_echo "$ld_shlibs_CXX" >&6; }
11299 test "$ld_shlibs_CXX" = no && can_build_shared=no
11300
11301 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11302 if test "$GCC" = yes; then
11303   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11304 fi
11305
11306 #
11307 # Do we need to explicitly link libc?
11308 #
11309 case "x$archive_cmds_need_lc_CXX" in
11310 x|xyes)
11311   # Assume -lc should be added
11312   archive_cmds_need_lc_CXX=yes
11313
11314   if test "$enable_shared" = yes && test "$GCC" = yes; then
11315     case $archive_cmds_CXX in
11316     *'~'*)
11317       # FIXME: we may have to deal with multi-command sequences.
11318       ;;
11319     '$CC '*)
11320       # Test whether the compiler implicitly links with -lc since on some
11321       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11322       # to ld, don't add -lc before -lgcc.
11323       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11324 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11325       $rm conftest*
11326       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11327
11328       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11329   (eval $ac_compile) 2>&5
11330   ac_status=$?
11331   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11332   (exit $ac_status); } 2>conftest.err; then
11333         soname=conftest
11334         lib=conftest
11335         libobjs=conftest.$ac_objext
11336         deplibs=
11337         wl=$lt_prog_compiler_wl_CXX
11338         compiler_flags=-v
11339         linker_flags=-v
11340         verstring=
11341         output_objdir=.
11342         libname=conftest
11343         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11344         allow_undefined_flag_CXX=
11345         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11346   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11347   ac_status=$?
11348   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11349   (exit $ac_status); }
11350         then
11351           archive_cmds_need_lc_CXX=no
11352         else
11353           archive_cmds_need_lc_CXX=yes
11354         fi
11355         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11356       else
11357         cat conftest.err 1>&5
11358       fi
11359       $rm conftest*
11360       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11361 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
11362       ;;
11363     esac
11364   fi
11365   ;;
11366 esac
11367
11368 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11369 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11370 library_names_spec=
11371 libname_spec='lib$name'
11372 soname_spec=
11373 shrext=".so"
11374 postinstall_cmds=
11375 postuninstall_cmds=
11376 finish_cmds=
11377 finish_eval=
11378 shlibpath_var=
11379 shlibpath_overrides_runpath=unknown
11380 version_type=none
11381 dynamic_linker="$host_os ld.so"
11382 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11383 if test "$GCC" = yes; then
11384   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11385   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11386     # if the path contains ";" then we assume it to be the separator
11387     # otherwise default to the standard path separator (i.e. ":") - it is
11388     # assumed that no part of a normal pathname contains ";" but that should
11389     # okay in the real world where ";" in dirpaths is itself problematic.
11390     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11391   else
11392     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11393   fi
11394 else
11395   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11396 fi
11397 need_lib_prefix=unknown
11398 hardcode_into_libs=no
11399
11400 # when you set need_version to no, make sure it does not cause -set_version
11401 # flags to be left without arguments
11402 need_version=unknown
11403
11404 case $host_os in
11405 aix3*)
11406   version_type=linux
11407   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11408   shlibpath_var=LIBPATH
11409
11410   # AIX 3 has no versioning support, so we append a major version to the name.
11411   soname_spec='${libname}${release}${shared_ext}$major'
11412   ;;
11413
11414 aix4* | aix5*)
11415   version_type=linux
11416   need_lib_prefix=no
11417   need_version=no
11418   hardcode_into_libs=yes
11419   if test "$host_cpu" = ia64; then
11420     # AIX 5 supports IA64
11421     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11422     shlibpath_var=LD_LIBRARY_PATH
11423   else
11424     # With GCC up to 2.95.x, collect2 would create an import file
11425     # for dependence libraries.  The import file would start with
11426     # the line `#! .'.  This would cause the generated library to
11427     # depend on `.', always an invalid library.  This was fixed in
11428     # development snapshots of GCC prior to 3.0.
11429     case $host_os in
11430       aix4 | aix4.[01] | aix4.[01].*)
11431       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11432            echo ' yes '
11433            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11434         :
11435       else
11436         can_build_shared=no
11437       fi
11438       ;;
11439     esac
11440     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11441     # soname into executable. Probably we can add versioning support to
11442     # collect2, so additional links can be useful in future.
11443     if test "$aix_use_runtimelinking" = yes; then
11444       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11445       # instead of lib<name>.a to let people know that these are not
11446       # typical AIX shared libraries.
11447       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11448     else
11449       # We preserve .a as extension for shared libraries through AIX4.2
11450       # and later when we are not doing run time linking.
11451       library_names_spec='${libname}${release}.a $libname.a'
11452       soname_spec='${libname}${release}${shared_ext}$major'
11453     fi
11454     shlibpath_var=LIBPATH
11455   fi
11456   ;;
11457
11458 amigaos*)
11459   library_names_spec='$libname.ixlibrary $libname.a'
11460   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11461   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'
11462   ;;
11463
11464 beos*)
11465   library_names_spec='${libname}${shared_ext}'
11466   dynamic_linker="$host_os ld.so"
11467   shlibpath_var=LIBRARY_PATH
11468   ;;
11469
11470 bsdi4*)
11471   version_type=linux
11472   need_version=no
11473   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11474   soname_spec='${libname}${release}${shared_ext}$major'
11475   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11476   shlibpath_var=LD_LIBRARY_PATH
11477   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11478   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11479   # the default ld.so.conf also contains /usr/contrib/lib and
11480   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11481   # libtool to hard-code these into programs
11482   ;;
11483
11484 cygwin* | mingw* | pw32*)
11485   version_type=windows
11486   shrext=".dll"
11487   need_version=no
11488   need_lib_prefix=no
11489
11490   case $GCC,$host_os in
11491   yes,cygwin* | yes,mingw* | yes,pw32*)
11492     library_names_spec='$libname.dll.a'
11493     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11494     postinstall_cmds='base_file=`basename \${file}`~
11495       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11496       dldir=$destdir/`dirname \$dlpath`~
11497       test -d \$dldir || mkdir -p \$dldir~
11498       $install_prog $dir/$dlname \$dldir/$dlname'
11499     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11500       dlpath=$dir/\$dldll~
11501        $rm \$dlpath'
11502     shlibpath_overrides_runpath=yes
11503
11504     case $host_os in
11505     cygwin*)
11506       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11507       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11508       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11509       ;;
11510     mingw*)
11511       # MinGW DLLs use traditional 'lib' prefix
11512       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11513       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11514       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11515         # It is most probably a Windows format PATH printed by
11516         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11517         # path with ; separators, and with drive letters. We can handle the
11518         # drive letters (cygwin fileutils understands them), so leave them,
11519         # especially as we might pass files found there to a mingw objdump,
11520         # which wouldn't understand a cygwinified path. Ahh.
11521         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11522       else
11523         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11524       fi
11525       ;;
11526     pw32*)
11527       # pw32 DLLs use 'pw' prefix rather than 'lib'
11528       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11529       ;;
11530     esac
11531     ;;
11532
11533   *)
11534     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11535     ;;
11536   esac
11537   dynamic_linker='Win32 ld.exe'
11538   # FIXME: first we should search . and the directory the executable is in
11539   shlibpath_var=PATH
11540   ;;
11541
11542 darwin* | rhapsody*)
11543   dynamic_linker="$host_os dyld"
11544   version_type=darwin
11545   need_lib_prefix=no
11546   need_version=no
11547   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11548   soname_spec='${libname}${release}${major}$shared_ext'
11549   shlibpath_overrides_runpath=yes
11550   shlibpath_var=DYLD_LIBRARY_PATH
11551   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11552   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11553   if test "$GCC" = yes; then
11554     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"`
11555   else
11556     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11557   fi
11558   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11559   ;;
11560
11561 dgux*)
11562   version_type=linux
11563   need_lib_prefix=no
11564   need_version=no
11565   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11566   soname_spec='${libname}${release}${shared_ext}$major'
11567   shlibpath_var=LD_LIBRARY_PATH
11568   ;;
11569
11570 freebsd1*)
11571   dynamic_linker=no
11572   ;;
11573
11574 kfreebsd*-gnu)
11575   version_type=linux
11576   need_lib_prefix=no
11577   need_version=no
11578   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11579   soname_spec='${libname}${release}${shared_ext}$major'
11580   shlibpath_var=LD_LIBRARY_PATH
11581   shlibpath_overrides_runpath=no
11582   hardcode_into_libs=yes
11583   dynamic_linker='GNU ld.so'
11584   ;;
11585
11586 freebsd*)
11587   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11588   version_type=freebsd-$objformat
11589   case $version_type in
11590     freebsd-elf*)
11591       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11592       need_version=no
11593       need_lib_prefix=no
11594       ;;
11595     freebsd-*)
11596       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11597       need_version=yes
11598       ;;
11599   esac
11600   shlibpath_var=LD_LIBRARY_PATH
11601   case $host_os in
11602   freebsd2*)
11603     shlibpath_overrides_runpath=yes
11604     ;;
11605   freebsd3.01* | freebsdelf3.01*)
11606     shlibpath_overrides_runpath=yes
11607     hardcode_into_libs=yes
11608     ;;
11609   *) # from 3.2 on
11610     shlibpath_overrides_runpath=no
11611     hardcode_into_libs=yes
11612     ;;
11613   esac
11614   ;;
11615
11616 gnu*)
11617   version_type=linux
11618   need_lib_prefix=no
11619   need_version=no
11620   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11621   soname_spec='${libname}${release}${shared_ext}$major'
11622   shlibpath_var=LD_LIBRARY_PATH
11623   hardcode_into_libs=yes
11624   ;;
11625
11626 hpux9* | hpux10* | hpux11*)
11627   # Give a soname corresponding to the major version so that dld.sl refuses to
11628   # link against other versions.
11629   version_type=sunos
11630   need_lib_prefix=no
11631   need_version=no
11632   case "$host_cpu" in
11633   ia64*)
11634     shrext='.so'
11635     hardcode_into_libs=yes
11636     dynamic_linker="$host_os dld.so"
11637     shlibpath_var=LD_LIBRARY_PATH
11638     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11639     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11640     soname_spec='${libname}${release}${shared_ext}$major'
11641     if test "X$HPUX_IA64_MODE" = X32; then
11642       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11643     else
11644       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11645     fi
11646     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11647     ;;
11648    hppa*64*)
11649      shrext='.sl'
11650      hardcode_into_libs=yes
11651      dynamic_linker="$host_os dld.sl"
11652      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11653      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11657      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11658      ;;
11659    *)
11660     shrext='.sl'
11661     dynamic_linker="$host_os dld.sl"
11662     shlibpath_var=SHLIB_PATH
11663     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11664     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11665     soname_spec='${libname}${release}${shared_ext}$major'
11666     ;;
11667   esac
11668   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11669   postinstall_cmds='chmod 555 $lib'
11670   ;;
11671
11672 irix5* | irix6* | nonstopux*)
11673   case $host_os in
11674     nonstopux*) version_type=nonstopux ;;
11675     *)
11676         if test "$lt_cv_prog_gnu_ld" = yes; then
11677                 version_type=linux
11678         else
11679                 version_type=irix
11680         fi ;;
11681   esac
11682   need_lib_prefix=no
11683   need_version=no
11684   soname_spec='${libname}${release}${shared_ext}$major'
11685   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11686   case $host_os in
11687   irix5* | nonstopux*)
11688     libsuff= shlibsuff=
11689     ;;
11690   *)
11691     case $LD in # libtool.m4 will add one of these switches to LD
11692     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11693       libsuff= shlibsuff= libmagic=32-bit;;
11694     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11695       libsuff=32 shlibsuff=N32 libmagic=N32;;
11696     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11697       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11698     *) libsuff= shlibsuff= libmagic=never-match;;
11699     esac
11700     ;;
11701   esac
11702   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11703   shlibpath_overrides_runpath=no
11704   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11705   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11706   hardcode_into_libs=yes
11707   ;;
11708
11709 # No shared lib support for Linux oldld, aout, or coff.
11710 linux*oldld* | linux*aout* | linux*coff*)
11711   dynamic_linker=no
11712   ;;
11713
11714 # This must be Linux ELF.
11715 linux*)
11716   version_type=linux
11717   need_lib_prefix=no
11718   need_version=no
11719   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11720   soname_spec='${libname}${release}${shared_ext}$major'
11721   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11722   shlibpath_var=LD_LIBRARY_PATH
11723   shlibpath_overrides_runpath=no
11724   # This implies no fast_install, which is unacceptable.
11725   # Some rework will be needed to allow for fast_install
11726   # before this can be enabled.
11727   hardcode_into_libs=yes
11728
11729   # We used to test for /lib/ld.so.1 and disable shared libraries on
11730   # powerpc, because MkLinux only supported shared libraries with the
11731   # GNU dynamic linker.  Since this was broken with cross compilers,
11732   # most powerpc-linux boxes support dynamic linking these days and
11733   # people can always --disable-shared, the test was removed, and we
11734   # assume the GNU/Linux dynamic linker is in use.
11735   dynamic_linker='GNU/Linux ld.so'
11736   ;;
11737
11738 netbsd*)
11739   version_type=sunos
11740   need_lib_prefix=no
11741   need_version=no
11742   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11743     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11744     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11745     dynamic_linker='NetBSD (a.out) ld.so'
11746   else
11747     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11748     soname_spec='${libname}${release}${shared_ext}$major'
11749     dynamic_linker='NetBSD ld.elf_so'
11750   fi
11751   shlibpath_var=LD_LIBRARY_PATH
11752   shlibpath_overrides_runpath=yes
11753   hardcode_into_libs=yes
11754   ;;
11755
11756 newsos6)
11757   version_type=linux
11758   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11759   shlibpath_var=LD_LIBRARY_PATH
11760   shlibpath_overrides_runpath=yes
11761   ;;
11762
11763 nto-qnx*)
11764   version_type=linux
11765   need_lib_prefix=no
11766   need_version=no
11767   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11768   soname_spec='${libname}${release}${shared_ext}$major'
11769   shlibpath_var=LD_LIBRARY_PATH
11770   shlibpath_overrides_runpath=yes
11771   ;;
11772
11773 openbsd*)
11774   version_type=sunos
11775   need_lib_prefix=no
11776   need_version=no
11777   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11778   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11779   shlibpath_var=LD_LIBRARY_PATH
11780   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11781     case $host_os in
11782       openbsd2.[89] | openbsd2.[89].*)
11783         shlibpath_overrides_runpath=no
11784         ;;
11785       *)
11786         shlibpath_overrides_runpath=yes
11787         ;;
11788       esac
11789   else
11790     shlibpath_overrides_runpath=yes
11791   fi
11792   ;;
11793
11794 os2*)
11795   libname_spec='$name'
11796   shrext=".dll"
11797   need_lib_prefix=no
11798   library_names_spec='$libname${shared_ext} $libname.a'
11799   dynamic_linker='OS/2 ld.exe'
11800   shlibpath_var=LIBPATH
11801   ;;
11802
11803 osf3* | osf4* | osf5*)
11804   version_type=osf
11805   need_lib_prefix=no
11806   need_version=no
11807   soname_spec='${libname}${release}${shared_ext}$major'
11808   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11809   shlibpath_var=LD_LIBRARY_PATH
11810   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11811   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11812   ;;
11813
11814 sco3.2v5*)
11815   version_type=osf
11816   soname_spec='${libname}${release}${shared_ext}$major'
11817   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11818   shlibpath_var=LD_LIBRARY_PATH
11819   ;;
11820
11821 solaris*)
11822   version_type=linux
11823   need_lib_prefix=no
11824   need_version=no
11825   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11826   soname_spec='${libname}${release}${shared_ext}$major'
11827   shlibpath_var=LD_LIBRARY_PATH
11828   shlibpath_overrides_runpath=yes
11829   hardcode_into_libs=yes
11830   # ldd complains unless libraries are executable
11831   postinstall_cmds='chmod +x $lib'
11832   ;;
11833
11834 sunos4*)
11835   version_type=sunos
11836   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11837   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11838   shlibpath_var=LD_LIBRARY_PATH
11839   shlibpath_overrides_runpath=yes
11840   if test "$with_gnu_ld" = yes; then
11841     need_lib_prefix=no
11842   fi
11843   need_version=yes
11844   ;;
11845
11846 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11847   version_type=linux
11848   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11849   soname_spec='${libname}${release}${shared_ext}$major'
11850   shlibpath_var=LD_LIBRARY_PATH
11851   case $host_vendor in
11852     sni)
11853       shlibpath_overrides_runpath=no
11854       need_lib_prefix=no
11855       export_dynamic_flag_spec='${wl}-Blargedynsym'
11856       runpath_var=LD_RUN_PATH
11857       ;;
11858     siemens)
11859       need_lib_prefix=no
11860       ;;
11861     motorola)
11862       need_lib_prefix=no
11863       need_version=no
11864       shlibpath_overrides_runpath=no
11865       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11866       ;;
11867   esac
11868   ;;
11869
11870 sysv4*MP*)
11871   if test -d /usr/nec ;then
11872     version_type=linux
11873     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11874     soname_spec='$libname${shared_ext}.$major'
11875     shlibpath_var=LD_LIBRARY_PATH
11876   fi
11877   ;;
11878
11879 uts4*)
11880   version_type=linux
11881   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11882   soname_spec='${libname}${release}${shared_ext}$major'
11883   shlibpath_var=LD_LIBRARY_PATH
11884   ;;
11885
11886 *)
11887   dynamic_linker=no
11888   ;;
11889 esac
11890 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11891 $as_echo "$dynamic_linker" >&6; }
11892 test "$dynamic_linker" = no && can_build_shared=no
11893
11894 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11895 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11896 hardcode_action_CXX=
11897 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11898    test -n "$runpath_var CXX" || \
11899    test "X$hardcode_automatic_CXX"="Xyes" ; then
11900
11901   # We can hardcode non-existant directories.
11902   if test "$hardcode_direct_CXX" != no &&
11903      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11904      # have to relink, otherwise we might link with an installed library
11905      # when we should be linking with a yet-to-be-installed one
11906      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11907      test "$hardcode_minus_L_CXX" != no; then
11908     # Linking always hardcodes the temporary library directory.
11909     hardcode_action_CXX=relink
11910   else
11911     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11912     hardcode_action_CXX=immediate
11913   fi
11914 else
11915   # We cannot hardcode anything, or else we can only hardcode existing
11916   # directories.
11917   hardcode_action_CXX=unsupported
11918 fi
11919 { $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11920 $as_echo "$hardcode_action_CXX" >&6; }
11921
11922 if test "$hardcode_action_CXX" = relink; then
11923   # Fast installation is not supported
11924   enable_fast_install=no
11925 elif test "$shlibpath_overrides_runpath" = yes ||
11926      test "$enable_shared" = no; then
11927   # Fast installation is not necessary
11928   enable_fast_install=needless
11929 fi
11930
11931 striplib=
11932 old_striplib=
11933 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11934 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11935 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11936   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11937   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11938   { $as_echo "$as_me:$LINENO: result: yes" >&5
11939 $as_echo "yes" >&6; }
11940 else
11941 # FIXME - insert some real tests, host_os isn't really good enough
11942   case $host_os in
11943    darwin*)
11944        if test -n "$STRIP" ; then
11945          striplib="$STRIP -x"
11946          { $as_echo "$as_me:$LINENO: result: yes" >&5
11947 $as_echo "yes" >&6; }
11948        else
11949   { $as_echo "$as_me:$LINENO: result: no" >&5
11950 $as_echo "no" >&6; }
11951 fi
11952        ;;
11953    *)
11954   { $as_echo "$as_me:$LINENO: result: no" >&5
11955 $as_echo "no" >&6; }
11956     ;;
11957   esac
11958 fi
11959
11960 if test "x$enable_dlopen" != xyes; then
11961   enable_dlopen=unknown
11962   enable_dlopen_self=unknown
11963   enable_dlopen_self_static=unknown
11964 else
11965   lt_cv_dlopen=no
11966   lt_cv_dlopen_libs=
11967
11968   case $host_os in
11969   beos*)
11970     lt_cv_dlopen="load_add_on"
11971     lt_cv_dlopen_libs=
11972     lt_cv_dlopen_self=yes
11973     ;;
11974
11975   mingw* | pw32*)
11976     lt_cv_dlopen="LoadLibrary"
11977     lt_cv_dlopen_libs=
11978    ;;
11979
11980   cygwin*)
11981     lt_cv_dlopen="dlopen"
11982     lt_cv_dlopen_libs=
11983    ;;
11984
11985   darwin*)
11986   # if libdl is installed we need to link against it
11987     { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11988 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11989 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11990   $as_echo_n "(cached) " >&6
11991 else
11992   ac_check_lib_save_LIBS=$LIBS
11993 LIBS="-ldl  $LIBS"
11994 cat >conftest.$ac_ext <<_ACEOF
11995 /* confdefs.h.  */
11996 _ACEOF
11997 cat confdefs.h >>conftest.$ac_ext
11998 cat >>conftest.$ac_ext <<_ACEOF
11999 /* end confdefs.h.  */
12000
12001 /* Override any GCC internal prototype to avoid an error.
12002    Use char because int might match the return type of a GCC
12003    builtin and then its argument prototype would still apply.  */
12004 #ifdef __cplusplus
12005 extern "C"
12006 #endif
12007 char dlopen ();
12008 int
12009 main ()
12010 {
12011 return dlopen ();
12012   ;
12013   return 0;
12014 }
12015 _ACEOF
12016 rm -f conftest.$ac_objext conftest$ac_exeext
12017 if { (ac_try="$ac_link"
12018 case "(($ac_try" in
12019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12020   *) ac_try_echo=$ac_try;;
12021 esac
12022 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12023 $as_echo "$ac_try_echo") >&5
12024   (eval "$ac_link") 2>conftest.er1
12025   ac_status=$?
12026   grep -v '^ *+' conftest.er1 >conftest.err
12027   rm -f conftest.er1
12028   cat conftest.err >&5
12029   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12030   (exit $ac_status); } && {
12031          test -z "$ac_cxx_werror_flag" ||
12032          test ! -s conftest.err
12033        } && test -s conftest$ac_exeext && {
12034          test "$cross_compiling" = yes ||
12035          $as_test_x conftest$ac_exeext
12036        }; then
12037   ac_cv_lib_dl_dlopen=yes
12038 else
12039   $as_echo "$as_me: failed program was:" >&5
12040 sed 's/^/| /' conftest.$ac_ext >&5
12041
12042         ac_cv_lib_dl_dlopen=no
12043 fi
12044
12045 rm -rf conftest.dSYM
12046 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12047       conftest$ac_exeext conftest.$ac_ext
12048 LIBS=$ac_check_lib_save_LIBS
12049 fi
12050 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12051 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12052 if test $ac_cv_lib_dl_dlopen = yes; then
12053   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12054 else
12055
12056     lt_cv_dlopen="dyld"
12057     lt_cv_dlopen_libs=
12058     lt_cv_dlopen_self=yes
12059
12060 fi
12061
12062    ;;
12063
12064   *)
12065     { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
12066 $as_echo_n "checking for shl_load... " >&6; }
12067 if test "${ac_cv_func_shl_load+set}" = set; then
12068   $as_echo_n "(cached) " >&6
12069 else
12070   cat >conftest.$ac_ext <<_ACEOF
12071 /* confdefs.h.  */
12072 _ACEOF
12073 cat confdefs.h >>conftest.$ac_ext
12074 cat >>conftest.$ac_ext <<_ACEOF
12075 /* end confdefs.h.  */
12076 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12077    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12078 #define shl_load innocuous_shl_load
12079
12080 /* System header to define __stub macros and hopefully few prototypes,
12081     which can conflict with char shl_load (); below.
12082     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12083     <limits.h> exists even on freestanding compilers.  */
12084
12085 #ifdef __STDC__
12086 # include <limits.h>
12087 #else
12088 # include <assert.h>
12089 #endif
12090
12091 #undef shl_load
12092
12093 /* Override any GCC internal prototype to avoid an error.
12094    Use char because int might match the return type of a GCC
12095    builtin and then its argument prototype would still apply.  */
12096 #ifdef __cplusplus
12097 extern "C"
12098 #endif
12099 char shl_load ();
12100 /* The GNU C library defines this for functions which it implements
12101     to always fail with ENOSYS.  Some functions are actually named
12102     something starting with __ and the normal name is an alias.  */
12103 #if defined __stub_shl_load || defined __stub___shl_load
12104 choke me
12105 #endif
12106
12107 int
12108 main ()
12109 {
12110 return shl_load ();
12111   ;
12112   return 0;
12113 }
12114 _ACEOF
12115 rm -f conftest.$ac_objext conftest$ac_exeext
12116 if { (ac_try="$ac_link"
12117 case "(($ac_try" in
12118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12119   *) ac_try_echo=$ac_try;;
12120 esac
12121 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12122 $as_echo "$ac_try_echo") >&5
12123   (eval "$ac_link") 2>conftest.er1
12124   ac_status=$?
12125   grep -v '^ *+' conftest.er1 >conftest.err
12126   rm -f conftest.er1
12127   cat conftest.err >&5
12128   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12129   (exit $ac_status); } && {
12130          test -z "$ac_cxx_werror_flag" ||
12131          test ! -s conftest.err
12132        } && test -s conftest$ac_exeext && {
12133          test "$cross_compiling" = yes ||
12134          $as_test_x conftest$ac_exeext
12135        }; then
12136   ac_cv_func_shl_load=yes
12137 else
12138   $as_echo "$as_me: failed program was:" >&5
12139 sed 's/^/| /' conftest.$ac_ext >&5
12140
12141         ac_cv_func_shl_load=no
12142 fi
12143
12144 rm -rf conftest.dSYM
12145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12146       conftest$ac_exeext conftest.$ac_ext
12147 fi
12148 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12149 $as_echo "$ac_cv_func_shl_load" >&6; }
12150 if test $ac_cv_func_shl_load = yes; then
12151   lt_cv_dlopen="shl_load"
12152 else
12153   { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12154 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12155 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12156   $as_echo_n "(cached) " >&6
12157 else
12158   ac_check_lib_save_LIBS=$LIBS
12159 LIBS="-ldld  $LIBS"
12160 cat >conftest.$ac_ext <<_ACEOF
12161 /* confdefs.h.  */
12162 _ACEOF
12163 cat confdefs.h >>conftest.$ac_ext
12164 cat >>conftest.$ac_ext <<_ACEOF
12165 /* end confdefs.h.  */
12166
12167 /* Override any GCC internal prototype to avoid an error.
12168    Use char because int might match the return type of a GCC
12169    builtin and then its argument prototype would still apply.  */
12170 #ifdef __cplusplus
12171 extern "C"
12172 #endif
12173 char shl_load ();
12174 int
12175 main ()
12176 {
12177 return shl_load ();
12178   ;
12179   return 0;
12180 }
12181 _ACEOF
12182 rm -f conftest.$ac_objext conftest$ac_exeext
12183 if { (ac_try="$ac_link"
12184 case "(($ac_try" in
12185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12186   *) ac_try_echo=$ac_try;;
12187 esac
12188 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12189 $as_echo "$ac_try_echo") >&5
12190   (eval "$ac_link") 2>conftest.er1
12191   ac_status=$?
12192   grep -v '^ *+' conftest.er1 >conftest.err
12193   rm -f conftest.er1
12194   cat conftest.err >&5
12195   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12196   (exit $ac_status); } && {
12197          test -z "$ac_cxx_werror_flag" ||
12198          test ! -s conftest.err
12199        } && test -s conftest$ac_exeext && {
12200          test "$cross_compiling" = yes ||
12201          $as_test_x conftest$ac_exeext
12202        }; then
12203   ac_cv_lib_dld_shl_load=yes
12204 else
12205   $as_echo "$as_me: failed program was:" >&5
12206 sed 's/^/| /' conftest.$ac_ext >&5
12207
12208         ac_cv_lib_dld_shl_load=no
12209 fi
12210
12211 rm -rf conftest.dSYM
12212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12213       conftest$ac_exeext conftest.$ac_ext
12214 LIBS=$ac_check_lib_save_LIBS
12215 fi
12216 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12217 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12218 if test $ac_cv_lib_dld_shl_load = yes; then
12219   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12220 else
12221   { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
12222 $as_echo_n "checking for dlopen... " >&6; }
12223 if test "${ac_cv_func_dlopen+set}" = set; then
12224   $as_echo_n "(cached) " >&6
12225 else
12226   cat >conftest.$ac_ext <<_ACEOF
12227 /* confdefs.h.  */
12228 _ACEOF
12229 cat confdefs.h >>conftest.$ac_ext
12230 cat >>conftest.$ac_ext <<_ACEOF
12231 /* end confdefs.h.  */
12232 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12233    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12234 #define dlopen innocuous_dlopen
12235
12236 /* System header to define __stub macros and hopefully few prototypes,
12237     which can conflict with char dlopen (); below.
12238     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12239     <limits.h> exists even on freestanding compilers.  */
12240
12241 #ifdef __STDC__
12242 # include <limits.h>
12243 #else
12244 # include <assert.h>
12245 #endif
12246
12247 #undef dlopen
12248
12249 /* Override any GCC internal prototype to avoid an error.
12250    Use char because int might match the return type of a GCC
12251    builtin and then its argument prototype would still apply.  */
12252 #ifdef __cplusplus
12253 extern "C"
12254 #endif
12255 char dlopen ();
12256 /* The GNU C library defines this for functions which it implements
12257     to always fail with ENOSYS.  Some functions are actually named
12258     something starting with __ and the normal name is an alias.  */
12259 #if defined __stub_dlopen || defined __stub___dlopen
12260 choke me
12261 #endif
12262
12263 int
12264 main ()
12265 {
12266 return dlopen ();
12267   ;
12268   return 0;
12269 }
12270 _ACEOF
12271 rm -f conftest.$ac_objext conftest$ac_exeext
12272 if { (ac_try="$ac_link"
12273 case "(($ac_try" in
12274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12275   *) ac_try_echo=$ac_try;;
12276 esac
12277 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12278 $as_echo "$ac_try_echo") >&5
12279   (eval "$ac_link") 2>conftest.er1
12280   ac_status=$?
12281   grep -v '^ *+' conftest.er1 >conftest.err
12282   rm -f conftest.er1
12283   cat conftest.err >&5
12284   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12285   (exit $ac_status); } && {
12286          test -z "$ac_cxx_werror_flag" ||
12287          test ! -s conftest.err
12288        } && test -s conftest$ac_exeext && {
12289          test "$cross_compiling" = yes ||
12290          $as_test_x conftest$ac_exeext
12291        }; then
12292   ac_cv_func_dlopen=yes
12293 else
12294   $as_echo "$as_me: failed program was:" >&5
12295 sed 's/^/| /' conftest.$ac_ext >&5
12296
12297         ac_cv_func_dlopen=no
12298 fi
12299
12300 rm -rf conftest.dSYM
12301 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12302       conftest$ac_exeext conftest.$ac_ext
12303 fi
12304 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12305 $as_echo "$ac_cv_func_dlopen" >&6; }
12306 if test $ac_cv_func_dlopen = yes; then
12307   lt_cv_dlopen="dlopen"
12308 else
12309   { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12310 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12311 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12312   $as_echo_n "(cached) " >&6
12313 else
12314   ac_check_lib_save_LIBS=$LIBS
12315 LIBS="-ldl  $LIBS"
12316 cat >conftest.$ac_ext <<_ACEOF
12317 /* confdefs.h.  */
12318 _ACEOF
12319 cat confdefs.h >>conftest.$ac_ext
12320 cat >>conftest.$ac_ext <<_ACEOF
12321 /* end confdefs.h.  */
12322
12323 /* Override any GCC internal prototype to avoid an error.
12324    Use char because int might match the return type of a GCC
12325    builtin and then its argument prototype would still apply.  */
12326 #ifdef __cplusplus
12327 extern "C"
12328 #endif
12329 char dlopen ();
12330 int
12331 main ()
12332 {
12333 return dlopen ();
12334   ;
12335   return 0;
12336 }
12337 _ACEOF
12338 rm -f conftest.$ac_objext conftest$ac_exeext
12339 if { (ac_try="$ac_link"
12340 case "(($ac_try" in
12341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12342   *) ac_try_echo=$ac_try;;
12343 esac
12344 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12345 $as_echo "$ac_try_echo") >&5
12346   (eval "$ac_link") 2>conftest.er1
12347   ac_status=$?
12348   grep -v '^ *+' conftest.er1 >conftest.err
12349   rm -f conftest.er1
12350   cat conftest.err >&5
12351   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12352   (exit $ac_status); } && {
12353          test -z "$ac_cxx_werror_flag" ||
12354          test ! -s conftest.err
12355        } && test -s conftest$ac_exeext && {
12356          test "$cross_compiling" = yes ||
12357          $as_test_x conftest$ac_exeext
12358        }; then
12359   ac_cv_lib_dl_dlopen=yes
12360 else
12361   $as_echo "$as_me: failed program was:" >&5
12362 sed 's/^/| /' conftest.$ac_ext >&5
12363
12364         ac_cv_lib_dl_dlopen=no
12365 fi
12366
12367 rm -rf conftest.dSYM
12368 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12369       conftest$ac_exeext conftest.$ac_ext
12370 LIBS=$ac_check_lib_save_LIBS
12371 fi
12372 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12373 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12374 if test $ac_cv_lib_dl_dlopen = yes; then
12375   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12376 else
12377   { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12378 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12379 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12380   $as_echo_n "(cached) " >&6
12381 else
12382   ac_check_lib_save_LIBS=$LIBS
12383 LIBS="-lsvld  $LIBS"
12384 cat >conftest.$ac_ext <<_ACEOF
12385 /* confdefs.h.  */
12386 _ACEOF
12387 cat confdefs.h >>conftest.$ac_ext
12388 cat >>conftest.$ac_ext <<_ACEOF
12389 /* end confdefs.h.  */
12390
12391 /* Override any GCC internal prototype to avoid an error.
12392    Use char because int might match the return type of a GCC
12393    builtin and then its argument prototype would still apply.  */
12394 #ifdef __cplusplus
12395 extern "C"
12396 #endif
12397 char dlopen ();
12398 int
12399 main ()
12400 {
12401 return dlopen ();
12402   ;
12403   return 0;
12404 }
12405 _ACEOF
12406 rm -f conftest.$ac_objext conftest$ac_exeext
12407 if { (ac_try="$ac_link"
12408 case "(($ac_try" in
12409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12410   *) ac_try_echo=$ac_try;;
12411 esac
12412 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12413 $as_echo "$ac_try_echo") >&5
12414   (eval "$ac_link") 2>conftest.er1
12415   ac_status=$?
12416   grep -v '^ *+' conftest.er1 >conftest.err
12417   rm -f conftest.er1
12418   cat conftest.err >&5
12419   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12420   (exit $ac_status); } && {
12421          test -z "$ac_cxx_werror_flag" ||
12422          test ! -s conftest.err
12423        } && test -s conftest$ac_exeext && {
12424          test "$cross_compiling" = yes ||
12425          $as_test_x conftest$ac_exeext
12426        }; then
12427   ac_cv_lib_svld_dlopen=yes
12428 else
12429   $as_echo "$as_me: failed program was:" >&5
12430 sed 's/^/| /' conftest.$ac_ext >&5
12431
12432         ac_cv_lib_svld_dlopen=no
12433 fi
12434
12435 rm -rf conftest.dSYM
12436 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12437       conftest$ac_exeext conftest.$ac_ext
12438 LIBS=$ac_check_lib_save_LIBS
12439 fi
12440 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12441 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12442 if test $ac_cv_lib_svld_dlopen = yes; then
12443   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12444 else
12445   { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12446 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12447 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12448   $as_echo_n "(cached) " >&6
12449 else
12450   ac_check_lib_save_LIBS=$LIBS
12451 LIBS="-ldld  $LIBS"
12452 cat >conftest.$ac_ext <<_ACEOF
12453 /* confdefs.h.  */
12454 _ACEOF
12455 cat confdefs.h >>conftest.$ac_ext
12456 cat >>conftest.$ac_ext <<_ACEOF
12457 /* end confdefs.h.  */
12458
12459 /* Override any GCC internal prototype to avoid an error.
12460    Use char because int might match the return type of a GCC
12461    builtin and then its argument prototype would still apply.  */
12462 #ifdef __cplusplus
12463 extern "C"
12464 #endif
12465 char dld_link ();
12466 int
12467 main ()
12468 {
12469 return dld_link ();
12470   ;
12471   return 0;
12472 }
12473 _ACEOF
12474 rm -f conftest.$ac_objext conftest$ac_exeext
12475 if { (ac_try="$ac_link"
12476 case "(($ac_try" in
12477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12478   *) ac_try_echo=$ac_try;;
12479 esac
12480 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12481 $as_echo "$ac_try_echo") >&5
12482   (eval "$ac_link") 2>conftest.er1
12483   ac_status=$?
12484   grep -v '^ *+' conftest.er1 >conftest.err
12485   rm -f conftest.er1
12486   cat conftest.err >&5
12487   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12488   (exit $ac_status); } && {
12489          test -z "$ac_cxx_werror_flag" ||
12490          test ! -s conftest.err
12491        } && test -s conftest$ac_exeext && {
12492          test "$cross_compiling" = yes ||
12493          $as_test_x conftest$ac_exeext
12494        }; then
12495   ac_cv_lib_dld_dld_link=yes
12496 else
12497   $as_echo "$as_me: failed program was:" >&5
12498 sed 's/^/| /' conftest.$ac_ext >&5
12499
12500         ac_cv_lib_dld_dld_link=no
12501 fi
12502
12503 rm -rf conftest.dSYM
12504 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12505       conftest$ac_exeext conftest.$ac_ext
12506 LIBS=$ac_check_lib_save_LIBS
12507 fi
12508 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12509 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12510 if test $ac_cv_lib_dld_dld_link = yes; then
12511   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12512 fi
12513
12514
12515 fi
12516
12517
12518 fi
12519
12520
12521 fi
12522
12523
12524 fi
12525
12526
12527 fi
12528
12529     ;;
12530   esac
12531
12532   if test "x$lt_cv_dlopen" != xno; then
12533     enable_dlopen=yes
12534   else
12535     enable_dlopen=no
12536   fi
12537
12538   case $lt_cv_dlopen in
12539   dlopen)
12540     save_CPPFLAGS="$CPPFLAGS"
12541     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12542
12543     save_LDFLAGS="$LDFLAGS"
12544     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12545
12546     save_LIBS="$LIBS"
12547     LIBS="$lt_cv_dlopen_libs $LIBS"
12548
12549     { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12550 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12551 if test "${lt_cv_dlopen_self+set}" = set; then
12552   $as_echo_n "(cached) " >&6
12553 else
12554           if test "$cross_compiling" = yes; then :
12555   lt_cv_dlopen_self=cross
12556 else
12557   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12558   lt_status=$lt_dlunknown
12559   cat > conftest.$ac_ext <<EOF
12560 #line 12560 "configure"
12561 #include "confdefs.h"
12562
12563 #if HAVE_DLFCN_H
12564 #include <dlfcn.h>
12565 #endif
12566
12567 #include <stdio.h>
12568
12569 #ifdef RTLD_GLOBAL
12570 #  define LT_DLGLOBAL           RTLD_GLOBAL
12571 #else
12572 #  ifdef DL_GLOBAL
12573 #    define LT_DLGLOBAL         DL_GLOBAL
12574 #  else
12575 #    define LT_DLGLOBAL         0
12576 #  endif
12577 #endif
12578
12579 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12580    find out it does not work in some platform. */
12581 #ifndef LT_DLLAZY_OR_NOW
12582 #  ifdef RTLD_LAZY
12583 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12584 #  else
12585 #    ifdef DL_LAZY
12586 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12587 #    else
12588 #      ifdef RTLD_NOW
12589 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12590 #      else
12591 #        ifdef DL_NOW
12592 #          define LT_DLLAZY_OR_NOW      DL_NOW
12593 #        else
12594 #          define LT_DLLAZY_OR_NOW      0
12595 #        endif
12596 #      endif
12597 #    endif
12598 #  endif
12599 #endif
12600
12601 #ifdef __cplusplus
12602 extern "C" void exit (int);
12603 #endif
12604
12605 void fnord() { int i=42;}
12606 int main ()
12607 {
12608   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12609   int status = $lt_dlunknown;
12610
12611   if (self)
12612     {
12613       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12614       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12615       /* dlclose (self); */
12616     }
12617
12618     exit (status);
12619 }
12620 EOF
12621   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12622   (eval $ac_link) 2>&5
12623   ac_status=$?
12624   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12625   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12626     (./conftest; exit; ) 2>/dev/null
12627     lt_status=$?
12628     case x$lt_status in
12629       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12630       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12631       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12632     esac
12633   else :
12634     # compilation failed
12635     lt_cv_dlopen_self=no
12636   fi
12637 fi
12638 rm -fr conftest*
12639
12640
12641 fi
12642 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12643 $as_echo "$lt_cv_dlopen_self" >&6; }
12644
12645     if test "x$lt_cv_dlopen_self" = xyes; then
12646       LDFLAGS="$LDFLAGS $link_static_flag"
12647       { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12648 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12649 if test "${lt_cv_dlopen_self_static+set}" = set; then
12650   $as_echo_n "(cached) " >&6
12651 else
12652           if test "$cross_compiling" = yes; then :
12653   lt_cv_dlopen_self_static=cross
12654 else
12655   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12656   lt_status=$lt_dlunknown
12657   cat > conftest.$ac_ext <<EOF
12658 #line 12658 "configure"
12659 #include "confdefs.h"
12660
12661 #if HAVE_DLFCN_H
12662 #include <dlfcn.h>
12663 #endif
12664
12665 #include <stdio.h>
12666
12667 #ifdef RTLD_GLOBAL
12668 #  define LT_DLGLOBAL           RTLD_GLOBAL
12669 #else
12670 #  ifdef DL_GLOBAL
12671 #    define LT_DLGLOBAL         DL_GLOBAL
12672 #  else
12673 #    define LT_DLGLOBAL         0
12674 #  endif
12675 #endif
12676
12677 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12678    find out it does not work in some platform. */
12679 #ifndef LT_DLLAZY_OR_NOW
12680 #  ifdef RTLD_LAZY
12681 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12682 #  else
12683 #    ifdef DL_LAZY
12684 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12685 #    else
12686 #      ifdef RTLD_NOW
12687 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12688 #      else
12689 #        ifdef DL_NOW
12690 #          define LT_DLLAZY_OR_NOW      DL_NOW
12691 #        else
12692 #          define LT_DLLAZY_OR_NOW      0
12693 #        endif
12694 #      endif
12695 #    endif
12696 #  endif
12697 #endif
12698
12699 #ifdef __cplusplus
12700 extern "C" void exit (int);
12701 #endif
12702
12703 void fnord() { int i=42;}
12704 int main ()
12705 {
12706   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12707   int status = $lt_dlunknown;
12708
12709   if (self)
12710     {
12711       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12712       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12713       /* dlclose (self); */
12714     }
12715
12716     exit (status);
12717 }
12718 EOF
12719   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12720   (eval $ac_link) 2>&5
12721   ac_status=$?
12722   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12723   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12724     (./conftest; exit; ) 2>/dev/null
12725     lt_status=$?
12726     case x$lt_status in
12727       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12728       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12729       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12730     esac
12731   else :
12732     # compilation failed
12733     lt_cv_dlopen_self_static=no
12734   fi
12735 fi
12736 rm -fr conftest*
12737
12738
12739 fi
12740 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12741 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12742     fi
12743
12744     CPPFLAGS="$save_CPPFLAGS"
12745     LDFLAGS="$save_LDFLAGS"
12746     LIBS="$save_LIBS"
12747     ;;
12748   esac
12749
12750   case $lt_cv_dlopen_self in
12751   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12752   *) enable_dlopen_self=unknown ;;
12753   esac
12754
12755   case $lt_cv_dlopen_self_static in
12756   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12757   *) enable_dlopen_self_static=unknown ;;
12758   esac
12759 fi
12760
12761
12762 # The else clause should only fire when bootstrapping the
12763 # libtool distribution, otherwise you forgot to ship ltmain.sh
12764 # with your package, and you will get complaints that there are
12765 # no rules to generate ltmain.sh.
12766 if test -f "$ltmain"; then
12767   # See if we are running on zsh, and set the options which allow our commands through
12768   # without removal of \ escapes.
12769   if test -n "${ZSH_VERSION+set}" ; then
12770     setopt NO_GLOB_SUBST
12771   fi
12772   # Now quote all the things that may contain metacharacters while being
12773   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12774   # variables and quote the copies for generation of the libtool script.
12775   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12776     SED SHELL STRIP \
12777     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12778     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12779     deplibs_check_method reload_flag reload_cmds need_locks \
12780     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12781     lt_cv_sys_global_symbol_to_c_name_address \
12782     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12783     old_postinstall_cmds old_postuninstall_cmds \
12784     compiler_CXX \
12785     CC_CXX \
12786     LD_CXX \
12787     lt_prog_compiler_wl_CXX \
12788     lt_prog_compiler_pic_CXX \
12789     lt_prog_compiler_static_CXX \
12790     lt_prog_compiler_no_builtin_flag_CXX \
12791     export_dynamic_flag_spec_CXX \
12792     thread_safe_flag_spec_CXX \
12793     whole_archive_flag_spec_CXX \
12794     enable_shared_with_static_runtimes_CXX \
12795     old_archive_cmds_CXX \
12796     old_archive_from_new_cmds_CXX \
12797     predep_objects_CXX \
12798     postdep_objects_CXX \
12799     predeps_CXX \
12800     postdeps_CXX \
12801     compiler_lib_search_path_CXX \
12802     archive_cmds_CXX \
12803     archive_expsym_cmds_CXX \
12804     postinstall_cmds_CXX \
12805     postuninstall_cmds_CXX \
12806     old_archive_from_expsyms_cmds_CXX \
12807     allow_undefined_flag_CXX \
12808     no_undefined_flag_CXX \
12809     export_symbols_cmds_CXX \
12810     hardcode_libdir_flag_spec_CXX \
12811     hardcode_libdir_flag_spec_ld_CXX \
12812     hardcode_libdir_separator_CXX \
12813     hardcode_automatic_CXX \
12814     module_cmds_CXX \
12815     module_expsym_cmds_CXX \
12816     lt_cv_prog_compiler_c_o_CXX \
12817     exclude_expsyms_CXX \
12818     include_expsyms_CXX; do
12819
12820     case $var in
12821     old_archive_cmds_CXX | \
12822     old_archive_from_new_cmds_CXX | \
12823     archive_cmds_CXX | \
12824     archive_expsym_cmds_CXX | \
12825     module_cmds_CXX | \
12826     module_expsym_cmds_CXX | \
12827     old_archive_from_expsyms_cmds_CXX | \
12828     export_symbols_cmds_CXX | \
12829     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12830     postinstall_cmds | postuninstall_cmds | \
12831     old_postinstall_cmds | old_postuninstall_cmds | \
12832     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12833       # Double-quote double-evaled strings.
12834       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12835       ;;
12836     *)
12837       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12838       ;;
12839     esac
12840   done
12841
12842   case $lt_echo in
12843   *'\$0 --fallback-echo"')
12844     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12845     ;;
12846   esac
12847
12848 cfgfile="$ofile"
12849
12850   cat <<__EOF__ >> "$cfgfile"
12851 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12852
12853 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12854
12855 # Shell to use when invoking shell scripts.
12856 SHELL=$lt_SHELL
12857
12858 # Whether or not to build shared libraries.
12859 build_libtool_libs=$enable_shared
12860
12861 # Whether or not to build static libraries.
12862 build_old_libs=$enable_static
12863
12864 # Whether or not to add -lc for building shared libraries.
12865 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12866
12867 # Whether or not to disallow shared libs when runtime libs are static
12868 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12869
12870 # Whether or not to optimize for fast installation.
12871 fast_install=$enable_fast_install
12872
12873 # The host system.
12874 host_alias=$host_alias
12875 host=$host
12876
12877 # An echo program that does not interpret backslashes.
12878 echo=$lt_echo
12879
12880 # The archiver.
12881 AR=$lt_AR
12882 AR_FLAGS=$lt_AR_FLAGS
12883
12884 # A C compiler.
12885 LTCC=$lt_LTCC
12886
12887 # A language-specific compiler.
12888 CC=$lt_compiler_CXX
12889
12890 # Is the compiler the GNU C compiler?
12891 with_gcc=$GCC_CXX
12892
12893 # An ERE matcher.
12894 EGREP=$lt_EGREP
12895
12896 # The linker used to build libraries.
12897 LD=$lt_LD_CXX
12898
12899 # Whether we need hard or soft links.
12900 LN_S=$lt_LN_S
12901
12902 # A BSD-compatible nm program.
12903 NM=$lt_NM
12904
12905 # A symbol stripping program
12906 STRIP=$lt_STRIP
12907
12908 # Used to examine libraries when file_magic_cmd begins "file"
12909 MAGIC_CMD=$MAGIC_CMD
12910
12911 # Used on cygwin: DLL creation program.
12912 DLLTOOL="$DLLTOOL"
12913
12914 # Used on cygwin: object dumper.
12915 OBJDUMP="$OBJDUMP"
12916
12917 # Used on cygwin: assembler.
12918 AS="$AS"
12919
12920 # The name of the directory that contains temporary libtool files.
12921 objdir=$objdir
12922
12923 # How to create reloadable object files.
12924 reload_flag=$lt_reload_flag
12925 reload_cmds=$lt_reload_cmds
12926
12927 # How to pass a linker flag through the compiler.
12928 wl=$lt_lt_prog_compiler_wl_CXX
12929
12930 # Object file suffix (normally "o").
12931 objext="$ac_objext"
12932
12933 # Old archive suffix (normally "a").
12934 libext="$libext"
12935
12936 # Shared library suffix (normally ".so").
12937 shrext='$shrext'
12938
12939 # Executable file suffix (normally "").
12940 exeext="$exeext"
12941
12942 # Additional compiler flags for building library objects.
12943 pic_flag=$lt_lt_prog_compiler_pic_CXX
12944 pic_mode=$pic_mode
12945
12946 # What is the maximum length of a command?
12947 max_cmd_len=$lt_cv_sys_max_cmd_len
12948
12949 # Does compiler simultaneously support -c and -o options?
12950 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12951
12952 # Must we lock files when doing compilation ?
12953 need_locks=$lt_need_locks
12954
12955 # Do we need the lib prefix for modules?
12956 need_lib_prefix=$need_lib_prefix
12957
12958 # Do we need a version for libraries?
12959 need_version=$need_version
12960
12961 # Whether dlopen is supported.
12962 dlopen_support=$enable_dlopen
12963
12964 # Whether dlopen of programs is supported.
12965 dlopen_self=$enable_dlopen_self
12966
12967 # Whether dlopen of statically linked programs is supported.
12968 dlopen_self_static=$enable_dlopen_self_static
12969
12970 # Compiler flag to prevent dynamic linking.
12971 link_static_flag=$lt_lt_prog_compiler_static_CXX
12972
12973 # Compiler flag to turn off builtin functions.
12974 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12975
12976 # Compiler flag to allow reflexive dlopens.
12977 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12978
12979 # Compiler flag to generate shared objects directly from archives.
12980 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12981
12982 # Compiler flag to generate thread-safe objects.
12983 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12984
12985 # Library versioning type.
12986 version_type=$version_type
12987
12988 # Format of library name prefix.
12989 libname_spec=$lt_libname_spec
12990
12991 # List of archive names.  First name is the real one, the rest are links.
12992 # The last name is the one that the linker finds with -lNAME.
12993 library_names_spec=$lt_library_names_spec
12994
12995 # The coded name of the library, if different from the real name.
12996 soname_spec=$lt_soname_spec
12997
12998 # Commands used to build and install an old-style archive.
12999 RANLIB=$lt_RANLIB
13000 old_archive_cmds=$lt_old_archive_cmds_CXX
13001 old_postinstall_cmds=$lt_old_postinstall_cmds
13002 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13003
13004 # Create an old-style archive from a shared archive.
13005 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13006
13007 # Create a temporary old-style archive to link instead of a shared archive.
13008 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13009
13010 # Commands used to build and install a shared archive.
13011 archive_cmds=$lt_archive_cmds_CXX
13012 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13013 postinstall_cmds=$lt_postinstall_cmds
13014 postuninstall_cmds=$lt_postuninstall_cmds
13015
13016 # Commands used to build a loadable module (assumed same as above if empty)
13017 module_cmds=$lt_module_cmds_CXX
13018 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13019
13020 # Commands to strip libraries.
13021 old_striplib=$lt_old_striplib
13022 striplib=$lt_striplib
13023
13024 # Dependencies to place before the objects being linked to create a
13025 # shared library.
13026 predep_objects=$lt_predep_objects_CXX
13027
13028 # Dependencies to place after the objects being linked to create a
13029 # shared library.
13030 postdep_objects=$lt_postdep_objects_CXX
13031
13032 # Dependencies to place before the objects being linked to create a
13033 # shared library.
13034 predeps=$lt_predeps_CXX
13035
13036 # Dependencies to place after the objects being linked to create a
13037 # shared library.
13038 postdeps=$lt_postdeps_CXX
13039
13040 # The library search path used internally by the compiler when linking
13041 # a shared library.
13042 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13043
13044 # Method to check whether dependent libraries are shared objects.
13045 deplibs_check_method=$lt_deplibs_check_method
13046
13047 # Command to use when deplibs_check_method == file_magic.
13048 file_magic_cmd=$lt_file_magic_cmd
13049
13050 # Flag that allows shared libraries with undefined symbols to be built.
13051 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13052
13053 # Flag that forces no undefined symbols.
13054 no_undefined_flag=$lt_no_undefined_flag_CXX
13055
13056 # Commands used to finish a libtool library installation in a directory.
13057 finish_cmds=$lt_finish_cmds
13058
13059 # Same as above, but a single script fragment to be evaled but not shown.
13060 finish_eval=$lt_finish_eval
13061
13062 # Take the output of nm and produce a listing of raw symbols and C names.
13063 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13064
13065 # Transform the output of nm in a proper C declaration
13066 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13067
13068 # Transform the output of nm in a C name address pair
13069 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13070
13071 # This is the shared library runtime path variable.
13072 runpath_var=$runpath_var
13073
13074 # This is the shared library path variable.
13075 shlibpath_var=$shlibpath_var
13076
13077 # Is shlibpath searched before the hard-coded library search path?
13078 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13079
13080 # How to hardcode a shared library path into an executable.
13081 hardcode_action=$hardcode_action_CXX
13082
13083 # Whether we should hardcode library paths into libraries.
13084 hardcode_into_libs=$hardcode_into_libs
13085
13086 # Flag to hardcode \$libdir into a binary during linking.
13087 # This must work even if \$libdir does not exist.
13088 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13089
13090 # If ld is used when linking, flag to hardcode \$libdir into
13091 # a binary during linking. This must work even if \$libdir does
13092 # not exist.
13093 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13094
13095 # Whether we need a single -rpath flag with a separated argument.
13096 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13097
13098 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13099 # resulting binary.
13100 hardcode_direct=$hardcode_direct_CXX
13101
13102 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13103 # resulting binary.
13104 hardcode_minus_L=$hardcode_minus_L_CXX
13105
13106 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13107 # the resulting binary.
13108 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13109
13110 # Set to yes if building a shared library automatically hardcodes DIR into the library
13111 # and all subsequent libraries and executables linked against it.
13112 hardcode_automatic=$hardcode_automatic_CXX
13113
13114 # Variables whose values should be saved in libtool wrapper scripts and
13115 # restored at relink time.
13116 variables_saved_for_relink="$variables_saved_for_relink"
13117
13118 # Whether libtool must link a program against all its dependency libraries.
13119 link_all_deplibs=$link_all_deplibs_CXX
13120
13121 # Compile-time system search path for libraries
13122 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13123
13124 # Run-time system search path for libraries
13125 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13126
13127 # Fix the shell variable \$srcfile for the compiler.
13128 fix_srcfile_path="$fix_srcfile_path_CXX"
13129
13130 # Set to yes if exported symbols are required.
13131 always_export_symbols=$always_export_symbols_CXX
13132
13133 # The commands to list exported symbols.
13134 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13135
13136 # The commands to extract the exported symbol list from a shared archive.
13137 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13138
13139 # Symbols that should not be listed in the preloaded symbols.
13140 exclude_expsyms=$lt_exclude_expsyms_CXX
13141
13142 # Symbols that must always be exported.
13143 include_expsyms=$lt_include_expsyms_CXX
13144
13145 # ### END LIBTOOL TAG CONFIG: $tagname
13146
13147 __EOF__
13148
13149
13150 else
13151   # If there is no Makefile yet, we rely on a make rule to execute
13152   # `config.status --recheck' to rerun these tests and create the
13153   # libtool script then.
13154   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13155   if test -f "$ltmain_in"; then
13156     test -f Makefile && make "$ltmain"
13157   fi
13158 fi
13159
13160
13161 ac_ext=c
13162 ac_cpp='$CPP $CPPFLAGS'
13163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13165 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13166
13167 CC=$lt_save_CC
13168 LDCXX=$LD
13169 LD=$lt_save_LD
13170 GCC=$lt_save_GCC
13171 with_gnu_ldcxx=$with_gnu_ld
13172 with_gnu_ld=$lt_save_with_gnu_ld
13173 lt_cv_path_LDCXX=$lt_cv_path_LD
13174 lt_cv_path_LD=$lt_save_path_LD
13175 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13176 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13177
13178         else
13179           tagname=""
13180         fi
13181         ;;
13182
13183       F77)
13184         if test -n "$F77" && test "X$F77" != "Xno"; then
13185
13186 ac_ext=f
13187 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13188 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13189 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13190
13191
13192 archive_cmds_need_lc_F77=no
13193 allow_undefined_flag_F77=
13194 always_export_symbols_F77=no
13195 archive_expsym_cmds_F77=
13196 export_dynamic_flag_spec_F77=
13197 hardcode_direct_F77=no
13198 hardcode_libdir_flag_spec_F77=
13199 hardcode_libdir_flag_spec_ld_F77=
13200 hardcode_libdir_separator_F77=
13201 hardcode_minus_L_F77=no
13202 hardcode_automatic_F77=no
13203 module_cmds_F77=
13204 module_expsym_cmds_F77=
13205 link_all_deplibs_F77=unknown
13206 old_archive_cmds_F77=$old_archive_cmds
13207 no_undefined_flag_F77=
13208 whole_archive_flag_spec_F77=
13209 enable_shared_with_static_runtimes_F77=no
13210
13211 # Source file extension for f77 test sources.
13212 ac_ext=f
13213
13214 # Object file extension for compiled f77 test sources.
13215 objext=o
13216 objext_F77=$objext
13217
13218 # Code to be used in simple compile tests
13219 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13220
13221 # Code to be used in simple link tests
13222 lt_simple_link_test_code="      program t\n      end\n"
13223
13224 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13225
13226 # If no C compiler was specified, use CC.
13227 LTCC=${LTCC-"$CC"}
13228
13229 # Allow CC to be a program name with arguments.
13230 compiler=$CC
13231
13232
13233 # Allow CC to be a program name with arguments.
13234 lt_save_CC="$CC"
13235 CC=${F77-"f77"}
13236 compiler=$CC
13237 compiler_F77=$CC
13238 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13239
13240 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13241 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13242 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
13243 $as_echo "$can_build_shared" >&6; }
13244
13245 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13246 $as_echo_n "checking whether to build shared libraries... " >&6; }
13247 test "$can_build_shared" = "no" && enable_shared=no
13248
13249 # On AIX, shared libraries and static libraries use the same namespace, and
13250 # are all built from PIC.
13251 case "$host_os" in
13252 aix3*)
13253   test "$enable_shared" = yes && enable_static=no
13254   if test -n "$RANLIB"; then
13255     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13256     postinstall_cmds='$RANLIB $lib'
13257   fi
13258   ;;
13259 aix4*)
13260   test "$enable_shared" = yes && enable_static=no
13261   ;;
13262 esac
13263 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
13264 $as_echo "$enable_shared" >&6; }
13265
13266 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13267 $as_echo_n "checking whether to build static libraries... " >&6; }
13268 # Make sure either enable_shared or enable_static is yes.
13269 test "$enable_shared" = yes || enable_static=yes
13270 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
13271 $as_echo "$enable_static" >&6; }
13272
13273 test "$ld_shlibs_F77" = no && can_build_shared=no
13274
13275 GCC_F77="$G77"
13276 LD_F77="$LD"
13277
13278 lt_prog_compiler_wl_F77=
13279 lt_prog_compiler_pic_F77=
13280 lt_prog_compiler_static_F77=
13281
13282 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13283 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13284
13285   if test "$GCC" = yes; then
13286     lt_prog_compiler_wl_F77='-Wl,'
13287     lt_prog_compiler_static_F77='-static'
13288
13289     case $host_os in
13290       aix*)
13291       # All AIX code is PIC.
13292       if test "$host_cpu" = ia64; then
13293         # AIX 5 now supports IA64 processor
13294         lt_prog_compiler_static_F77='-Bstatic'
13295       fi
13296       ;;
13297
13298     amigaos*)
13299       # FIXME: we need at least 68020 code to build shared libraries, but
13300       # adding the `-m68020' flag to GCC prevents building anything better,
13301       # like `-m68040'.
13302       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13303       ;;
13304
13305     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13306       # PIC is the default for these OSes.
13307       ;;
13308
13309     mingw* | pw32* | os2*)
13310       # This hack is so that the source file can tell whether it is being
13311       # built for inclusion in a dll (and should export symbols for example).
13312       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13313       ;;
13314
13315     darwin* | rhapsody*)
13316       # PIC is the default on this platform
13317       # Common symbols not allowed in MH_DYLIB files
13318       lt_prog_compiler_pic_F77='-fno-common'
13319       ;;
13320
13321     msdosdjgpp*)
13322       # Just because we use GCC doesn't mean we suddenly get shared libraries
13323       # on systems that don't support them.
13324       lt_prog_compiler_can_build_shared_F77=no
13325       enable_shared=no
13326       ;;
13327
13328     sysv4*MP*)
13329       if test -d /usr/nec; then
13330         lt_prog_compiler_pic_F77=-Kconform_pic
13331       fi
13332       ;;
13333
13334     hpux*)
13335       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13336       # not for PA HP-UX.
13337       case "$host_cpu" in
13338       hppa*64*|ia64*)
13339         # +Z the default
13340         ;;
13341       *)
13342         lt_prog_compiler_pic_F77='-fPIC'
13343         ;;
13344       esac
13345       ;;
13346
13347     *)
13348       lt_prog_compiler_pic_F77='-fPIC'
13349       ;;
13350     esac
13351   else
13352     # PORTME Check for flag to pass linker flags through the system compiler.
13353     case $host_os in
13354     aix*)
13355       lt_prog_compiler_wl_F77='-Wl,'
13356       if test "$host_cpu" = ia64; then
13357         # AIX 5 now supports IA64 processor
13358         lt_prog_compiler_static_F77='-Bstatic'
13359       else
13360         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13361       fi
13362       ;;
13363
13364     mingw* | pw32* | os2*)
13365       # This hack is so that the source file can tell whether it is being
13366       # built for inclusion in a dll (and should export symbols for example).
13367       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13368       ;;
13369
13370     hpux9* | hpux10* | hpux11*)
13371       lt_prog_compiler_wl_F77='-Wl,'
13372       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13373       # not for PA HP-UX.
13374       case "$host_cpu" in
13375       hppa*64*|ia64*)
13376         # +Z the default
13377         ;;
13378       *)
13379         lt_prog_compiler_pic_F77='+Z'
13380         ;;
13381       esac
13382       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13383       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13384       ;;
13385
13386     irix5* | irix6* | nonstopux*)
13387       lt_prog_compiler_wl_F77='-Wl,'
13388       # PIC (with -KPIC) is the default.
13389       lt_prog_compiler_static_F77='-non_shared'
13390       ;;
13391
13392     newsos6)
13393       lt_prog_compiler_pic_F77='-KPIC'
13394       lt_prog_compiler_static_F77='-Bstatic'
13395       ;;
13396
13397     linux*)
13398       case $CC in
13399       icc* | ecc*)
13400         lt_prog_compiler_wl_F77='-Wl,'
13401         lt_prog_compiler_pic_F77='-KPIC'
13402         lt_prog_compiler_static_F77='-static'
13403         ;;
13404       ccc*)
13405         lt_prog_compiler_wl_F77='-Wl,'
13406         # All Alpha code is PIC.
13407         lt_prog_compiler_static_F77='-non_shared'
13408         ;;
13409       esac
13410       ;;
13411
13412     osf3* | osf4* | osf5*)
13413       lt_prog_compiler_wl_F77='-Wl,'
13414       # All OSF/1 code is PIC.
13415       lt_prog_compiler_static_F77='-non_shared'
13416       ;;
13417
13418     sco3.2v5*)
13419       lt_prog_compiler_pic_F77='-Kpic'
13420       lt_prog_compiler_static_F77='-dn'
13421       ;;
13422
13423     solaris*)
13424       lt_prog_compiler_wl_F77='-Wl,'
13425       lt_prog_compiler_pic_F77='-KPIC'
13426       lt_prog_compiler_static_F77='-Bstatic'
13427       ;;
13428
13429     sunos4*)
13430       lt_prog_compiler_wl_F77='-Qoption ld '
13431       lt_prog_compiler_pic_F77='-PIC'
13432       lt_prog_compiler_static_F77='-Bstatic'
13433       ;;
13434
13435     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13436       lt_prog_compiler_wl_F77='-Wl,'
13437       lt_prog_compiler_pic_F77='-KPIC'
13438       lt_prog_compiler_static_F77='-Bstatic'
13439       ;;
13440
13441     sysv4*MP*)
13442       if test -d /usr/nec ;then
13443         lt_prog_compiler_pic_F77='-Kconform_pic'
13444         lt_prog_compiler_static_F77='-Bstatic'
13445       fi
13446       ;;
13447
13448     uts4*)
13449       lt_prog_compiler_pic_F77='-pic'
13450       lt_prog_compiler_static_F77='-Bstatic'
13451       ;;
13452
13453     *)
13454       lt_prog_compiler_can_build_shared_F77=no
13455       ;;
13456     esac
13457   fi
13458
13459 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13460 $as_echo "$lt_prog_compiler_pic_F77" >&6; }
13461
13462 #
13463 # Check to make sure the PIC flag actually works.
13464 #
13465 if test -n "$lt_prog_compiler_pic_F77"; then
13466
13467 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13468 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
13469 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13470   $as_echo_n "(cached) " >&6
13471 else
13472   lt_prog_compiler_pic_works_F77=no
13473   ac_outfile=conftest.$ac_objext
13474    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13475    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13476    # Insert the option either (1) after the last *FLAGS variable, or
13477    # (2) before a word containing "conftest.", or (3) at the end.
13478    # Note that $ac_compile itself does not contain backslashes and begins
13479    # with a dollar sign (not a hyphen), so the echo should work correctly.
13480    # The option is referenced via a variable to avoid confusing sed.
13481    lt_compile=`echo "$ac_compile" | $SED \
13482    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13483    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13484    -e 's:$: $lt_compiler_flag:'`
13485    (eval echo "\"\$as_me:13485: $lt_compile\"" >&5)
13486    (eval "$lt_compile" 2>conftest.err)
13487    ac_status=$?
13488    cat conftest.err >&5
13489    echo "$as_me:13489: \$? = $ac_status" >&5
13490    if (exit $ac_status) && test -s "$ac_outfile"; then
13491      # The compiler can only warn and ignore the option if not recognized
13492      # So say no if there are warnings
13493      if test ! -s conftest.err; then
13494        lt_prog_compiler_pic_works_F77=yes
13495      fi
13496    fi
13497    $rm conftest*
13498
13499 fi
13500 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13501 $as_echo "$lt_prog_compiler_pic_works_F77" >&6; }
13502
13503 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13504     case $lt_prog_compiler_pic_F77 in
13505      "" | " "*) ;;
13506      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13507      esac
13508 else
13509     lt_prog_compiler_pic_F77=
13510      lt_prog_compiler_can_build_shared_F77=no
13511 fi
13512
13513 fi
13514 case "$host_os" in
13515   # For platforms which do not support PIC, -DPIC is meaningless:
13516   *djgpp*)
13517     lt_prog_compiler_pic_F77=
13518     ;;
13519   *)
13520     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13521     ;;
13522 esac
13523
13524 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13525 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13526 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13527   $as_echo_n "(cached) " >&6
13528 else
13529   lt_cv_prog_compiler_c_o_F77=no
13530    $rm -r conftest 2>/dev/null
13531    mkdir conftest
13532    cd conftest
13533    mkdir out
13534    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13535
13536    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13537    # that will create temporary files in the current directory regardless of
13538    # the output directory.  Thus, making CWD read-only will cause this test
13539    # to fail, enabling locking or at least warning the user not to do parallel
13540    # builds.
13541    chmod -w .
13542
13543    lt_compiler_flag="-o out/conftest2.$ac_objext"
13544    # Insert the option either (1) after the last *FLAGS variable, or
13545    # (2) before a word containing "conftest.", or (3) at the end.
13546    # Note that $ac_compile itself does not contain backslashes and begins
13547    # with a dollar sign (not a hyphen), so the echo should work correctly.
13548    lt_compile=`echo "$ac_compile" | $SED \
13549    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13550    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13551    -e 's:$: $lt_compiler_flag:'`
13552    (eval echo "\"\$as_me:13552: $lt_compile\"" >&5)
13553    (eval "$lt_compile" 2>out/conftest.err)
13554    ac_status=$?
13555    cat out/conftest.err >&5
13556    echo "$as_me:13556: \$? = $ac_status" >&5
13557    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13558    then
13559      # The compiler can only warn and ignore the option if not recognized
13560      # So say no if there are warnings
13561      if test ! -s out/conftest.err; then
13562        lt_cv_prog_compiler_c_o_F77=yes
13563      fi
13564    fi
13565    chmod u+w .
13566    $rm conftest*
13567    # SGI C++ compiler will create directory out/ii_files/ for
13568    # template instantiation
13569    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13570    $rm out/* && rmdir out
13571    cd ..
13572    rmdir conftest
13573    $rm conftest*
13574
13575 fi
13576 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13577 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
13578
13579
13580 hard_links="nottested"
13581 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13582   # do not overwrite the value of need_locks provided by the user
13583   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13584 $as_echo_n "checking if we can lock with hard links... " >&6; }
13585   hard_links=yes
13586   $rm conftest*
13587   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13588   touch conftest.a
13589   ln conftest.a conftest.b 2>&5 || hard_links=no
13590   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13591   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
13592 $as_echo "$hard_links" >&6; }
13593   if test "$hard_links" = no; then
13594     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13595 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13596     need_locks=warn
13597   fi
13598 else
13599   need_locks=no
13600 fi
13601
13602 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13603 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13604
13605   runpath_var=
13606   allow_undefined_flag_F77=
13607   enable_shared_with_static_runtimes_F77=no
13608   archive_cmds_F77=
13609   archive_expsym_cmds_F77=
13610   old_archive_From_new_cmds_F77=
13611   old_archive_from_expsyms_cmds_F77=
13612   export_dynamic_flag_spec_F77=
13613   whole_archive_flag_spec_F77=
13614   thread_safe_flag_spec_F77=
13615   hardcode_libdir_flag_spec_F77=
13616   hardcode_libdir_flag_spec_ld_F77=
13617   hardcode_libdir_separator_F77=
13618   hardcode_direct_F77=no
13619   hardcode_minus_L_F77=no
13620   hardcode_shlibpath_var_F77=unsupported
13621   link_all_deplibs_F77=unknown
13622   hardcode_automatic_F77=no
13623   module_cmds_F77=
13624   module_expsym_cmds_F77=
13625   always_export_symbols_F77=no
13626   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13627   # include_expsyms should be a list of space-separated symbols to be *always*
13628   # included in the symbol list
13629   include_expsyms_F77=
13630   # exclude_expsyms can be an extended regexp of symbols to exclude
13631   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13632   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13633   # as well as any symbol that contains `d'.
13634   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13635   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13636   # platforms (ab)use it in PIC code, but their linkers get confused if
13637   # the symbol is explicitly referenced.  Since portable code cannot
13638   # rely on this symbol name, it's probably fine to never include it in
13639   # preloaded symbol tables.
13640   extract_expsyms_cmds=
13641
13642   case $host_os in
13643   cygwin* | mingw* | pw32*)
13644     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13645     # When not using gcc, we currently assume that we are using
13646     # Microsoft Visual C++.
13647     if test "$GCC" != yes; then
13648       with_gnu_ld=no
13649     fi
13650     ;;
13651   openbsd*)
13652     with_gnu_ld=no
13653     ;;
13654   esac
13655
13656   ld_shlibs_F77=yes
13657   if test "$with_gnu_ld" = yes; then
13658     # If archive_cmds runs LD, not CC, wlarc should be empty
13659     wlarc='${wl}'
13660
13661     # See if GNU ld supports shared libraries.
13662     case $host_os in
13663     aix3* | aix4* | aix5*)
13664       # On AIX/PPC, the GNU linker is very broken
13665       if test "$host_cpu" != ia64; then
13666         ld_shlibs_F77=no
13667         cat <<EOF 1>&2
13668
13669 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13670 *** to be unable to reliably create shared libraries on AIX.
13671 *** Therefore, libtool is disabling shared libraries support.  If you
13672 *** really care for shared libraries, you may want to modify your PATH
13673 *** so that a non-GNU linker is found, and then restart.
13674
13675 EOF
13676       fi
13677       ;;
13678
13679     amigaos*)
13680       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)'
13681       hardcode_libdir_flag_spec_F77='-L$libdir'
13682       hardcode_minus_L_F77=yes
13683
13684       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13685       # that the semantics of dynamic libraries on AmigaOS, at least up
13686       # to version 4, is to share data among multiple programs linked
13687       # with the same dynamic library.  Since this doesn't match the
13688       # behavior of shared libraries on other platforms, we can't use
13689       # them.
13690       ld_shlibs_F77=no
13691       ;;
13692
13693     beos*)
13694       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13695         allow_undefined_flag_F77=unsupported
13696         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13697         # support --undefined.  This deserves some investigation.  FIXME
13698         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13699       else
13700         ld_shlibs_F77=no
13701       fi
13702       ;;
13703
13704     cygwin* | mingw* | pw32*)
13705       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13706       # as there is no search path for DLLs.
13707       hardcode_libdir_flag_spec_F77='-L$libdir'
13708       allow_undefined_flag_F77=unsupported
13709       always_export_symbols_F77=no
13710       enable_shared_with_static_runtimes_F77=yes
13711       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13712
13713       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13714         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13715         # If the export-symbols file already is a .def file (1st line
13716         # is EXPORTS), use it as is; otherwise, prepend...
13717         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13718           cp $export_symbols $output_objdir/$soname.def;
13719         else
13720           echo EXPORTS > $output_objdir/$soname.def;
13721           cat $export_symbols >> $output_objdir/$soname.def;
13722         fi~
13723         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13724       else
13725         ld_shlibs=no
13726       fi
13727       ;;
13728
13729     netbsd*)
13730       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13731         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13732         wlarc=
13733       else
13734         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13735         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13736       fi
13737       ;;
13738
13739     solaris* | sysv5*)
13740       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13741         ld_shlibs_F77=no
13742         cat <<EOF 1>&2
13743
13744 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13745 *** create shared libraries on Solaris systems.  Therefore, libtool
13746 *** is disabling shared libraries support.  We urge you to upgrade GNU
13747 *** binutils to release 2.9.1 or newer.  Another option is to modify
13748 *** your PATH or compiler configuration so that the native linker is
13749 *** used, and then restart.
13750
13751 EOF
13752       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13753         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13754         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13755       else
13756         ld_shlibs_F77=no
13757       fi
13758       ;;
13759
13760     sunos4*)
13761       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13762       wlarc=
13763       hardcode_direct_F77=yes
13764       hardcode_shlibpath_var_F77=no
13765       ;;
13766
13767   linux*)
13768     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
13769         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13770         archive_cmds_F77="$tmp_archive_cmds"
13771       supports_anon_versioning=no
13772       case `$LD -v 2>/dev/null` in
13773         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13774         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13775         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13776         *\ 2.11.*) ;; # other 2.11 versions
13777         *) supports_anon_versioning=yes ;;
13778       esac
13779       if test $supports_anon_versioning = yes; then
13780         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13781 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13782 $echo "local: *; };" >> $output_objdir/$libname.ver~
13783         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13784       else
13785         archive_expsym_cmds_F77="$tmp_archive_cmds"
13786       fi
13787     else
13788       ld_shlibs_F77=no
13789     fi
13790     ;;
13791
13792     *)
13793       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13794         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13795         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13796       else
13797         ld_shlibs_F77=no
13798       fi
13799       ;;
13800     esac
13801
13802     if test "$ld_shlibs_F77" = yes; then
13803       runpath_var=LD_RUN_PATH
13804       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13805       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13806       # ancient GNU ld didn't support --whole-archive et. al.
13807       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13808         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13809       else
13810         whole_archive_flag_spec_F77=
13811       fi
13812     fi
13813   else
13814     # PORTME fill in a description of your system's linker (not GNU ld)
13815     case $host_os in
13816     aix3*)
13817       allow_undefined_flag_F77=unsupported
13818       always_export_symbols_F77=yes
13819       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'
13820       # Note: this linker hardcodes the directories in LIBPATH if there
13821       # are no directories specified by -L.
13822       hardcode_minus_L_F77=yes
13823       if test "$GCC" = yes && test -z "$link_static_flag"; then
13824         # Neither direct hardcoding nor static linking is supported with a
13825         # broken collect2.
13826         hardcode_direct_F77=unsupported
13827       fi
13828       ;;
13829
13830     aix4* | aix5*)
13831       if test "$host_cpu" = ia64; then
13832         # On IA64, the linker does run time linking by default, so we don't
13833         # have to do anything special.
13834         aix_use_runtimelinking=no
13835         exp_sym_flag='-Bexport'
13836         no_entry_flag=""
13837       else
13838         # If we're using GNU nm, then we don't want the "-C" option.
13839         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13840         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13841           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'
13842         else
13843           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'
13844         fi
13845         aix_use_runtimelinking=no
13846
13847         # Test if we are trying to use run time linking or normal
13848         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13849         # need to do runtime linking.
13850         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13851           for ld_flag in $LDFLAGS; do
13852           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13853             aix_use_runtimelinking=yes
13854             break
13855           fi
13856           done
13857         esac
13858
13859         exp_sym_flag='-bexport'
13860         no_entry_flag='-bnoentry'
13861       fi
13862
13863       # When large executables or shared objects are built, AIX ld can
13864       # have problems creating the table of contents.  If linking a library
13865       # or program results in "error TOC overflow" add -mminimal-toc to
13866       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13867       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13868
13869       archive_cmds_F77=''
13870       hardcode_direct_F77=yes
13871       hardcode_libdir_separator_F77=':'
13872       link_all_deplibs_F77=yes
13873
13874       if test "$GCC" = yes; then
13875         case $host_os in aix4.012|aix4.012.*)
13876         # We only want to do this on AIX 4.2 and lower, the check
13877         # below for broken collect2 doesn't work under 4.3+
13878           collect2name=`${CC} -print-prog-name=collect2`
13879           if test -f "$collect2name" && \
13880            strings "$collect2name" | grep resolve_lib_name >/dev/null
13881           then
13882           # We have reworked collect2
13883           hardcode_direct_F77=yes
13884           else
13885           # We have old collect2
13886           hardcode_direct_F77=unsupported
13887           # It fails to find uninstalled libraries when the uninstalled
13888           # path is not listed in the libpath.  Setting hardcode_minus_L
13889           # to unsupported forces relinking
13890           hardcode_minus_L_F77=yes
13891           hardcode_libdir_flag_spec_F77='-L$libdir'
13892           hardcode_libdir_separator_F77=
13893           fi
13894         esac
13895         shared_flag='-shared'
13896       else
13897         # not using gcc
13898         if test "$host_cpu" = ia64; then
13899         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13900         # chokes on -Wl,-G. The following line is correct:
13901           shared_flag='-G'
13902         else
13903         if test "$aix_use_runtimelinking" = yes; then
13904             shared_flag='${wl}-G'
13905           else
13906             shared_flag='${wl}-bM:SRE'
13907         fi
13908         fi
13909       fi
13910
13911       # It seems that -bexpall does not export symbols beginning with
13912       # underscore (_), so it is better to generate a list of symbols to export.
13913       always_export_symbols_F77=yes
13914       if test "$aix_use_runtimelinking" = yes; then
13915         # Warning - without using the other runtime loading flags (-brtl),
13916         # -berok will link without error, but may produce a broken library.
13917         allow_undefined_flag_F77='-berok'
13918        # Determine the default libpath from the value encoded in an empty executable.
13919        cat >conftest.$ac_ext <<_ACEOF
13920       program main
13921
13922       end
13923 _ACEOF
13924 rm -f conftest.$ac_objext conftest$ac_exeext
13925 if { (ac_try="$ac_link"
13926 case "(($ac_try" in
13927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13928   *) ac_try_echo=$ac_try;;
13929 esac
13930 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13931 $as_echo "$ac_try_echo") >&5
13932   (eval "$ac_link") 2>conftest.er1
13933   ac_status=$?
13934   grep -v '^ *+' conftest.er1 >conftest.err
13935   rm -f conftest.er1
13936   cat conftest.err >&5
13937   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13938   (exit $ac_status); } && {
13939          test -z "$ac_f77_werror_flag" ||
13940          test ! -s conftest.err
13941        } && test -s conftest$ac_exeext && {
13942          test "$cross_compiling" = yes ||
13943          $as_test_x conftest$ac_exeext
13944        }; then
13945
13946 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13947 }'`
13948 # Check for a 64-bit object if we didn't find anything.
13949 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; }
13950 }'`; fi
13951 else
13952   $as_echo "$as_me: failed program was:" >&5
13953 sed 's/^/| /' conftest.$ac_ext >&5
13954
13955
13956 fi
13957
13958 rm -rf conftest.dSYM
13959 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13960       conftest$ac_exeext conftest.$ac_ext
13961 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13962
13963        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13964         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"
13965        else
13966         if test "$host_cpu" = ia64; then
13967           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13968           allow_undefined_flag_F77="-z nodefs"
13969           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"
13970         else
13971          # Determine the default libpath from the value encoded in an empty executable.
13972          cat >conftest.$ac_ext <<_ACEOF
13973       program main
13974
13975       end
13976 _ACEOF
13977 rm -f conftest.$ac_objext conftest$ac_exeext
13978 if { (ac_try="$ac_link"
13979 case "(($ac_try" in
13980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13981   *) ac_try_echo=$ac_try;;
13982 esac
13983 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13984 $as_echo "$ac_try_echo") >&5
13985   (eval "$ac_link") 2>conftest.er1
13986   ac_status=$?
13987   grep -v '^ *+' conftest.er1 >conftest.err
13988   rm -f conftest.er1
13989   cat conftest.err >&5
13990   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13991   (exit $ac_status); } && {
13992          test -z "$ac_f77_werror_flag" ||
13993          test ! -s conftest.err
13994        } && test -s conftest$ac_exeext && {
13995          test "$cross_compiling" = yes ||
13996          $as_test_x conftest$ac_exeext
13997        }; then
13998
13999 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14000 }'`
14001 # Check for a 64-bit object if we didn't find anything.
14002 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; }
14003 }'`; fi
14004 else
14005   $as_echo "$as_me: failed program was:" >&5
14006 sed 's/^/| /' conftest.$ac_ext >&5
14007
14008
14009 fi
14010
14011 rm -rf conftest.dSYM
14012 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14013       conftest$ac_exeext conftest.$ac_ext
14014 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14015
14016          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14017           # Warning - without using the other run time loading flags,
14018           # -berok will link without error, but may produce a broken library.
14019           no_undefined_flag_F77=' ${wl}-bernotok'
14020           allow_undefined_flag_F77=' ${wl}-berok'
14021           # -bexpall does not export symbols beginning with underscore (_)
14022           always_export_symbols_F77=yes
14023           # Exported symbols can be pulled into shared objects from archives
14024           whole_archive_flag_spec_F77=' '
14025           archive_cmds_need_lc_F77=yes
14026           # This is similar to how AIX traditionally builds it's shared libraries.
14027           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'
14028         fi
14029       fi
14030       ;;
14031
14032     amigaos*)
14033       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)'
14034       hardcode_libdir_flag_spec_F77='-L$libdir'
14035       hardcode_minus_L_F77=yes
14036       # see comment about different semantics on the GNU ld section
14037       ld_shlibs_F77=no
14038       ;;
14039
14040     bsdi4*)
14041       export_dynamic_flag_spec_F77=-rdynamic
14042       ;;
14043
14044     cygwin* | mingw* | pw32*)
14045       # When not using gcc, we currently assume that we are using
14046       # Microsoft Visual C++.
14047       # hardcode_libdir_flag_spec is actually meaningless, as there is
14048       # no search path for DLLs.
14049       hardcode_libdir_flag_spec_F77=' '
14050       allow_undefined_flag_F77=unsupported
14051       # Tell ltmain to make .lib files, not .a files.
14052       libext=lib
14053       # Tell ltmain to make .dll files, not .so files.
14054       shrext=".dll"
14055       # FIXME: Setting linknames here is a bad hack.
14056       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14057       # The linker will automatically build a .lib file if we build a DLL.
14058       old_archive_From_new_cmds_F77='true'
14059       # FIXME: Should let the user specify the lib program.
14060       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14061       fix_srcfile_path='`cygpath -w "$srcfile"`'
14062       enable_shared_with_static_runtimes_F77=yes
14063       ;;
14064
14065     darwin* | rhapsody*)
14066     if test "$GXX" = yes ; then
14067       archive_cmds_need_lc_F77=no
14068       case "$host_os" in
14069       rhapsody* | darwin1.[012])
14070         allow_undefined_flag_F77='-undefined suppress'
14071         ;;
14072       *) # Darwin 1.3 on
14073       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14074         allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14075       else
14076         case ${MACOSX_DEPLOYMENT_TARGET} in
14077           10.[012])
14078             allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14079             ;;
14080           10.*)
14081             allow_undefined_flag_F77='-undefined dynamic_lookup'
14082             ;;
14083         esac
14084       fi
14085         ;;
14086       esac
14087         lt_int_apple_cc_single_mod=no
14088         output_verbose_link_cmd='echo'
14089         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14090           lt_int_apple_cc_single_mod=yes
14091         fi
14092         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14093           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14094         else
14095         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'
14096       fi
14097       module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14098       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14099         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14100           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}'
14101         else
14102           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}'
14103         fi
14104           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}'
14105       hardcode_direct_F77=no
14106       hardcode_automatic_F77=yes
14107       hardcode_shlibpath_var_F77=unsupported
14108       whole_archive_flag_spec_F77='-all_load $convenience'
14109       link_all_deplibs_F77=yes
14110     else
14111       ld_shlibs_F77=no
14112     fi
14113       ;;
14114
14115     dgux*)
14116       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14117       hardcode_libdir_flag_spec_F77='-L$libdir'
14118       hardcode_shlibpath_var_F77=no
14119       ;;
14120
14121     freebsd1*)
14122       ld_shlibs_F77=no
14123       ;;
14124
14125     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14126     # support.  Future versions do this automatically, but an explicit c++rt0.o
14127     # does not break anything, and helps significantly (at the cost of a little
14128     # extra space).
14129     freebsd2.2*)
14130       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14131       hardcode_libdir_flag_spec_F77='-R$libdir'
14132       hardcode_direct_F77=yes
14133       hardcode_shlibpath_var_F77=no
14134       ;;
14135
14136     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14137     freebsd2*)
14138       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14139       hardcode_direct_F77=yes
14140       hardcode_minus_L_F77=yes
14141       hardcode_shlibpath_var_F77=no
14142       ;;
14143
14144     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14145     freebsd* | kfreebsd*-gnu)
14146       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14147       hardcode_libdir_flag_spec_F77='-R$libdir'
14148       hardcode_direct_F77=yes
14149       hardcode_shlibpath_var_F77=no
14150       ;;
14151
14152     hpux9*)
14153       if test "$GCC" = yes; then
14154         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'
14155       else
14156         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'
14157       fi
14158       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14159       hardcode_libdir_separator_F77=:
14160       hardcode_direct_F77=yes
14161
14162       # hardcode_minus_L: Not really in the search PATH,
14163       # but as the default location of the library.
14164       hardcode_minus_L_F77=yes
14165       export_dynamic_flag_spec_F77='${wl}-E'
14166       ;;
14167
14168     hpux10* | hpux11*)
14169       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14170         case "$host_cpu" in
14171         hppa*64*|ia64*)
14172           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14173           ;;
14174         *)
14175           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14176           ;;
14177         esac
14178       else
14179         case "$host_cpu" in
14180         hppa*64*|ia64*)
14181           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14182           ;;
14183         *)
14184           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14185           ;;
14186         esac
14187       fi
14188       if test "$with_gnu_ld" = no; then
14189         case "$host_cpu" in
14190         hppa*64*)
14191           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14192           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14193           hardcode_libdir_separator_F77=:
14194           hardcode_direct_F77=no
14195           hardcode_shlibpath_var_F77=no
14196           ;;
14197         ia64*)
14198           hardcode_libdir_flag_spec_F77='-L$libdir'
14199           hardcode_direct_F77=no
14200           hardcode_shlibpath_var_F77=no
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         *)
14207           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14208           hardcode_libdir_separator_F77=:
14209           hardcode_direct_F77=yes
14210           export_dynamic_flag_spec_F77='${wl}-E'
14211
14212           # hardcode_minus_L: Not really in the search PATH,
14213           # but as the default location of the library.
14214           hardcode_minus_L_F77=yes
14215           ;;
14216         esac
14217       fi
14218       ;;
14219
14220     irix5* | irix6* | nonstopux*)
14221       if test "$GCC" = yes; then
14222         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'
14223       else
14224         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'
14225         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14226       fi
14227       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14228       hardcode_libdir_separator_F77=:
14229       link_all_deplibs_F77=yes
14230       ;;
14231
14232     netbsd*)
14233       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14234         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14235       else
14236         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14237       fi
14238       hardcode_libdir_flag_spec_F77='-R$libdir'
14239       hardcode_direct_F77=yes
14240       hardcode_shlibpath_var_F77=no
14241       ;;
14242
14243     newsos6)
14244       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14245       hardcode_direct_F77=yes
14246       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14247       hardcode_libdir_separator_F77=:
14248       hardcode_shlibpath_var_F77=no
14249       ;;
14250
14251     openbsd*)
14252       hardcode_direct_F77=yes
14253       hardcode_shlibpath_var_F77=no
14254       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14255         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14256         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14257         export_dynamic_flag_spec_F77='${wl}-E'
14258       else
14259        case $host_os in
14260          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14261            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14262            hardcode_libdir_flag_spec_F77='-R$libdir'
14263            ;;
14264          *)
14265            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14266            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14267            ;;
14268        esac
14269       fi
14270       ;;
14271
14272     os2*)
14273       hardcode_libdir_flag_spec_F77='-L$libdir'
14274       hardcode_minus_L_F77=yes
14275       allow_undefined_flag_F77=unsupported
14276       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'
14277       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14278       ;;
14279
14280     osf3*)
14281       if test "$GCC" = yes; then
14282         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14283         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'
14284       else
14285         allow_undefined_flag_F77=' -expect_unresolved \*'
14286         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'
14287       fi
14288       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14289       hardcode_libdir_separator_F77=:
14290       ;;
14291
14292     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14293       if test "$GCC" = yes; then
14294         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14295         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'
14296         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14297       else
14298         allow_undefined_flag_F77=' -expect_unresolved \*'
14299         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'
14300         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~
14301         $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'
14302
14303         # Both c and cxx compiler support -rpath directly
14304         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14305       fi
14306       hardcode_libdir_separator_F77=:
14307       ;;
14308
14309     sco3.2v5*)
14310       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14311       hardcode_shlibpath_var_F77=no
14312       export_dynamic_flag_spec_F77='${wl}-Bexport'
14313       runpath_var=LD_RUN_PATH
14314       hardcode_runpath_var=yes
14315       ;;
14316
14317     solaris*)
14318       no_undefined_flag_F77=' -z text'
14319       if test "$GCC" = yes; then
14320         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14321         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14322           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14323       else
14324         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14325         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14326         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14327       fi
14328       hardcode_libdir_flag_spec_F77='-R$libdir'
14329       hardcode_shlibpath_var_F77=no
14330       case $host_os in
14331       solaris2.[0-5] | solaris2.[0-5].*) ;;
14332       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14333         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14334       esac
14335       link_all_deplibs_F77=yes
14336       ;;
14337
14338     sunos4*)
14339       if test "x$host_vendor" = xsequent; then
14340         # Use $CC to link under sequent, because it throws in some extra .o
14341         # files that make .init and .fini sections work.
14342         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14343       else
14344         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14345       fi
14346       hardcode_libdir_flag_spec_F77='-L$libdir'
14347       hardcode_direct_F77=yes
14348       hardcode_minus_L_F77=yes
14349       hardcode_shlibpath_var_F77=no
14350       ;;
14351
14352     sysv4)
14353       case $host_vendor in
14354         sni)
14355           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14356           hardcode_direct_F77=yes # is this really true???
14357         ;;
14358         siemens)
14359           ## LD is ld it makes a PLAMLIB
14360           ## CC just makes a GrossModule.
14361           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14362           reload_cmds_F77='$CC -r -o $output$reload_objs'
14363           hardcode_direct_F77=no
14364         ;;
14365         motorola)
14366           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14367           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14368         ;;
14369       esac
14370       runpath_var='LD_RUN_PATH'
14371       hardcode_shlibpath_var_F77=no
14372       ;;
14373
14374     sysv4.3*)
14375       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14376       hardcode_shlibpath_var_F77=no
14377       export_dynamic_flag_spec_F77='-Bexport'
14378       ;;
14379
14380     sysv4*MP*)
14381       if test -d /usr/nec; then
14382         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14383         hardcode_shlibpath_var_F77=no
14384         runpath_var=LD_RUN_PATH
14385         hardcode_runpath_var=yes
14386         ld_shlibs_F77=yes
14387       fi
14388       ;;
14389
14390     sysv4.2uw2*)
14391       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14392       hardcode_direct_F77=yes
14393       hardcode_minus_L_F77=no
14394       hardcode_shlibpath_var_F77=no
14395       hardcode_runpath_var=yes
14396       runpath_var=LD_RUN_PATH
14397       ;;
14398
14399    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
14400       no_undefined_flag_F77='${wl}-z ${wl}text'
14401       if test "$GCC" = yes; then
14402         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14403       else
14404         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14405       fi
14406       runpath_var='LD_RUN_PATH'
14407       hardcode_shlibpath_var_F77=no
14408       ;;
14409
14410     sysv5*)
14411       no_undefined_flag_F77=' -z text'
14412       # $CC -shared without GNU ld will not create a library from C++
14413       # object files and a static libstdc++, better avoid it by now
14414       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14415       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14416                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14417       hardcode_libdir_flag_spec_F77=
14418       hardcode_shlibpath_var_F77=no
14419       runpath_var='LD_RUN_PATH'
14420       ;;
14421
14422     uts4*)
14423       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14424       hardcode_libdir_flag_spec_F77='-L$libdir'
14425       hardcode_shlibpath_var_F77=no
14426       ;;
14427
14428     *)
14429       ld_shlibs_F77=no
14430       ;;
14431     esac
14432   fi
14433
14434 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14435 $as_echo "$ld_shlibs_F77" >&6; }
14436 test "$ld_shlibs_F77" = no && can_build_shared=no
14437
14438 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14439 if test "$GCC" = yes; then
14440   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14441 fi
14442
14443 #
14444 # Do we need to explicitly link libc?
14445 #
14446 case "x$archive_cmds_need_lc_F77" in
14447 x|xyes)
14448   # Assume -lc should be added
14449   archive_cmds_need_lc_F77=yes
14450
14451   if test "$enable_shared" = yes && test "$GCC" = yes; then
14452     case $archive_cmds_F77 in
14453     *'~'*)
14454       # FIXME: we may have to deal with multi-command sequences.
14455       ;;
14456     '$CC '*)
14457       # Test whether the compiler implicitly links with -lc since on some
14458       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14459       # to ld, don't add -lc before -lgcc.
14460       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14461 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14462       $rm conftest*
14463       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14464
14465       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14466   (eval $ac_compile) 2>&5
14467   ac_status=$?
14468   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14469   (exit $ac_status); } 2>conftest.err; then
14470         soname=conftest
14471         lib=conftest
14472         libobjs=conftest.$ac_objext
14473         deplibs=
14474         wl=$lt_prog_compiler_wl_F77
14475         compiler_flags=-v
14476         linker_flags=-v
14477         verstring=
14478         output_objdir=.
14479         libname=conftest
14480         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14481         allow_undefined_flag_F77=
14482         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14483   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14484   ac_status=$?
14485   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14486   (exit $ac_status); }
14487         then
14488           archive_cmds_need_lc_F77=no
14489         else
14490           archive_cmds_need_lc_F77=yes
14491         fi
14492         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14493       else
14494         cat conftest.err 1>&5
14495       fi
14496       $rm conftest*
14497       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14498 $as_echo "$archive_cmds_need_lc_F77" >&6; }
14499       ;;
14500     esac
14501   fi
14502   ;;
14503 esac
14504
14505 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14506 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14507 library_names_spec=
14508 libname_spec='lib$name'
14509 soname_spec=
14510 shrext=".so"
14511 postinstall_cmds=
14512 postuninstall_cmds=
14513 finish_cmds=
14514 finish_eval=
14515 shlibpath_var=
14516 shlibpath_overrides_runpath=unknown
14517 version_type=none
14518 dynamic_linker="$host_os ld.so"
14519 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14520 if test "$GCC" = yes; then
14521   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14522   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14523     # if the path contains ";" then we assume it to be the separator
14524     # otherwise default to the standard path separator (i.e. ":") - it is
14525     # assumed that no part of a normal pathname contains ";" but that should
14526     # okay in the real world where ";" in dirpaths is itself problematic.
14527     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14528   else
14529     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14530   fi
14531 else
14532   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14533 fi
14534 need_lib_prefix=unknown
14535 hardcode_into_libs=no
14536
14537 # when you set need_version to no, make sure it does not cause -set_version
14538 # flags to be left without arguments
14539 need_version=unknown
14540
14541 case $host_os in
14542 aix3*)
14543   version_type=linux
14544   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14545   shlibpath_var=LIBPATH
14546
14547   # AIX 3 has no versioning support, so we append a major version to the name.
14548   soname_spec='${libname}${release}${shared_ext}$major'
14549   ;;
14550
14551 aix4* | aix5*)
14552   version_type=linux
14553   need_lib_prefix=no
14554   need_version=no
14555   hardcode_into_libs=yes
14556   if test "$host_cpu" = ia64; then
14557     # AIX 5 supports IA64
14558     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14559     shlibpath_var=LD_LIBRARY_PATH
14560   else
14561     # With GCC up to 2.95.x, collect2 would create an import file
14562     # for dependence libraries.  The import file would start with
14563     # the line `#! .'.  This would cause the generated library to
14564     # depend on `.', always an invalid library.  This was fixed in
14565     # development snapshots of GCC prior to 3.0.
14566     case $host_os in
14567       aix4 | aix4.[01] | aix4.[01].*)
14568       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14569            echo ' yes '
14570            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14571         :
14572       else
14573         can_build_shared=no
14574       fi
14575       ;;
14576     esac
14577     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14578     # soname into executable. Probably we can add versioning support to
14579     # collect2, so additional links can be useful in future.
14580     if test "$aix_use_runtimelinking" = yes; then
14581       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14582       # instead of lib<name>.a to let people know that these are not
14583       # typical AIX shared libraries.
14584       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14585     else
14586       # We preserve .a as extension for shared libraries through AIX4.2
14587       # and later when we are not doing run time linking.
14588       library_names_spec='${libname}${release}.a $libname.a'
14589       soname_spec='${libname}${release}${shared_ext}$major'
14590     fi
14591     shlibpath_var=LIBPATH
14592   fi
14593   ;;
14594
14595 amigaos*)
14596   library_names_spec='$libname.ixlibrary $libname.a'
14597   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14598   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'
14599   ;;
14600
14601 beos*)
14602   library_names_spec='${libname}${shared_ext}'
14603   dynamic_linker="$host_os ld.so"
14604   shlibpath_var=LIBRARY_PATH
14605   ;;
14606
14607 bsdi4*)
14608   version_type=linux
14609   need_version=no
14610   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14611   soname_spec='${libname}${release}${shared_ext}$major'
14612   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14613   shlibpath_var=LD_LIBRARY_PATH
14614   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14615   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14616   # the default ld.so.conf also contains /usr/contrib/lib and
14617   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14618   # libtool to hard-code these into programs
14619   ;;
14620
14621 cygwin* | mingw* | pw32*)
14622   version_type=windows
14623   shrext=".dll"
14624   need_version=no
14625   need_lib_prefix=no
14626
14627   case $GCC,$host_os in
14628   yes,cygwin* | yes,mingw* | yes,pw32*)
14629     library_names_spec='$libname.dll.a'
14630     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14631     postinstall_cmds='base_file=`basename \${file}`~
14632       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14633       dldir=$destdir/`dirname \$dlpath`~
14634       test -d \$dldir || mkdir -p \$dldir~
14635       $install_prog $dir/$dlname \$dldir/$dlname'
14636     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14637       dlpath=$dir/\$dldll~
14638        $rm \$dlpath'
14639     shlibpath_overrides_runpath=yes
14640
14641     case $host_os in
14642     cygwin*)
14643       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14644       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14645       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14646       ;;
14647     mingw*)
14648       # MinGW DLLs use traditional 'lib' prefix
14649       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14650       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14651       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14652         # It is most probably a Windows format PATH printed by
14653         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14654         # path with ; separators, and with drive letters. We can handle the
14655         # drive letters (cygwin fileutils understands them), so leave them,
14656         # especially as we might pass files found there to a mingw objdump,
14657         # which wouldn't understand a cygwinified path. Ahh.
14658         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14659       else
14660         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14661       fi
14662       ;;
14663     pw32*)
14664       # pw32 DLLs use 'pw' prefix rather than 'lib'
14665       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14666       ;;
14667     esac
14668     ;;
14669
14670   *)
14671     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14672     ;;
14673   esac
14674   dynamic_linker='Win32 ld.exe'
14675   # FIXME: first we should search . and the directory the executable is in
14676   shlibpath_var=PATH
14677   ;;
14678
14679 darwin* | rhapsody*)
14680   dynamic_linker="$host_os dyld"
14681   version_type=darwin
14682   need_lib_prefix=no
14683   need_version=no
14684   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14685   soname_spec='${libname}${release}${major}$shared_ext'
14686   shlibpath_overrides_runpath=yes
14687   shlibpath_var=DYLD_LIBRARY_PATH
14688   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14689   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14690   if test "$GCC" = yes; then
14691     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"`
14692   else
14693     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14694   fi
14695   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14696   ;;
14697
14698 dgux*)
14699   version_type=linux
14700   need_lib_prefix=no
14701   need_version=no
14702   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14703   soname_spec='${libname}${release}${shared_ext}$major'
14704   shlibpath_var=LD_LIBRARY_PATH
14705   ;;
14706
14707 freebsd1*)
14708   dynamic_linker=no
14709   ;;
14710
14711 kfreebsd*-gnu)
14712   version_type=linux
14713   need_lib_prefix=no
14714   need_version=no
14715   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14716   soname_spec='${libname}${release}${shared_ext}$major'
14717   shlibpath_var=LD_LIBRARY_PATH
14718   shlibpath_overrides_runpath=no
14719   hardcode_into_libs=yes
14720   dynamic_linker='GNU ld.so'
14721   ;;
14722
14723 freebsd*)
14724   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14725   version_type=freebsd-$objformat
14726   case $version_type in
14727     freebsd-elf*)
14728       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14729       need_version=no
14730       need_lib_prefix=no
14731       ;;
14732     freebsd-*)
14733       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14734       need_version=yes
14735       ;;
14736   esac
14737   shlibpath_var=LD_LIBRARY_PATH
14738   case $host_os in
14739   freebsd2*)
14740     shlibpath_overrides_runpath=yes
14741     ;;
14742   freebsd3.01* | freebsdelf3.01*)
14743     shlibpath_overrides_runpath=yes
14744     hardcode_into_libs=yes
14745     ;;
14746   *) # from 3.2 on
14747     shlibpath_overrides_runpath=no
14748     hardcode_into_libs=yes
14749     ;;
14750   esac
14751   ;;
14752
14753 gnu*)
14754   version_type=linux
14755   need_lib_prefix=no
14756   need_version=no
14757   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14758   soname_spec='${libname}${release}${shared_ext}$major'
14759   shlibpath_var=LD_LIBRARY_PATH
14760   hardcode_into_libs=yes
14761   ;;
14762
14763 hpux9* | hpux10* | hpux11*)
14764   # Give a soname corresponding to the major version so that dld.sl refuses to
14765   # link against other versions.
14766   version_type=sunos
14767   need_lib_prefix=no
14768   need_version=no
14769   case "$host_cpu" in
14770   ia64*)
14771     shrext='.so'
14772     hardcode_into_libs=yes
14773     dynamic_linker="$host_os dld.so"
14774     shlibpath_var=LD_LIBRARY_PATH
14775     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14776     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14777     soname_spec='${libname}${release}${shared_ext}$major'
14778     if test "X$HPUX_IA64_MODE" = X32; then
14779       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14780     else
14781       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14782     fi
14783     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14784     ;;
14785    hppa*64*)
14786      shrext='.sl'
14787      hardcode_into_libs=yes
14788      dynamic_linker="$host_os dld.sl"
14789      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14790      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14794      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14795      ;;
14796    *)
14797     shrext='.sl'
14798     dynamic_linker="$host_os dld.sl"
14799     shlibpath_var=SHLIB_PATH
14800     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14801     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14802     soname_spec='${libname}${release}${shared_ext}$major'
14803     ;;
14804   esac
14805   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14806   postinstall_cmds='chmod 555 $lib'
14807   ;;
14808
14809 irix5* | irix6* | nonstopux*)
14810   case $host_os in
14811     nonstopux*) version_type=nonstopux ;;
14812     *)
14813         if test "$lt_cv_prog_gnu_ld" = yes; then
14814                 version_type=linux
14815         else
14816                 version_type=irix
14817         fi ;;
14818   esac
14819   need_lib_prefix=no
14820   need_version=no
14821   soname_spec='${libname}${release}${shared_ext}$major'
14822   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14823   case $host_os in
14824   irix5* | nonstopux*)
14825     libsuff= shlibsuff=
14826     ;;
14827   *)
14828     case $LD in # libtool.m4 will add one of these switches to LD
14829     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14830       libsuff= shlibsuff= libmagic=32-bit;;
14831     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14832       libsuff=32 shlibsuff=N32 libmagic=N32;;
14833     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14834       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14835     *) libsuff= shlibsuff= libmagic=never-match;;
14836     esac
14837     ;;
14838   esac
14839   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14840   shlibpath_overrides_runpath=no
14841   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14842   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14843   hardcode_into_libs=yes
14844   ;;
14845
14846 # No shared lib support for Linux oldld, aout, or coff.
14847 linux*oldld* | linux*aout* | linux*coff*)
14848   dynamic_linker=no
14849   ;;
14850
14851 # This must be Linux ELF.
14852 linux*)
14853   version_type=linux
14854   need_lib_prefix=no
14855   need_version=no
14856   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14857   soname_spec='${libname}${release}${shared_ext}$major'
14858   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14859   shlibpath_var=LD_LIBRARY_PATH
14860   shlibpath_overrides_runpath=no
14861   # This implies no fast_install, which is unacceptable.
14862   # Some rework will be needed to allow for fast_install
14863   # before this can be enabled.
14864   hardcode_into_libs=yes
14865
14866   # We used to test for /lib/ld.so.1 and disable shared libraries on
14867   # powerpc, because MkLinux only supported shared libraries with the
14868   # GNU dynamic linker.  Since this was broken with cross compilers,
14869   # most powerpc-linux boxes support dynamic linking these days and
14870   # people can always --disable-shared, the test was removed, and we
14871   # assume the GNU/Linux dynamic linker is in use.
14872   dynamic_linker='GNU/Linux ld.so'
14873   ;;
14874
14875 netbsd*)
14876   version_type=sunos
14877   need_lib_prefix=no
14878   need_version=no
14879   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14880     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14881     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14882     dynamic_linker='NetBSD (a.out) ld.so'
14883   else
14884     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14885     soname_spec='${libname}${release}${shared_ext}$major'
14886     dynamic_linker='NetBSD ld.elf_so'
14887   fi
14888   shlibpath_var=LD_LIBRARY_PATH
14889   shlibpath_overrides_runpath=yes
14890   hardcode_into_libs=yes
14891   ;;
14892
14893 newsos6)
14894   version_type=linux
14895   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14896   shlibpath_var=LD_LIBRARY_PATH
14897   shlibpath_overrides_runpath=yes
14898   ;;
14899
14900 nto-qnx*)
14901   version_type=linux
14902   need_lib_prefix=no
14903   need_version=no
14904   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14905   soname_spec='${libname}${release}${shared_ext}$major'
14906   shlibpath_var=LD_LIBRARY_PATH
14907   shlibpath_overrides_runpath=yes
14908   ;;
14909
14910 openbsd*)
14911   version_type=sunos
14912   need_lib_prefix=no
14913   need_version=no
14914   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14915   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14916   shlibpath_var=LD_LIBRARY_PATH
14917   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14918     case $host_os in
14919       openbsd2.[89] | openbsd2.[89].*)
14920         shlibpath_overrides_runpath=no
14921         ;;
14922       *)
14923         shlibpath_overrides_runpath=yes
14924         ;;
14925       esac
14926   else
14927     shlibpath_overrides_runpath=yes
14928   fi
14929   ;;
14930
14931 os2*)
14932   libname_spec='$name'
14933   shrext=".dll"
14934   need_lib_prefix=no
14935   library_names_spec='$libname${shared_ext} $libname.a'
14936   dynamic_linker='OS/2 ld.exe'
14937   shlibpath_var=LIBPATH
14938   ;;
14939
14940 osf3* | osf4* | osf5*)
14941   version_type=osf
14942   need_lib_prefix=no
14943   need_version=no
14944   soname_spec='${libname}${release}${shared_ext}$major'
14945   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14946   shlibpath_var=LD_LIBRARY_PATH
14947   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14948   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14949   ;;
14950
14951 sco3.2v5*)
14952   version_type=osf
14953   soname_spec='${libname}${release}${shared_ext}$major'
14954   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14955   shlibpath_var=LD_LIBRARY_PATH
14956   ;;
14957
14958 solaris*)
14959   version_type=linux
14960   need_lib_prefix=no
14961   need_version=no
14962   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14963   soname_spec='${libname}${release}${shared_ext}$major'
14964   shlibpath_var=LD_LIBRARY_PATH
14965   shlibpath_overrides_runpath=yes
14966   hardcode_into_libs=yes
14967   # ldd complains unless libraries are executable
14968   postinstall_cmds='chmod +x $lib'
14969   ;;
14970
14971 sunos4*)
14972   version_type=sunos
14973   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14974   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14975   shlibpath_var=LD_LIBRARY_PATH
14976   shlibpath_overrides_runpath=yes
14977   if test "$with_gnu_ld" = yes; then
14978     need_lib_prefix=no
14979   fi
14980   need_version=yes
14981   ;;
14982
14983 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14984   version_type=linux
14985   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14986   soname_spec='${libname}${release}${shared_ext}$major'
14987   shlibpath_var=LD_LIBRARY_PATH
14988   case $host_vendor in
14989     sni)
14990       shlibpath_overrides_runpath=no
14991       need_lib_prefix=no
14992       export_dynamic_flag_spec='${wl}-Blargedynsym'
14993       runpath_var=LD_RUN_PATH
14994       ;;
14995     siemens)
14996       need_lib_prefix=no
14997       ;;
14998     motorola)
14999       need_lib_prefix=no
15000       need_version=no
15001       shlibpath_overrides_runpath=no
15002       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15003       ;;
15004   esac
15005   ;;
15006
15007 sysv4*MP*)
15008   if test -d /usr/nec ;then
15009     version_type=linux
15010     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15011     soname_spec='$libname${shared_ext}.$major'
15012     shlibpath_var=LD_LIBRARY_PATH
15013   fi
15014   ;;
15015
15016 uts4*)
15017   version_type=linux
15018   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15019   soname_spec='${libname}${release}${shared_ext}$major'
15020   shlibpath_var=LD_LIBRARY_PATH
15021   ;;
15022
15023 *)
15024   dynamic_linker=no
15025   ;;
15026 esac
15027 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15028 $as_echo "$dynamic_linker" >&6; }
15029 test "$dynamic_linker" = no && can_build_shared=no
15030
15031 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15032 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15033 hardcode_action_F77=
15034 if test -n "$hardcode_libdir_flag_spec_F77" || \
15035    test -n "$runpath_var F77" || \
15036    test "X$hardcode_automatic_F77"="Xyes" ; then
15037
15038   # We can hardcode non-existant directories.
15039   if test "$hardcode_direct_F77" != no &&
15040      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15041      # have to relink, otherwise we might link with an installed library
15042      # when we should be linking with a yet-to-be-installed one
15043      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15044      test "$hardcode_minus_L_F77" != no; then
15045     # Linking always hardcodes the temporary library directory.
15046     hardcode_action_F77=relink
15047   else
15048     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15049     hardcode_action_F77=immediate
15050   fi
15051 else
15052   # We cannot hardcode anything, or else we can only hardcode existing
15053   # directories.
15054   hardcode_action_F77=unsupported
15055 fi
15056 { $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15057 $as_echo "$hardcode_action_F77" >&6; }
15058
15059 if test "$hardcode_action_F77" = relink; then
15060   # Fast installation is not supported
15061   enable_fast_install=no
15062 elif test "$shlibpath_overrides_runpath" = yes ||
15063      test "$enable_shared" = no; then
15064   # Fast installation is not necessary
15065   enable_fast_install=needless
15066 fi
15067
15068 striplib=
15069 old_striplib=
15070 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15071 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
15072 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15073   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15074   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15075   { $as_echo "$as_me:$LINENO: result: yes" >&5
15076 $as_echo "yes" >&6; }
15077 else
15078 # FIXME - insert some real tests, host_os isn't really good enough
15079   case $host_os in
15080    darwin*)
15081        if test -n "$STRIP" ; then
15082          striplib="$STRIP -x"
15083          { $as_echo "$as_me:$LINENO: result: yes" >&5
15084 $as_echo "yes" >&6; }
15085        else
15086   { $as_echo "$as_me:$LINENO: result: no" >&5
15087 $as_echo "no" >&6; }
15088 fi
15089        ;;
15090    *)
15091   { $as_echo "$as_me:$LINENO: result: no" >&5
15092 $as_echo "no" >&6; }
15093     ;;
15094   esac
15095 fi
15096
15097
15098
15099 # The else clause should only fire when bootstrapping the
15100 # libtool distribution, otherwise you forgot to ship ltmain.sh
15101 # with your package, and you will get complaints that there are
15102 # no rules to generate ltmain.sh.
15103 if test -f "$ltmain"; then
15104   # See if we are running on zsh, and set the options which allow our commands through
15105   # without removal of \ escapes.
15106   if test -n "${ZSH_VERSION+set}" ; then
15107     setopt NO_GLOB_SUBST
15108   fi
15109   # Now quote all the things that may contain metacharacters while being
15110   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15111   # variables and quote the copies for generation of the libtool script.
15112   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15113     SED SHELL STRIP \
15114     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15115     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15116     deplibs_check_method reload_flag reload_cmds need_locks \
15117     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15118     lt_cv_sys_global_symbol_to_c_name_address \
15119     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15120     old_postinstall_cmds old_postuninstall_cmds \
15121     compiler_F77 \
15122     CC_F77 \
15123     LD_F77 \
15124     lt_prog_compiler_wl_F77 \
15125     lt_prog_compiler_pic_F77 \
15126     lt_prog_compiler_static_F77 \
15127     lt_prog_compiler_no_builtin_flag_F77 \
15128     export_dynamic_flag_spec_F77 \
15129     thread_safe_flag_spec_F77 \
15130     whole_archive_flag_spec_F77 \
15131     enable_shared_with_static_runtimes_F77 \
15132     old_archive_cmds_F77 \
15133     old_archive_from_new_cmds_F77 \
15134     predep_objects_F77 \
15135     postdep_objects_F77 \
15136     predeps_F77 \
15137     postdeps_F77 \
15138     compiler_lib_search_path_F77 \
15139     archive_cmds_F77 \
15140     archive_expsym_cmds_F77 \
15141     postinstall_cmds_F77 \
15142     postuninstall_cmds_F77 \
15143     old_archive_from_expsyms_cmds_F77 \
15144     allow_undefined_flag_F77 \
15145     no_undefined_flag_F77 \
15146     export_symbols_cmds_F77 \
15147     hardcode_libdir_flag_spec_F77 \
15148     hardcode_libdir_flag_spec_ld_F77 \
15149     hardcode_libdir_separator_F77 \
15150     hardcode_automatic_F77 \
15151     module_cmds_F77 \
15152     module_expsym_cmds_F77 \
15153     lt_cv_prog_compiler_c_o_F77 \
15154     exclude_expsyms_F77 \
15155     include_expsyms_F77; do
15156
15157     case $var in
15158     old_archive_cmds_F77 | \
15159     old_archive_from_new_cmds_F77 | \
15160     archive_cmds_F77 | \
15161     archive_expsym_cmds_F77 | \
15162     module_cmds_F77 | \
15163     module_expsym_cmds_F77 | \
15164     old_archive_from_expsyms_cmds_F77 | \
15165     export_symbols_cmds_F77 | \
15166     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15167     postinstall_cmds | postuninstall_cmds | \
15168     old_postinstall_cmds | old_postuninstall_cmds | \
15169     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15170       # Double-quote double-evaled strings.
15171       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15172       ;;
15173     *)
15174       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15175       ;;
15176     esac
15177   done
15178
15179   case $lt_echo in
15180   *'\$0 --fallback-echo"')
15181     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15182     ;;
15183   esac
15184
15185 cfgfile="$ofile"
15186
15187   cat <<__EOF__ >> "$cfgfile"
15188 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15189
15190 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15191
15192 # Shell to use when invoking shell scripts.
15193 SHELL=$lt_SHELL
15194
15195 # Whether or not to build shared libraries.
15196 build_libtool_libs=$enable_shared
15197
15198 # Whether or not to build static libraries.
15199 build_old_libs=$enable_static
15200
15201 # Whether or not to add -lc for building shared libraries.
15202 build_libtool_need_lc=$archive_cmds_need_lc_F77
15203
15204 # Whether or not to disallow shared libs when runtime libs are static
15205 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15206
15207 # Whether or not to optimize for fast installation.
15208 fast_install=$enable_fast_install
15209
15210 # The host system.
15211 host_alias=$host_alias
15212 host=$host
15213
15214 # An echo program that does not interpret backslashes.
15215 echo=$lt_echo
15216
15217 # The archiver.
15218 AR=$lt_AR
15219 AR_FLAGS=$lt_AR_FLAGS
15220
15221 # A C compiler.
15222 LTCC=$lt_LTCC
15223
15224 # A language-specific compiler.
15225 CC=$lt_compiler_F77
15226
15227 # Is the compiler the GNU C compiler?
15228 with_gcc=$GCC_F77
15229
15230 # An ERE matcher.
15231 EGREP=$lt_EGREP
15232
15233 # The linker used to build libraries.
15234 LD=$lt_LD_F77
15235
15236 # Whether we need hard or soft links.
15237 LN_S=$lt_LN_S
15238
15239 # A BSD-compatible nm program.
15240 NM=$lt_NM
15241
15242 # A symbol stripping program
15243 STRIP=$lt_STRIP
15244
15245 # Used to examine libraries when file_magic_cmd begins "file"
15246 MAGIC_CMD=$MAGIC_CMD
15247
15248 # Used on cygwin: DLL creation program.
15249 DLLTOOL="$DLLTOOL"
15250
15251 # Used on cygwin: object dumper.
15252 OBJDUMP="$OBJDUMP"
15253
15254 # Used on cygwin: assembler.
15255 AS="$AS"
15256
15257 # The name of the directory that contains temporary libtool files.
15258 objdir=$objdir
15259
15260 # How to create reloadable object files.
15261 reload_flag=$lt_reload_flag
15262 reload_cmds=$lt_reload_cmds
15263
15264 # How to pass a linker flag through the compiler.
15265 wl=$lt_lt_prog_compiler_wl_F77
15266
15267 # Object file suffix (normally "o").
15268 objext="$ac_objext"
15269
15270 # Old archive suffix (normally "a").
15271 libext="$libext"
15272
15273 # Shared library suffix (normally ".so").
15274 shrext='$shrext'
15275
15276 # Executable file suffix (normally "").
15277 exeext="$exeext"
15278
15279 # Additional compiler flags for building library objects.
15280 pic_flag=$lt_lt_prog_compiler_pic_F77
15281 pic_mode=$pic_mode
15282
15283 # What is the maximum length of a command?
15284 max_cmd_len=$lt_cv_sys_max_cmd_len
15285
15286 # Does compiler simultaneously support -c and -o options?
15287 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15288
15289 # Must we lock files when doing compilation ?
15290 need_locks=$lt_need_locks
15291
15292 # Do we need the lib prefix for modules?
15293 need_lib_prefix=$need_lib_prefix
15294
15295 # Do we need a version for libraries?
15296 need_version=$need_version
15297
15298 # Whether dlopen is supported.
15299 dlopen_support=$enable_dlopen
15300
15301 # Whether dlopen of programs is supported.
15302 dlopen_self=$enable_dlopen_self
15303
15304 # Whether dlopen of statically linked programs is supported.
15305 dlopen_self_static=$enable_dlopen_self_static
15306
15307 # Compiler flag to prevent dynamic linking.
15308 link_static_flag=$lt_lt_prog_compiler_static_F77
15309
15310 # Compiler flag to turn off builtin functions.
15311 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15312
15313 # Compiler flag to allow reflexive dlopens.
15314 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15315
15316 # Compiler flag to generate shared objects directly from archives.
15317 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15318
15319 # Compiler flag to generate thread-safe objects.
15320 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15321
15322 # Library versioning type.
15323 version_type=$version_type
15324
15325 # Format of library name prefix.
15326 libname_spec=$lt_libname_spec
15327
15328 # List of archive names.  First name is the real one, the rest are links.
15329 # The last name is the one that the linker finds with -lNAME.
15330 library_names_spec=$lt_library_names_spec
15331
15332 # The coded name of the library, if different from the real name.
15333 soname_spec=$lt_soname_spec
15334
15335 # Commands used to build and install an old-style archive.
15336 RANLIB=$lt_RANLIB
15337 old_archive_cmds=$lt_old_archive_cmds_F77
15338 old_postinstall_cmds=$lt_old_postinstall_cmds
15339 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15340
15341 # Create an old-style archive from a shared archive.
15342 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15343
15344 # Create a temporary old-style archive to link instead of a shared archive.
15345 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15346
15347 # Commands used to build and install a shared archive.
15348 archive_cmds=$lt_archive_cmds_F77
15349 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15350 postinstall_cmds=$lt_postinstall_cmds
15351 postuninstall_cmds=$lt_postuninstall_cmds
15352
15353 # Commands used to build a loadable module (assumed same as above if empty)
15354 module_cmds=$lt_module_cmds_F77
15355 module_expsym_cmds=$lt_module_expsym_cmds_F77
15356
15357 # Commands to strip libraries.
15358 old_striplib=$lt_old_striplib
15359 striplib=$lt_striplib
15360
15361 # Dependencies to place before the objects being linked to create a
15362 # shared library.
15363 predep_objects=$lt_predep_objects_F77
15364
15365 # Dependencies to place after the objects being linked to create a
15366 # shared library.
15367 postdep_objects=$lt_postdep_objects_F77
15368
15369 # Dependencies to place before the objects being linked to create a
15370 # shared library.
15371 predeps=$lt_predeps_F77
15372
15373 # Dependencies to place after the objects being linked to create a
15374 # shared library.
15375 postdeps=$lt_postdeps_F77
15376
15377 # The library search path used internally by the compiler when linking
15378 # a shared library.
15379 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15380
15381 # Method to check whether dependent libraries are shared objects.
15382 deplibs_check_method=$lt_deplibs_check_method
15383
15384 # Command to use when deplibs_check_method == file_magic.
15385 file_magic_cmd=$lt_file_magic_cmd
15386
15387 # Flag that allows shared libraries with undefined symbols to be built.
15388 allow_undefined_flag=$lt_allow_undefined_flag_F77
15389
15390 # Flag that forces no undefined symbols.
15391 no_undefined_flag=$lt_no_undefined_flag_F77
15392
15393 # Commands used to finish a libtool library installation in a directory.
15394 finish_cmds=$lt_finish_cmds
15395
15396 # Same as above, but a single script fragment to be evaled but not shown.
15397 finish_eval=$lt_finish_eval
15398
15399 # Take the output of nm and produce a listing of raw symbols and C names.
15400 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15401
15402 # Transform the output of nm in a proper C declaration
15403 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15404
15405 # Transform the output of nm in a C name address pair
15406 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15407
15408 # This is the shared library runtime path variable.
15409 runpath_var=$runpath_var
15410
15411 # This is the shared library path variable.
15412 shlibpath_var=$shlibpath_var
15413
15414 # Is shlibpath searched before the hard-coded library search path?
15415 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15416
15417 # How to hardcode a shared library path into an executable.
15418 hardcode_action=$hardcode_action_F77
15419
15420 # Whether we should hardcode library paths into libraries.
15421 hardcode_into_libs=$hardcode_into_libs
15422
15423 # Flag to hardcode \$libdir into a binary during linking.
15424 # This must work even if \$libdir does not exist.
15425 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15426
15427 # If ld is used when linking, flag to hardcode \$libdir into
15428 # a binary during linking. This must work even if \$libdir does
15429 # not exist.
15430 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15431
15432 # Whether we need a single -rpath flag with a separated argument.
15433 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15434
15435 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15436 # resulting binary.
15437 hardcode_direct=$hardcode_direct_F77
15438
15439 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15440 # resulting binary.
15441 hardcode_minus_L=$hardcode_minus_L_F77
15442
15443 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15444 # the resulting binary.
15445 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15446
15447 # Set to yes if building a shared library automatically hardcodes DIR into the library
15448 # and all subsequent libraries and executables linked against it.
15449 hardcode_automatic=$hardcode_automatic_F77
15450
15451 # Variables whose values should be saved in libtool wrapper scripts and
15452 # restored at relink time.
15453 variables_saved_for_relink="$variables_saved_for_relink"
15454
15455 # Whether libtool must link a program against all its dependency libraries.
15456 link_all_deplibs=$link_all_deplibs_F77
15457
15458 # Compile-time system search path for libraries
15459 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15460
15461 # Run-time system search path for libraries
15462 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15463
15464 # Fix the shell variable \$srcfile for the compiler.
15465 fix_srcfile_path="$fix_srcfile_path_F77"
15466
15467 # Set to yes if exported symbols are required.
15468 always_export_symbols=$always_export_symbols_F77
15469
15470 # The commands to list exported symbols.
15471 export_symbols_cmds=$lt_export_symbols_cmds_F77
15472
15473 # The commands to extract the exported symbol list from a shared archive.
15474 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15475
15476 # Symbols that should not be listed in the preloaded symbols.
15477 exclude_expsyms=$lt_exclude_expsyms_F77
15478
15479 # Symbols that must always be exported.
15480 include_expsyms=$lt_include_expsyms_F77
15481
15482 # ### END LIBTOOL TAG CONFIG: $tagname
15483
15484 __EOF__
15485
15486
15487 else
15488   # If there is no Makefile yet, we rely on a make rule to execute
15489   # `config.status --recheck' to rerun these tests and create the
15490   # libtool script then.
15491   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15492   if test -f "$ltmain_in"; then
15493     test -f Makefile && make "$ltmain"
15494   fi
15495 fi
15496
15497
15498 ac_ext=c
15499 ac_cpp='$CPP $CPPFLAGS'
15500 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15501 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15502 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15503
15504 CC="$lt_save_CC"
15505
15506         else
15507           tagname=""
15508         fi
15509         ;;
15510
15511       GCJ)
15512         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15513
15514
15515 # Source file extension for Java test sources.
15516 ac_ext=java
15517
15518 # Object file extension for compiled Java test sources.
15519 objext=o
15520 objext_GCJ=$objext
15521
15522 # Code to be used in simple compile tests
15523 lt_simple_compile_test_code="class foo {}\n"
15524
15525 # Code to be used in simple link tests
15526 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15527
15528 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15529
15530 # If no C compiler was specified, use CC.
15531 LTCC=${LTCC-"$CC"}
15532
15533 # Allow CC to be a program name with arguments.
15534 compiler=$CC
15535
15536
15537 # Allow CC to be a program name with arguments.
15538 lt_save_CC="$CC"
15539 CC=${GCJ-"gcj"}
15540 compiler=$CC
15541 compiler_GCJ=$CC
15542
15543 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15544 archive_cmds_need_lc_GCJ=no
15545
15546 ## CAVEAT EMPTOR:
15547 ## There is no encapsulation within the following macros, do not change
15548 ## the running order or otherwise move them around unless you know exactly
15549 ## what you are doing...
15550
15551 lt_prog_compiler_no_builtin_flag_GCJ=
15552
15553 if test "$GCC" = yes; then
15554   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15555
15556
15557 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15558 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15559 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15560   $as_echo_n "(cached) " >&6
15561 else
15562   lt_cv_prog_compiler_rtti_exceptions=no
15563   ac_outfile=conftest.$ac_objext
15564    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15565    lt_compiler_flag="-fno-rtti -fno-exceptions"
15566    # Insert the option either (1) after the last *FLAGS variable, or
15567    # (2) before a word containing "conftest.", or (3) at the end.
15568    # Note that $ac_compile itself does not contain backslashes and begins
15569    # with a dollar sign (not a hyphen), so the echo should work correctly.
15570    # The option is referenced via a variable to avoid confusing sed.
15571    lt_compile=`echo "$ac_compile" | $SED \
15572    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15573    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15574    -e 's:$: $lt_compiler_flag:'`
15575    (eval echo "\"\$as_me:15575: $lt_compile\"" >&5)
15576    (eval "$lt_compile" 2>conftest.err)
15577    ac_status=$?
15578    cat conftest.err >&5
15579    echo "$as_me:15579: \$? = $ac_status" >&5
15580    if (exit $ac_status) && test -s "$ac_outfile"; then
15581      # The compiler can only warn and ignore the option if not recognized
15582      # So say no if there are warnings
15583      if test ! -s conftest.err; then
15584        lt_cv_prog_compiler_rtti_exceptions=yes
15585      fi
15586    fi
15587    $rm conftest*
15588
15589 fi
15590 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15591 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15592
15593 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15594     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15595 else
15596     :
15597 fi
15598
15599 fi
15600
15601 lt_prog_compiler_wl_GCJ=
15602 lt_prog_compiler_pic_GCJ=
15603 lt_prog_compiler_static_GCJ=
15604
15605 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15606 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15607
15608   if test "$GCC" = yes; then
15609     lt_prog_compiler_wl_GCJ='-Wl,'
15610     lt_prog_compiler_static_GCJ='-static'
15611
15612     case $host_os in
15613       aix*)
15614       # All AIX code is PIC.
15615       if test "$host_cpu" = ia64; then
15616         # AIX 5 now supports IA64 processor
15617         lt_prog_compiler_static_GCJ='-Bstatic'
15618       fi
15619       ;;
15620
15621     amigaos*)
15622       # FIXME: we need at least 68020 code to build shared libraries, but
15623       # adding the `-m68020' flag to GCC prevents building anything better,
15624       # like `-m68040'.
15625       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15626       ;;
15627
15628     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15629       # PIC is the default for these OSes.
15630       ;;
15631
15632     mingw* | pw32* | os2*)
15633       # This hack is so that the source file can tell whether it is being
15634       # built for inclusion in a dll (and should export symbols for example).
15635       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15636       ;;
15637
15638     darwin* | rhapsody*)
15639       # PIC is the default on this platform
15640       # Common symbols not allowed in MH_DYLIB files
15641       lt_prog_compiler_pic_GCJ='-fno-common'
15642       ;;
15643
15644     msdosdjgpp*)
15645       # Just because we use GCC doesn't mean we suddenly get shared libraries
15646       # on systems that don't support them.
15647       lt_prog_compiler_can_build_shared_GCJ=no
15648       enable_shared=no
15649       ;;
15650
15651     sysv4*MP*)
15652       if test -d /usr/nec; then
15653         lt_prog_compiler_pic_GCJ=-Kconform_pic
15654       fi
15655       ;;
15656
15657     hpux*)
15658       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15659       # not for PA HP-UX.
15660       case "$host_cpu" in
15661       hppa*64*|ia64*)
15662         # +Z the default
15663         ;;
15664       *)
15665         lt_prog_compiler_pic_GCJ='-fPIC'
15666         ;;
15667       esac
15668       ;;
15669
15670     *)
15671       lt_prog_compiler_pic_GCJ='-fPIC'
15672       ;;
15673     esac
15674   else
15675     # PORTME Check for flag to pass linker flags through the system compiler.
15676     case $host_os in
15677     aix*)
15678       lt_prog_compiler_wl_GCJ='-Wl,'
15679       if test "$host_cpu" = ia64; then
15680         # AIX 5 now supports IA64 processor
15681         lt_prog_compiler_static_GCJ='-Bstatic'
15682       else
15683         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15684       fi
15685       ;;
15686
15687     mingw* | pw32* | os2*)
15688       # This hack is so that the source file can tell whether it is being
15689       # built for inclusion in a dll (and should export symbols for example).
15690       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15691       ;;
15692
15693     hpux9* | hpux10* | hpux11*)
15694       lt_prog_compiler_wl_GCJ='-Wl,'
15695       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15696       # not for PA HP-UX.
15697       case "$host_cpu" in
15698       hppa*64*|ia64*)
15699         # +Z the default
15700         ;;
15701       *)
15702         lt_prog_compiler_pic_GCJ='+Z'
15703         ;;
15704       esac
15705       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15706       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15707       ;;
15708
15709     irix5* | irix6* | nonstopux*)
15710       lt_prog_compiler_wl_GCJ='-Wl,'
15711       # PIC (with -KPIC) is the default.
15712       lt_prog_compiler_static_GCJ='-non_shared'
15713       ;;
15714
15715     newsos6)
15716       lt_prog_compiler_pic_GCJ='-KPIC'
15717       lt_prog_compiler_static_GCJ='-Bstatic'
15718       ;;
15719
15720     linux*)
15721       case $CC in
15722       icc* | ecc*)
15723         lt_prog_compiler_wl_GCJ='-Wl,'
15724         lt_prog_compiler_pic_GCJ='-KPIC'
15725         lt_prog_compiler_static_GCJ='-static'
15726         ;;
15727       ccc*)
15728         lt_prog_compiler_wl_GCJ='-Wl,'
15729         # All Alpha code is PIC.
15730         lt_prog_compiler_static_GCJ='-non_shared'
15731         ;;
15732       esac
15733       ;;
15734
15735     osf3* | osf4* | osf5*)
15736       lt_prog_compiler_wl_GCJ='-Wl,'
15737       # All OSF/1 code is PIC.
15738       lt_prog_compiler_static_GCJ='-non_shared'
15739       ;;
15740
15741     sco3.2v5*)
15742       lt_prog_compiler_pic_GCJ='-Kpic'
15743       lt_prog_compiler_static_GCJ='-dn'
15744       ;;
15745
15746     solaris*)
15747       lt_prog_compiler_wl_GCJ='-Wl,'
15748       lt_prog_compiler_pic_GCJ='-KPIC'
15749       lt_prog_compiler_static_GCJ='-Bstatic'
15750       ;;
15751
15752     sunos4*)
15753       lt_prog_compiler_wl_GCJ='-Qoption ld '
15754       lt_prog_compiler_pic_GCJ='-PIC'
15755       lt_prog_compiler_static_GCJ='-Bstatic'
15756       ;;
15757
15758     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15759       lt_prog_compiler_wl_GCJ='-Wl,'
15760       lt_prog_compiler_pic_GCJ='-KPIC'
15761       lt_prog_compiler_static_GCJ='-Bstatic'
15762       ;;
15763
15764     sysv4*MP*)
15765       if test -d /usr/nec ;then
15766         lt_prog_compiler_pic_GCJ='-Kconform_pic'
15767         lt_prog_compiler_static_GCJ='-Bstatic'
15768       fi
15769       ;;
15770
15771     uts4*)
15772       lt_prog_compiler_pic_GCJ='-pic'
15773       lt_prog_compiler_static_GCJ='-Bstatic'
15774       ;;
15775
15776     *)
15777       lt_prog_compiler_can_build_shared_GCJ=no
15778       ;;
15779     esac
15780   fi
15781
15782 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15783 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
15784
15785 #
15786 # Check to make sure the PIC flag actually works.
15787 #
15788 if test -n "$lt_prog_compiler_pic_GCJ"; then
15789
15790 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15791 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
15792 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15793   $as_echo_n "(cached) " >&6
15794 else
15795   lt_prog_compiler_pic_works_GCJ=no
15796   ac_outfile=conftest.$ac_objext
15797    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15798    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15799    # Insert the option either (1) after the last *FLAGS variable, or
15800    # (2) before a word containing "conftest.", or (3) at the end.
15801    # Note that $ac_compile itself does not contain backslashes and begins
15802    # with a dollar sign (not a hyphen), so the echo should work correctly.
15803    # The option is referenced via a variable to avoid confusing sed.
15804    lt_compile=`echo "$ac_compile" | $SED \
15805    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15806    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15807    -e 's:$: $lt_compiler_flag:'`
15808    (eval echo "\"\$as_me:15808: $lt_compile\"" >&5)
15809    (eval "$lt_compile" 2>conftest.err)
15810    ac_status=$?
15811    cat conftest.err >&5
15812    echo "$as_me:15812: \$? = $ac_status" >&5
15813    if (exit $ac_status) && test -s "$ac_outfile"; then
15814      # The compiler can only warn and ignore the option if not recognized
15815      # So say no if there are warnings
15816      if test ! -s conftest.err; then
15817        lt_prog_compiler_pic_works_GCJ=yes
15818      fi
15819    fi
15820    $rm conftest*
15821
15822 fi
15823 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15824 $as_echo "$lt_prog_compiler_pic_works_GCJ" >&6; }
15825
15826 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15827     case $lt_prog_compiler_pic_GCJ in
15828      "" | " "*) ;;
15829      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15830      esac
15831 else
15832     lt_prog_compiler_pic_GCJ=
15833      lt_prog_compiler_can_build_shared_GCJ=no
15834 fi
15835
15836 fi
15837 case "$host_os" in
15838   # For platforms which do not support PIC, -DPIC is meaningless:
15839   *djgpp*)
15840     lt_prog_compiler_pic_GCJ=
15841     ;;
15842   *)
15843     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15844     ;;
15845 esac
15846
15847 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15848 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15849 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15850   $as_echo_n "(cached) " >&6
15851 else
15852   lt_cv_prog_compiler_c_o_GCJ=no
15853    $rm -r conftest 2>/dev/null
15854    mkdir conftest
15855    cd conftest
15856    mkdir out
15857    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15858
15859    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15860    # that will create temporary files in the current directory regardless of
15861    # the output directory.  Thus, making CWD read-only will cause this test
15862    # to fail, enabling locking or at least warning the user not to do parallel
15863    # builds.
15864    chmod -w .
15865
15866    lt_compiler_flag="-o out/conftest2.$ac_objext"
15867    # Insert the option either (1) after the last *FLAGS variable, or
15868    # (2) before a word containing "conftest.", or (3) at the end.
15869    # Note that $ac_compile itself does not contain backslashes and begins
15870    # with a dollar sign (not a hyphen), so the echo should work correctly.
15871    lt_compile=`echo "$ac_compile" | $SED \
15872    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15873    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15874    -e 's:$: $lt_compiler_flag:'`
15875    (eval echo "\"\$as_me:15875: $lt_compile\"" >&5)
15876    (eval "$lt_compile" 2>out/conftest.err)
15877    ac_status=$?
15878    cat out/conftest.err >&5
15879    echo "$as_me:15879: \$? = $ac_status" >&5
15880    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15881    then
15882      # The compiler can only warn and ignore the option if not recognized
15883      # So say no if there are warnings
15884      if test ! -s out/conftest.err; then
15885        lt_cv_prog_compiler_c_o_GCJ=yes
15886      fi
15887    fi
15888    chmod u+w .
15889    $rm conftest*
15890    # SGI C++ compiler will create directory out/ii_files/ for
15891    # template instantiation
15892    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15893    $rm out/* && rmdir out
15894    cd ..
15895    rmdir conftest
15896    $rm conftest*
15897
15898 fi
15899 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15900 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
15901
15902
15903 hard_links="nottested"
15904 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15905   # do not overwrite the value of need_locks provided by the user
15906   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15907 $as_echo_n "checking if we can lock with hard links... " >&6; }
15908   hard_links=yes
15909   $rm conftest*
15910   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15911   touch conftest.a
15912   ln conftest.a conftest.b 2>&5 || hard_links=no
15913   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15914   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
15915 $as_echo "$hard_links" >&6; }
15916   if test "$hard_links" = no; then
15917     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15918 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15919     need_locks=warn
15920   fi
15921 else
15922   need_locks=no
15923 fi
15924
15925 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15926 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15927
15928   runpath_var=
15929   allow_undefined_flag_GCJ=
15930   enable_shared_with_static_runtimes_GCJ=no
15931   archive_cmds_GCJ=
15932   archive_expsym_cmds_GCJ=
15933   old_archive_From_new_cmds_GCJ=
15934   old_archive_from_expsyms_cmds_GCJ=
15935   export_dynamic_flag_spec_GCJ=
15936   whole_archive_flag_spec_GCJ=
15937   thread_safe_flag_spec_GCJ=
15938   hardcode_libdir_flag_spec_GCJ=
15939   hardcode_libdir_flag_spec_ld_GCJ=
15940   hardcode_libdir_separator_GCJ=
15941   hardcode_direct_GCJ=no
15942   hardcode_minus_L_GCJ=no
15943   hardcode_shlibpath_var_GCJ=unsupported
15944   link_all_deplibs_GCJ=unknown
15945   hardcode_automatic_GCJ=no
15946   module_cmds_GCJ=
15947   module_expsym_cmds_GCJ=
15948   always_export_symbols_GCJ=no
15949   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15950   # include_expsyms should be a list of space-separated symbols to be *always*
15951   # included in the symbol list
15952   include_expsyms_GCJ=
15953   # exclude_expsyms can be an extended regexp of symbols to exclude
15954   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15955   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15956   # as well as any symbol that contains `d'.
15957   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15958   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15959   # platforms (ab)use it in PIC code, but their linkers get confused if
15960   # the symbol is explicitly referenced.  Since portable code cannot
15961   # rely on this symbol name, it's probably fine to never include it in
15962   # preloaded symbol tables.
15963   extract_expsyms_cmds=
15964
15965   case $host_os in
15966   cygwin* | mingw* | pw32*)
15967     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15968     # When not using gcc, we currently assume that we are using
15969     # Microsoft Visual C++.
15970     if test "$GCC" != yes; then
15971       with_gnu_ld=no
15972     fi
15973     ;;
15974   openbsd*)
15975     with_gnu_ld=no
15976     ;;
15977   esac
15978
15979   ld_shlibs_GCJ=yes
15980   if test "$with_gnu_ld" = yes; then
15981     # If archive_cmds runs LD, not CC, wlarc should be empty
15982     wlarc='${wl}'
15983
15984     # See if GNU ld supports shared libraries.
15985     case $host_os in
15986     aix3* | aix4* | aix5*)
15987       # On AIX/PPC, the GNU linker is very broken
15988       if test "$host_cpu" != ia64; then
15989         ld_shlibs_GCJ=no
15990         cat <<EOF 1>&2
15991
15992 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15993 *** to be unable to reliably create shared libraries on AIX.
15994 *** Therefore, libtool is disabling shared libraries support.  If you
15995 *** really care for shared libraries, you may want to modify your PATH
15996 *** so that a non-GNU linker is found, and then restart.
15997
15998 EOF
15999       fi
16000       ;;
16001
16002     amigaos*)
16003       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)'
16004       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16005       hardcode_minus_L_GCJ=yes
16006
16007       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16008       # that the semantics of dynamic libraries on AmigaOS, at least up
16009       # to version 4, is to share data among multiple programs linked
16010       # with the same dynamic library.  Since this doesn't match the
16011       # behavior of shared libraries on other platforms, we can't use
16012       # them.
16013       ld_shlibs_GCJ=no
16014       ;;
16015
16016     beos*)
16017       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16018         allow_undefined_flag_GCJ=unsupported
16019         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16020         # support --undefined.  This deserves some investigation.  FIXME
16021         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16022       else
16023         ld_shlibs_GCJ=no
16024       fi
16025       ;;
16026
16027     cygwin* | mingw* | pw32*)
16028       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16029       # as there is no search path for DLLs.
16030       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16031       allow_undefined_flag_GCJ=unsupported
16032       always_export_symbols_GCJ=no
16033       enable_shared_with_static_runtimes_GCJ=yes
16034       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16035
16036       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16037         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16038         # If the export-symbols file already is a .def file (1st line
16039         # is EXPORTS), use it as is; otherwise, prepend...
16040         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16041           cp $export_symbols $output_objdir/$soname.def;
16042         else
16043           echo EXPORTS > $output_objdir/$soname.def;
16044           cat $export_symbols >> $output_objdir/$soname.def;
16045         fi~
16046         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
16047       else
16048         ld_shlibs=no
16049       fi
16050       ;;
16051
16052     netbsd*)
16053       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16054         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16055         wlarc=
16056       else
16057         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16058         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16059       fi
16060       ;;
16061
16062     solaris* | sysv5*)
16063       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16064         ld_shlibs_GCJ=no
16065         cat <<EOF 1>&2
16066
16067 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16068 *** create shared libraries on Solaris systems.  Therefore, libtool
16069 *** is disabling shared libraries support.  We urge you to upgrade GNU
16070 *** binutils to release 2.9.1 or newer.  Another option is to modify
16071 *** your PATH or compiler configuration so that the native linker is
16072 *** used, and then restart.
16073
16074 EOF
16075       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16076         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16077         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16078       else
16079         ld_shlibs_GCJ=no
16080       fi
16081       ;;
16082
16083     sunos4*)
16084       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16085       wlarc=
16086       hardcode_direct_GCJ=yes
16087       hardcode_shlibpath_var_GCJ=no
16088       ;;
16089
16090   linux*)
16091     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
16092         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16093         archive_cmds_GCJ="$tmp_archive_cmds"
16094       supports_anon_versioning=no
16095       case `$LD -v 2>/dev/null` in
16096         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16097         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16098         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16099         *\ 2.11.*) ;; # other 2.11 versions
16100         *) supports_anon_versioning=yes ;;
16101       esac
16102       if test $supports_anon_versioning = yes; then
16103         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16104 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16105 $echo "local: *; };" >> $output_objdir/$libname.ver~
16106         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16107       else
16108         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16109       fi
16110     else
16111       ld_shlibs_GCJ=no
16112     fi
16113     ;;
16114
16115     *)
16116       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16117         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16118         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16119       else
16120         ld_shlibs_GCJ=no
16121       fi
16122       ;;
16123     esac
16124
16125     if test "$ld_shlibs_GCJ" = yes; then
16126       runpath_var=LD_RUN_PATH
16127       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16128       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16129       # ancient GNU ld didn't support --whole-archive et. al.
16130       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16131         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16132       else
16133         whole_archive_flag_spec_GCJ=
16134       fi
16135     fi
16136   else
16137     # PORTME fill in a description of your system's linker (not GNU ld)
16138     case $host_os in
16139     aix3*)
16140       allow_undefined_flag_GCJ=unsupported
16141       always_export_symbols_GCJ=yes
16142       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'
16143       # Note: this linker hardcodes the directories in LIBPATH if there
16144       # are no directories specified by -L.
16145       hardcode_minus_L_GCJ=yes
16146       if test "$GCC" = yes && test -z "$link_static_flag"; then
16147         # Neither direct hardcoding nor static linking is supported with a
16148         # broken collect2.
16149         hardcode_direct_GCJ=unsupported
16150       fi
16151       ;;
16152
16153     aix4* | aix5*)
16154       if test "$host_cpu" = ia64; then
16155         # On IA64, the linker does run time linking by default, so we don't
16156         # have to do anything special.
16157         aix_use_runtimelinking=no
16158         exp_sym_flag='-Bexport'
16159         no_entry_flag=""
16160       else
16161         # If we're using GNU nm, then we don't want the "-C" option.
16162         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16163         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16164           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'
16165         else
16166           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'
16167         fi
16168         aix_use_runtimelinking=no
16169
16170         # Test if we are trying to use run time linking or normal
16171         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16172         # need to do runtime linking.
16173         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16174           for ld_flag in $LDFLAGS; do
16175           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16176             aix_use_runtimelinking=yes
16177             break
16178           fi
16179           done
16180         esac
16181
16182         exp_sym_flag='-bexport'
16183         no_entry_flag='-bnoentry'
16184       fi
16185
16186       # When large executables or shared objects are built, AIX ld can
16187       # have problems creating the table of contents.  If linking a library
16188       # or program results in "error TOC overflow" add -mminimal-toc to
16189       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16190       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16191
16192       archive_cmds_GCJ=''
16193       hardcode_direct_GCJ=yes
16194       hardcode_libdir_separator_GCJ=':'
16195       link_all_deplibs_GCJ=yes
16196
16197       if test "$GCC" = yes; then
16198         case $host_os in aix4.012|aix4.012.*)
16199         # We only want to do this on AIX 4.2 and lower, the check
16200         # below for broken collect2 doesn't work under 4.3+
16201           collect2name=`${CC} -print-prog-name=collect2`
16202           if test -f "$collect2name" && \
16203            strings "$collect2name" | grep resolve_lib_name >/dev/null
16204           then
16205           # We have reworked collect2
16206           hardcode_direct_GCJ=yes
16207           else
16208           # We have old collect2
16209           hardcode_direct_GCJ=unsupported
16210           # It fails to find uninstalled libraries when the uninstalled
16211           # path is not listed in the libpath.  Setting hardcode_minus_L
16212           # to unsupported forces relinking
16213           hardcode_minus_L_GCJ=yes
16214           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16215           hardcode_libdir_separator_GCJ=
16216           fi
16217         esac
16218         shared_flag='-shared'
16219       else
16220         # not using gcc
16221         if test "$host_cpu" = ia64; then
16222         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16223         # chokes on -Wl,-G. The following line is correct:
16224           shared_flag='-G'
16225         else
16226         if test "$aix_use_runtimelinking" = yes; then
16227             shared_flag='${wl}-G'
16228           else
16229             shared_flag='${wl}-bM:SRE'
16230         fi
16231         fi
16232       fi
16233
16234       # It seems that -bexpall does not export symbols beginning with
16235       # underscore (_), so it is better to generate a list of symbols to export.
16236       always_export_symbols_GCJ=yes
16237       if test "$aix_use_runtimelinking" = yes; then
16238         # Warning - without using the other runtime loading flags (-brtl),
16239         # -berok will link without error, but may produce a broken library.
16240         allow_undefined_flag_GCJ='-berok'
16241        # Determine the default libpath from the value encoded in an empty executable.
16242        cat >conftest.$ac_ext <<_ACEOF
16243 /* confdefs.h.  */
16244 _ACEOF
16245 cat confdefs.h >>conftest.$ac_ext
16246 cat >>conftest.$ac_ext <<_ACEOF
16247 /* end confdefs.h.  */
16248
16249 int
16250 main ()
16251 {
16252
16253   ;
16254   return 0;
16255 }
16256 _ACEOF
16257 rm -f conftest.$ac_objext conftest$ac_exeext
16258 if { (ac_try="$ac_link"
16259 case "(($ac_try" in
16260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16261   *) ac_try_echo=$ac_try;;
16262 esac
16263 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16264 $as_echo "$ac_try_echo") >&5
16265   (eval "$ac_link") 2>conftest.er1
16266   ac_status=$?
16267   grep -v '^ *+' conftest.er1 >conftest.err
16268   rm -f conftest.er1
16269   cat conftest.err >&5
16270   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16271   (exit $ac_status); } && {
16272          test -z "$ac_c_werror_flag" ||
16273          test ! -s conftest.err
16274        } && test -s conftest$ac_exeext && {
16275          test "$cross_compiling" = yes ||
16276          $as_test_x conftest$ac_exeext
16277        }; then
16278
16279 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16280 }'`
16281 # Check for a 64-bit object if we didn't find anything.
16282 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; }
16283 }'`; fi
16284 else
16285   $as_echo "$as_me: failed program was:" >&5
16286 sed 's/^/| /' conftest.$ac_ext >&5
16287
16288
16289 fi
16290
16291 rm -rf conftest.dSYM
16292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16293       conftest$ac_exeext conftest.$ac_ext
16294 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16295
16296        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16297         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"
16298        else
16299         if test "$host_cpu" = ia64; then
16300           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16301           allow_undefined_flag_GCJ="-z nodefs"
16302           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"
16303         else
16304          # Determine the default libpath from the value encoded in an empty executable.
16305          cat >conftest.$ac_ext <<_ACEOF
16306 /* confdefs.h.  */
16307 _ACEOF
16308 cat confdefs.h >>conftest.$ac_ext
16309 cat >>conftest.$ac_ext <<_ACEOF
16310 /* end confdefs.h.  */
16311
16312 int
16313 main ()
16314 {
16315
16316   ;
16317   return 0;
16318 }
16319 _ACEOF
16320 rm -f conftest.$ac_objext conftest$ac_exeext
16321 if { (ac_try="$ac_link"
16322 case "(($ac_try" in
16323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16324   *) ac_try_echo=$ac_try;;
16325 esac
16326 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16327 $as_echo "$ac_try_echo") >&5
16328   (eval "$ac_link") 2>conftest.er1
16329   ac_status=$?
16330   grep -v '^ *+' conftest.er1 >conftest.err
16331   rm -f conftest.er1
16332   cat conftest.err >&5
16333   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16334   (exit $ac_status); } && {
16335          test -z "$ac_c_werror_flag" ||
16336          test ! -s conftest.err
16337        } && test -s conftest$ac_exeext && {
16338          test "$cross_compiling" = yes ||
16339          $as_test_x conftest$ac_exeext
16340        }; then
16341
16342 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16343 }'`
16344 # Check for a 64-bit object if we didn't find anything.
16345 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; }
16346 }'`; fi
16347 else
16348   $as_echo "$as_me: failed program was:" >&5
16349 sed 's/^/| /' conftest.$ac_ext >&5
16350
16351
16352 fi
16353
16354 rm -rf conftest.dSYM
16355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16356       conftest$ac_exeext conftest.$ac_ext
16357 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16358
16359          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16360           # Warning - without using the other run time loading flags,
16361           # -berok will link without error, but may produce a broken library.
16362           no_undefined_flag_GCJ=' ${wl}-bernotok'
16363           allow_undefined_flag_GCJ=' ${wl}-berok'
16364           # -bexpall does not export symbols beginning with underscore (_)
16365           always_export_symbols_GCJ=yes
16366           # Exported symbols can be pulled into shared objects from archives
16367           whole_archive_flag_spec_GCJ=' '
16368           archive_cmds_need_lc_GCJ=yes
16369           # This is similar to how AIX traditionally builds it's shared libraries.
16370           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'
16371         fi
16372       fi
16373       ;;
16374
16375     amigaos*)
16376       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)'
16377       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16378       hardcode_minus_L_GCJ=yes
16379       # see comment about different semantics on the GNU ld section
16380       ld_shlibs_GCJ=no
16381       ;;
16382
16383     bsdi4*)
16384       export_dynamic_flag_spec_GCJ=-rdynamic
16385       ;;
16386
16387     cygwin* | mingw* | pw32*)
16388       # When not using gcc, we currently assume that we are using
16389       # Microsoft Visual C++.
16390       # hardcode_libdir_flag_spec is actually meaningless, as there is
16391       # no search path for DLLs.
16392       hardcode_libdir_flag_spec_GCJ=' '
16393       allow_undefined_flag_GCJ=unsupported
16394       # Tell ltmain to make .lib files, not .a files.
16395       libext=lib
16396       # Tell ltmain to make .dll files, not .so files.
16397       shrext=".dll"
16398       # FIXME: Setting linknames here is a bad hack.
16399       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16400       # The linker will automatically build a .lib file if we build a DLL.
16401       old_archive_From_new_cmds_GCJ='true'
16402       # FIXME: Should let the user specify the lib program.
16403       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16404       fix_srcfile_path='`cygpath -w "$srcfile"`'
16405       enable_shared_with_static_runtimes_GCJ=yes
16406       ;;
16407
16408     darwin* | rhapsody*)
16409     if test "$GXX" = yes ; then
16410       archive_cmds_need_lc_GCJ=no
16411       case "$host_os" in
16412       rhapsody* | darwin1.[012])
16413         allow_undefined_flag_GCJ='-undefined suppress'
16414         ;;
16415       *) # Darwin 1.3 on
16416       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16417         allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16418       else
16419         case ${MACOSX_DEPLOYMENT_TARGET} in
16420           10.[012])
16421             allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16422             ;;
16423           10.*)
16424             allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16425             ;;
16426         esac
16427       fi
16428         ;;
16429       esac
16430         lt_int_apple_cc_single_mod=no
16431         output_verbose_link_cmd='echo'
16432         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16433           lt_int_apple_cc_single_mod=yes
16434         fi
16435         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16436           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16437         else
16438         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'
16439       fi
16440       module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16441       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16442         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16443           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}'
16444         else
16445           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}'
16446         fi
16447           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}'
16448       hardcode_direct_GCJ=no
16449       hardcode_automatic_GCJ=yes
16450       hardcode_shlibpath_var_GCJ=unsupported
16451       whole_archive_flag_spec_GCJ='-all_load $convenience'
16452       link_all_deplibs_GCJ=yes
16453     else
16454       ld_shlibs_GCJ=no
16455     fi
16456       ;;
16457
16458     dgux*)
16459       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16460       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16461       hardcode_shlibpath_var_GCJ=no
16462       ;;
16463
16464     freebsd1*)
16465       ld_shlibs_GCJ=no
16466       ;;
16467
16468     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16469     # support.  Future versions do this automatically, but an explicit c++rt0.o
16470     # does not break anything, and helps significantly (at the cost of a little
16471     # extra space).
16472     freebsd2.2*)
16473       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16474       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16475       hardcode_direct_GCJ=yes
16476       hardcode_shlibpath_var_GCJ=no
16477       ;;
16478
16479     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16480     freebsd2*)
16481       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16482       hardcode_direct_GCJ=yes
16483       hardcode_minus_L_GCJ=yes
16484       hardcode_shlibpath_var_GCJ=no
16485       ;;
16486
16487     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16488     freebsd* | kfreebsd*-gnu)
16489       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16490       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16491       hardcode_direct_GCJ=yes
16492       hardcode_shlibpath_var_GCJ=no
16493       ;;
16494
16495     hpux9*)
16496       if test "$GCC" = yes; then
16497         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'
16498       else
16499         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'
16500       fi
16501       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16502       hardcode_libdir_separator_GCJ=:
16503       hardcode_direct_GCJ=yes
16504
16505       # hardcode_minus_L: Not really in the search PATH,
16506       # but as the default location of the library.
16507       hardcode_minus_L_GCJ=yes
16508       export_dynamic_flag_spec_GCJ='${wl}-E'
16509       ;;
16510
16511     hpux10* | hpux11*)
16512       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16513         case "$host_cpu" in
16514         hppa*64*|ia64*)
16515           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16516           ;;
16517         *)
16518           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16519           ;;
16520         esac
16521       else
16522         case "$host_cpu" in
16523         hppa*64*|ia64*)
16524           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16525           ;;
16526         *)
16527           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16528           ;;
16529         esac
16530       fi
16531       if test "$with_gnu_ld" = no; then
16532         case "$host_cpu" in
16533         hppa*64*)
16534           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16535           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16536           hardcode_libdir_separator_GCJ=:
16537           hardcode_direct_GCJ=no
16538           hardcode_shlibpath_var_GCJ=no
16539           ;;
16540         ia64*)
16541           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16542           hardcode_direct_GCJ=no
16543           hardcode_shlibpath_var_GCJ=no
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         *)
16550           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16551           hardcode_libdir_separator_GCJ=:
16552           hardcode_direct_GCJ=yes
16553           export_dynamic_flag_spec_GCJ='${wl}-E'
16554
16555           # hardcode_minus_L: Not really in the search PATH,
16556           # but as the default location of the library.
16557           hardcode_minus_L_GCJ=yes
16558           ;;
16559         esac
16560       fi
16561       ;;
16562
16563     irix5* | irix6* | nonstopux*)
16564       if test "$GCC" = yes; then
16565         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'
16566       else
16567         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'
16568         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16569       fi
16570       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16571       hardcode_libdir_separator_GCJ=:
16572       link_all_deplibs_GCJ=yes
16573       ;;
16574
16575     netbsd*)
16576       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16577         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16578       else
16579         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16580       fi
16581       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16582       hardcode_direct_GCJ=yes
16583       hardcode_shlibpath_var_GCJ=no
16584       ;;
16585
16586     newsos6)
16587       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16588       hardcode_direct_GCJ=yes
16589       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16590       hardcode_libdir_separator_GCJ=:
16591       hardcode_shlibpath_var_GCJ=no
16592       ;;
16593
16594     openbsd*)
16595       hardcode_direct_GCJ=yes
16596       hardcode_shlibpath_var_GCJ=no
16597       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16598         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16599         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16600         export_dynamic_flag_spec_GCJ='${wl}-E'
16601       else
16602        case $host_os in
16603          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16604            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16605            hardcode_libdir_flag_spec_GCJ='-R$libdir'
16606            ;;
16607          *)
16608            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16609            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16610            ;;
16611        esac
16612       fi
16613       ;;
16614
16615     os2*)
16616       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16617       hardcode_minus_L_GCJ=yes
16618       allow_undefined_flag_GCJ=unsupported
16619       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'
16620       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16621       ;;
16622
16623     osf3*)
16624       if test "$GCC" = yes; then
16625         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16626         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'
16627       else
16628         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16629         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'
16630       fi
16631       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16632       hardcode_libdir_separator_GCJ=:
16633       ;;
16634
16635     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16636       if test "$GCC" = yes; then
16637         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16638         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'
16639         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16640       else
16641         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16642         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'
16643         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~
16644         $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'
16645
16646         # Both c and cxx compiler support -rpath directly
16647         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16648       fi
16649       hardcode_libdir_separator_GCJ=:
16650       ;;
16651
16652     sco3.2v5*)
16653       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16654       hardcode_shlibpath_var_GCJ=no
16655       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16656       runpath_var=LD_RUN_PATH
16657       hardcode_runpath_var=yes
16658       ;;
16659
16660     solaris*)
16661       no_undefined_flag_GCJ=' -z text'
16662       if test "$GCC" = yes; then
16663         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16664         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16665           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16666       else
16667         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16668         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16669         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16670       fi
16671       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16672       hardcode_shlibpath_var_GCJ=no
16673       case $host_os in
16674       solaris2.[0-5] | solaris2.[0-5].*) ;;
16675       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16676         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16677       esac
16678       link_all_deplibs_GCJ=yes
16679       ;;
16680
16681     sunos4*)
16682       if test "x$host_vendor" = xsequent; then
16683         # Use $CC to link under sequent, because it throws in some extra .o
16684         # files that make .init and .fini sections work.
16685         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16686       else
16687         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16688       fi
16689       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16690       hardcode_direct_GCJ=yes
16691       hardcode_minus_L_GCJ=yes
16692       hardcode_shlibpath_var_GCJ=no
16693       ;;
16694
16695     sysv4)
16696       case $host_vendor in
16697         sni)
16698           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16699           hardcode_direct_GCJ=yes # is this really true???
16700         ;;
16701         siemens)
16702           ## LD is ld it makes a PLAMLIB
16703           ## CC just makes a GrossModule.
16704           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16705           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16706           hardcode_direct_GCJ=no
16707         ;;
16708         motorola)
16709           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16710           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16711         ;;
16712       esac
16713       runpath_var='LD_RUN_PATH'
16714       hardcode_shlibpath_var_GCJ=no
16715       ;;
16716
16717     sysv4.3*)
16718       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16719       hardcode_shlibpath_var_GCJ=no
16720       export_dynamic_flag_spec_GCJ='-Bexport'
16721       ;;
16722
16723     sysv4*MP*)
16724       if test -d /usr/nec; then
16725         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16726         hardcode_shlibpath_var_GCJ=no
16727         runpath_var=LD_RUN_PATH
16728         hardcode_runpath_var=yes
16729         ld_shlibs_GCJ=yes
16730       fi
16731       ;;
16732
16733     sysv4.2uw2*)
16734       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16735       hardcode_direct_GCJ=yes
16736       hardcode_minus_L_GCJ=no
16737       hardcode_shlibpath_var_GCJ=no
16738       hardcode_runpath_var=yes
16739       runpath_var=LD_RUN_PATH
16740       ;;
16741
16742    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16743       no_undefined_flag_GCJ='${wl}-z ${wl}text'
16744       if test "$GCC" = yes; then
16745         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16746       else
16747         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16748       fi
16749       runpath_var='LD_RUN_PATH'
16750       hardcode_shlibpath_var_GCJ=no
16751       ;;
16752
16753     sysv5*)
16754       no_undefined_flag_GCJ=' -z text'
16755       # $CC -shared without GNU ld will not create a library from C++
16756       # object files and a static libstdc++, better avoid it by now
16757       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16758       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16759                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16760       hardcode_libdir_flag_spec_GCJ=
16761       hardcode_shlibpath_var_GCJ=no
16762       runpath_var='LD_RUN_PATH'
16763       ;;
16764
16765     uts4*)
16766       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16767       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16768       hardcode_shlibpath_var_GCJ=no
16769       ;;
16770
16771     *)
16772       ld_shlibs_GCJ=no
16773       ;;
16774     esac
16775   fi
16776
16777 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16778 $as_echo "$ld_shlibs_GCJ" >&6; }
16779 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16780
16781 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16782 if test "$GCC" = yes; then
16783   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16784 fi
16785
16786 #
16787 # Do we need to explicitly link libc?
16788 #
16789 case "x$archive_cmds_need_lc_GCJ" in
16790 x|xyes)
16791   # Assume -lc should be added
16792   archive_cmds_need_lc_GCJ=yes
16793
16794   if test "$enable_shared" = yes && test "$GCC" = yes; then
16795     case $archive_cmds_GCJ in
16796     *'~'*)
16797       # FIXME: we may have to deal with multi-command sequences.
16798       ;;
16799     '$CC '*)
16800       # Test whether the compiler implicitly links with -lc since on some
16801       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16802       # to ld, don't add -lc before -lgcc.
16803       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16804 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16805       $rm conftest*
16806       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16807
16808       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16809   (eval $ac_compile) 2>&5
16810   ac_status=$?
16811   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16812   (exit $ac_status); } 2>conftest.err; then
16813         soname=conftest
16814         lib=conftest
16815         libobjs=conftest.$ac_objext
16816         deplibs=
16817         wl=$lt_prog_compiler_wl_GCJ
16818         compiler_flags=-v
16819         linker_flags=-v
16820         verstring=
16821         output_objdir=.
16822         libname=conftest
16823         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16824         allow_undefined_flag_GCJ=
16825         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16826   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16827   ac_status=$?
16828   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16829   (exit $ac_status); }
16830         then
16831           archive_cmds_need_lc_GCJ=no
16832         else
16833           archive_cmds_need_lc_GCJ=yes
16834         fi
16835         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16836       else
16837         cat conftest.err 1>&5
16838       fi
16839       $rm conftest*
16840       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16841 $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
16842       ;;
16843     esac
16844   fi
16845   ;;
16846 esac
16847
16848 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16849 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16850 library_names_spec=
16851 libname_spec='lib$name'
16852 soname_spec=
16853 shrext=".so"
16854 postinstall_cmds=
16855 postuninstall_cmds=
16856 finish_cmds=
16857 finish_eval=
16858 shlibpath_var=
16859 shlibpath_overrides_runpath=unknown
16860 version_type=none
16861 dynamic_linker="$host_os ld.so"
16862 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16863 if test "$GCC" = yes; then
16864   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16865   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16866     # if the path contains ";" then we assume it to be the separator
16867     # otherwise default to the standard path separator (i.e. ":") - it is
16868     # assumed that no part of a normal pathname contains ";" but that should
16869     # okay in the real world where ";" in dirpaths is itself problematic.
16870     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16871   else
16872     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16873   fi
16874 else
16875   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16876 fi
16877 need_lib_prefix=unknown
16878 hardcode_into_libs=no
16879
16880 # when you set need_version to no, make sure it does not cause -set_version
16881 # flags to be left without arguments
16882 need_version=unknown
16883
16884 case $host_os in
16885 aix3*)
16886   version_type=linux
16887   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16888   shlibpath_var=LIBPATH
16889
16890   # AIX 3 has no versioning support, so we append a major version to the name.
16891   soname_spec='${libname}${release}${shared_ext}$major'
16892   ;;
16893
16894 aix4* | aix5*)
16895   version_type=linux
16896   need_lib_prefix=no
16897   need_version=no
16898   hardcode_into_libs=yes
16899   if test "$host_cpu" = ia64; then
16900     # AIX 5 supports IA64
16901     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16902     shlibpath_var=LD_LIBRARY_PATH
16903   else
16904     # With GCC up to 2.95.x, collect2 would create an import file
16905     # for dependence libraries.  The import file would start with
16906     # the line `#! .'.  This would cause the generated library to
16907     # depend on `.', always an invalid library.  This was fixed in
16908     # development snapshots of GCC prior to 3.0.
16909     case $host_os in
16910       aix4 | aix4.[01] | aix4.[01].*)
16911       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16912            echo ' yes '
16913            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16914         :
16915       else
16916         can_build_shared=no
16917       fi
16918       ;;
16919     esac
16920     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16921     # soname into executable. Probably we can add versioning support to
16922     # collect2, so additional links can be useful in future.
16923     if test "$aix_use_runtimelinking" = yes; then
16924       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16925       # instead of lib<name>.a to let people know that these are not
16926       # typical AIX shared libraries.
16927       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16928     else
16929       # We preserve .a as extension for shared libraries through AIX4.2
16930       # and later when we are not doing run time linking.
16931       library_names_spec='${libname}${release}.a $libname.a'
16932       soname_spec='${libname}${release}${shared_ext}$major'
16933     fi
16934     shlibpath_var=LIBPATH
16935   fi
16936   ;;
16937
16938 amigaos*)
16939   library_names_spec='$libname.ixlibrary $libname.a'
16940   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16941   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'
16942   ;;
16943
16944 beos*)
16945   library_names_spec='${libname}${shared_ext}'
16946   dynamic_linker="$host_os ld.so"
16947   shlibpath_var=LIBRARY_PATH
16948   ;;
16949
16950 bsdi4*)
16951   version_type=linux
16952   need_version=no
16953   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16954   soname_spec='${libname}${release}${shared_ext}$major'
16955   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16956   shlibpath_var=LD_LIBRARY_PATH
16957   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16958   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16959   # the default ld.so.conf also contains /usr/contrib/lib and
16960   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16961   # libtool to hard-code these into programs
16962   ;;
16963
16964 cygwin* | mingw* | pw32*)
16965   version_type=windows
16966   shrext=".dll"
16967   need_version=no
16968   need_lib_prefix=no
16969
16970   case $GCC,$host_os in
16971   yes,cygwin* | yes,mingw* | yes,pw32*)
16972     library_names_spec='$libname.dll.a'
16973     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16974     postinstall_cmds='base_file=`basename \${file}`~
16975       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16976       dldir=$destdir/`dirname \$dlpath`~
16977       test -d \$dldir || mkdir -p \$dldir~
16978       $install_prog $dir/$dlname \$dldir/$dlname'
16979     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16980       dlpath=$dir/\$dldll~
16981        $rm \$dlpath'
16982     shlibpath_overrides_runpath=yes
16983
16984     case $host_os in
16985     cygwin*)
16986       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16987       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16988       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16989       ;;
16990     mingw*)
16991       # MinGW DLLs use traditional 'lib' prefix
16992       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16993       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16994       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16995         # It is most probably a Windows format PATH printed by
16996         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16997         # path with ; separators, and with drive letters. We can handle the
16998         # drive letters (cygwin fileutils understands them), so leave them,
16999         # especially as we might pass files found there to a mingw objdump,
17000         # which wouldn't understand a cygwinified path. Ahh.
17001         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17002       else
17003         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17004       fi
17005       ;;
17006     pw32*)
17007       # pw32 DLLs use 'pw' prefix rather than 'lib'
17008       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17009       ;;
17010     esac
17011     ;;
17012
17013   *)
17014     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17015     ;;
17016   esac
17017   dynamic_linker='Win32 ld.exe'
17018   # FIXME: first we should search . and the directory the executable is in
17019   shlibpath_var=PATH
17020   ;;
17021
17022 darwin* | rhapsody*)
17023   dynamic_linker="$host_os dyld"
17024   version_type=darwin
17025   need_lib_prefix=no
17026   need_version=no
17027   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17028   soname_spec='${libname}${release}${major}$shared_ext'
17029   shlibpath_overrides_runpath=yes
17030   shlibpath_var=DYLD_LIBRARY_PATH
17031   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
17032   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17033   if test "$GCC" = yes; then
17034     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"`
17035   else
17036     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17037   fi
17038   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17039   ;;
17040
17041 dgux*)
17042   version_type=linux
17043   need_lib_prefix=no
17044   need_version=no
17045   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17046   soname_spec='${libname}${release}${shared_ext}$major'
17047   shlibpath_var=LD_LIBRARY_PATH
17048   ;;
17049
17050 freebsd1*)
17051   dynamic_linker=no
17052   ;;
17053
17054 kfreebsd*-gnu)
17055   version_type=linux
17056   need_lib_prefix=no
17057   need_version=no
17058   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17059   soname_spec='${libname}${release}${shared_ext}$major'
17060   shlibpath_var=LD_LIBRARY_PATH
17061   shlibpath_overrides_runpath=no
17062   hardcode_into_libs=yes
17063   dynamic_linker='GNU ld.so'
17064   ;;
17065
17066 freebsd*)
17067   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17068   version_type=freebsd-$objformat
17069   case $version_type in
17070     freebsd-elf*)
17071       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17072       need_version=no
17073       need_lib_prefix=no
17074       ;;
17075     freebsd-*)
17076       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17077       need_version=yes
17078       ;;
17079   esac
17080   shlibpath_var=LD_LIBRARY_PATH
17081   case $host_os in
17082   freebsd2*)
17083     shlibpath_overrides_runpath=yes
17084     ;;
17085   freebsd3.01* | freebsdelf3.01*)
17086     shlibpath_overrides_runpath=yes
17087     hardcode_into_libs=yes
17088     ;;
17089   *) # from 3.2 on
17090     shlibpath_overrides_runpath=no
17091     hardcode_into_libs=yes
17092     ;;
17093   esac
17094   ;;
17095
17096 gnu*)
17097   version_type=linux
17098   need_lib_prefix=no
17099   need_version=no
17100   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17101   soname_spec='${libname}${release}${shared_ext}$major'
17102   shlibpath_var=LD_LIBRARY_PATH
17103   hardcode_into_libs=yes
17104   ;;
17105
17106 hpux9* | hpux10* | hpux11*)
17107   # Give a soname corresponding to the major version so that dld.sl refuses to
17108   # link against other versions.
17109   version_type=sunos
17110   need_lib_prefix=no
17111   need_version=no
17112   case "$host_cpu" in
17113   ia64*)
17114     shrext='.so'
17115     hardcode_into_libs=yes
17116     dynamic_linker="$host_os dld.so"
17117     shlibpath_var=LD_LIBRARY_PATH
17118     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17119     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17120     soname_spec='${libname}${release}${shared_ext}$major'
17121     if test "X$HPUX_IA64_MODE" = X32; then
17122       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17123     else
17124       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17125     fi
17126     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17127     ;;
17128    hppa*64*)
17129      shrext='.sl'
17130      hardcode_into_libs=yes
17131      dynamic_linker="$host_os dld.sl"
17132      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17133      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17137      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17138      ;;
17139    *)
17140     shrext='.sl'
17141     dynamic_linker="$host_os dld.sl"
17142     shlibpath_var=SHLIB_PATH
17143     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17144     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17145     soname_spec='${libname}${release}${shared_ext}$major'
17146     ;;
17147   esac
17148   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17149   postinstall_cmds='chmod 555 $lib'
17150   ;;
17151
17152 irix5* | irix6* | nonstopux*)
17153   case $host_os in
17154     nonstopux*) version_type=nonstopux ;;
17155     *)
17156         if test "$lt_cv_prog_gnu_ld" = yes; then
17157                 version_type=linux
17158         else
17159                 version_type=irix
17160         fi ;;
17161   esac
17162   need_lib_prefix=no
17163   need_version=no
17164   soname_spec='${libname}${release}${shared_ext}$major'
17165   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17166   case $host_os in
17167   irix5* | nonstopux*)
17168     libsuff= shlibsuff=
17169     ;;
17170   *)
17171     case $LD in # libtool.m4 will add one of these switches to LD
17172     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17173       libsuff= shlibsuff= libmagic=32-bit;;
17174     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17175       libsuff=32 shlibsuff=N32 libmagic=N32;;
17176     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17177       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17178     *) libsuff= shlibsuff= libmagic=never-match;;
17179     esac
17180     ;;
17181   esac
17182   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17183   shlibpath_overrides_runpath=no
17184   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17185   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17186   hardcode_into_libs=yes
17187   ;;
17188
17189 # No shared lib support for Linux oldld, aout, or coff.
17190 linux*oldld* | linux*aout* | linux*coff*)
17191   dynamic_linker=no
17192   ;;
17193
17194 # This must be Linux ELF.
17195 linux*)
17196   version_type=linux
17197   need_lib_prefix=no
17198   need_version=no
17199   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17200   soname_spec='${libname}${release}${shared_ext}$major'
17201   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17202   shlibpath_var=LD_LIBRARY_PATH
17203   shlibpath_overrides_runpath=no
17204   # This implies no fast_install, which is unacceptable.
17205   # Some rework will be needed to allow for fast_install
17206   # before this can be enabled.
17207   hardcode_into_libs=yes
17208
17209   # We used to test for /lib/ld.so.1 and disable shared libraries on
17210   # powerpc, because MkLinux only supported shared libraries with the
17211   # GNU dynamic linker.  Since this was broken with cross compilers,
17212   # most powerpc-linux boxes support dynamic linking these days and
17213   # people can always --disable-shared, the test was removed, and we
17214   # assume the GNU/Linux dynamic linker is in use.
17215   dynamic_linker='GNU/Linux ld.so'
17216   ;;
17217
17218 netbsd*)
17219   version_type=sunos
17220   need_lib_prefix=no
17221   need_version=no
17222   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17223     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17224     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17225     dynamic_linker='NetBSD (a.out) ld.so'
17226   else
17227     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
17228     soname_spec='${libname}${release}${shared_ext}$major'
17229     dynamic_linker='NetBSD ld.elf_so'
17230   fi
17231   shlibpath_var=LD_LIBRARY_PATH
17232   shlibpath_overrides_runpath=yes
17233   hardcode_into_libs=yes
17234   ;;
17235
17236 newsos6)
17237   version_type=linux
17238   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17239   shlibpath_var=LD_LIBRARY_PATH
17240   shlibpath_overrides_runpath=yes
17241   ;;
17242
17243 nto-qnx*)
17244   version_type=linux
17245   need_lib_prefix=no
17246   need_version=no
17247   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17248   soname_spec='${libname}${release}${shared_ext}$major'
17249   shlibpath_var=LD_LIBRARY_PATH
17250   shlibpath_overrides_runpath=yes
17251   ;;
17252
17253 openbsd*)
17254   version_type=sunos
17255   need_lib_prefix=no
17256   need_version=no
17257   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17258   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17259   shlibpath_var=LD_LIBRARY_PATH
17260   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17261     case $host_os in
17262       openbsd2.[89] | openbsd2.[89].*)
17263         shlibpath_overrides_runpath=no
17264         ;;
17265       *)
17266         shlibpath_overrides_runpath=yes
17267         ;;
17268       esac
17269   else
17270     shlibpath_overrides_runpath=yes
17271   fi
17272   ;;
17273
17274 os2*)
17275   libname_spec='$name'
17276   shrext=".dll"
17277   need_lib_prefix=no
17278   library_names_spec='$libname${shared_ext} $libname.a'
17279   dynamic_linker='OS/2 ld.exe'
17280   shlibpath_var=LIBPATH
17281   ;;
17282
17283 osf3* | osf4* | osf5*)
17284   version_type=osf
17285   need_lib_prefix=no
17286   need_version=no
17287   soname_spec='${libname}${release}${shared_ext}$major'
17288   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17289   shlibpath_var=LD_LIBRARY_PATH
17290   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17291   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17292   ;;
17293
17294 sco3.2v5*)
17295   version_type=osf
17296   soname_spec='${libname}${release}${shared_ext}$major'
17297   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17298   shlibpath_var=LD_LIBRARY_PATH
17299   ;;
17300
17301 solaris*)
17302   version_type=linux
17303   need_lib_prefix=no
17304   need_version=no
17305   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17306   soname_spec='${libname}${release}${shared_ext}$major'
17307   shlibpath_var=LD_LIBRARY_PATH
17308   shlibpath_overrides_runpath=yes
17309   hardcode_into_libs=yes
17310   # ldd complains unless libraries are executable
17311   postinstall_cmds='chmod +x $lib'
17312   ;;
17313
17314 sunos4*)
17315   version_type=sunos
17316   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17317   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17318   shlibpath_var=LD_LIBRARY_PATH
17319   shlibpath_overrides_runpath=yes
17320   if test "$with_gnu_ld" = yes; then
17321     need_lib_prefix=no
17322   fi
17323   need_version=yes
17324   ;;
17325
17326 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17327   version_type=linux
17328   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17329   soname_spec='${libname}${release}${shared_ext}$major'
17330   shlibpath_var=LD_LIBRARY_PATH
17331   case $host_vendor in
17332     sni)
17333       shlibpath_overrides_runpath=no
17334       need_lib_prefix=no
17335       export_dynamic_flag_spec='${wl}-Blargedynsym'
17336       runpath_var=LD_RUN_PATH
17337       ;;
17338     siemens)
17339       need_lib_prefix=no
17340       ;;
17341     motorola)
17342       need_lib_prefix=no
17343       need_version=no
17344       shlibpath_overrides_runpath=no
17345       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17346       ;;
17347   esac
17348   ;;
17349
17350 sysv4*MP*)
17351   if test -d /usr/nec ;then
17352     version_type=linux
17353     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17354     soname_spec='$libname${shared_ext}.$major'
17355     shlibpath_var=LD_LIBRARY_PATH
17356   fi
17357   ;;
17358
17359 uts4*)
17360   version_type=linux
17361   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17362   soname_spec='${libname}${release}${shared_ext}$major'
17363   shlibpath_var=LD_LIBRARY_PATH
17364   ;;
17365
17366 *)
17367   dynamic_linker=no
17368   ;;
17369 esac
17370 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17371 $as_echo "$dynamic_linker" >&6; }
17372 test "$dynamic_linker" = no && can_build_shared=no
17373
17374 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17375 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17376 hardcode_action_GCJ=
17377 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17378    test -n "$runpath_var GCJ" || \
17379    test "X$hardcode_automatic_GCJ"="Xyes" ; then
17380
17381   # We can hardcode non-existant directories.
17382   if test "$hardcode_direct_GCJ" != no &&
17383      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17384      # have to relink, otherwise we might link with an installed library
17385      # when we should be linking with a yet-to-be-installed one
17386      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17387      test "$hardcode_minus_L_GCJ" != no; then
17388     # Linking always hardcodes the temporary library directory.
17389     hardcode_action_GCJ=relink
17390   else
17391     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17392     hardcode_action_GCJ=immediate
17393   fi
17394 else
17395   # We cannot hardcode anything, or else we can only hardcode existing
17396   # directories.
17397   hardcode_action_GCJ=unsupported
17398 fi
17399 { $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17400 $as_echo "$hardcode_action_GCJ" >&6; }
17401
17402 if test "$hardcode_action_GCJ" = relink; then
17403   # Fast installation is not supported
17404   enable_fast_install=no
17405 elif test "$shlibpath_overrides_runpath" = yes ||
17406      test "$enable_shared" = no; then
17407   # Fast installation is not necessary
17408   enable_fast_install=needless
17409 fi
17410
17411 striplib=
17412 old_striplib=
17413 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17414 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
17415 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17416   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17417   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17418   { $as_echo "$as_me:$LINENO: result: yes" >&5
17419 $as_echo "yes" >&6; }
17420 else
17421 # FIXME - insert some real tests, host_os isn't really good enough
17422   case $host_os in
17423    darwin*)
17424        if test -n "$STRIP" ; then
17425          striplib="$STRIP -x"
17426          { $as_echo "$as_me:$LINENO: result: yes" >&5
17427 $as_echo "yes" >&6; }
17428        else
17429   { $as_echo "$as_me:$LINENO: result: no" >&5
17430 $as_echo "no" >&6; }
17431 fi
17432        ;;
17433    *)
17434   { $as_echo "$as_me:$LINENO: result: no" >&5
17435 $as_echo "no" >&6; }
17436     ;;
17437   esac
17438 fi
17439
17440 if test "x$enable_dlopen" != xyes; then
17441   enable_dlopen=unknown
17442   enable_dlopen_self=unknown
17443   enable_dlopen_self_static=unknown
17444 else
17445   lt_cv_dlopen=no
17446   lt_cv_dlopen_libs=
17447
17448   case $host_os in
17449   beos*)
17450     lt_cv_dlopen="load_add_on"
17451     lt_cv_dlopen_libs=
17452     lt_cv_dlopen_self=yes
17453     ;;
17454
17455   mingw* | pw32*)
17456     lt_cv_dlopen="LoadLibrary"
17457     lt_cv_dlopen_libs=
17458    ;;
17459
17460   cygwin*)
17461     lt_cv_dlopen="dlopen"
17462     lt_cv_dlopen_libs=
17463    ;;
17464
17465   darwin*)
17466   # if libdl is installed we need to link against it
17467     { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17468 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17469 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17470   $as_echo_n "(cached) " >&6
17471 else
17472   ac_check_lib_save_LIBS=$LIBS
17473 LIBS="-ldl  $LIBS"
17474 cat >conftest.$ac_ext <<_ACEOF
17475 /* confdefs.h.  */
17476 _ACEOF
17477 cat confdefs.h >>conftest.$ac_ext
17478 cat >>conftest.$ac_ext <<_ACEOF
17479 /* end confdefs.h.  */
17480
17481 /* Override any GCC internal prototype to avoid an error.
17482    Use char because int might match the return type of a GCC
17483    builtin and then its argument prototype would still apply.  */
17484 #ifdef __cplusplus
17485 extern "C"
17486 #endif
17487 char dlopen ();
17488 int
17489 main ()
17490 {
17491 return dlopen ();
17492   ;
17493   return 0;
17494 }
17495 _ACEOF
17496 rm -f conftest.$ac_objext conftest$ac_exeext
17497 if { (ac_try="$ac_link"
17498 case "(($ac_try" in
17499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17500   *) ac_try_echo=$ac_try;;
17501 esac
17502 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17503 $as_echo "$ac_try_echo") >&5
17504   (eval "$ac_link") 2>conftest.er1
17505   ac_status=$?
17506   grep -v '^ *+' conftest.er1 >conftest.err
17507   rm -f conftest.er1
17508   cat conftest.err >&5
17509   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17510   (exit $ac_status); } && {
17511          test -z "$ac_c_werror_flag" ||
17512          test ! -s conftest.err
17513        } && test -s conftest$ac_exeext && {
17514          test "$cross_compiling" = yes ||
17515          $as_test_x conftest$ac_exeext
17516        }; then
17517   ac_cv_lib_dl_dlopen=yes
17518 else
17519   $as_echo "$as_me: failed program was:" >&5
17520 sed 's/^/| /' conftest.$ac_ext >&5
17521
17522         ac_cv_lib_dl_dlopen=no
17523 fi
17524
17525 rm -rf conftest.dSYM
17526 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17527       conftest$ac_exeext conftest.$ac_ext
17528 LIBS=$ac_check_lib_save_LIBS
17529 fi
17530 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17531 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17532 if test $ac_cv_lib_dl_dlopen = yes; then
17533   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17534 else
17535
17536     lt_cv_dlopen="dyld"
17537     lt_cv_dlopen_libs=
17538     lt_cv_dlopen_self=yes
17539
17540 fi
17541
17542    ;;
17543
17544   *)
17545     { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
17546 $as_echo_n "checking for shl_load... " >&6; }
17547 if test "${ac_cv_func_shl_load+set}" = set; then
17548   $as_echo_n "(cached) " >&6
17549 else
17550   cat >conftest.$ac_ext <<_ACEOF
17551 /* confdefs.h.  */
17552 _ACEOF
17553 cat confdefs.h >>conftest.$ac_ext
17554 cat >>conftest.$ac_ext <<_ACEOF
17555 /* end confdefs.h.  */
17556 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17557    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17558 #define shl_load innocuous_shl_load
17559
17560 /* System header to define __stub macros and hopefully few prototypes,
17561     which can conflict with char shl_load (); below.
17562     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17563     <limits.h> exists even on freestanding compilers.  */
17564
17565 #ifdef __STDC__
17566 # include <limits.h>
17567 #else
17568 # include <assert.h>
17569 #endif
17570
17571 #undef shl_load
17572
17573 /* Override any GCC internal prototype to avoid an error.
17574    Use char because int might match the return type of a GCC
17575    builtin and then its argument prototype would still apply.  */
17576 #ifdef __cplusplus
17577 extern "C"
17578 #endif
17579 char shl_load ();
17580 /* The GNU C library defines this for functions which it implements
17581     to always fail with ENOSYS.  Some functions are actually named
17582     something starting with __ and the normal name is an alias.  */
17583 #if defined __stub_shl_load || defined __stub___shl_load
17584 choke me
17585 #endif
17586
17587 int
17588 main ()
17589 {
17590 return shl_load ();
17591   ;
17592   return 0;
17593 }
17594 _ACEOF
17595 rm -f conftest.$ac_objext conftest$ac_exeext
17596 if { (ac_try="$ac_link"
17597 case "(($ac_try" in
17598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17599   *) ac_try_echo=$ac_try;;
17600 esac
17601 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17602 $as_echo "$ac_try_echo") >&5
17603   (eval "$ac_link") 2>conftest.er1
17604   ac_status=$?
17605   grep -v '^ *+' conftest.er1 >conftest.err
17606   rm -f conftest.er1
17607   cat conftest.err >&5
17608   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17609   (exit $ac_status); } && {
17610          test -z "$ac_c_werror_flag" ||
17611          test ! -s conftest.err
17612        } && test -s conftest$ac_exeext && {
17613          test "$cross_compiling" = yes ||
17614          $as_test_x conftest$ac_exeext
17615        }; then
17616   ac_cv_func_shl_load=yes
17617 else
17618   $as_echo "$as_me: failed program was:" >&5
17619 sed 's/^/| /' conftest.$ac_ext >&5
17620
17621         ac_cv_func_shl_load=no
17622 fi
17623
17624 rm -rf conftest.dSYM
17625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17626       conftest$ac_exeext conftest.$ac_ext
17627 fi
17628 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17629 $as_echo "$ac_cv_func_shl_load" >&6; }
17630 if test $ac_cv_func_shl_load = yes; then
17631   lt_cv_dlopen="shl_load"
17632 else
17633   { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17634 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17635 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17636   $as_echo_n "(cached) " >&6
17637 else
17638   ac_check_lib_save_LIBS=$LIBS
17639 LIBS="-ldld  $LIBS"
17640 cat >conftest.$ac_ext <<_ACEOF
17641 /* confdefs.h.  */
17642 _ACEOF
17643 cat confdefs.h >>conftest.$ac_ext
17644 cat >>conftest.$ac_ext <<_ACEOF
17645 /* end confdefs.h.  */
17646
17647 /* Override any GCC internal prototype to avoid an error.
17648    Use char because int might match the return type of a GCC
17649    builtin and then its argument prototype would still apply.  */
17650 #ifdef __cplusplus
17651 extern "C"
17652 #endif
17653 char shl_load ();
17654 int
17655 main ()
17656 {
17657 return shl_load ();
17658   ;
17659   return 0;
17660 }
17661 _ACEOF
17662 rm -f conftest.$ac_objext conftest$ac_exeext
17663 if { (ac_try="$ac_link"
17664 case "(($ac_try" in
17665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17666   *) ac_try_echo=$ac_try;;
17667 esac
17668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17669 $as_echo "$ac_try_echo") >&5
17670   (eval "$ac_link") 2>conftest.er1
17671   ac_status=$?
17672   grep -v '^ *+' conftest.er1 >conftest.err
17673   rm -f conftest.er1
17674   cat conftest.err >&5
17675   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17676   (exit $ac_status); } && {
17677          test -z "$ac_c_werror_flag" ||
17678          test ! -s conftest.err
17679        } && test -s conftest$ac_exeext && {
17680          test "$cross_compiling" = yes ||
17681          $as_test_x conftest$ac_exeext
17682        }; then
17683   ac_cv_lib_dld_shl_load=yes
17684 else
17685   $as_echo "$as_me: failed program was:" >&5
17686 sed 's/^/| /' conftest.$ac_ext >&5
17687
17688         ac_cv_lib_dld_shl_load=no
17689 fi
17690
17691 rm -rf conftest.dSYM
17692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17693       conftest$ac_exeext conftest.$ac_ext
17694 LIBS=$ac_check_lib_save_LIBS
17695 fi
17696 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17697 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17698 if test $ac_cv_lib_dld_shl_load = yes; then
17699   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17700 else
17701   { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
17702 $as_echo_n "checking for dlopen... " >&6; }
17703 if test "${ac_cv_func_dlopen+set}" = set; then
17704   $as_echo_n "(cached) " >&6
17705 else
17706   cat >conftest.$ac_ext <<_ACEOF
17707 /* confdefs.h.  */
17708 _ACEOF
17709 cat confdefs.h >>conftest.$ac_ext
17710 cat >>conftest.$ac_ext <<_ACEOF
17711 /* end confdefs.h.  */
17712 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17713    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17714 #define dlopen innocuous_dlopen
17715
17716 /* System header to define __stub macros and hopefully few prototypes,
17717     which can conflict with char dlopen (); below.
17718     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17719     <limits.h> exists even on freestanding compilers.  */
17720
17721 #ifdef __STDC__
17722 # include <limits.h>
17723 #else
17724 # include <assert.h>
17725 #endif
17726
17727 #undef dlopen
17728
17729 /* Override any GCC internal prototype to avoid an error.
17730    Use char because int might match the return type of a GCC
17731    builtin and then its argument prototype would still apply.  */
17732 #ifdef __cplusplus
17733 extern "C"
17734 #endif
17735 char dlopen ();
17736 /* The GNU C library defines this for functions which it implements
17737     to always fail with ENOSYS.  Some functions are actually named
17738     something starting with __ and the normal name is an alias.  */
17739 #if defined __stub_dlopen || defined __stub___dlopen
17740 choke me
17741 #endif
17742
17743 int
17744 main ()
17745 {
17746 return dlopen ();
17747   ;
17748   return 0;
17749 }
17750 _ACEOF
17751 rm -f conftest.$ac_objext conftest$ac_exeext
17752 if { (ac_try="$ac_link"
17753 case "(($ac_try" in
17754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17755   *) ac_try_echo=$ac_try;;
17756 esac
17757 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17758 $as_echo "$ac_try_echo") >&5
17759   (eval "$ac_link") 2>conftest.er1
17760   ac_status=$?
17761   grep -v '^ *+' conftest.er1 >conftest.err
17762   rm -f conftest.er1
17763   cat conftest.err >&5
17764   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17765   (exit $ac_status); } && {
17766          test -z "$ac_c_werror_flag" ||
17767          test ! -s conftest.err
17768        } && test -s conftest$ac_exeext && {
17769          test "$cross_compiling" = yes ||
17770          $as_test_x conftest$ac_exeext
17771        }; then
17772   ac_cv_func_dlopen=yes
17773 else
17774   $as_echo "$as_me: failed program was:" >&5
17775 sed 's/^/| /' conftest.$ac_ext >&5
17776
17777         ac_cv_func_dlopen=no
17778 fi
17779
17780 rm -rf conftest.dSYM
17781 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17782       conftest$ac_exeext conftest.$ac_ext
17783 fi
17784 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17785 $as_echo "$ac_cv_func_dlopen" >&6; }
17786 if test $ac_cv_func_dlopen = yes; then
17787   lt_cv_dlopen="dlopen"
17788 else
17789   { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17790 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17791 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17792   $as_echo_n "(cached) " >&6
17793 else
17794   ac_check_lib_save_LIBS=$LIBS
17795 LIBS="-ldl  $LIBS"
17796 cat >conftest.$ac_ext <<_ACEOF
17797 /* confdefs.h.  */
17798 _ACEOF
17799 cat confdefs.h >>conftest.$ac_ext
17800 cat >>conftest.$ac_ext <<_ACEOF
17801 /* end confdefs.h.  */
17802
17803 /* Override any GCC internal prototype to avoid an error.
17804    Use char because int might match the return type of a GCC
17805    builtin and then its argument prototype would still apply.  */
17806 #ifdef __cplusplus
17807 extern "C"
17808 #endif
17809 char dlopen ();
17810 int
17811 main ()
17812 {
17813 return dlopen ();
17814   ;
17815   return 0;
17816 }
17817 _ACEOF
17818 rm -f conftest.$ac_objext conftest$ac_exeext
17819 if { (ac_try="$ac_link"
17820 case "(($ac_try" in
17821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17822   *) ac_try_echo=$ac_try;;
17823 esac
17824 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17825 $as_echo "$ac_try_echo") >&5
17826   (eval "$ac_link") 2>conftest.er1
17827   ac_status=$?
17828   grep -v '^ *+' conftest.er1 >conftest.err
17829   rm -f conftest.er1
17830   cat conftest.err >&5
17831   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17832   (exit $ac_status); } && {
17833          test -z "$ac_c_werror_flag" ||
17834          test ! -s conftest.err
17835        } && test -s conftest$ac_exeext && {
17836          test "$cross_compiling" = yes ||
17837          $as_test_x conftest$ac_exeext
17838        }; then
17839   ac_cv_lib_dl_dlopen=yes
17840 else
17841   $as_echo "$as_me: failed program was:" >&5
17842 sed 's/^/| /' conftest.$ac_ext >&5
17843
17844         ac_cv_lib_dl_dlopen=no
17845 fi
17846
17847 rm -rf conftest.dSYM
17848 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17849       conftest$ac_exeext conftest.$ac_ext
17850 LIBS=$ac_check_lib_save_LIBS
17851 fi
17852 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17853 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17854 if test $ac_cv_lib_dl_dlopen = yes; then
17855   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17856 else
17857   { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17858 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17859 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17860   $as_echo_n "(cached) " >&6
17861 else
17862   ac_check_lib_save_LIBS=$LIBS
17863 LIBS="-lsvld  $LIBS"
17864 cat >conftest.$ac_ext <<_ACEOF
17865 /* confdefs.h.  */
17866 _ACEOF
17867 cat confdefs.h >>conftest.$ac_ext
17868 cat >>conftest.$ac_ext <<_ACEOF
17869 /* end confdefs.h.  */
17870
17871 /* Override any GCC internal prototype to avoid an error.
17872    Use char because int might match the return type of a GCC
17873    builtin and then its argument prototype would still apply.  */
17874 #ifdef __cplusplus
17875 extern "C"
17876 #endif
17877 char dlopen ();
17878 int
17879 main ()
17880 {
17881 return dlopen ();
17882   ;
17883   return 0;
17884 }
17885 _ACEOF
17886 rm -f conftest.$ac_objext conftest$ac_exeext
17887 if { (ac_try="$ac_link"
17888 case "(($ac_try" in
17889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17890   *) ac_try_echo=$ac_try;;
17891 esac
17892 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17893 $as_echo "$ac_try_echo") >&5
17894   (eval "$ac_link") 2>conftest.er1
17895   ac_status=$?
17896   grep -v '^ *+' conftest.er1 >conftest.err
17897   rm -f conftest.er1
17898   cat conftest.err >&5
17899   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17900   (exit $ac_status); } && {
17901          test -z "$ac_c_werror_flag" ||
17902          test ! -s conftest.err
17903        } && test -s conftest$ac_exeext && {
17904          test "$cross_compiling" = yes ||
17905          $as_test_x conftest$ac_exeext
17906        }; then
17907   ac_cv_lib_svld_dlopen=yes
17908 else
17909   $as_echo "$as_me: failed program was:" >&5
17910 sed 's/^/| /' conftest.$ac_ext >&5
17911
17912         ac_cv_lib_svld_dlopen=no
17913 fi
17914
17915 rm -rf conftest.dSYM
17916 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17917       conftest$ac_exeext conftest.$ac_ext
17918 LIBS=$ac_check_lib_save_LIBS
17919 fi
17920 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17921 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17922 if test $ac_cv_lib_svld_dlopen = yes; then
17923   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17924 else
17925   { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17926 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17927 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17928   $as_echo_n "(cached) " >&6
17929 else
17930   ac_check_lib_save_LIBS=$LIBS
17931 LIBS="-ldld  $LIBS"
17932 cat >conftest.$ac_ext <<_ACEOF
17933 /* confdefs.h.  */
17934 _ACEOF
17935 cat confdefs.h >>conftest.$ac_ext
17936 cat >>conftest.$ac_ext <<_ACEOF
17937 /* end confdefs.h.  */
17938
17939 /* Override any GCC internal prototype to avoid an error.
17940    Use char because int might match the return type of a GCC
17941    builtin and then its argument prototype would still apply.  */
17942 #ifdef __cplusplus
17943 extern "C"
17944 #endif
17945 char dld_link ();
17946 int
17947 main ()
17948 {
17949 return dld_link ();
17950   ;
17951   return 0;
17952 }
17953 _ACEOF
17954 rm -f conftest.$ac_objext conftest$ac_exeext
17955 if { (ac_try="$ac_link"
17956 case "(($ac_try" in
17957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17958   *) ac_try_echo=$ac_try;;
17959 esac
17960 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17961 $as_echo "$ac_try_echo") >&5
17962   (eval "$ac_link") 2>conftest.er1
17963   ac_status=$?
17964   grep -v '^ *+' conftest.er1 >conftest.err
17965   rm -f conftest.er1
17966   cat conftest.err >&5
17967   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17968   (exit $ac_status); } && {
17969          test -z "$ac_c_werror_flag" ||
17970          test ! -s conftest.err
17971        } && test -s conftest$ac_exeext && {
17972          test "$cross_compiling" = yes ||
17973          $as_test_x conftest$ac_exeext
17974        }; then
17975   ac_cv_lib_dld_dld_link=yes
17976 else
17977   $as_echo "$as_me: failed program was:" >&5
17978 sed 's/^/| /' conftest.$ac_ext >&5
17979
17980         ac_cv_lib_dld_dld_link=no
17981 fi
17982
17983 rm -rf conftest.dSYM
17984 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17985       conftest$ac_exeext conftest.$ac_ext
17986 LIBS=$ac_check_lib_save_LIBS
17987 fi
17988 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17989 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17990 if test $ac_cv_lib_dld_dld_link = yes; then
17991   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17992 fi
17993
17994
17995 fi
17996
17997
17998 fi
17999
18000
18001 fi
18002
18003
18004 fi
18005
18006
18007 fi
18008
18009     ;;
18010   esac
18011
18012   if test "x$lt_cv_dlopen" != xno; then
18013     enable_dlopen=yes
18014   else
18015     enable_dlopen=no
18016   fi
18017
18018   case $lt_cv_dlopen in
18019   dlopen)
18020     save_CPPFLAGS="$CPPFLAGS"
18021     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18022
18023     save_LDFLAGS="$LDFLAGS"
18024     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18025
18026     save_LIBS="$LIBS"
18027     LIBS="$lt_cv_dlopen_libs $LIBS"
18028
18029     { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18030 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18031 if test "${lt_cv_dlopen_self+set}" = set; then
18032   $as_echo_n "(cached) " >&6
18033 else
18034           if test "$cross_compiling" = yes; then :
18035   lt_cv_dlopen_self=cross
18036 else
18037   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18038   lt_status=$lt_dlunknown
18039   cat > conftest.$ac_ext <<EOF
18040 #line 18040 "configure"
18041 #include "confdefs.h"
18042
18043 #if HAVE_DLFCN_H
18044 #include <dlfcn.h>
18045 #endif
18046
18047 #include <stdio.h>
18048
18049 #ifdef RTLD_GLOBAL
18050 #  define LT_DLGLOBAL           RTLD_GLOBAL
18051 #else
18052 #  ifdef DL_GLOBAL
18053 #    define LT_DLGLOBAL         DL_GLOBAL
18054 #  else
18055 #    define LT_DLGLOBAL         0
18056 #  endif
18057 #endif
18058
18059 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18060    find out it does not work in some platform. */
18061 #ifndef LT_DLLAZY_OR_NOW
18062 #  ifdef RTLD_LAZY
18063 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18064 #  else
18065 #    ifdef DL_LAZY
18066 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18067 #    else
18068 #      ifdef RTLD_NOW
18069 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18070 #      else
18071 #        ifdef DL_NOW
18072 #          define LT_DLLAZY_OR_NOW      DL_NOW
18073 #        else
18074 #          define LT_DLLAZY_OR_NOW      0
18075 #        endif
18076 #      endif
18077 #    endif
18078 #  endif
18079 #endif
18080
18081 #ifdef __cplusplus
18082 extern "C" void exit (int);
18083 #endif
18084
18085 void fnord() { int i=42;}
18086 int main ()
18087 {
18088   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18089   int status = $lt_dlunknown;
18090
18091   if (self)
18092     {
18093       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18094       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18095       /* dlclose (self); */
18096     }
18097
18098     exit (status);
18099 }
18100 EOF
18101   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18102   (eval $ac_link) 2>&5
18103   ac_status=$?
18104   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18105   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18106     (./conftest; exit; ) 2>/dev/null
18107     lt_status=$?
18108     case x$lt_status in
18109       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18110       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18111       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18112     esac
18113   else :
18114     # compilation failed
18115     lt_cv_dlopen_self=no
18116   fi
18117 fi
18118 rm -fr conftest*
18119
18120
18121 fi
18122 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18123 $as_echo "$lt_cv_dlopen_self" >&6; }
18124
18125     if test "x$lt_cv_dlopen_self" = xyes; then
18126       LDFLAGS="$LDFLAGS $link_static_flag"
18127       { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18128 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18129 if test "${lt_cv_dlopen_self_static+set}" = set; then
18130   $as_echo_n "(cached) " >&6
18131 else
18132           if test "$cross_compiling" = yes; then :
18133   lt_cv_dlopen_self_static=cross
18134 else
18135   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18136   lt_status=$lt_dlunknown
18137   cat > conftest.$ac_ext <<EOF
18138 #line 18138 "configure"
18139 #include "confdefs.h"
18140
18141 #if HAVE_DLFCN_H
18142 #include <dlfcn.h>
18143 #endif
18144
18145 #include <stdio.h>
18146
18147 #ifdef RTLD_GLOBAL
18148 #  define LT_DLGLOBAL           RTLD_GLOBAL
18149 #else
18150 #  ifdef DL_GLOBAL
18151 #    define LT_DLGLOBAL         DL_GLOBAL
18152 #  else
18153 #    define LT_DLGLOBAL         0
18154 #  endif
18155 #endif
18156
18157 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18158    find out it does not work in some platform. */
18159 #ifndef LT_DLLAZY_OR_NOW
18160 #  ifdef RTLD_LAZY
18161 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18162 #  else
18163 #    ifdef DL_LAZY
18164 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18165 #    else
18166 #      ifdef RTLD_NOW
18167 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18168 #      else
18169 #        ifdef DL_NOW
18170 #          define LT_DLLAZY_OR_NOW      DL_NOW
18171 #        else
18172 #          define LT_DLLAZY_OR_NOW      0
18173 #        endif
18174 #      endif
18175 #    endif
18176 #  endif
18177 #endif
18178
18179 #ifdef __cplusplus
18180 extern "C" void exit (int);
18181 #endif
18182
18183 void fnord() { int i=42;}
18184 int main ()
18185 {
18186   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18187   int status = $lt_dlunknown;
18188
18189   if (self)
18190     {
18191       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18192       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18193       /* dlclose (self); */
18194     }
18195
18196     exit (status);
18197 }
18198 EOF
18199   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18200   (eval $ac_link) 2>&5
18201   ac_status=$?
18202   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18203   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18204     (./conftest; exit; ) 2>/dev/null
18205     lt_status=$?
18206     case x$lt_status in
18207       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18208       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18209       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18210     esac
18211   else :
18212     # compilation failed
18213     lt_cv_dlopen_self_static=no
18214   fi
18215 fi
18216 rm -fr conftest*
18217
18218
18219 fi
18220 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18221 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18222     fi
18223
18224     CPPFLAGS="$save_CPPFLAGS"
18225     LDFLAGS="$save_LDFLAGS"
18226     LIBS="$save_LIBS"
18227     ;;
18228   esac
18229
18230   case $lt_cv_dlopen_self in
18231   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18232   *) enable_dlopen_self=unknown ;;
18233   esac
18234
18235   case $lt_cv_dlopen_self_static in
18236   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18237   *) enable_dlopen_self_static=unknown ;;
18238   esac
18239 fi
18240
18241
18242 # The else clause should only fire when bootstrapping the
18243 # libtool distribution, otherwise you forgot to ship ltmain.sh
18244 # with your package, and you will get complaints that there are
18245 # no rules to generate ltmain.sh.
18246 if test -f "$ltmain"; then
18247   # See if we are running on zsh, and set the options which allow our commands through
18248   # without removal of \ escapes.
18249   if test -n "${ZSH_VERSION+set}" ; then
18250     setopt NO_GLOB_SUBST
18251   fi
18252   # Now quote all the things that may contain metacharacters while being
18253   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18254   # variables and quote the copies for generation of the libtool script.
18255   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18256     SED SHELL STRIP \
18257     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18258     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18259     deplibs_check_method reload_flag reload_cmds need_locks \
18260     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18261     lt_cv_sys_global_symbol_to_c_name_address \
18262     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18263     old_postinstall_cmds old_postuninstall_cmds \
18264     compiler_GCJ \
18265     CC_GCJ \
18266     LD_GCJ \
18267     lt_prog_compiler_wl_GCJ \
18268     lt_prog_compiler_pic_GCJ \
18269     lt_prog_compiler_static_GCJ \
18270     lt_prog_compiler_no_builtin_flag_GCJ \
18271     export_dynamic_flag_spec_GCJ \
18272     thread_safe_flag_spec_GCJ \
18273     whole_archive_flag_spec_GCJ \
18274     enable_shared_with_static_runtimes_GCJ \
18275     old_archive_cmds_GCJ \
18276     old_archive_from_new_cmds_GCJ \
18277     predep_objects_GCJ \
18278     postdep_objects_GCJ \
18279     predeps_GCJ \
18280     postdeps_GCJ \
18281     compiler_lib_search_path_GCJ \
18282     archive_cmds_GCJ \
18283     archive_expsym_cmds_GCJ \
18284     postinstall_cmds_GCJ \
18285     postuninstall_cmds_GCJ \
18286     old_archive_from_expsyms_cmds_GCJ \
18287     allow_undefined_flag_GCJ \
18288     no_undefined_flag_GCJ \
18289     export_symbols_cmds_GCJ \
18290     hardcode_libdir_flag_spec_GCJ \
18291     hardcode_libdir_flag_spec_ld_GCJ \
18292     hardcode_libdir_separator_GCJ \
18293     hardcode_automatic_GCJ \
18294     module_cmds_GCJ \
18295     module_expsym_cmds_GCJ \
18296     lt_cv_prog_compiler_c_o_GCJ \
18297     exclude_expsyms_GCJ \
18298     include_expsyms_GCJ; do
18299
18300     case $var in
18301     old_archive_cmds_GCJ | \
18302     old_archive_from_new_cmds_GCJ | \
18303     archive_cmds_GCJ | \
18304     archive_expsym_cmds_GCJ | \
18305     module_cmds_GCJ | \
18306     module_expsym_cmds_GCJ | \
18307     old_archive_from_expsyms_cmds_GCJ | \
18308     export_symbols_cmds_GCJ | \
18309     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18310     postinstall_cmds | postuninstall_cmds | \
18311     old_postinstall_cmds | old_postuninstall_cmds | \
18312     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18313       # Double-quote double-evaled strings.
18314       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18315       ;;
18316     *)
18317       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18318       ;;
18319     esac
18320   done
18321
18322   case $lt_echo in
18323   *'\$0 --fallback-echo"')
18324     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18325     ;;
18326   esac
18327
18328 cfgfile="$ofile"
18329
18330   cat <<__EOF__ >> "$cfgfile"
18331 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18332
18333 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18334
18335 # Shell to use when invoking shell scripts.
18336 SHELL=$lt_SHELL
18337
18338 # Whether or not to build shared libraries.
18339 build_libtool_libs=$enable_shared
18340
18341 # Whether or not to build static libraries.
18342 build_old_libs=$enable_static
18343
18344 # Whether or not to add -lc for building shared libraries.
18345 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18346
18347 # Whether or not to disallow shared libs when runtime libs are static
18348 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18349
18350 # Whether or not to optimize for fast installation.
18351 fast_install=$enable_fast_install
18352
18353 # The host system.
18354 host_alias=$host_alias
18355 host=$host
18356
18357 # An echo program that does not interpret backslashes.
18358 echo=$lt_echo
18359
18360 # The archiver.
18361 AR=$lt_AR
18362 AR_FLAGS=$lt_AR_FLAGS
18363
18364 # A C compiler.
18365 LTCC=$lt_LTCC
18366
18367 # A language-specific compiler.
18368 CC=$lt_compiler_GCJ
18369
18370 # Is the compiler the GNU C compiler?
18371 with_gcc=$GCC_GCJ
18372
18373 # An ERE matcher.
18374 EGREP=$lt_EGREP
18375
18376 # The linker used to build libraries.
18377 LD=$lt_LD_GCJ
18378
18379 # Whether we need hard or soft links.
18380 LN_S=$lt_LN_S
18381
18382 # A BSD-compatible nm program.
18383 NM=$lt_NM
18384
18385 # A symbol stripping program
18386 STRIP=$lt_STRIP
18387
18388 # Used to examine libraries when file_magic_cmd begins "file"
18389 MAGIC_CMD=$MAGIC_CMD
18390
18391 # Used on cygwin: DLL creation program.
18392 DLLTOOL="$DLLTOOL"
18393
18394 # Used on cygwin: object dumper.
18395 OBJDUMP="$OBJDUMP"
18396
18397 # Used on cygwin: assembler.
18398 AS="$AS"
18399
18400 # The name of the directory that contains temporary libtool files.
18401 objdir=$objdir
18402
18403 # How to create reloadable object files.
18404 reload_flag=$lt_reload_flag
18405 reload_cmds=$lt_reload_cmds
18406
18407 # How to pass a linker flag through the compiler.
18408 wl=$lt_lt_prog_compiler_wl_GCJ
18409
18410 # Object file suffix (normally "o").
18411 objext="$ac_objext"
18412
18413 # Old archive suffix (normally "a").
18414 libext="$libext"
18415
18416 # Shared library suffix (normally ".so").
18417 shrext='$shrext'
18418
18419 # Executable file suffix (normally "").
18420 exeext="$exeext"
18421
18422 # Additional compiler flags for building library objects.
18423 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18424 pic_mode=$pic_mode
18425
18426 # What is the maximum length of a command?
18427 max_cmd_len=$lt_cv_sys_max_cmd_len
18428
18429 # Does compiler simultaneously support -c and -o options?
18430 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18431
18432 # Must we lock files when doing compilation ?
18433 need_locks=$lt_need_locks
18434
18435 # Do we need the lib prefix for modules?
18436 need_lib_prefix=$need_lib_prefix
18437
18438 # Do we need a version for libraries?
18439 need_version=$need_version
18440
18441 # Whether dlopen is supported.
18442 dlopen_support=$enable_dlopen
18443
18444 # Whether dlopen of programs is supported.
18445 dlopen_self=$enable_dlopen_self
18446
18447 # Whether dlopen of statically linked programs is supported.
18448 dlopen_self_static=$enable_dlopen_self_static
18449
18450 # Compiler flag to prevent dynamic linking.
18451 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18452
18453 # Compiler flag to turn off builtin functions.
18454 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18455
18456 # Compiler flag to allow reflexive dlopens.
18457 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18458
18459 # Compiler flag to generate shared objects directly from archives.
18460 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18461
18462 # Compiler flag to generate thread-safe objects.
18463 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18464
18465 # Library versioning type.
18466 version_type=$version_type
18467
18468 # Format of library name prefix.
18469 libname_spec=$lt_libname_spec
18470
18471 # List of archive names.  First name is the real one, the rest are links.
18472 # The last name is the one that the linker finds with -lNAME.
18473 library_names_spec=$lt_library_names_spec
18474
18475 # The coded name of the library, if different from the real name.
18476 soname_spec=$lt_soname_spec
18477
18478 # Commands used to build and install an old-style archive.
18479 RANLIB=$lt_RANLIB
18480 old_archive_cmds=$lt_old_archive_cmds_GCJ
18481 old_postinstall_cmds=$lt_old_postinstall_cmds
18482 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18483
18484 # Create an old-style archive from a shared archive.
18485 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18486
18487 # Create a temporary old-style archive to link instead of a shared archive.
18488 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18489
18490 # Commands used to build and install a shared archive.
18491 archive_cmds=$lt_archive_cmds_GCJ
18492 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18493 postinstall_cmds=$lt_postinstall_cmds
18494 postuninstall_cmds=$lt_postuninstall_cmds
18495
18496 # Commands used to build a loadable module (assumed same as above if empty)
18497 module_cmds=$lt_module_cmds_GCJ
18498 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18499
18500 # Commands to strip libraries.
18501 old_striplib=$lt_old_striplib
18502 striplib=$lt_striplib
18503
18504 # Dependencies to place before the objects being linked to create a
18505 # shared library.
18506 predep_objects=$lt_predep_objects_GCJ
18507
18508 # Dependencies to place after the objects being linked to create a
18509 # shared library.
18510 postdep_objects=$lt_postdep_objects_GCJ
18511
18512 # Dependencies to place before the objects being linked to create a
18513 # shared library.
18514 predeps=$lt_predeps_GCJ
18515
18516 # Dependencies to place after the objects being linked to create a
18517 # shared library.
18518 postdeps=$lt_postdeps_GCJ
18519
18520 # The library search path used internally by the compiler when linking
18521 # a shared library.
18522 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18523
18524 # Method to check whether dependent libraries are shared objects.
18525 deplibs_check_method=$lt_deplibs_check_method
18526
18527 # Command to use when deplibs_check_method == file_magic.
18528 file_magic_cmd=$lt_file_magic_cmd
18529
18530 # Flag that allows shared libraries with undefined symbols to be built.
18531 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18532
18533 # Flag that forces no undefined symbols.
18534 no_undefined_flag=$lt_no_undefined_flag_GCJ
18535
18536 # Commands used to finish a libtool library installation in a directory.
18537 finish_cmds=$lt_finish_cmds
18538
18539 # Same as above, but a single script fragment to be evaled but not shown.
18540 finish_eval=$lt_finish_eval
18541
18542 # Take the output of nm and produce a listing of raw symbols and C names.
18543 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18544
18545 # Transform the output of nm in a proper C declaration
18546 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18547
18548 # Transform the output of nm in a C name address pair
18549 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18550
18551 # This is the shared library runtime path variable.
18552 runpath_var=$runpath_var
18553
18554 # This is the shared library path variable.
18555 shlibpath_var=$shlibpath_var
18556
18557 # Is shlibpath searched before the hard-coded library search path?
18558 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18559
18560 # How to hardcode a shared library path into an executable.
18561 hardcode_action=$hardcode_action_GCJ
18562
18563 # Whether we should hardcode library paths into libraries.
18564 hardcode_into_libs=$hardcode_into_libs
18565
18566 # Flag to hardcode \$libdir into a binary during linking.
18567 # This must work even if \$libdir does not exist.
18568 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18569
18570 # If ld is used when linking, flag to hardcode \$libdir into
18571 # a binary during linking. This must work even if \$libdir does
18572 # not exist.
18573 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18574
18575 # Whether we need a single -rpath flag with a separated argument.
18576 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18577
18578 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18579 # resulting binary.
18580 hardcode_direct=$hardcode_direct_GCJ
18581
18582 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18583 # resulting binary.
18584 hardcode_minus_L=$hardcode_minus_L_GCJ
18585
18586 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18587 # the resulting binary.
18588 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18589
18590 # Set to yes if building a shared library automatically hardcodes DIR into the library
18591 # and all subsequent libraries and executables linked against it.
18592 hardcode_automatic=$hardcode_automatic_GCJ
18593
18594 # Variables whose values should be saved in libtool wrapper scripts and
18595 # restored at relink time.
18596 variables_saved_for_relink="$variables_saved_for_relink"
18597
18598 # Whether libtool must link a program against all its dependency libraries.
18599 link_all_deplibs=$link_all_deplibs_GCJ
18600
18601 # Compile-time system search path for libraries
18602 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18603
18604 # Run-time system search path for libraries
18605 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18606
18607 # Fix the shell variable \$srcfile for the compiler.
18608 fix_srcfile_path="$fix_srcfile_path_GCJ"
18609
18610 # Set to yes if exported symbols are required.
18611 always_export_symbols=$always_export_symbols_GCJ
18612
18613 # The commands to list exported symbols.
18614 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18615
18616 # The commands to extract the exported symbol list from a shared archive.
18617 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18618
18619 # Symbols that should not be listed in the preloaded symbols.
18620 exclude_expsyms=$lt_exclude_expsyms_GCJ
18621
18622 # Symbols that must always be exported.
18623 include_expsyms=$lt_include_expsyms_GCJ
18624
18625 # ### END LIBTOOL TAG CONFIG: $tagname
18626
18627 __EOF__
18628
18629
18630 else
18631   # If there is no Makefile yet, we rely on a make rule to execute
18632   # `config.status --recheck' to rerun these tests and create the
18633   # libtool script then.
18634   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18635   if test -f "$ltmain_in"; then
18636     test -f Makefile && make "$ltmain"
18637   fi
18638 fi
18639
18640
18641 ac_ext=c
18642 ac_cpp='$CPP $CPPFLAGS'
18643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18646
18647 CC="$lt_save_CC"
18648
18649         else
18650           tagname=""
18651         fi
18652         ;;
18653
18654       RC)
18655
18656
18657 # Source file extension for RC test sources.
18658 ac_ext=rc
18659
18660 # Object file extension for compiled RC test sources.
18661 objext=o
18662 objext_RC=$objext
18663
18664 # Code to be used in simple compile tests
18665 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18666
18667 # Code to be used in simple link tests
18668 lt_simple_link_test_code="$lt_simple_compile_test_code"
18669
18670 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18671
18672 # If no C compiler was specified, use CC.
18673 LTCC=${LTCC-"$CC"}
18674
18675 # Allow CC to be a program name with arguments.
18676 compiler=$CC
18677
18678
18679 # Allow CC to be a program name with arguments.
18680 lt_save_CC="$CC"
18681 CC=${RC-"windres"}
18682 compiler=$CC
18683 compiler_RC=$CC
18684 lt_cv_prog_compiler_c_o_RC=yes
18685
18686 # The else clause should only fire when bootstrapping the
18687 # libtool distribution, otherwise you forgot to ship ltmain.sh
18688 # with your package, and you will get complaints that there are
18689 # no rules to generate ltmain.sh.
18690 if test -f "$ltmain"; then
18691   # See if we are running on zsh, and set the options which allow our commands through
18692   # without removal of \ escapes.
18693   if test -n "${ZSH_VERSION+set}" ; then
18694     setopt NO_GLOB_SUBST
18695   fi
18696   # Now quote all the things that may contain metacharacters while being
18697   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18698   # variables and quote the copies for generation of the libtool script.
18699   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18700     SED SHELL STRIP \
18701     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18702     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18703     deplibs_check_method reload_flag reload_cmds need_locks \
18704     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18705     lt_cv_sys_global_symbol_to_c_name_address \
18706     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18707     old_postinstall_cmds old_postuninstall_cmds \
18708     compiler_RC \
18709     CC_RC \
18710     LD_RC \
18711     lt_prog_compiler_wl_RC \
18712     lt_prog_compiler_pic_RC \
18713     lt_prog_compiler_static_RC \
18714     lt_prog_compiler_no_builtin_flag_RC \
18715     export_dynamic_flag_spec_RC \
18716     thread_safe_flag_spec_RC \
18717     whole_archive_flag_spec_RC \
18718     enable_shared_with_static_runtimes_RC \
18719     old_archive_cmds_RC \
18720     old_archive_from_new_cmds_RC \
18721     predep_objects_RC \
18722     postdep_objects_RC \
18723     predeps_RC \
18724     postdeps_RC \
18725     compiler_lib_search_path_RC \
18726     archive_cmds_RC \
18727     archive_expsym_cmds_RC \
18728     postinstall_cmds_RC \
18729     postuninstall_cmds_RC \
18730     old_archive_from_expsyms_cmds_RC \
18731     allow_undefined_flag_RC \
18732     no_undefined_flag_RC \
18733     export_symbols_cmds_RC \
18734     hardcode_libdir_flag_spec_RC \
18735     hardcode_libdir_flag_spec_ld_RC \
18736     hardcode_libdir_separator_RC \
18737     hardcode_automatic_RC \
18738     module_cmds_RC \
18739     module_expsym_cmds_RC \
18740     lt_cv_prog_compiler_c_o_RC \
18741     exclude_expsyms_RC \
18742     include_expsyms_RC; do
18743
18744     case $var in
18745     old_archive_cmds_RC | \
18746     old_archive_from_new_cmds_RC | \
18747     archive_cmds_RC | \
18748     archive_expsym_cmds_RC | \
18749     module_cmds_RC | \
18750     module_expsym_cmds_RC | \
18751     old_archive_from_expsyms_cmds_RC | \
18752     export_symbols_cmds_RC | \
18753     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18754     postinstall_cmds | postuninstall_cmds | \
18755     old_postinstall_cmds | old_postuninstall_cmds | \
18756     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18757       # Double-quote double-evaled strings.
18758       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18759       ;;
18760     *)
18761       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18762       ;;
18763     esac
18764   done
18765
18766   case $lt_echo in
18767   *'\$0 --fallback-echo"')
18768     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18769     ;;
18770   esac
18771
18772 cfgfile="$ofile"
18773
18774   cat <<__EOF__ >> "$cfgfile"
18775 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18776
18777 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18778
18779 # Shell to use when invoking shell scripts.
18780 SHELL=$lt_SHELL
18781
18782 # Whether or not to build shared libraries.
18783 build_libtool_libs=$enable_shared
18784
18785 # Whether or not to build static libraries.
18786 build_old_libs=$enable_static
18787
18788 # Whether or not to add -lc for building shared libraries.
18789 build_libtool_need_lc=$archive_cmds_need_lc_RC
18790
18791 # Whether or not to disallow shared libs when runtime libs are static
18792 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18793
18794 # Whether or not to optimize for fast installation.
18795 fast_install=$enable_fast_install
18796
18797 # The host system.
18798 host_alias=$host_alias
18799 host=$host
18800
18801 # An echo program that does not interpret backslashes.
18802 echo=$lt_echo
18803
18804 # The archiver.
18805 AR=$lt_AR
18806 AR_FLAGS=$lt_AR_FLAGS
18807
18808 # A C compiler.
18809 LTCC=$lt_LTCC
18810
18811 # A language-specific compiler.
18812 CC=$lt_compiler_RC
18813
18814 # Is the compiler the GNU C compiler?
18815 with_gcc=$GCC_RC
18816
18817 # An ERE matcher.
18818 EGREP=$lt_EGREP
18819
18820 # The linker used to build libraries.
18821 LD=$lt_LD_RC
18822
18823 # Whether we need hard or soft links.
18824 LN_S=$lt_LN_S
18825
18826 # A BSD-compatible nm program.
18827 NM=$lt_NM
18828
18829 # A symbol stripping program
18830 STRIP=$lt_STRIP
18831
18832 # Used to examine libraries when file_magic_cmd begins "file"
18833 MAGIC_CMD=$MAGIC_CMD
18834
18835 # Used on cygwin: DLL creation program.
18836 DLLTOOL="$DLLTOOL"
18837
18838 # Used on cygwin: object dumper.
18839 OBJDUMP="$OBJDUMP"
18840
18841 # Used on cygwin: assembler.
18842 AS="$AS"
18843
18844 # The name of the directory that contains temporary libtool files.
18845 objdir=$objdir
18846
18847 # How to create reloadable object files.
18848 reload_flag=$lt_reload_flag
18849 reload_cmds=$lt_reload_cmds
18850
18851 # How to pass a linker flag through the compiler.
18852 wl=$lt_lt_prog_compiler_wl_RC
18853
18854 # Object file suffix (normally "o").
18855 objext="$ac_objext"
18856
18857 # Old archive suffix (normally "a").
18858 libext="$libext"
18859
18860 # Shared library suffix (normally ".so").
18861 shrext='$shrext'
18862
18863 # Executable file suffix (normally "").
18864 exeext="$exeext"
18865
18866 # Additional compiler flags for building library objects.
18867 pic_flag=$lt_lt_prog_compiler_pic_RC
18868 pic_mode=$pic_mode
18869
18870 # What is the maximum length of a command?
18871 max_cmd_len=$lt_cv_sys_max_cmd_len
18872
18873 # Does compiler simultaneously support -c and -o options?
18874 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18875
18876 # Must we lock files when doing compilation ?
18877 need_locks=$lt_need_locks
18878
18879 # Do we need the lib prefix for modules?
18880 need_lib_prefix=$need_lib_prefix
18881
18882 # Do we need a version for libraries?
18883 need_version=$need_version
18884
18885 # Whether dlopen is supported.
18886 dlopen_support=$enable_dlopen
18887
18888 # Whether dlopen of programs is supported.
18889 dlopen_self=$enable_dlopen_self
18890
18891 # Whether dlopen of statically linked programs is supported.
18892 dlopen_self_static=$enable_dlopen_self_static
18893
18894 # Compiler flag to prevent dynamic linking.
18895 link_static_flag=$lt_lt_prog_compiler_static_RC
18896
18897 # Compiler flag to turn off builtin functions.
18898 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18899
18900 # Compiler flag to allow reflexive dlopens.
18901 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18902
18903 # Compiler flag to generate shared objects directly from archives.
18904 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18905
18906 # Compiler flag to generate thread-safe objects.
18907 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18908
18909 # Library versioning type.
18910 version_type=$version_type
18911
18912 # Format of library name prefix.
18913 libname_spec=$lt_libname_spec
18914
18915 # List of archive names.  First name is the real one, the rest are links.
18916 # The last name is the one that the linker finds with -lNAME.
18917 library_names_spec=$lt_library_names_spec
18918
18919 # The coded name of the library, if different from the real name.
18920 soname_spec=$lt_soname_spec
18921
18922 # Commands used to build and install an old-style archive.
18923 RANLIB=$lt_RANLIB
18924 old_archive_cmds=$lt_old_archive_cmds_RC
18925 old_postinstall_cmds=$lt_old_postinstall_cmds
18926 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18927
18928 # Create an old-style archive from a shared archive.
18929 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18930
18931 # Create a temporary old-style archive to link instead of a shared archive.
18932 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18933
18934 # Commands used to build and install a shared archive.
18935 archive_cmds=$lt_archive_cmds_RC
18936 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18937 postinstall_cmds=$lt_postinstall_cmds
18938 postuninstall_cmds=$lt_postuninstall_cmds
18939
18940 # Commands used to build a loadable module (assumed same as above if empty)
18941 module_cmds=$lt_module_cmds_RC
18942 module_expsym_cmds=$lt_module_expsym_cmds_RC
18943
18944 # Commands to strip libraries.
18945 old_striplib=$lt_old_striplib
18946 striplib=$lt_striplib
18947
18948 # Dependencies to place before the objects being linked to create a
18949 # shared library.
18950 predep_objects=$lt_predep_objects_RC
18951
18952 # Dependencies to place after the objects being linked to create a
18953 # shared library.
18954 postdep_objects=$lt_postdep_objects_RC
18955
18956 # Dependencies to place before the objects being linked to create a
18957 # shared library.
18958 predeps=$lt_predeps_RC
18959
18960 # Dependencies to place after the objects being linked to create a
18961 # shared library.
18962 postdeps=$lt_postdeps_RC
18963
18964 # The library search path used internally by the compiler when linking
18965 # a shared library.
18966 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18967
18968 # Method to check whether dependent libraries are shared objects.
18969 deplibs_check_method=$lt_deplibs_check_method
18970
18971 # Command to use when deplibs_check_method == file_magic.
18972 file_magic_cmd=$lt_file_magic_cmd
18973
18974 # Flag that allows shared libraries with undefined symbols to be built.
18975 allow_undefined_flag=$lt_allow_undefined_flag_RC
18976
18977 # Flag that forces no undefined symbols.
18978 no_undefined_flag=$lt_no_undefined_flag_RC
18979
18980 # Commands used to finish a libtool library installation in a directory.
18981 finish_cmds=$lt_finish_cmds
18982
18983 # Same as above, but a single script fragment to be evaled but not shown.
18984 finish_eval=$lt_finish_eval
18985
18986 # Take the output of nm and produce a listing of raw symbols and C names.
18987 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18988
18989 # Transform the output of nm in a proper C declaration
18990 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18991
18992 # Transform the output of nm in a C name address pair
18993 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18994
18995 # This is the shared library runtime path variable.
18996 runpath_var=$runpath_var
18997
18998 # This is the shared library path variable.
18999 shlibpath_var=$shlibpath_var
19000
19001 # Is shlibpath searched before the hard-coded library search path?
19002 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19003
19004 # How to hardcode a shared library path into an executable.
19005 hardcode_action=$hardcode_action_RC
19006
19007 # Whether we should hardcode library paths into libraries.
19008 hardcode_into_libs=$hardcode_into_libs
19009
19010 # Flag to hardcode \$libdir into a binary during linking.
19011 # This must work even if \$libdir does not exist.
19012 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19013
19014 # If ld is used when linking, flag to hardcode \$libdir into
19015 # a binary during linking. This must work even if \$libdir does
19016 # not exist.
19017 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19018
19019 # Whether we need a single -rpath flag with a separated argument.
19020 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19021
19022 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19023 # resulting binary.
19024 hardcode_direct=$hardcode_direct_RC
19025
19026 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19027 # resulting binary.
19028 hardcode_minus_L=$hardcode_minus_L_RC
19029
19030 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19031 # the resulting binary.
19032 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19033
19034 # Set to yes if building a shared library automatically hardcodes DIR into the library
19035 # and all subsequent libraries and executables linked against it.
19036 hardcode_automatic=$hardcode_automatic_RC
19037
19038 # Variables whose values should be saved in libtool wrapper scripts and
19039 # restored at relink time.
19040 variables_saved_for_relink="$variables_saved_for_relink"
19041
19042 # Whether libtool must link a program against all its dependency libraries.
19043 link_all_deplibs=$link_all_deplibs_RC
19044
19045 # Compile-time system search path for libraries
19046 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19047
19048 # Run-time system search path for libraries
19049 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19050
19051 # Fix the shell variable \$srcfile for the compiler.
19052 fix_srcfile_path="$fix_srcfile_path_RC"
19053
19054 # Set to yes if exported symbols are required.
19055 always_export_symbols=$always_export_symbols_RC
19056
19057 # The commands to list exported symbols.
19058 export_symbols_cmds=$lt_export_symbols_cmds_RC
19059
19060 # The commands to extract the exported symbol list from a shared archive.
19061 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19062
19063 # Symbols that should not be listed in the preloaded symbols.
19064 exclude_expsyms=$lt_exclude_expsyms_RC
19065
19066 # Symbols that must always be exported.
19067 include_expsyms=$lt_include_expsyms_RC
19068
19069 # ### END LIBTOOL TAG CONFIG: $tagname
19070
19071 __EOF__
19072
19073
19074 else
19075   # If there is no Makefile yet, we rely on a make rule to execute
19076   # `config.status --recheck' to rerun these tests and create the
19077   # libtool script then.
19078   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19079   if test -f "$ltmain_in"; then
19080     test -f Makefile && make "$ltmain"
19081   fi
19082 fi
19083
19084
19085 ac_ext=c
19086 ac_cpp='$CPP $CPPFLAGS'
19087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19090
19091 CC="$lt_save_CC"
19092
19093         ;;
19094
19095       *)
19096         { { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19097 $as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19098    { (exit 1); exit 1; }; }
19099         ;;
19100       esac
19101
19102       # Append the new tag name to the list of available tags.
19103       if test -n "$tagname" ; then
19104       available_tags="$available_tags $tagname"
19105     fi
19106     fi
19107   done
19108   IFS="$lt_save_ifs"
19109
19110   # Now substitute the updated list of available tags.
19111   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19112     mv "${ofile}T" "$ofile"
19113     chmod +x "$ofile"
19114   else
19115     rm -f "${ofile}T"
19116     { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19117 $as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19118    { (exit 1); exit 1; }; }
19119   fi
19120 fi
19121
19122
19123
19124 # This can be used to rebuild libtool when needed
19125 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19126
19127 # Always use our own libtool.
19128 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19129
19130 # Prevent multiple expansion
19131
19132
19133
19134
19135
19136
19137
19138
19139
19140
19141
19142
19143
19144
19145
19146
19147
19148
19149
19150
19151 #  AC_CHECK_PROGS(LIBTOOL, glibtool libtool, libtool, \
19152 #       /usr/local/bin:/opt/bin:/sw/bin:/usr/bin:/bin)
19153
19154 # Settings for optional paths
19155
19156 # Check whether --with-site_includes was given.
19157 if test "${with_site_includes+set}" = set; then
19158   withval=$with_site_includes; for dir in `echo "$with_site_includes"|sed 's/:/ /'`
19159 do
19160     SITE_INCLUDES_CFLAGS="$SITE_INCLUDES_CFLAGS -I$dir"
19161 done
19162 CFLAGS=`echo "$SITE_INCLUDES_CFLAGS $CFLAGS"|sed 's/^  *//'`
19163
19164 else
19165   if test -f /sw/include/db3/db.h; then
19166         CFLAGS="-I/sw/include/db3 $CFLAGS"
19167 elif test -f /sw/include/db4/db.h; then
19168         CFLAGS="-I/sw/include/db4 $CFLAGS"
19169         LIBS="-ldb $LIBS"
19170 fi
19171
19172 fi
19173
19174
19175
19176 # Check whether --with-site_libraries was given.
19177 if test "${with_site_libraries+set}" = set; then
19178   withval=$with_site_libraries; for dir in `echo "$with_site_libraries"|sed 's/:/ /'`
19179 do
19180     SITE_LIBS="$SITE_LIBS -L$dir"
19181 done
19182 LIBS=`echo "$SITE_LIBS $LIBS"|sed 's/^  *//'`
19183
19184 else
19185   if test -f /sw/include/db3/db.h; then
19186         LIBS="-L/sw/lib -ldb-3 $LIBS"
19187 elif test -f /sw/include/db4/db.h; then
19188         LIBS="-L/sw/lib -ldb-4 $LIBS"
19189 else
19190         LIBS="-ldb $LIBS"
19191 fi
19192
19193 fi
19194
19195
19196 # Checks for libraries.
19197 LIBS="-ldb $LIBS"
19198
19199 # Checks for header files.
19200
19201 # Checks for typedefs, structures, and compiler characteristics.
19202 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19203 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
19204 if test "${ac_cv_c_const+set}" = set; then
19205   $as_echo_n "(cached) " >&6
19206 else
19207   cat >conftest.$ac_ext <<_ACEOF
19208 /* confdefs.h.  */
19209 _ACEOF
19210 cat confdefs.h >>conftest.$ac_ext
19211 cat >>conftest.$ac_ext <<_ACEOF
19212 /* end confdefs.h.  */
19213
19214 int
19215 main ()
19216 {
19217 /* FIXME: Include the comments suggested by Paul. */
19218 #ifndef __cplusplus
19219   /* Ultrix mips cc rejects this.  */
19220   typedef int charset[2];
19221   const charset cs;
19222   /* SunOS 4.1.1 cc rejects this.  */
19223   char const *const *pcpcc;
19224   char **ppc;
19225   /* NEC SVR4.0.2 mips cc rejects this.  */
19226   struct point {int x, y;};
19227   static struct point const zero = {0,0};
19228   /* AIX XL C 1.02.0.0 rejects this.
19229      It does not let you subtract one const X* pointer from another in
19230      an arm of an if-expression whose if-part is not a constant
19231      expression */
19232   const char *g = "string";
19233   pcpcc = &g + (g ? g-g : 0);
19234   /* HPUX 7.0 cc rejects these. */
19235   ++pcpcc;
19236   ppc = (char**) pcpcc;
19237   pcpcc = (char const *const *) ppc;
19238   { /* SCO 3.2v4 cc rejects this.  */
19239     char *t;
19240     char const *s = 0 ? (char *) 0 : (char const *) 0;
19241
19242     *t++ = 0;
19243     if (s) return 0;
19244   }
19245   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
19246     int x[] = {25, 17};
19247     const int *foo = &x[0];
19248     ++foo;
19249   }
19250   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19251     typedef const int *iptr;
19252     iptr p = 0;
19253     ++p;
19254   }
19255   { /* AIX XL C 1.02.0.0 rejects this saying
19256        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19257     struct s { int j; const int *ap[3]; };
19258     struct s *b; b->j = 5;
19259   }
19260   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19261     const int foo = 10;
19262     if (!foo) return 0;
19263   }
19264   return !cs[0] && !zero.x;
19265 #endif
19266
19267   ;
19268   return 0;
19269 }
19270 _ACEOF
19271 rm -f conftest.$ac_objext
19272 if { (ac_try="$ac_compile"
19273 case "(($ac_try" in
19274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19275   *) ac_try_echo=$ac_try;;
19276 esac
19277 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19278 $as_echo "$ac_try_echo") >&5
19279   (eval "$ac_compile") 2>conftest.er1
19280   ac_status=$?
19281   grep -v '^ *+' conftest.er1 >conftest.err
19282   rm -f conftest.er1
19283   cat conftest.err >&5
19284   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19285   (exit $ac_status); } && {
19286          test -z "$ac_c_werror_flag" ||
19287          test ! -s conftest.err
19288        } && test -s conftest.$ac_objext; then
19289   ac_cv_c_const=yes
19290 else
19291   $as_echo "$as_me: failed program was:" >&5
19292 sed 's/^/| /' conftest.$ac_ext >&5
19293
19294         ac_cv_c_const=no
19295 fi
19296
19297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19298 fi
19299 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19300 $as_echo "$ac_cv_c_const" >&6; }
19301 if test $ac_cv_c_const = no; then
19302
19303 cat >>confdefs.h <<\_ACEOF
19304 #define const /**/
19305 _ACEOF
19306
19307 fi
19308
19309 { $as_echo "$as_me:$LINENO: checking for inline" >&5
19310 $as_echo_n "checking for inline... " >&6; }
19311 if test "${ac_cv_c_inline+set}" = set; then
19312   $as_echo_n "(cached) " >&6
19313 else
19314   ac_cv_c_inline=no
19315 for ac_kw in inline __inline__ __inline; do
19316   cat >conftest.$ac_ext <<_ACEOF
19317 /* confdefs.h.  */
19318 _ACEOF
19319 cat confdefs.h >>conftest.$ac_ext
19320 cat >>conftest.$ac_ext <<_ACEOF
19321 /* end confdefs.h.  */
19322 #ifndef __cplusplus
19323 typedef int foo_t;
19324 static $ac_kw foo_t static_foo () {return 0; }
19325 $ac_kw foo_t foo () {return 0; }
19326 #endif
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_inline=$ac_kw
19348 else
19349   $as_echo "$as_me: failed program was:" >&5
19350 sed 's/^/| /' conftest.$ac_ext >&5
19351
19352
19353 fi
19354
19355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19356   test "$ac_cv_c_inline" != no && break
19357 done
19358
19359 fi
19360 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
19361 $as_echo "$ac_cv_c_inline" >&6; }
19362
19363
19364 case $ac_cv_c_inline in
19365   inline | yes) ;;
19366   *)
19367     case $ac_cv_c_inline in
19368       no) ac_val=;;
19369       *) ac_val=$ac_cv_c_inline;;
19370     esac
19371     cat >>confdefs.h <<_ACEOF
19372 #ifndef __cplusplus
19373 #define inline $ac_val
19374 #endif
19375 _ACEOF
19376     ;;
19377 esac
19378
19379
19380 # Checks for library functions.
19381 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19382 # for constant arguments.  Useless!
19383 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
19384 $as_echo_n "checking for working alloca.h... " >&6; }
19385 if test "${ac_cv_working_alloca_h+set}" = set; then
19386   $as_echo_n "(cached) " >&6
19387 else
19388   cat >conftest.$ac_ext <<_ACEOF
19389 /* confdefs.h.  */
19390 _ACEOF
19391 cat confdefs.h >>conftest.$ac_ext
19392 cat >>conftest.$ac_ext <<_ACEOF
19393 /* end confdefs.h.  */
19394 #include <alloca.h>
19395 int
19396 main ()
19397 {
19398 char *p = (char *) alloca (2 * sizeof (int));
19399                           if (p) return 0;
19400   ;
19401   return 0;
19402 }
19403 _ACEOF
19404 rm -f conftest.$ac_objext conftest$ac_exeext
19405 if { (ac_try="$ac_link"
19406 case "(($ac_try" in
19407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19408   *) ac_try_echo=$ac_try;;
19409 esac
19410 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19411 $as_echo "$ac_try_echo") >&5
19412   (eval "$ac_link") 2>conftest.er1
19413   ac_status=$?
19414   grep -v '^ *+' conftest.er1 >conftest.err
19415   rm -f conftest.er1
19416   cat conftest.err >&5
19417   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19418   (exit $ac_status); } && {
19419          test -z "$ac_c_werror_flag" ||
19420          test ! -s conftest.err
19421        } && test -s conftest$ac_exeext && {
19422          test "$cross_compiling" = yes ||
19423          $as_test_x conftest$ac_exeext
19424        }; then
19425   ac_cv_working_alloca_h=yes
19426 else
19427   $as_echo "$as_me: failed program was:" >&5
19428 sed 's/^/| /' conftest.$ac_ext >&5
19429
19430         ac_cv_working_alloca_h=no
19431 fi
19432
19433 rm -rf conftest.dSYM
19434 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19435       conftest$ac_exeext conftest.$ac_ext
19436 fi
19437 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19438 $as_echo "$ac_cv_working_alloca_h" >&6; }
19439 if test $ac_cv_working_alloca_h = yes; then
19440
19441 cat >>confdefs.h <<\_ACEOF
19442 #define HAVE_ALLOCA_H 1
19443 _ACEOF
19444
19445 fi
19446
19447 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
19448 $as_echo_n "checking for alloca... " >&6; }
19449 if test "${ac_cv_func_alloca_works+set}" = set; then
19450   $as_echo_n "(cached) " >&6
19451 else
19452   cat >conftest.$ac_ext <<_ACEOF
19453 /* confdefs.h.  */
19454 _ACEOF
19455 cat confdefs.h >>conftest.$ac_ext
19456 cat >>conftest.$ac_ext <<_ACEOF
19457 /* end confdefs.h.  */
19458 #ifdef __GNUC__
19459 # define alloca __builtin_alloca
19460 #else
19461 # ifdef _MSC_VER
19462 #  include <malloc.h>
19463 #  define alloca _alloca
19464 # else
19465 #  ifdef HAVE_ALLOCA_H
19466 #   include <alloca.h>
19467 #  else
19468 #   ifdef _AIX
19469  #pragma alloca
19470 #   else
19471 #    ifndef alloca /* predefined by HP cc +Olibcalls */
19472 char *alloca ();
19473 #    endif
19474 #   endif
19475 #  endif
19476 # endif
19477 #endif
19478
19479 int
19480 main ()
19481 {
19482 char *p = (char *) alloca (1);
19483                                     if (p) return 0;
19484   ;
19485   return 0;
19486 }
19487 _ACEOF
19488 rm -f conftest.$ac_objext conftest$ac_exeext
19489 if { (ac_try="$ac_link"
19490 case "(($ac_try" in
19491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19492   *) ac_try_echo=$ac_try;;
19493 esac
19494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19495 $as_echo "$ac_try_echo") >&5
19496   (eval "$ac_link") 2>conftest.er1
19497   ac_status=$?
19498   grep -v '^ *+' conftest.er1 >conftest.err
19499   rm -f conftest.er1
19500   cat conftest.err >&5
19501   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19502   (exit $ac_status); } && {
19503          test -z "$ac_c_werror_flag" ||
19504          test ! -s conftest.err
19505        } && test -s conftest$ac_exeext && {
19506          test "$cross_compiling" = yes ||
19507          $as_test_x conftest$ac_exeext
19508        }; then
19509   ac_cv_func_alloca_works=yes
19510 else
19511   $as_echo "$as_me: failed program was:" >&5
19512 sed 's/^/| /' conftest.$ac_ext >&5
19513
19514         ac_cv_func_alloca_works=no
19515 fi
19516
19517 rm -rf conftest.dSYM
19518 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19519       conftest$ac_exeext conftest.$ac_ext
19520 fi
19521 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19522 $as_echo "$ac_cv_func_alloca_works" >&6; }
19523
19524 if test $ac_cv_func_alloca_works = yes; then
19525
19526 cat >>confdefs.h <<\_ACEOF
19527 #define HAVE_ALLOCA 1
19528 _ACEOF
19529
19530 else
19531   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19532 # that cause trouble.  Some versions do not even contain alloca or
19533 # contain a buggy version.  If you still want to use their alloca,
19534 # use ar to extract alloca.o from them instead of compiling alloca.c.
19535
19536 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19537
19538 cat >>confdefs.h <<\_ACEOF
19539 #define C_ALLOCA 1
19540 _ACEOF
19541
19542
19543 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19544 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
19545 if test "${ac_cv_os_cray+set}" = set; then
19546   $as_echo_n "(cached) " >&6
19547 else
19548   cat >conftest.$ac_ext <<_ACEOF
19549 /* confdefs.h.  */
19550 _ACEOF
19551 cat confdefs.h >>conftest.$ac_ext
19552 cat >>conftest.$ac_ext <<_ACEOF
19553 /* end confdefs.h.  */
19554 #if defined CRAY && ! defined CRAY2
19555 webecray
19556 #else
19557 wenotbecray
19558 #endif
19559
19560 _ACEOF
19561 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19562   $EGREP "webecray" >/dev/null 2>&1; then
19563   ac_cv_os_cray=yes
19564 else
19565   ac_cv_os_cray=no
19566 fi
19567 rm -f conftest*
19568
19569 fi
19570 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19571 $as_echo "$ac_cv_os_cray" >&6; }
19572 if test $ac_cv_os_cray = yes; then
19573   for ac_func in _getb67 GETB67 getb67; do
19574     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19575 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19576 $as_echo_n "checking for $ac_func... " >&6; }
19577 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19578   $as_echo_n "(cached) " >&6
19579 else
19580   cat >conftest.$ac_ext <<_ACEOF
19581 /* confdefs.h.  */
19582 _ACEOF
19583 cat confdefs.h >>conftest.$ac_ext
19584 cat >>conftest.$ac_ext <<_ACEOF
19585 /* end confdefs.h.  */
19586 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19587    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19588 #define $ac_func innocuous_$ac_func
19589
19590 /* System header to define __stub macros and hopefully few prototypes,
19591     which can conflict with char $ac_func (); below.
19592     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19593     <limits.h> exists even on freestanding compilers.  */
19594
19595 #ifdef __STDC__
19596 # include <limits.h>
19597 #else
19598 # include <assert.h>
19599 #endif
19600
19601 #undef $ac_func
19602
19603 /* Override any GCC internal prototype to avoid an error.
19604    Use char because int might match the return type of a GCC
19605    builtin and then its argument prototype would still apply.  */
19606 #ifdef __cplusplus
19607 extern "C"
19608 #endif
19609 char $ac_func ();
19610 /* The GNU C library defines this for functions which it implements
19611     to always fail with ENOSYS.  Some functions are actually named
19612     something starting with __ and the normal name is an alias.  */
19613 #if defined __stub_$ac_func || defined __stub___$ac_func
19614 choke me
19615 #endif
19616
19617 int
19618 main ()
19619 {
19620 return $ac_func ();
19621   ;
19622   return 0;
19623 }
19624 _ACEOF
19625 rm -f conftest.$ac_objext conftest$ac_exeext
19626 if { (ac_try="$ac_link"
19627 case "(($ac_try" in
19628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19629   *) ac_try_echo=$ac_try;;
19630 esac
19631 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19632 $as_echo "$ac_try_echo") >&5
19633   (eval "$ac_link") 2>conftest.er1
19634   ac_status=$?
19635   grep -v '^ *+' conftest.er1 >conftest.err
19636   rm -f conftest.er1
19637   cat conftest.err >&5
19638   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19639   (exit $ac_status); } && {
19640          test -z "$ac_c_werror_flag" ||
19641          test ! -s conftest.err
19642        } && test -s conftest$ac_exeext && {
19643          test "$cross_compiling" = yes ||
19644          $as_test_x conftest$ac_exeext
19645        }; then
19646   eval "$as_ac_var=yes"
19647 else
19648   $as_echo "$as_me: failed program was:" >&5
19649 sed 's/^/| /' conftest.$ac_ext >&5
19650
19651         eval "$as_ac_var=no"
19652 fi
19653
19654 rm -rf conftest.dSYM
19655 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19656       conftest$ac_exeext conftest.$ac_ext
19657 fi
19658 ac_res=`eval 'as_val=${'$as_ac_var'}
19659                  $as_echo "$as_val"'`
19660                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19661 $as_echo "$ac_res" >&6; }
19662 if test `eval 'as_val=${'$as_ac_var'}
19663                  $as_echo "$as_val"'` = yes; then
19664
19665 cat >>confdefs.h <<_ACEOF
19666 #define CRAY_STACKSEG_END $ac_func
19667 _ACEOF
19668
19669     break
19670 fi
19671
19672   done
19673 fi
19674
19675 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19676 $as_echo_n "checking stack direction for C alloca... " >&6; }
19677 if test "${ac_cv_c_stack_direction+set}" = set; then
19678   $as_echo_n "(cached) " >&6
19679 else
19680   if test "$cross_compiling" = yes; then
19681   ac_cv_c_stack_direction=0
19682 else
19683   cat >conftest.$ac_ext <<_ACEOF
19684 /* confdefs.h.  */
19685 _ACEOF
19686 cat confdefs.h >>conftest.$ac_ext
19687 cat >>conftest.$ac_ext <<_ACEOF
19688 /* end confdefs.h.  */
19689 $ac_includes_default
19690 int
19691 find_stack_direction ()
19692 {
19693   static char *addr = 0;
19694   auto char dummy;
19695   if (addr == 0)
19696     {
19697       addr = &dummy;
19698       return find_stack_direction ();
19699     }
19700   else
19701     return (&dummy > addr) ? 1 : -1;
19702 }
19703
19704 int
19705 main ()
19706 {
19707   return find_stack_direction () < 0;
19708 }
19709 _ACEOF
19710 rm -f conftest$ac_exeext
19711 if { (ac_try="$ac_link"
19712 case "(($ac_try" in
19713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19714   *) ac_try_echo=$ac_try;;
19715 esac
19716 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19717 $as_echo "$ac_try_echo") >&5
19718   (eval "$ac_link") 2>&5
19719   ac_status=$?
19720   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19721   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19722   { (case "(($ac_try" in
19723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19724   *) ac_try_echo=$ac_try;;
19725 esac
19726 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19727 $as_echo "$ac_try_echo") >&5
19728   (eval "$ac_try") 2>&5
19729   ac_status=$?
19730   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19731   (exit $ac_status); }; }; then
19732   ac_cv_c_stack_direction=1
19733 else
19734   $as_echo "$as_me: program exited with status $ac_status" >&5
19735 $as_echo "$as_me: failed program was:" >&5
19736 sed 's/^/| /' conftest.$ac_ext >&5
19737
19738 ( exit $ac_status )
19739 ac_cv_c_stack_direction=-1
19740 fi
19741 rm -rf conftest.dSYM
19742 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19743 fi
19744
19745
19746 fi
19747 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19748 $as_echo "$ac_cv_c_stack_direction" >&6; }
19749
19750 cat >>confdefs.h <<_ACEOF
19751 #define STACK_DIRECTION $ac_cv_c_stack_direction
19752 _ACEOF
19753
19754
19755 fi
19756
19757
19758   if test "${ac_cv_header_minix_config_h+set}" = set; then
19759   { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
19760 $as_echo_n "checking for minix/config.h... " >&6; }
19761 if test "${ac_cv_header_minix_config_h+set}" = set; then
19762   $as_echo_n "(cached) " >&6
19763 fi
19764 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
19765 $as_echo "$ac_cv_header_minix_config_h" >&6; }
19766 else
19767   # Is the header compilable?
19768 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
19769 $as_echo_n "checking minix/config.h usability... " >&6; }
19770 cat >conftest.$ac_ext <<_ACEOF
19771 /* confdefs.h.  */
19772 _ACEOF
19773 cat confdefs.h >>conftest.$ac_ext
19774 cat >>conftest.$ac_ext <<_ACEOF
19775 /* end confdefs.h.  */
19776 $ac_includes_default
19777 #include <minix/config.h>
19778 _ACEOF
19779 rm -f conftest.$ac_objext
19780 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
19788   ac_status=$?
19789   grep -v '^ *+' conftest.er1 >conftest.err
19790   rm -f conftest.er1
19791   cat conftest.err >&5
19792   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19793   (exit $ac_status); } && {
19794          test -z "$ac_c_werror_flag" ||
19795          test ! -s conftest.err
19796        } && test -s conftest.$ac_objext; then
19797   ac_header_compiler=yes
19798 else
19799   $as_echo "$as_me: failed program was:" >&5
19800 sed 's/^/| /' conftest.$ac_ext >&5
19801
19802         ac_header_compiler=no
19803 fi
19804
19805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19806 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19807 $as_echo "$ac_header_compiler" >&6; }
19808
19809 # Is the header present?
19810 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
19811 $as_echo_n "checking minix/config.h presence... " >&6; }
19812 cat >conftest.$ac_ext <<_ACEOF
19813 /* confdefs.h.  */
19814 _ACEOF
19815 cat confdefs.h >>conftest.$ac_ext
19816 cat >>conftest.$ac_ext <<_ACEOF
19817 /* end confdefs.h.  */
19818 #include <minix/config.h>
19819 _ACEOF
19820 if { (ac_try="$ac_cpp conftest.$ac_ext"
19821 case "(($ac_try" in
19822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19823   *) ac_try_echo=$ac_try;;
19824 esac
19825 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19826 $as_echo "$ac_try_echo") >&5
19827   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19828   ac_status=$?
19829   grep -v '^ *+' conftest.er1 >conftest.err
19830   rm -f conftest.er1
19831   cat conftest.err >&5
19832   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19833   (exit $ac_status); } >/dev/null && {
19834          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19835          test ! -s conftest.err
19836        }; then
19837   ac_header_preproc=yes
19838 else
19839   $as_echo "$as_me: failed program was:" >&5
19840 sed 's/^/| /' conftest.$ac_ext >&5
19841
19842   ac_header_preproc=no
19843 fi
19844
19845 rm -f conftest.err conftest.$ac_ext
19846 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19847 $as_echo "$ac_header_preproc" >&6; }
19848
19849 # So?  What about this header?
19850 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19851   yes:no: )
19852     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
19853 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19854     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
19855 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
19856     ac_header_preproc=yes
19857     ;;
19858   no:yes:* )
19859     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
19860 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
19861     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
19862 $as_echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
19863     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
19864 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
19865     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
19866 $as_echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
19867     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
19868 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
19869     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
19870 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
19871     ( cat <<\_ASBOX
19872 ## -------------------------------- ##
19873 ## Report this to chise-en@m17n.org ##
19874 ## -------------------------------- ##
19875 _ASBOX
19876      ) | sed "s/^/$as_me: WARNING:     /" >&2
19877     ;;
19878 esac
19879 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
19880 $as_echo_n "checking for minix/config.h... " >&6; }
19881 if test "${ac_cv_header_minix_config_h+set}" = set; then
19882   $as_echo_n "(cached) " >&6
19883 else
19884   ac_cv_header_minix_config_h=$ac_header_preproc
19885 fi
19886 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
19887 $as_echo "$ac_cv_header_minix_config_h" >&6; }
19888
19889 fi
19890 if test $ac_cv_header_minix_config_h = yes; then
19891   MINIX=yes
19892 else
19893   MINIX=
19894 fi
19895
19896
19897   if test "$MINIX" = yes; then
19898
19899 cat >>confdefs.h <<\_ACEOF
19900 #define _POSIX_SOURCE 1
19901 _ACEOF
19902
19903
19904 cat >>confdefs.h <<\_ACEOF
19905 #define _POSIX_1_SOURCE 2
19906 _ACEOF
19907
19908
19909 cat >>confdefs.h <<\_ACEOF
19910 #define _MINIX 1
19911 _ACEOF
19912
19913   fi
19914
19915
19916
19917   { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
19918 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
19919 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
19920   $as_echo_n "(cached) " >&6
19921 else
19922   cat >conftest.$ac_ext <<_ACEOF
19923 /* confdefs.h.  */
19924 _ACEOF
19925 cat confdefs.h >>conftest.$ac_ext
19926 cat >>conftest.$ac_ext <<_ACEOF
19927 /* end confdefs.h.  */
19928
19929 #         define __EXTENSIONS__ 1
19930           $ac_includes_default
19931 int
19932 main ()
19933 {
19934
19935   ;
19936   return 0;
19937 }
19938 _ACEOF
19939 rm -f conftest.$ac_objext
19940 if { (ac_try="$ac_compile"
19941 case "(($ac_try" in
19942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19943   *) ac_try_echo=$ac_try;;
19944 esac
19945 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19946 $as_echo "$ac_try_echo") >&5
19947   (eval "$ac_compile") 2>conftest.er1
19948   ac_status=$?
19949   grep -v '^ *+' conftest.er1 >conftest.err
19950   rm -f conftest.er1
19951   cat conftest.err >&5
19952   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19953   (exit $ac_status); } && {
19954          test -z "$ac_c_werror_flag" ||
19955          test ! -s conftest.err
19956        } && test -s conftest.$ac_objext; then
19957   ac_cv_safe_to_define___extensions__=yes
19958 else
19959   $as_echo "$as_me: failed program was:" >&5
19960 sed 's/^/| /' conftest.$ac_ext >&5
19961
19962         ac_cv_safe_to_define___extensions__=no
19963 fi
19964
19965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19966 fi
19967 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
19968 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
19969   test $ac_cv_safe_to_define___extensions__ = yes &&
19970     cat >>confdefs.h <<\_ACEOF
19971 #define __EXTENSIONS__ 1
19972 _ACEOF
19973
19974   cat >>confdefs.h <<\_ACEOF
19975 #define _ALL_SOURCE 1
19976 _ACEOF
19977
19978   cat >>confdefs.h <<\_ACEOF
19979 #define _GNU_SOURCE 1
19980 _ACEOF
19981
19982   cat >>confdefs.h <<\_ACEOF
19983 #define _POSIX_PTHREAD_SEMANTICS 1
19984 _ACEOF
19985
19986   cat >>confdefs.h <<\_ACEOF
19987 #define _TANDEM_SOURCE 1
19988 _ACEOF
19989
19990
19991 { $as_echo "$as_me:$LINENO: checking for working strnlen" >&5
19992 $as_echo_n "checking for working strnlen... " >&6; }
19993 if test "${ac_cv_func_strnlen_working+set}" = set; then
19994   $as_echo_n "(cached) " >&6
19995 else
19996   if test "$cross_compiling" = yes; then
19997   ac_cv_func_strnlen_working=no
19998 else
19999   cat >conftest.$ac_ext <<_ACEOF
20000 /* confdefs.h.  */
20001 _ACEOF
20002 cat confdefs.h >>conftest.$ac_ext
20003 cat >>conftest.$ac_ext <<_ACEOF
20004 /* end confdefs.h.  */
20005 $ac_includes_default
20006 int
20007 main ()
20008 {
20009
20010 #define S "foobar"
20011 #define S_LEN (sizeof S - 1)
20012
20013   /* At least one implementation is buggy: that of AIX 4.3 would
20014      give strnlen (S, 1) == 3.  */
20015
20016   int i;
20017   for (i = 0; i < S_LEN + 1; ++i)
20018     {
20019       int expected = i <= S_LEN ? i : S_LEN;
20020       if (strnlen (S, i) != expected)
20021         return 1;
20022     }
20023   return 0;
20024
20025   ;
20026   return 0;
20027 }
20028 _ACEOF
20029 rm -f conftest$ac_exeext
20030 if { (ac_try="$ac_link"
20031 case "(($ac_try" in
20032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20033   *) ac_try_echo=$ac_try;;
20034 esac
20035 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20036 $as_echo "$ac_try_echo") >&5
20037   (eval "$ac_link") 2>&5
20038   ac_status=$?
20039   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20040   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20041   { (case "(($ac_try" in
20042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20043   *) ac_try_echo=$ac_try;;
20044 esac
20045 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20046 $as_echo "$ac_try_echo") >&5
20047   (eval "$ac_try") 2>&5
20048   ac_status=$?
20049   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20050   (exit $ac_status); }; }; then
20051   ac_cv_func_strnlen_working=yes
20052 else
20053   $as_echo "$as_me: program exited with status $ac_status" >&5
20054 $as_echo "$as_me: failed program was:" >&5
20055 sed 's/^/| /' conftest.$ac_ext >&5
20056
20057 ( exit $ac_status )
20058 ac_cv_func_strnlen_working=no
20059 fi
20060 rm -rf conftest.dSYM
20061 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20062 fi
20063
20064
20065 fi
20066 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
20067 $as_echo "$ac_cv_func_strnlen_working" >&6; }
20068 test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in
20069   *" strnlen.$ac_objext "* ) ;;
20070   *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
20071  ;;
20072 esac
20073
20074
20075
20076
20077 for ac_func in strnlen
20078 do
20079 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20080 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20081 $as_echo_n "checking for $ac_func... " >&6; }
20082 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20083   $as_echo_n "(cached) " >&6
20084 else
20085   cat >conftest.$ac_ext <<_ACEOF
20086 /* confdefs.h.  */
20087 _ACEOF
20088 cat confdefs.h >>conftest.$ac_ext
20089 cat >>conftest.$ac_ext <<_ACEOF
20090 /* end confdefs.h.  */
20091 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20092    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20093 #define $ac_func innocuous_$ac_func
20094
20095 /* System header to define __stub macros and hopefully few prototypes,
20096     which can conflict with char $ac_func (); below.
20097     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20098     <limits.h> exists even on freestanding compilers.  */
20099
20100 #ifdef __STDC__
20101 # include <limits.h>
20102 #else
20103 # include <assert.h>
20104 #endif
20105
20106 #undef $ac_func
20107
20108 /* Override any GCC internal prototype to avoid an error.
20109    Use char because int might match the return type of a GCC
20110    builtin and then its argument prototype would still apply.  */
20111 #ifdef __cplusplus
20112 extern "C"
20113 #endif
20114 char $ac_func ();
20115 /* The GNU C library defines this for functions which it implements
20116     to always fail with ENOSYS.  Some functions are actually named
20117     something starting with __ and the normal name is an alias.  */
20118 #if defined __stub_$ac_func || defined __stub___$ac_func
20119 choke me
20120 #endif
20121
20122 int
20123 main ()
20124 {
20125 return $ac_func ();
20126   ;
20127   return 0;
20128 }
20129 _ACEOF
20130 rm -f conftest.$ac_objext conftest$ac_exeext
20131 if { (ac_try="$ac_link"
20132 case "(($ac_try" in
20133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20134   *) ac_try_echo=$ac_try;;
20135 esac
20136 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20137 $as_echo "$ac_try_echo") >&5
20138   (eval "$ac_link") 2>conftest.er1
20139   ac_status=$?
20140   grep -v '^ *+' conftest.er1 >conftest.err
20141   rm -f conftest.er1
20142   cat conftest.err >&5
20143   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20144   (exit $ac_status); } && {
20145          test -z "$ac_c_werror_flag" ||
20146          test ! -s conftest.err
20147        } && test -s conftest$ac_exeext && {
20148          test "$cross_compiling" = yes ||
20149          $as_test_x conftest$ac_exeext
20150        }; then
20151   eval "$as_ac_var=yes"
20152 else
20153   $as_echo "$as_me: failed program was:" >&5
20154 sed 's/^/| /' conftest.$ac_ext >&5
20155
20156         eval "$as_ac_var=no"
20157 fi
20158
20159 rm -rf conftest.dSYM
20160 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20161       conftest$ac_exeext conftest.$ac_ext
20162 fi
20163 ac_res=`eval 'as_val=${'$as_ac_var'}
20164                  $as_echo "$as_val"'`
20165                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20166 $as_echo "$ac_res" >&6; }
20167 if test `eval 'as_val=${'$as_ac_var'}
20168                  $as_echo "$as_val"'` = yes; then
20169   cat >>confdefs.h <<_ACEOF
20170 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20171 _ACEOF
20172
20173 fi
20174 done
20175
20176
20177 ac_config_files="$ac_config_files Makefile"
20178
20179 cat >confcache <<\_ACEOF
20180 # This file is a shell script that caches the results of configure
20181 # tests run on this system so they can be shared between configure
20182 # scripts and configure runs, see configure's option --config-cache.
20183 # It is not useful on other systems.  If it contains results you don't
20184 # want to keep, you may remove or edit it.
20185 #
20186 # config.status only pays attention to the cache file if you give it
20187 # the --recheck option to rerun configure.
20188 #
20189 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20190 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20191 # following values.
20192
20193 _ACEOF
20194
20195 # The following way of writing the cache mishandles newlines in values,
20196 # but we know of no workaround that is simple, portable, and efficient.
20197 # So, we kill variables containing newlines.
20198 # Ultrix sh set writes to stderr and can't be redirected directly,
20199 # and sets the high bit in the cache file unless we assign to the vars.
20200 (
20201   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20202     eval ac_val=\$$ac_var
20203     case $ac_val in #(
20204     *${as_nl}*)
20205       case $ac_var in #(
20206       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20207 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20208       esac
20209       case $ac_var in #(
20210       _ | IFS | as_nl) ;; #(
20211       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20212       *) $as_unset $ac_var ;;
20213       esac ;;
20214     esac
20215   done
20216
20217   (set) 2>&1 |
20218     case $as_nl`(ac_space=' '; set) 2>&1` in #(
20219     *${as_nl}ac_space=\ *)
20220       # `set' does not quote correctly, so add quotes (double-quote
20221       # substitution turns \\\\ into \\, and sed turns \\ into \).
20222       sed -n \
20223         "s/'/'\\\\''/g;
20224           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20225       ;; #(
20226     *)
20227       # `set' quotes correctly as required by POSIX, so do not add quotes.
20228       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20229       ;;
20230     esac |
20231     sort
20232 ) |
20233   sed '
20234      /^ac_cv_env_/b end
20235      t clear
20236      :clear
20237      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20238      t end
20239      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20240      :end' >>confcache
20241 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20242   if test -w "$cache_file"; then
20243     test "x$cache_file" != "x/dev/null" &&
20244       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
20245 $as_echo "$as_me: updating cache $cache_file" >&6;}
20246     cat confcache >$cache_file
20247   else
20248     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20249 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20250   fi
20251 fi
20252 rm -f confcache
20253
20254 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20255 # Let make expand exec_prefix.
20256 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20257
20258 DEFS=-DHAVE_CONFIG_H
20259
20260 ac_libobjs=
20261 ac_ltlibobjs=
20262 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20263   # 1. Remove the extension, and $U if already installed.
20264   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20265   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20266   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20267   #    will be set to the directory where LIBOBJS objects are built.
20268   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20269   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20270 done
20271 LIBOBJS=$ac_libobjs
20272
20273 LTLIBOBJS=$ac_ltlibobjs
20274
20275
20276
20277 : ${CONFIG_STATUS=./config.status}
20278 ac_write_fail=0
20279 ac_clean_files_save=$ac_clean_files
20280 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20281 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20282 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20283 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20284 #! $SHELL
20285 # Generated by $as_me.
20286 # Run this file to recreate the current configuration.
20287 # Compiler output produced by configure, useful for debugging
20288 # configure, is in config.log if it exists.
20289
20290 debug=false
20291 ac_cs_recheck=false
20292 ac_cs_silent=false
20293 SHELL=\${CONFIG_SHELL-$SHELL}
20294 _ACEOF
20295
20296 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20297 ## --------------------- ##
20298 ## M4sh Initialization.  ##
20299 ## --------------------- ##
20300
20301 # Be more Bourne compatible
20302 DUALCASE=1; export DUALCASE # for MKS sh
20303 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20304   emulate sh
20305   NULLCMD=:
20306   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20307   # is contrary to our usage.  Disable this feature.
20308   alias -g '${1+"$@"}'='"$@"'
20309   setopt NO_GLOB_SUBST
20310 else
20311   case `(set -o) 2>/dev/null` in
20312   *posix*) set -o posix ;;
20313 esac
20314
20315 fi
20316
20317
20318
20319
20320 # PATH needs CR
20321 # Avoid depending upon Character Ranges.
20322 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20323 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20324 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20325 as_cr_digits='0123456789'
20326 as_cr_alnum=$as_cr_Letters$as_cr_digits
20327
20328 as_nl='
20329 '
20330 export as_nl
20331 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20332 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20333 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20334 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20335 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20336   as_echo='printf %s\n'
20337   as_echo_n='printf %s'
20338 else
20339   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20340     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20341     as_echo_n='/usr/ucb/echo -n'
20342   else
20343     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20344     as_echo_n_body='eval
20345       arg=$1;
20346       case $arg in
20347       *"$as_nl"*)
20348         expr "X$arg" : "X\\(.*\\)$as_nl";
20349         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20350       esac;
20351       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20352     '
20353     export as_echo_n_body
20354     as_echo_n='sh -c $as_echo_n_body as_echo'
20355   fi
20356   export as_echo_body
20357   as_echo='sh -c $as_echo_body as_echo'
20358 fi
20359
20360 # The user is always right.
20361 if test "${PATH_SEPARATOR+set}" != set; then
20362   PATH_SEPARATOR=:
20363   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20364     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20365       PATH_SEPARATOR=';'
20366   }
20367 fi
20368
20369 # Support unset when possible.
20370 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20371   as_unset=unset
20372 else
20373   as_unset=false
20374 fi
20375
20376
20377 # IFS
20378 # We need space, tab and new line, in precisely that order.  Quoting is
20379 # there to prevent editors from complaining about space-tab.
20380 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20381 # splitting by setting IFS to empty value.)
20382 IFS=" ""        $as_nl"
20383
20384 # Find who we are.  Look in the path if we contain no directory separator.
20385 case $0 in
20386   *[\\/]* ) as_myself=$0 ;;
20387   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20388 for as_dir in $PATH
20389 do
20390   IFS=$as_save_IFS
20391   test -z "$as_dir" && as_dir=.
20392   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20393 done
20394 IFS=$as_save_IFS
20395
20396      ;;
20397 esac
20398 # We did not find ourselves, most probably we were run as `sh COMMAND'
20399 # in which case we are not to be found in the path.
20400 if test "x$as_myself" = x; then
20401   as_myself=$0
20402 fi
20403 if test ! -f "$as_myself"; then
20404   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20405   { (exit 1); exit 1; }
20406 fi
20407
20408 # Work around bugs in pre-3.0 UWIN ksh.
20409 for as_var in ENV MAIL MAILPATH
20410 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20411 done
20412 PS1='$ '
20413 PS2='> '
20414 PS4='+ '
20415
20416 # NLS nuisances.
20417 LC_ALL=C
20418 export LC_ALL
20419 LANGUAGE=C
20420 export LANGUAGE
20421
20422 # Required to use basename.
20423 if expr a : '\(a\)' >/dev/null 2>&1 &&
20424    test "X`expr 00001 : '.*\(...\)'`" = X001; then
20425   as_expr=expr
20426 else
20427   as_expr=false
20428 fi
20429
20430 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20431   as_basename=basename
20432 else
20433   as_basename=false
20434 fi
20435
20436
20437 # Name of the executable.
20438 as_me=`$as_basename -- "$0" ||
20439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20440          X"$0" : 'X\(//\)$' \| \
20441          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20442 $as_echo X/"$0" |
20443     sed '/^.*\/\([^/][^/]*\)\/*$/{
20444             s//\1/
20445             q
20446           }
20447           /^X\/\(\/\/\)$/{
20448             s//\1/
20449             q
20450           }
20451           /^X\/\(\/\).*/{
20452             s//\1/
20453             q
20454           }
20455           s/.*/./; q'`
20456
20457 # CDPATH.
20458 $as_unset CDPATH
20459
20460
20461
20462   as_lineno_1=$LINENO
20463   as_lineno_2=$LINENO
20464   test "x$as_lineno_1" != "x$as_lineno_2" &&
20465   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20466
20467   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20468   # uniformly replaced by the line number.  The first 'sed' inserts a
20469   # line-number line after each line using $LINENO; the second 'sed'
20470   # does the real work.  The second script uses 'N' to pair each
20471   # line-number line with the line containing $LINENO, and appends
20472   # trailing '-' during substitution so that $LINENO is not a special
20473   # case at line end.
20474   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20475   # scripts with optimization help from Paolo Bonzini.  Blame Lee
20476   # E. McMahon (1931-1989) for sed's syntax.  :-)
20477   sed -n '
20478     p
20479     /[$]LINENO/=
20480   ' <$as_myself |
20481     sed '
20482       s/[$]LINENO.*/&-/
20483       t lineno
20484       b
20485       :lineno
20486       N
20487       :loop
20488       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20489       t loop
20490       s/-\n.*//
20491     ' >$as_me.lineno &&
20492   chmod +x "$as_me.lineno" ||
20493     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20494    { (exit 1); exit 1; }; }
20495
20496   # Don't try to exec as it changes $[0], causing all sort of problems
20497   # (the dirname of $[0] is not the place where we might find the
20498   # original and so on.  Autoconf is especially sensitive to this).
20499   . "./$as_me.lineno"
20500   # Exit status is that of the last command.
20501   exit
20502 }
20503
20504
20505 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20506   as_dirname=dirname
20507 else
20508   as_dirname=false
20509 fi
20510
20511 ECHO_C= ECHO_N= ECHO_T=
20512 case `echo -n x` in
20513 -n*)
20514   case `echo 'x\c'` in
20515   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
20516   *)   ECHO_C='\c';;
20517   esac;;
20518 *)
20519   ECHO_N='-n';;
20520 esac
20521 if expr a : '\(a\)' >/dev/null 2>&1 &&
20522    test "X`expr 00001 : '.*\(...\)'`" = X001; then
20523   as_expr=expr
20524 else
20525   as_expr=false
20526 fi
20527
20528 rm -f conf$$ conf$$.exe conf$$.file
20529 if test -d conf$$.dir; then
20530   rm -f conf$$.dir/conf$$.file
20531 else
20532   rm -f conf$$.dir
20533   mkdir conf$$.dir 2>/dev/null
20534 fi
20535 if (echo >conf$$.file) 2>/dev/null; then
20536   if ln -s conf$$.file conf$$ 2>/dev/null; then
20537     as_ln_s='ln -s'
20538     # ... but there are two gotchas:
20539     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20540     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20541     # In both cases, we have to default to `cp -p'.
20542     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20543       as_ln_s='cp -p'
20544   elif ln conf$$.file conf$$ 2>/dev/null; then
20545     as_ln_s=ln
20546   else
20547     as_ln_s='cp -p'
20548   fi
20549 else
20550   as_ln_s='cp -p'
20551 fi
20552 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20553 rmdir conf$$.dir 2>/dev/null
20554
20555 if mkdir -p . 2>/dev/null; then
20556   as_mkdir_p=:
20557 else
20558   test -d ./-p && rmdir ./-p
20559   as_mkdir_p=false
20560 fi
20561
20562 if test -x / >/dev/null 2>&1; then
20563   as_test_x='test -x'
20564 else
20565   if ls -dL / >/dev/null 2>&1; then
20566     as_ls_L_option=L
20567   else
20568     as_ls_L_option=
20569   fi
20570   as_test_x='
20571     eval sh -c '\''
20572       if test -d "$1"; then
20573         test -d "$1/.";
20574       else
20575         case $1 in
20576         -*)set "./$1";;
20577         esac;
20578         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
20579         ???[sx]*):;;*)false;;esac;fi
20580     '\'' sh
20581   '
20582 fi
20583 as_executable_p=$as_test_x
20584
20585 # Sed expression to map a string onto a valid CPP name.
20586 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20587
20588 # Sed expression to map a string onto a valid variable name.
20589 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20590
20591
20592 exec 6>&1
20593
20594 # Save the log message, to keep $[0] and so on meaningful, and to
20595 # report actual input values of CONFIG_FILES etc. instead of their
20596 # values after options handling.
20597 ac_log="
20598 This file was extended by concord $as_me 0.0.1, which was
20599 generated by GNU Autoconf 2.62.  Invocation command line was
20600
20601   CONFIG_FILES    = $CONFIG_FILES
20602   CONFIG_HEADERS  = $CONFIG_HEADERS
20603   CONFIG_LINKS    = $CONFIG_LINKS
20604   CONFIG_COMMANDS = $CONFIG_COMMANDS
20605   $ $0 $@
20606
20607 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20608 "
20609
20610 _ACEOF
20611
20612 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20613 # Files that config.status was made for.
20614 config_files="$ac_config_files"
20615 config_headers="$ac_config_headers"
20616
20617 _ACEOF
20618
20619 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20620 ac_cs_usage="\
20621 \`$as_me' instantiates files from templates according to the
20622 current configuration.
20623
20624 Usage: $0 [OPTIONS] [FILE]...
20625
20626   -h, --help       print this help, then exit
20627   -V, --version    print version number and configuration settings, then exit
20628   -q, --quiet      do not print progress messages
20629   -d, --debug      don't remove temporary files
20630       --recheck    update $as_me by reconfiguring in the same conditions
20631   --file=FILE[:TEMPLATE]
20632                    instantiate the configuration file FILE
20633   --header=FILE[:TEMPLATE]
20634                    instantiate the configuration header FILE
20635
20636 Configuration files:
20637 $config_files
20638
20639 Configuration headers:
20640 $config_headers
20641
20642 Report bugs to <bug-autoconf@gnu.org>."
20643
20644 _ACEOF
20645 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20646 ac_cs_version="\\
20647 concord config.status 0.0.1
20648 configured by $0, generated by GNU Autoconf 2.62,
20649   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20650
20651 Copyright (C) 2008 Free Software Foundation, Inc.
20652 This config.status script is free software; the Free Software Foundation
20653 gives unlimited permission to copy, distribute and modify it."
20654
20655 ac_pwd='$ac_pwd'
20656 srcdir='$srcdir'
20657 test -n "\$AWK" || AWK=awk
20658 _ACEOF
20659
20660 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20661 # The default lists apply if the user does not specify any file.
20662 ac_need_defaults=:
20663 while test $# != 0
20664 do
20665   case $1 in
20666   --*=*)
20667     ac_option=`expr "X$1" : 'X\([^=]*\)='`
20668     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20669     ac_shift=:
20670     ;;
20671   *)
20672     ac_option=$1
20673     ac_optarg=$2
20674     ac_shift=shift
20675     ;;
20676   esac
20677
20678   case $ac_option in
20679   # Handling of the options.
20680   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20681     ac_cs_recheck=: ;;
20682   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20683     $as_echo "$ac_cs_version"; exit ;;
20684   --debug | --debu | --deb | --de | --d | -d )
20685     debug=: ;;
20686   --file | --fil | --fi | --f )
20687     $ac_shift
20688     case $ac_optarg in
20689     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20690     esac
20691     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
20692     ac_need_defaults=false;;
20693   --header | --heade | --head | --hea )
20694     $ac_shift
20695     case $ac_optarg in
20696     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20697     esac
20698     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
20699     ac_need_defaults=false;;
20700   --he | --h)
20701     # Conflict between --help and --header
20702     { $as_echo "$as_me: error: ambiguous option: $1
20703 Try \`$0 --help' for more information." >&2
20704    { (exit 1); exit 1; }; };;
20705   --help | --hel | -h )
20706     $as_echo "$ac_cs_usage"; exit ;;
20707   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20708   | -silent | --silent | --silen | --sile | --sil | --si | --s)
20709     ac_cs_silent=: ;;
20710
20711   # This is an error.
20712   -*) { $as_echo "$as_me: error: unrecognized option: $1
20713 Try \`$0 --help' for more information." >&2
20714    { (exit 1); exit 1; }; } ;;
20715
20716   *) ac_config_targets="$ac_config_targets $1"
20717      ac_need_defaults=false ;;
20718
20719   esac
20720   shift
20721 done
20722
20723 ac_configure_extra_args=
20724
20725 if $ac_cs_silent; then
20726   exec 6>/dev/null
20727   ac_configure_extra_args="$ac_configure_extra_args --silent"
20728 fi
20729
20730 _ACEOF
20731 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20732 if \$ac_cs_recheck; then
20733   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20734   shift
20735   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20736   CONFIG_SHELL='$SHELL'
20737   export CONFIG_SHELL
20738   exec "\$@"
20739 fi
20740
20741 _ACEOF
20742 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20743 exec 5>>config.log
20744 {
20745   echo
20746   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20747 ## Running $as_me. ##
20748 _ASBOX
20749   $as_echo "$ac_log"
20750 } >&5
20751
20752 _ACEOF
20753 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20754 _ACEOF
20755
20756 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20757
20758 # Handling of arguments.
20759 for ac_config_target in $ac_config_targets
20760 do
20761   case $ac_config_target in
20762     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20763     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20764
20765   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20766 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20767    { (exit 1); exit 1; }; };;
20768   esac
20769 done
20770
20771
20772 # If the user did not use the arguments to specify the items to instantiate,
20773 # then the envvar interface is used.  Set only those that are not.
20774 # We use the long form for the default assignment because of an extremely
20775 # bizarre bug on SunOS 4.1.3.
20776 if $ac_need_defaults; then
20777   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20778   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20779 fi
20780
20781 # Have a temporary directory for convenience.  Make it in the build tree
20782 # simply because there is no reason against having it here, and in addition,
20783 # creating and moving files from /tmp can sometimes cause problems.
20784 # Hook for its removal unless debugging.
20785 # Note that there is a small window in which the directory will not be cleaned:
20786 # after its creation but before its name has been assigned to `$tmp'.
20787 $debug ||
20788 {
20789   tmp=
20790   trap 'exit_status=$?
20791   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20792 ' 0
20793   trap '{ (exit 1); exit 1; }' 1 2 13 15
20794 }
20795 # Create a (secure) tmp directory for tmp files.
20796
20797 {
20798   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20799   test -n "$tmp" && test -d "$tmp"
20800 }  ||
20801 {
20802   tmp=./conf$$-$RANDOM
20803   (umask 077 && mkdir "$tmp")
20804 } ||
20805 {
20806    $as_echo "$as_me: cannot create a temporary directory in ." >&2
20807    { (exit 1); exit 1; }
20808 }
20809
20810 # Set up the scripts for CONFIG_FILES section.
20811 # No need to generate them if there are no CONFIG_FILES.
20812 # This happens for instance with `./config.status config.h'.
20813 if test -n "$CONFIG_FILES"; then
20814
20815
20816 ac_cr='\r'
20817 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20818 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20819   ac_cs_awk_cr='\\r'
20820 else
20821   ac_cs_awk_cr=$ac_cr
20822 fi
20823
20824 echo 'BEGIN {' >"$tmp/subs1.awk" &&
20825 _ACEOF
20826
20827
20828 {
20829   echo "cat >conf$$subs.awk <<_ACEOF" &&
20830   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20831   echo "_ACEOF"
20832 } >conf$$subs.sh ||
20833   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20834 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20835    { (exit 1); exit 1; }; }
20836 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
20837 ac_delim='%!_!# '
20838 for ac_last_try in false false false false false :; do
20839   . ./conf$$subs.sh ||
20840     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20841 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20842    { (exit 1); exit 1; }; }
20843
20844   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
20845     break
20846   elif $ac_last_try; then
20847     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20848 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20849    { (exit 1); exit 1; }; }
20850   else
20851     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20852   fi
20853 done
20854 rm -f conf$$subs.sh
20855
20856 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20857 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
20858 _ACEOF
20859 sed -n '
20860 h
20861 s/^/S["/; s/!.*/"]=/
20862 p
20863 g
20864 s/^[^!]*!//
20865 :repl
20866 t repl
20867 s/'"$ac_delim"'$//
20868 t delim
20869 :nl
20870 h
20871 s/\(.\{148\}\).*/\1/
20872 t more1
20873 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20874 p
20875 n
20876 b repl
20877 :more1
20878 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20879 p
20880 g
20881 s/.\{148\}//
20882 t nl
20883 :delim
20884 h
20885 s/\(.\{148\}\).*/\1/
20886 t more2
20887 s/["\\]/\\&/g; s/^/"/; s/$/"/
20888 p
20889 b
20890 :more2
20891 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20892 p
20893 g
20894 s/.\{148\}//
20895 t delim
20896 ' <conf$$subs.awk | sed '
20897 /^[^""]/{
20898   N
20899   s/\n//
20900 }
20901 ' >>$CONFIG_STATUS || ac_write_fail=1
20902 rm -f conf$$subs.awk
20903 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20904 _ACAWK
20905 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
20906   for (key in S) S_is_set[key] = 1
20907   FS = "\a"
20908
20909 }
20910 {
20911   line = $ 0
20912   nfields = split(line, field, "@")
20913   substed = 0
20914   len = length(field[1])
20915   for (i = 2; i < nfields; i++) {
20916     key = field[i]
20917     keylen = length(key)
20918     if (S_is_set[key]) {
20919       value = S[key]
20920       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20921       len += length(value) + length(field[++i])
20922       substed = 1
20923     } else
20924       len += 1 + keylen
20925   }
20926
20927   print line
20928 }
20929
20930 _ACAWK
20931 _ACEOF
20932 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20933 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20934   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20935 else
20936   cat
20937 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
20938   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
20939 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
20940    { (exit 1); exit 1; }; }
20941 _ACEOF
20942
20943 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20944 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20945 # trailing colons and then remove the whole line if VPATH becomes empty
20946 # (actually we leave an empty line to preserve line numbers).
20947 if test "x$srcdir" = x.; then
20948   ac_vpsub='/^[  ]*VPATH[        ]*=/{
20949 s/:*\$(srcdir):*/:/
20950 s/:*\${srcdir}:*/:/
20951 s/:*@srcdir@:*/:/
20952 s/^\([^=]*=[     ]*\):*/\1/
20953 s/:*$//
20954 s/^[^=]*=[       ]*$//
20955 }'
20956 fi
20957
20958 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20959 fi # test -n "$CONFIG_FILES"
20960
20961 # Set up the scripts for CONFIG_HEADERS section.
20962 # No need to generate them if there are no CONFIG_HEADERS.
20963 # This happens for instance with `./config.status Makefile'.
20964 if test -n "$CONFIG_HEADERS"; then
20965 cat >"$tmp/defines.awk" <<\_ACAWK ||
20966 BEGIN {
20967 _ACEOF
20968
20969 # Transform confdefs.h into an awk script `defines.awk', embedded as
20970 # here-document in config.status, that substitutes the proper values into
20971 # config.h.in to produce config.h.
20972
20973 # Create a delimiter string that does not exist in confdefs.h, to ease
20974 # handling of long lines.
20975 ac_delim='%!_!# '
20976 for ac_last_try in false false :; do
20977   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
20978   if test -z "$ac_t"; then
20979     break
20980   elif $ac_last_try; then
20981     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
20982 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
20983    { (exit 1); exit 1; }; }
20984   else
20985     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20986   fi
20987 done
20988
20989 # For the awk script, D is an array of macro values keyed by name,
20990 # likewise P contains macro parameters if any.  Preserve backslash
20991 # newline sequences.
20992
20993 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20994 sed -n '
20995 s/.\{148\}/&'"$ac_delim"'/g
20996 t rset
20997 :rset
20998 s/^[     ]*#[    ]*define[       ][      ]*/ /
20999 t def
21000 d
21001 :def
21002 s/\\$//
21003 t bsnl
21004 s/["\\]/\\&/g
21005 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
21006 D["\1"]=" \3"/p
21007 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
21008 d
21009 :bsnl
21010 s/["\\]/\\&/g
21011 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
21012 D["\1"]=" \3\\\\\\n"\\/p
21013 t cont
21014 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21015 t cont
21016 d
21017 :cont
21018 n
21019 s/.\{148\}/&'"$ac_delim"'/g
21020 t clear
21021 :clear
21022 s/\\$//
21023 t bsnlc
21024 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21025 d
21026 :bsnlc
21027 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21028 b cont
21029 ' <confdefs.h | sed '
21030 s/'"$ac_delim"'/"\\\
21031 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21032
21033 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21034   for (key in D) D_is_set[key] = 1
21035   FS = "\a"
21036 }
21037 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21038   line = \$ 0
21039   split(line, arg, " ")
21040   if (arg[1] == "#") {
21041     defundef = arg[2]
21042     mac1 = arg[3]
21043   } else {
21044     defundef = substr(arg[1], 2)
21045     mac1 = arg[2]
21046   }
21047   split(mac1, mac2, "(") #)
21048   macro = mac2[1]
21049   if (D_is_set[macro]) {
21050     # Preserve the white space surrounding the "#".
21051     prefix = substr(line, 1, index(line, defundef) - 1)
21052     print prefix "define", macro P[macro] D[macro]
21053     next
21054   } else {
21055     # Replace #undef with comments.  This is necessary, for example,
21056     # in the case of _POSIX_SOURCE, which is predefined and required
21057     # on some systems where configure will not decide to define it.
21058     if (defundef == "undef") {
21059       print "/*", line, "*/"
21060       next
21061     }
21062   }
21063 }
21064 { print }
21065 _ACAWK
21066 _ACEOF
21067 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21068   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
21069 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
21070    { (exit 1); exit 1; }; }
21071 fi # test -n "$CONFIG_HEADERS"
21072
21073
21074 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
21075 shift
21076 for ac_tag
21077 do
21078   case $ac_tag in
21079   :[FHLC]) ac_mode=$ac_tag; continue;;
21080   esac
21081   case $ac_mode$ac_tag in
21082   :[FHL]*:*);;
21083   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21084 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21085    { (exit 1); exit 1; }; };;
21086   :[FH]-) ac_tag=-:-;;
21087   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21088   esac
21089   ac_save_IFS=$IFS
21090   IFS=:
21091   set x $ac_tag
21092   IFS=$ac_save_IFS
21093   shift
21094   ac_file=$1
21095   shift
21096
21097   case $ac_mode in
21098   :L) ac_source=$1;;
21099   :[FH])
21100     ac_file_inputs=
21101     for ac_f
21102     do
21103       case $ac_f in
21104       -) ac_f="$tmp/stdin";;
21105       *) # Look for the file first in the build tree, then in the source tree
21106          # (if the path is not absolute).  The absolute path cannot be DOS-style,
21107          # because $ac_f cannot contain `:'.
21108          test -f "$ac_f" ||
21109            case $ac_f in
21110            [\\/$]*) false;;
21111            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21112            esac ||
21113            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21114 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21115    { (exit 1); exit 1; }; };;
21116       esac
21117       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21118       ac_file_inputs="$ac_file_inputs '$ac_f'"
21119     done
21120
21121     # Let's still pretend it is `configure' which instantiates (i.e., don't
21122     # use $as_me), people would be surprised to read:
21123     #    /* config.h.  Generated by config.status.  */
21124     configure_input='Generated from '`
21125           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21126         `' by configure.'
21127     if test x"$ac_file" != x-; then
21128       configure_input="$ac_file.  $configure_input"
21129       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
21130 $as_echo "$as_me: creating $ac_file" >&6;}
21131     fi
21132     # Neutralize special characters interpreted by sed in replacement strings.
21133     case $configure_input in #(
21134     *\&* | *\|* | *\\* )
21135        ac_sed_conf_input=`$as_echo "$configure_input" |
21136        sed 's/[\\\\&|]/\\\\&/g'`;; #(
21137     *) ac_sed_conf_input=$configure_input;;
21138     esac
21139
21140     case $ac_tag in
21141     *:-:* | *:-) cat >"$tmp/stdin" \
21142       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21143 $as_echo "$as_me: error: could not create $ac_file" >&2;}
21144    { (exit 1); exit 1; }; } ;;
21145     esac
21146     ;;
21147   esac
21148
21149   ac_dir=`$as_dirname -- "$ac_file" ||
21150 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21151          X"$ac_file" : 'X\(//\)[^/]' \| \
21152          X"$ac_file" : 'X\(//\)$' \| \
21153          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21154 $as_echo X"$ac_file" |
21155     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21156             s//\1/
21157             q
21158           }
21159           /^X\(\/\/\)[^/].*/{
21160             s//\1/
21161             q
21162           }
21163           /^X\(\/\/\)$/{
21164             s//\1/
21165             q
21166           }
21167           /^X\(\/\).*/{
21168             s//\1/
21169             q
21170           }
21171           s/.*/./; q'`
21172   { as_dir="$ac_dir"
21173   case $as_dir in #(
21174   -*) as_dir=./$as_dir;;
21175   esac
21176   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21177     as_dirs=
21178     while :; do
21179       case $as_dir in #(
21180       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21181       *) as_qdir=$as_dir;;
21182       esac
21183       as_dirs="'$as_qdir' $as_dirs"
21184       as_dir=`$as_dirname -- "$as_dir" ||
21185 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21186          X"$as_dir" : 'X\(//\)[^/]' \| \
21187          X"$as_dir" : 'X\(//\)$' \| \
21188          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21189 $as_echo X"$as_dir" |
21190     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21191             s//\1/
21192             q
21193           }
21194           /^X\(\/\/\)[^/].*/{
21195             s//\1/
21196             q
21197           }
21198           /^X\(\/\/\)$/{
21199             s//\1/
21200             q
21201           }
21202           /^X\(\/\).*/{
21203             s//\1/
21204             q
21205           }
21206           s/.*/./; q'`
21207       test -d "$as_dir" && break
21208     done
21209     test -z "$as_dirs" || eval "mkdir $as_dirs"
21210   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21211 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
21212    { (exit 1); exit 1; }; }; }
21213   ac_builddir=.
21214
21215 case "$ac_dir" in
21216 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21217 *)
21218   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21219   # A ".." for each directory in $ac_dir_suffix.
21220   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21221   case $ac_top_builddir_sub in
21222   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21223   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21224   esac ;;
21225 esac
21226 ac_abs_top_builddir=$ac_pwd
21227 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21228 # for backward compatibility:
21229 ac_top_builddir=$ac_top_build_prefix
21230
21231 case $srcdir in
21232   .)  # We are building in place.
21233     ac_srcdir=.
21234     ac_top_srcdir=$ac_top_builddir_sub
21235     ac_abs_top_srcdir=$ac_pwd ;;
21236   [\\/]* | ?:[\\/]* )  # Absolute name.
21237     ac_srcdir=$srcdir$ac_dir_suffix;
21238     ac_top_srcdir=$srcdir
21239     ac_abs_top_srcdir=$srcdir ;;
21240   *) # Relative name.
21241     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21242     ac_top_srcdir=$ac_top_build_prefix$srcdir
21243     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21244 esac
21245 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21246
21247
21248   case $ac_mode in
21249   :F)
21250   #
21251   # CONFIG_FILE
21252   #
21253
21254 _ACEOF
21255
21256 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21257 # If the template does not know about datarootdir, expand it.
21258 # FIXME: This hack should be removed a few years after 2.60.
21259 ac_datarootdir_hack=; ac_datarootdir_seen=
21260
21261 ac_sed_dataroot='
21262 /datarootdir/ {
21263   p
21264   q
21265 }
21266 /@datadir@/p
21267 /@docdir@/p
21268 /@infodir@/p
21269 /@localedir@/p
21270 /@mandir@/p
21271 '
21272 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21273 *datarootdir*) ac_datarootdir_seen=yes;;
21274 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21275   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21276 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21277 _ACEOF
21278 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21279   ac_datarootdir_hack='
21280   s&@datadir@&$datadir&g
21281   s&@docdir@&$docdir&g
21282   s&@infodir@&$infodir&g
21283   s&@localedir@&$localedir&g
21284   s&@mandir@&$mandir&g
21285     s&\\\${datarootdir}&$datarootdir&g' ;;
21286 esac
21287 _ACEOF
21288
21289 # Neutralize VPATH when `$srcdir' = `.'.
21290 # Shell code in configure.ac might set extrasub.
21291 # FIXME: do we really want to maintain this feature?
21292 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21293 ac_sed_extra="$ac_vpsub
21294 $extrasub
21295 _ACEOF
21296 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21297 :t
21298 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21299 s|@configure_input@|$ac_sed_conf_input|;t t
21300 s&@top_builddir@&$ac_top_builddir_sub&;t t
21301 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21302 s&@srcdir@&$ac_srcdir&;t t
21303 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21304 s&@top_srcdir@&$ac_top_srcdir&;t t
21305 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21306 s&@builddir@&$ac_builddir&;t t
21307 s&@abs_builddir@&$ac_abs_builddir&;t t
21308 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21309 $ac_datarootdir_hack
21310 "
21311 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
21312   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21313 $as_echo "$as_me: error: could not create $ac_file" >&2;}
21314    { (exit 1); exit 1; }; }
21315
21316 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21317   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21318   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21319   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21320 which seems to be undefined.  Please make sure it is defined." >&5
21321 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21322 which seems to be undefined.  Please make sure it is defined." >&2;}
21323
21324   rm -f "$tmp/stdin"
21325   case $ac_file in
21326   -) cat "$tmp/out" && rm -f "$tmp/out";;
21327   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
21328   esac \
21329   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21330 $as_echo "$as_me: error: could not create $ac_file" >&2;}
21331    { (exit 1); exit 1; }; }
21332  ;;
21333   :H)
21334   #
21335   # CONFIG_HEADER
21336   #
21337   if test x"$ac_file" != x-; then
21338     {
21339       $as_echo "/* $configure_input  */" \
21340       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
21341     } >"$tmp/config.h" \
21342       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21343 $as_echo "$as_me: error: could not create $ac_file" >&2;}
21344    { (exit 1); exit 1; }; }
21345     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
21346       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21347 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21348     else
21349       rm -f "$ac_file"
21350       mv "$tmp/config.h" "$ac_file" \
21351         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21352 $as_echo "$as_me: error: could not create $ac_file" >&2;}
21353    { (exit 1); exit 1; }; }
21354     fi
21355   else
21356     $as_echo "/* $configure_input  */" \
21357       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
21358       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
21359 $as_echo "$as_me: error: could not create -" >&2;}
21360    { (exit 1); exit 1; }; }
21361   fi
21362  ;;
21363
21364
21365   esac
21366
21367 done # for ac_tag
21368
21369
21370 { (exit 0); exit 0; }
21371 _ACEOF
21372 chmod +x $CONFIG_STATUS
21373 ac_clean_files=$ac_clean_files_save
21374
21375 test $ac_write_fail = 0 ||
21376   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
21377 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
21378    { (exit 1); exit 1; }; }
21379
21380
21381 # configure is writing to config.log, and then calls config.status.
21382 # config.status does its own redirection, appending to config.log.
21383 # Unfortunately, on DOS this fails, as config.log is still kept open
21384 # by configure, so config.status won't be able to write to it; its
21385 # output is simply discarded.  So we exec the FD to /dev/null,
21386 # effectively closing config.log, so it can be properly (re)opened and
21387 # appended to by config.status.  When coming back to configure, we
21388 # need to make the FD available again.
21389 if test "$no_create" != yes; then
21390   ac_cs_success=:
21391   ac_config_status_args=
21392   test "$silent" = yes &&
21393     ac_config_status_args="$ac_config_status_args --quiet"
21394   exec 5>/dev/null
21395   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21396   exec 5>>config.log
21397   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21398   # would make configure fail if this is the last instruction.
21399   $ac_cs_success || { (exit 1); exit 1; }
21400 fi
21401 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21402   { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
21403 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}
21404 fi
21405