update.
[chise/concord.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for concord 0.0.2.
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 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   # Zsh 3.x and 4.x performs 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 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44   echo "#! /bin/sh" >conf$$.sh
45   echo  "exit 0"   >>conf$$.sh
46   chmod +x conf$$.sh
47   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48     PATH_SEPARATOR=';'
49   else
50     PATH_SEPARATOR=:
51   fi
52   rm -f conf$$.sh
53 fi
54
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57   as_unset=unset
58 else
59   as_unset=false
60 fi
61
62
63 # IFS
64 # We need space, tab and new line, in precisely that order.  Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
68 as_nl='
69 '
70 IFS=" ""        $as_nl"
71
72 # Find who we are.  Look in the path if we contain no directory separator.
73 case $0 in
74   *[\\/]* ) as_myself=$0 ;;
75   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 for as_dir in $PATH
77 do
78   IFS=$as_save_IFS
79   test -z "$as_dir" && as_dir=.
80   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 done
82 IFS=$as_save_IFS
83
84      ;;
85 esac
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
89   as_myself=$0
90 fi
91 if test ! -f "$as_myself"; then
92   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93   { (exit 1); exit 1; }
94 fi
95
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99 done
100 PS1='$ '
101 PS2='> '
102 PS4='+ '
103
104 # NLS nuisances.
105 for as_var in \
106   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108   LC_TELEPHONE LC_TIME
109 do
110   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111     eval $as_var=C; export $as_var
112   else
113     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114   fi
115 done
116
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119    test "X`expr 00001 : '.*\(...\)'`" = X001; then
120   as_expr=expr
121 else
122   as_expr=false
123 fi
124
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126   as_basename=basename
127 else
128   as_basename=false
129 fi
130
131
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135          X"$0" : 'X\(//\)$' \| \
136          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 echo X/"$0" |
138     sed '/^.*\/\([^/][^/]*\)\/*$/{
139             s//\1/
140             q
141           }
142           /^X\/\(\/\/\)$/{
143             s//\1/
144             q
145           }
146           /^X\/\(\/\).*/{
147             s//\1/
148             q
149           }
150           s/.*/./; q'`
151
152 # CDPATH.
153 $as_unset CDPATH
154
155
156 if test "x$CONFIG_SHELL" = x; then
157   if (eval ":") 2>/dev/null; then
158   as_have_required=yes
159 else
160   as_have_required=no
161 fi
162
163   if test $as_have_required = yes &&     (eval ":
164 (as_func_return () {
165   (exit \$1)
166 }
167 as_func_success () {
168   as_func_return 0
169 }
170 as_func_failure () {
171   as_func_return 1
172 }
173 as_func_ret_success () {
174   return 0
175 }
176 as_func_ret_failure () {
177   return 1
178 }
179
180 exitcode=0
181 if as_func_success; then
182   :
183 else
184   exitcode=1
185   echo as_func_success failed.
186 fi
187
188 if as_func_failure; then
189   exitcode=1
190   echo as_func_failure succeeded.
191 fi
192
193 if as_func_ret_success; then
194   :
195 else
196   exitcode=1
197   echo as_func_ret_success failed.
198 fi
199
200 if as_func_ret_failure; then
201   exitcode=1
202   echo as_func_ret_failure succeeded.
203 fi
204
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206   :
207 else
208   exitcode=1
209   echo positional parameters were not saved.
210 fi
211
212 test \$exitcode = 0) || { (exit 1); exit 1; }
213
214 (
215   as_lineno_1=\$LINENO
216   as_lineno_2=\$LINENO
217   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
220   :
221 else
222   as_candidate_shells=
223     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 do
226   IFS=$as_save_IFS
227   test -z "$as_dir" && as_dir=.
228   case $as_dir in
229          /*)
230            for as_base in sh bash ksh sh5; do
231              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232            done;;
233        esac
234 done
235 IFS=$as_save_IFS
236
237
238       for as_shell in $as_candidate_shells $SHELL; do
239          # Try only shells that exist, to save several forks.
240          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241                 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243   emulate sh
244   NULLCMD=:
245   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246   # is contrary to our usage.  Disable this feature.
247   alias -g '${1+"$@"}'='"$@"'
248   setopt NO_GLOB_SUBST
249 else
250   case `(set -o) 2>/dev/null` in
251   *posix*) set -o posix ;;
252 esac
253
254 fi
255
256
257 :
258 _ASEOF
259 }; then
260   CONFIG_SHELL=$as_shell
261                as_have_required=yes
262                if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264   emulate sh
265   NULLCMD=:
266   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267   # is contrary to our usage.  Disable this feature.
268   alias -g '${1+"$@"}'='"$@"'
269   setopt NO_GLOB_SUBST
270 else
271   case `(set -o) 2>/dev/null` in
272   *posix*) set -o posix ;;
273 esac
274
275 fi
276
277
278 :
279 (as_func_return () {
280   (exit $1)
281 }
282 as_func_success () {
283   as_func_return 0
284 }
285 as_func_failure () {
286   as_func_return 1
287 }
288 as_func_ret_success () {
289   return 0
290 }
291 as_func_ret_failure () {
292   return 1
293 }
294
295 exitcode=0
296 if as_func_success; then
297   :
298 else
299   exitcode=1
300   echo as_func_success failed.
301 fi
302
303 if as_func_failure; then
304   exitcode=1
305   echo as_func_failure succeeded.
306 fi
307
308 if as_func_ret_success; then
309   :
310 else
311   exitcode=1
312   echo as_func_ret_success failed.
313 fi
314
315 if as_func_ret_failure; then
316   exitcode=1
317   echo as_func_ret_failure succeeded.
318 fi
319
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
321   :
322 else
323   exitcode=1
324   echo positional parameters were not saved.
325 fi
326
327 test $exitcode = 0) || { (exit 1); exit 1; }
328
329 (
330   as_lineno_1=$LINENO
331   as_lineno_2=$LINENO
332   test "x$as_lineno_1" != "x$as_lineno_2" &&
333   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335 _ASEOF
336 }; then
337   break
338 fi
339
340 fi
341
342       done
343
344       if test "x$CONFIG_SHELL" != x; then
345   for as_var in BASH_ENV ENV
346         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347         done
348         export CONFIG_SHELL
349         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350 fi
351
352
353     if test $as_have_required = no; then
354   echo This script requires a shell more modern than all the
355       echo shells that I found on your system.  Please install a
356       echo modern shell, or manually run the script under such a
357       echo shell if you do have one.
358       { (exit 1); exit 1; }
359 fi
360
361
362 fi
363
364 fi
365
366
367
368 (eval "as_func_return () {
369   (exit \$1)
370 }
371 as_func_success () {
372   as_func_return 0
373 }
374 as_func_failure () {
375   as_func_return 1
376 }
377 as_func_ret_success () {
378   return 0
379 }
380 as_func_ret_failure () {
381   return 1
382 }
383
384 exitcode=0
385 if as_func_success; then
386   :
387 else
388   exitcode=1
389   echo as_func_success failed.
390 fi
391
392 if as_func_failure; then
393   exitcode=1
394   echo as_func_failure succeeded.
395 fi
396
397 if as_func_ret_success; then
398   :
399 else
400   exitcode=1
401   echo as_func_ret_success failed.
402 fi
403
404 if as_func_ret_failure; then
405   exitcode=1
406   echo as_func_ret_failure succeeded.
407 fi
408
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410   :
411 else
412   exitcode=1
413   echo positional parameters were not saved.
414 fi
415
416 test \$exitcode = 0") || {
417   echo No shell found that supports shell functions.
418   echo Please tell autoconf@gnu.org about your system,
419   echo including any error possibly output before this
420   echo message
421 }
422
423
424
425   as_lineno_1=$LINENO
426   as_lineno_2=$LINENO
427   test "x$as_lineno_1" != "x$as_lineno_2" &&
428   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431   # uniformly replaced by the line number.  The first 'sed' inserts a
432   # line-number line after each line using $LINENO; the second 'sed'
433   # does the real work.  The second script uses 'N' to pair each
434   # line-number line with the line containing $LINENO, and appends
435   # trailing '-' during substitution so that $LINENO is not a special
436   # case at line end.
437   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438   # scripts with optimization help from Paolo Bonzini.  Blame Lee
439   # E. McMahon (1931-1989) for sed's syntax.  :-)
440   sed -n '
441     p
442     /[$]LINENO/=
443   ' <$as_myself |
444     sed '
445       s/[$]LINENO.*/&-/
446       t lineno
447       b
448       :lineno
449       N
450       :loop
451       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452       t loop
453       s/-\n.*//
454     ' >$as_me.lineno &&
455   chmod +x "$as_me.lineno" ||
456     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457    { (exit 1); exit 1; }; }
458
459   # Don't try to exec as it changes $[0], causing all sort of problems
460   # (the dirname of $[0] is not the place where we might find the
461   # original and so on.  Autoconf is especially sensitive to this).
462   . "./$as_me.lineno"
463   # Exit status is that of the last command.
464   exit
465 }
466
467
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469   as_dirname=dirname
470 else
471   as_dirname=false
472 fi
473
474 ECHO_C= ECHO_N= ECHO_T=
475 case `echo -n x` in
476 -n*)
477   case `echo 'x\c'` in
478   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
479   *)   ECHO_C='\c';;
480   esac;;
481 *)
482   ECHO_N='-n';;
483 esac
484
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486    test "X`expr 00001 : '.*\(...\)'`" = X001; then
487   as_expr=expr
488 else
489   as_expr=false
490 fi
491
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494   rm -f conf$$.dir/conf$$.file
495 else
496   rm -f conf$$.dir
497   mkdir conf$$.dir
498 fi
499 echo >conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
501   as_ln_s='ln -s'
502   # ... but there are two gotchas:
503   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505   # In both cases, we have to default to `cp -p'.
506   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507     as_ln_s='cp -p'
508 elif ln conf$$.file conf$$ 2>/dev/null; then
509   as_ln_s=ln
510 else
511   as_ln_s='cp -p'
512 fi
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
515
516 if mkdir -p . 2>/dev/null; then
517   as_mkdir_p=:
518 else
519   test -d ./-p && rmdir ./-p
520   as_mkdir_p=false
521 fi
522
523 if test -x / >/dev/null 2>&1; then
524   as_test_x='test -x'
525 else
526   if ls -dL / >/dev/null 2>&1; then
527     as_ls_L_option=L
528   else
529     as_ls_L_option=
530   fi
531   as_test_x='
532     eval sh -c '\''
533       if test -d "$1"; then
534         test -d "$1/.";
535       else
536         case $1 in
537         -*)set "./$1";;
538         esac;
539         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540         ???[sx]*):;;*)false;;esac;fi
541     '\'' sh
542   '
543 fi
544 as_executable_p=$as_test_x
545
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554
555 # Check that we are running under the correct shell.
556 SHELL=${CONFIG_SHELL-/bin/sh}
557
558 case X$ECHO in
559 X*--fallback-echo)
560   # Remove one level of quotation (which was required for Make).
561   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
562   ;;
563 esac
564
565 echo=${ECHO-echo}
566 if test "X$1" = X--no-reexec; then
567   # Discard the --no-reexec flag, and continue.
568   shift
569 elif test "X$1" = X--fallback-echo; then
570   # Avoid inline document here, it may be left over
571   :
572 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573   # Yippee, $echo works!
574   :
575 else
576   # Restart under the correct shell.
577   exec $SHELL "$0" --no-reexec ${1+"$@"}
578 fi
579
580 if test "X$1" = X--fallback-echo; then
581   # used as fallback echo
582   shift
583   cat <<EOF
584 $*
585 EOF
586   exit 0
587 fi
588
589 # The HP-UX ksh and POSIX shell print the target directory to stdout
590 # if CDPATH is set.
591 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
592
593 if test -z "$ECHO"; then
594 if test "X${echo_test_string+set}" != Xset; then
595 # find a string as large as possible, as long as the shell can cope with it
596   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
599        echo_test_string="`eval $cmd`" &&
600        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
601     then
602       break
603     fi
604   done
605 fi
606
607 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609    test "X$echo_testing_string" = "X$echo_test_string"; then
610   :
611 else
612   # The Solaris, AIX, and Digital Unix default echo programs unquote
613   # backslashes.  This makes it impossible to quote backslashes using
614   #   echo "$something" | sed 's/\\/\\\\/g'
615   #
616   # So, first we look for a working echo in the user's PATH.
617
618   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619   for dir in $PATH /usr/ucb; do
620     IFS="$lt_save_ifs"
621     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624        test "X$echo_testing_string" = "X$echo_test_string"; then
625       echo="$dir/echo"
626       break
627     fi
628   done
629   IFS="$lt_save_ifs"
630
631   if test "X$echo" = Xecho; then
632     # We didn't find a better echo, so look for alternatives.
633     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635        test "X$echo_testing_string" = "X$echo_test_string"; then
636       # This shell has a builtin print -r that does the trick.
637       echo='print -r'
638     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639          test "X$CONFIG_SHELL" != X/bin/ksh; then
640       # If we have ksh, try running configure again with it.
641       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642       export ORIGINAL_CONFIG_SHELL
643       CONFIG_SHELL=/bin/ksh
644       export CONFIG_SHELL
645       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
646     else
647       # Try using printf.
648       echo='printf %s\n'
649       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651          test "X$echo_testing_string" = "X$echo_test_string"; then
652         # Cool, printf works
653         :
654       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655            test "X$echo_testing_string" = 'X\t' &&
656            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657            test "X$echo_testing_string" = "X$echo_test_string"; then
658         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
659         export CONFIG_SHELL
660         SHELL="$CONFIG_SHELL"
661         export SHELL
662         echo="$CONFIG_SHELL $0 --fallback-echo"
663       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664            test "X$echo_testing_string" = 'X\t' &&
665            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666            test "X$echo_testing_string" = "X$echo_test_string"; then
667         echo="$CONFIG_SHELL $0 --fallback-echo"
668       else
669         # maybe with a smaller string...
670         prev=:
671
672         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
674           then
675             break
676           fi
677           prev="$cmd"
678         done
679
680         if test "$prev" != 'sed 50q "$0"'; then
681           echo_test_string=`eval $prev`
682           export echo_test_string
683           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
684         else
685           # Oops.  We lost completely, so just stick with echo.
686           echo=echo
687         fi
688       fi
689     fi
690   fi
691 fi
692 fi
693
694 # Copy echo and quote the copy suitably for passing to libtool from
695 # the Makefile, instead of quoting the original, which is used later.
696 ECHO=$echo
697 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
699 fi
700
701
702
703
704 tagnames=${tagnames+${tagnames},}CXX
705
706 tagnames=${tagnames+${tagnames},}F77
707
708 exec 7<&0 </dev/null 6>&1
709
710 # Name of the host.
711 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712 # so uname gets run too.
713 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
714
715 #
716 # Initializations.
717 #
718 ac_default_prefix=/usr/local
719 ac_clean_files=
720 ac_config_libobj_dir=.
721 LIBOBJS=
722 cross_compiling=no
723 subdirs=
724 MFLAGS=
725 MAKEFLAGS=
726 SHELL=${CONFIG_SHELL-/bin/sh}
727
728 # Identity of this package.
729 PACKAGE_NAME='concord'
730 PACKAGE_TARNAME='concord'
731 PACKAGE_VERSION='0.0.2'
732 PACKAGE_STRING='concord 0.0.2'
733 PACKAGE_BUGREPORT='chise-en@m17n.org'
734
735 ac_unique_file="concord.c"
736 # Factoring default headers for most tests.
737 ac_includes_default="\
738 #include <stdio.h>
739 #ifdef HAVE_SYS_TYPES_H
740 # include <sys/types.h>
741 #endif
742 #ifdef HAVE_SYS_STAT_H
743 # include <sys/stat.h>
744 #endif
745 #ifdef STDC_HEADERS
746 # include <stdlib.h>
747 # include <stddef.h>
748 #else
749 # ifdef HAVE_STDLIB_H
750 #  include <stdlib.h>
751 # endif
752 #endif
753 #ifdef HAVE_STRING_H
754 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
755 #  include <memory.h>
756 # endif
757 # include <string.h>
758 #endif
759 #ifdef HAVE_STRINGS_H
760 # include <strings.h>
761 #endif
762 #ifdef HAVE_INTTYPES_H
763 # include <inttypes.h>
764 #endif
765 #ifdef HAVE_STDINT_H
766 # include <stdint.h>
767 #endif
768 #ifdef HAVE_UNISTD_H
769 # include <unistd.h>
770 #endif"
771
772 ac_subst_vars='SHELL
773 PATH_SEPARATOR
774 PACKAGE_NAME
775 PACKAGE_TARNAME
776 PACKAGE_VERSION
777 PACKAGE_STRING
778 PACKAGE_BUGREPORT
779 exec_prefix
780 prefix
781 program_transform_name
782 bindir
783 sbindir
784 libexecdir
785 datarootdir
786 datadir
787 sysconfdir
788 sharedstatedir
789 localstatedir
790 includedir
791 oldincludedir
792 docdir
793 infodir
794 htmldir
795 dvidir
796 pdfdir
797 psdir
798 libdir
799 localedir
800 mandir
801 DEFS
802 ECHO_C
803 ECHO_N
804 ECHO_T
805 LIBS
806 build_alias
807 host_alias
808 target_alias
809 build
810 build_cpu
811 build_vendor
812 build_os
813 host
814 host_cpu
815 host_vendor
816 host_os
817 target
818 target_cpu
819 target_vendor
820 target_os
821 CC
822 CFLAGS
823 LDFLAGS
824 CPPFLAGS
825 ac_ct_CC
826 EXEEXT
827 OBJEXT
828 GREP
829 EGREP
830 LN_S
831 ECHO
832 AR
833 RANLIB
834 STRIP
835 CPP
836 CXX
837 CXXFLAGS
838 ac_ct_CXX
839 CXXCPP
840 F77
841 FFLAGS
842 ac_ct_F77
843 LIBTOOL
844 ALLOCA
845 LIBOBJS
846 LTLIBOBJS'
847 ac_subst_files=''
848       ac_precious_vars='build_alias
849 host_alias
850 target_alias
851 CC
852 CFLAGS
853 LDFLAGS
854 LIBS
855 CPPFLAGS
856 CPP
857 CXX
858 CXXFLAGS
859 CCC
860 CXXCPP
861 F77
862 FFLAGS'
863
864
865 # Initialize some variables set by options.
866 ac_init_help=
867 ac_init_version=false
868 # The variables have the same names as the options, with
869 # dashes changed to underlines.
870 cache_file=/dev/null
871 exec_prefix=NONE
872 no_create=
873 no_recursion=
874 prefix=NONE
875 program_prefix=NONE
876 program_suffix=NONE
877 program_transform_name=s,x,x,
878 silent=
879 site=
880 srcdir=
881 verbose=
882 x_includes=NONE
883 x_libraries=NONE
884
885 # Installation directory options.
886 # These are left unexpanded so users can "make install exec_prefix=/foo"
887 # and all the variables that are supposed to be based on exec_prefix
888 # by default will actually change.
889 # Use braces instead of parens because sh, perl, etc. also accept them.
890 # (The list follows the same order as the GNU Coding Standards.)
891 bindir='${exec_prefix}/bin'
892 sbindir='${exec_prefix}/sbin'
893 libexecdir='${exec_prefix}/libexec'
894 datarootdir='${prefix}/share'
895 datadir='${datarootdir}'
896 sysconfdir='${prefix}/etc'
897 sharedstatedir='${prefix}/com'
898 localstatedir='${prefix}/var'
899 includedir='${prefix}/include'
900 oldincludedir='/usr/include'
901 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
902 infodir='${datarootdir}/info'
903 htmldir='${docdir}'
904 dvidir='${docdir}'
905 pdfdir='${docdir}'
906 psdir='${docdir}'
907 libdir='${exec_prefix}/lib'
908 localedir='${datarootdir}/locale'
909 mandir='${datarootdir}/man'
910
911 ac_prev=
912 ac_dashdash=
913 for ac_option
914 do
915   # If the previous option needs an argument, assign it.
916   if test -n "$ac_prev"; then
917     eval $ac_prev=\$ac_option
918     ac_prev=
919     continue
920   fi
921
922   case $ac_option in
923   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
924   *)    ac_optarg=yes ;;
925   esac
926
927   # Accept the important Cygnus configure options, so we can diagnose typos.
928
929   case $ac_dashdash$ac_option in
930   --)
931     ac_dashdash=yes ;;
932
933   -bindir | --bindir | --bindi | --bind | --bin | --bi)
934     ac_prev=bindir ;;
935   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
936     bindir=$ac_optarg ;;
937
938   -build | --build | --buil | --bui | --bu)
939     ac_prev=build_alias ;;
940   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
941     build_alias=$ac_optarg ;;
942
943   -cache-file | --cache-file | --cache-fil | --cache-fi \
944   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
945     ac_prev=cache_file ;;
946   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
947   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
948     cache_file=$ac_optarg ;;
949
950   --config-cache | -C)
951     cache_file=config.cache ;;
952
953   -datadir | --datadir | --datadi | --datad)
954     ac_prev=datadir ;;
955   -datadir=* | --datadir=* | --datadi=* | --datad=*)
956     datadir=$ac_optarg ;;
957
958   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
959   | --dataroo | --dataro | --datar)
960     ac_prev=datarootdir ;;
961   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
962   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
963     datarootdir=$ac_optarg ;;
964
965   -disable-* | --disable-*)
966     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
967     # Reject names that are not valid shell variable names.
968     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
969       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
970    { (exit 1); exit 1; }; }
971     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
972     eval enable_$ac_feature=no ;;
973
974   -docdir | --docdir | --docdi | --doc | --do)
975     ac_prev=docdir ;;
976   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
977     docdir=$ac_optarg ;;
978
979   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
980     ac_prev=dvidir ;;
981   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
982     dvidir=$ac_optarg ;;
983
984   -enable-* | --enable-*)
985     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
986     # Reject names that are not valid shell variable names.
987     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
988       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
989    { (exit 1); exit 1; }; }
990     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
991     eval enable_$ac_feature=\$ac_optarg ;;
992
993   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
994   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
995   | --exec | --exe | --ex)
996     ac_prev=exec_prefix ;;
997   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
998   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
999   | --exec=* | --exe=* | --ex=*)
1000     exec_prefix=$ac_optarg ;;
1001
1002   -gas | --gas | --ga | --g)
1003     # Obsolete; use --with-gas.
1004     with_gas=yes ;;
1005
1006   -help | --help | --hel | --he | -h)
1007     ac_init_help=long ;;
1008   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1009     ac_init_help=recursive ;;
1010   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1011     ac_init_help=short ;;
1012
1013   -host | --host | --hos | --ho)
1014     ac_prev=host_alias ;;
1015   -host=* | --host=* | --hos=* | --ho=*)
1016     host_alias=$ac_optarg ;;
1017
1018   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1019     ac_prev=htmldir ;;
1020   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1021   | --ht=*)
1022     htmldir=$ac_optarg ;;
1023
1024   -includedir | --includedir | --includedi | --included | --include \
1025   | --includ | --inclu | --incl | --inc)
1026     ac_prev=includedir ;;
1027   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1028   | --includ=* | --inclu=* | --incl=* | --inc=*)
1029     includedir=$ac_optarg ;;
1030
1031   -infodir | --infodir | --infodi | --infod | --info | --inf)
1032     ac_prev=infodir ;;
1033   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1034     infodir=$ac_optarg ;;
1035
1036   -libdir | --libdir | --libdi | --libd)
1037     ac_prev=libdir ;;
1038   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1039     libdir=$ac_optarg ;;
1040
1041   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1042   | --libexe | --libex | --libe)
1043     ac_prev=libexecdir ;;
1044   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1045   | --libexe=* | --libex=* | --libe=*)
1046     libexecdir=$ac_optarg ;;
1047
1048   -localedir | --localedir | --localedi | --localed | --locale)
1049     ac_prev=localedir ;;
1050   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1051     localedir=$ac_optarg ;;
1052
1053   -localstatedir | --localstatedir | --localstatedi | --localstated \
1054   | --localstate | --localstat | --localsta | --localst | --locals)
1055     ac_prev=localstatedir ;;
1056   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1057   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1058     localstatedir=$ac_optarg ;;
1059
1060   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1061     ac_prev=mandir ;;
1062   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1063     mandir=$ac_optarg ;;
1064
1065   -nfp | --nfp | --nf)
1066     # Obsolete; use --without-fp.
1067     with_fp=no ;;
1068
1069   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1070   | --no-cr | --no-c | -n)
1071     no_create=yes ;;
1072
1073   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1074   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1075     no_recursion=yes ;;
1076
1077   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1078   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1079   | --oldin | --oldi | --old | --ol | --o)
1080     ac_prev=oldincludedir ;;
1081   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1082   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1083   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1084     oldincludedir=$ac_optarg ;;
1085
1086   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1087     ac_prev=prefix ;;
1088   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1089     prefix=$ac_optarg ;;
1090
1091   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1092   | --program-pre | --program-pr | --program-p)
1093     ac_prev=program_prefix ;;
1094   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1095   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1096     program_prefix=$ac_optarg ;;
1097
1098   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1099   | --program-suf | --program-su | --program-s)
1100     ac_prev=program_suffix ;;
1101   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1102   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1103     program_suffix=$ac_optarg ;;
1104
1105   -program-transform-name | --program-transform-name \
1106   | --program-transform-nam | --program-transform-na \
1107   | --program-transform-n | --program-transform- \
1108   | --program-transform | --program-transfor \
1109   | --program-transfo | --program-transf \
1110   | --program-trans | --program-tran \
1111   | --progr-tra | --program-tr | --program-t)
1112     ac_prev=program_transform_name ;;
1113   -program-transform-name=* | --program-transform-name=* \
1114   | --program-transform-nam=* | --program-transform-na=* \
1115   | --program-transform-n=* | --program-transform-=* \
1116   | --program-transform=* | --program-transfor=* \
1117   | --program-transfo=* | --program-transf=* \
1118   | --program-trans=* | --program-tran=* \
1119   | --progr-tra=* | --program-tr=* | --program-t=*)
1120     program_transform_name=$ac_optarg ;;
1121
1122   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1123     ac_prev=pdfdir ;;
1124   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1125     pdfdir=$ac_optarg ;;
1126
1127   -psdir | --psdir | --psdi | --psd | --ps)
1128     ac_prev=psdir ;;
1129   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1130     psdir=$ac_optarg ;;
1131
1132   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1133   | -silent | --silent | --silen | --sile | --sil)
1134     silent=yes ;;
1135
1136   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1137     ac_prev=sbindir ;;
1138   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1139   | --sbi=* | --sb=*)
1140     sbindir=$ac_optarg ;;
1141
1142   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1143   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1144   | --sharedst | --shareds | --shared | --share | --shar \
1145   | --sha | --sh)
1146     ac_prev=sharedstatedir ;;
1147   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1148   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1149   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1150   | --sha=* | --sh=*)
1151     sharedstatedir=$ac_optarg ;;
1152
1153   -site | --site | --sit)
1154     ac_prev=site ;;
1155   -site=* | --site=* | --sit=*)
1156     site=$ac_optarg ;;
1157
1158   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1159     ac_prev=srcdir ;;
1160   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1161     srcdir=$ac_optarg ;;
1162
1163   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1164   | --syscon | --sysco | --sysc | --sys | --sy)
1165     ac_prev=sysconfdir ;;
1166   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1167   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1168     sysconfdir=$ac_optarg ;;
1169
1170   -target | --target | --targe | --targ | --tar | --ta | --t)
1171     ac_prev=target_alias ;;
1172   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1173     target_alias=$ac_optarg ;;
1174
1175   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1176     verbose=yes ;;
1177
1178   -version | --version | --versio | --versi | --vers | -V)
1179     ac_init_version=: ;;
1180
1181   -with-* | --with-*)
1182     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1183     # Reject names that are not valid shell variable names.
1184     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1185       { echo "$as_me: error: invalid package name: $ac_package" >&2
1186    { (exit 1); exit 1; }; }
1187     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1188     eval with_$ac_package=\$ac_optarg ;;
1189
1190   -without-* | --without-*)
1191     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1192     # Reject names that are not valid shell variable names.
1193     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1194       { echo "$as_me: error: invalid package name: $ac_package" >&2
1195    { (exit 1); exit 1; }; }
1196     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1197     eval with_$ac_package=no ;;
1198
1199   --x)
1200     # Obsolete; use --with-x.
1201     with_x=yes ;;
1202
1203   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1204   | --x-incl | --x-inc | --x-in | --x-i)
1205     ac_prev=x_includes ;;
1206   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1207   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1208     x_includes=$ac_optarg ;;
1209
1210   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1211   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1212     ac_prev=x_libraries ;;
1213   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1214   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1215     x_libraries=$ac_optarg ;;
1216
1217   -*) { echo "$as_me: error: unrecognized option: $ac_option
1218 Try \`$0 --help' for more information." >&2
1219    { (exit 1); exit 1; }; }
1220     ;;
1221
1222   *=*)
1223     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1224     # Reject names that are not valid shell variable names.
1225     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1226       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1227    { (exit 1); exit 1; }; }
1228     eval $ac_envvar=\$ac_optarg
1229     export $ac_envvar ;;
1230
1231   *)
1232     # FIXME: should be removed in autoconf 3.0.
1233     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1234     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1235       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1236     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1237     ;;
1238
1239   esac
1240 done
1241
1242 if test -n "$ac_prev"; then
1243   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1244   { echo "$as_me: error: missing argument to $ac_option" >&2
1245    { (exit 1); exit 1; }; }
1246 fi
1247
1248 # Be sure to have absolute directory names.
1249 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1250                 datadir sysconfdir sharedstatedir localstatedir includedir \
1251                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1252                 libdir localedir mandir
1253 do
1254   eval ac_val=\$$ac_var
1255   case $ac_val in
1256     [\\/$]* | ?:[\\/]* )  continue;;
1257     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1258   esac
1259   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1260    { (exit 1); exit 1; }; }
1261 done
1262
1263 # There might be people who depend on the old broken behavior: `$host'
1264 # used to hold the argument of --host etc.
1265 # FIXME: To remove some day.
1266 build=$build_alias
1267 host=$host_alias
1268 target=$target_alias
1269
1270 # FIXME: To remove some day.
1271 if test "x$host_alias" != x; then
1272   if test "x$build_alias" = x; then
1273     cross_compiling=maybe
1274     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1275     If a cross compiler is detected then cross compile mode will be used." >&2
1276   elif test "x$build_alias" != "x$host_alias"; then
1277     cross_compiling=yes
1278   fi
1279 fi
1280
1281 ac_tool_prefix=
1282 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1283
1284 test "$silent" = yes && exec 6>/dev/null
1285
1286
1287 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1288 ac_ls_di=`ls -di .` &&
1289 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1290   { echo "$as_me: error: Working directory cannot be determined" >&2
1291    { (exit 1); exit 1; }; }
1292 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1293   { echo "$as_me: error: pwd does not report name of working directory" >&2
1294    { (exit 1); exit 1; }; }
1295
1296
1297 # Find the source files, if location was not specified.
1298 if test -z "$srcdir"; then
1299   ac_srcdir_defaulted=yes
1300   # Try the directory containing this script, then the parent directory.
1301   ac_confdir=`$as_dirname -- "$0" ||
1302 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1303          X"$0" : 'X\(//\)[^/]' \| \
1304          X"$0" : 'X\(//\)$' \| \
1305          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1306 echo X"$0" |
1307     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1308             s//\1/
1309             q
1310           }
1311           /^X\(\/\/\)[^/].*/{
1312             s//\1/
1313             q
1314           }
1315           /^X\(\/\/\)$/{
1316             s//\1/
1317             q
1318           }
1319           /^X\(\/\).*/{
1320             s//\1/
1321             q
1322           }
1323           s/.*/./; q'`
1324   srcdir=$ac_confdir
1325   if test ! -r "$srcdir/$ac_unique_file"; then
1326     srcdir=..
1327   fi
1328 else
1329   ac_srcdir_defaulted=no
1330 fi
1331 if test ! -r "$srcdir/$ac_unique_file"; then
1332   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1333   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1334    { (exit 1); exit 1; }; }
1335 fi
1336 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1337 ac_abs_confdir=`(
1338         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1339    { (exit 1); exit 1; }; }
1340         pwd)`
1341 # When building in place, set srcdir=.
1342 if test "$ac_abs_confdir" = "$ac_pwd"; then
1343   srcdir=.
1344 fi
1345 # Remove unnecessary trailing slashes from srcdir.
1346 # Double slashes in file names in object file debugging info
1347 # mess up M-x gdb in Emacs.
1348 case $srcdir in
1349 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1350 esac
1351 for ac_var in $ac_precious_vars; do
1352   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1353   eval ac_env_${ac_var}_value=\$${ac_var}
1354   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1355   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1356 done
1357
1358 #
1359 # Report the --help message.
1360 #
1361 if test "$ac_init_help" = "long"; then
1362   # Omit some internal or obsolete options to make the list less imposing.
1363   # This message is too long to be a string in the A/UX 3.1 sh.
1364   cat <<_ACEOF
1365 \`configure' configures concord 0.0.2 to adapt to many kinds of systems.
1366
1367 Usage: $0 [OPTION]... [VAR=VALUE]...
1368
1369 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1370 VAR=VALUE.  See below for descriptions of some of the useful variables.
1371
1372 Defaults for the options are specified in brackets.
1373
1374 Configuration:
1375   -h, --help              display this help and exit
1376       --help=short        display options specific to this package
1377       --help=recursive    display the short help of all the included packages
1378   -V, --version           display version information and exit
1379   -q, --quiet, --silent   do not print \`checking...' messages
1380       --cache-file=FILE   cache test results in FILE [disabled]
1381   -C, --config-cache      alias for \`--cache-file=config.cache'
1382   -n, --no-create         do not create output files
1383       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1384
1385 Installation directories:
1386   --prefix=PREFIX         install architecture-independent files in PREFIX
1387                           [$ac_default_prefix]
1388   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1389                           [PREFIX]
1390
1391 By default, \`make install' will install all the files in
1392 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1393 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1394 for instance \`--prefix=\$HOME'.
1395
1396 For better control, use the options below.
1397
1398 Fine tuning of the installation directories:
1399   --bindir=DIR           user executables [EPREFIX/bin]
1400   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1401   --libexecdir=DIR       program executables [EPREFIX/libexec]
1402   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1403   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1404   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1405   --libdir=DIR           object code libraries [EPREFIX/lib]
1406   --includedir=DIR       C header files [PREFIX/include]
1407   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1408   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1409   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1410   --infodir=DIR          info documentation [DATAROOTDIR/info]
1411   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1412   --mandir=DIR           man documentation [DATAROOTDIR/man]
1413   --docdir=DIR           documentation root [DATAROOTDIR/doc/concord]
1414   --htmldir=DIR          html documentation [DOCDIR]
1415   --dvidir=DIR           dvi documentation [DOCDIR]
1416   --pdfdir=DIR           pdf documentation [DOCDIR]
1417   --psdir=DIR            ps documentation [DOCDIR]
1418 _ACEOF
1419
1420   cat <<\_ACEOF
1421
1422 System types:
1423   --build=BUILD     configure for building on BUILD [guessed]
1424   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1425   --target=TARGET   configure for building compilers for TARGET [HOST]
1426 _ACEOF
1427 fi
1428
1429 if test -n "$ac_init_help"; then
1430   case $ac_init_help in
1431      short | recursive ) echo "Configuration of concord 0.0.2:";;
1432    esac
1433   cat <<\_ACEOF
1434
1435 Optional Features:
1436   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1437   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1438   --enable-shared[=PKGS]  build shared libraries [default=yes]
1439   --enable-static[=PKGS]  build static libraries [default=yes]
1440   --enable-fast-install[=PKGS]
1441                           optimize for fast installation [default=yes]
1442   --disable-libtool-lock  avoid locking (might break parallel builds)
1443
1444 Optional Packages:
1445   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1446   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1447   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1448   --with-pic              try to use only PIC/non-PIC objects [default=use
1449                           both]
1450   --with-tags[=TAGS]      include additional configurations [automatic]
1451 --with-site-includes=PATH List of directories to search first for header files
1452
1453 --with-site-libraries=PATH List of directories to search first for libraries
1454
1455
1456 Some influential environment variables:
1457   CC          C compiler command
1458   CFLAGS      C compiler flags
1459   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1460               nonstandard directory <lib dir>
1461   LIBS        libraries to pass to the linker, e.g. -l<library>
1462   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1463               you have headers in a nonstandard directory <include dir>
1464   CPP         C preprocessor
1465   CXX         C++ compiler command
1466   CXXFLAGS    C++ compiler flags
1467   CXXCPP      C++ preprocessor
1468   F77         Fortran 77 compiler command
1469   FFLAGS      Fortran 77 compiler flags
1470
1471 Use these variables to override the choices made by `configure' or to help
1472 it to find libraries and programs with nonstandard names/locations.
1473
1474 Report bugs to <chise-en@m17n.org>.
1475 _ACEOF
1476 ac_status=$?
1477 fi
1478
1479 if test "$ac_init_help" = "recursive"; then
1480   # If there are subdirs, report their specific --help.
1481   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1482     test -d "$ac_dir" || continue
1483     ac_builddir=.
1484
1485 case "$ac_dir" in
1486 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1487 *)
1488   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1489   # A ".." for each directory in $ac_dir_suffix.
1490   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1491   case $ac_top_builddir_sub in
1492   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1493   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1494   esac ;;
1495 esac
1496 ac_abs_top_builddir=$ac_pwd
1497 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1498 # for backward compatibility:
1499 ac_top_builddir=$ac_top_build_prefix
1500
1501 case $srcdir in
1502   .)  # We are building in place.
1503     ac_srcdir=.
1504     ac_top_srcdir=$ac_top_builddir_sub
1505     ac_abs_top_srcdir=$ac_pwd ;;
1506   [\\/]* | ?:[\\/]* )  # Absolute name.
1507     ac_srcdir=$srcdir$ac_dir_suffix;
1508     ac_top_srcdir=$srcdir
1509     ac_abs_top_srcdir=$srcdir ;;
1510   *) # Relative name.
1511     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1512     ac_top_srcdir=$ac_top_build_prefix$srcdir
1513     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1514 esac
1515 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1516
1517     cd "$ac_dir" || { ac_status=$?; continue; }
1518     # Check for guested configure.
1519     if test -f "$ac_srcdir/configure.gnu"; then
1520       echo &&
1521       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1522     elif test -f "$ac_srcdir/configure"; then
1523       echo &&
1524       $SHELL "$ac_srcdir/configure" --help=recursive
1525     else
1526       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1527     fi || ac_status=$?
1528     cd "$ac_pwd" || { ac_status=$?; break; }
1529   done
1530 fi
1531
1532 test -n "$ac_init_help" && exit $ac_status
1533 if $ac_init_version; then
1534   cat <<\_ACEOF
1535 concord configure 0.0.2
1536 generated by GNU Autoconf 2.61
1537
1538 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1539 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1540 This configure script is free software; the Free Software Foundation
1541 gives unlimited permission to copy, distribute and modify it.
1542 _ACEOF
1543   exit
1544 fi
1545 cat >config.log <<_ACEOF
1546 This file contains any messages produced by compilers while
1547 running configure, to aid debugging if configure makes a mistake.
1548
1549 It was created by concord $as_me 0.0.2, which was
1550 generated by GNU Autoconf 2.61.  Invocation command line was
1551
1552   $ $0 $@
1553
1554 _ACEOF
1555 exec 5>>config.log
1556 {
1557 cat <<_ASUNAME
1558 ## --------- ##
1559 ## Platform. ##
1560 ## --------- ##
1561
1562 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1563 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1564 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1565 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1566 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1567
1568 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1569 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1570
1571 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1572 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1573 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1574 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1575 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1576 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1577 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1578
1579 _ASUNAME
1580
1581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1582 for as_dir in $PATH
1583 do
1584   IFS=$as_save_IFS
1585   test -z "$as_dir" && as_dir=.
1586   echo "PATH: $as_dir"
1587 done
1588 IFS=$as_save_IFS
1589
1590 } >&5
1591
1592 cat >&5 <<_ACEOF
1593
1594
1595 ## ----------- ##
1596 ## Core tests. ##
1597 ## ----------- ##
1598
1599 _ACEOF
1600
1601
1602 # Keep a trace of the command line.
1603 # Strip out --no-create and --no-recursion so they do not pile up.
1604 # Strip out --silent because we don't want to record it for future runs.
1605 # Also quote any args containing shell meta-characters.
1606 # Make two passes to allow for proper duplicate-argument suppression.
1607 ac_configure_args=
1608 ac_configure_args0=
1609 ac_configure_args1=
1610 ac_must_keep_next=false
1611 for ac_pass in 1 2
1612 do
1613   for ac_arg
1614   do
1615     case $ac_arg in
1616     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1617     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1618     | -silent | --silent | --silen | --sile | --sil)
1619       continue ;;
1620     *\'*)
1621       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1622     esac
1623     case $ac_pass in
1624     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1625     2)
1626       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1627       if test $ac_must_keep_next = true; then
1628         ac_must_keep_next=false # Got value, back to normal.
1629       else
1630         case $ac_arg in
1631           *=* | --config-cache | -C | -disable-* | --disable-* \
1632           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1633           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1634           | -with-* | --with-* | -without-* | --without-* | --x)
1635             case "$ac_configure_args0 " in
1636               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1637             esac
1638             ;;
1639           -* ) ac_must_keep_next=true ;;
1640         esac
1641       fi
1642       ac_configure_args="$ac_configure_args '$ac_arg'"
1643       ;;
1644     esac
1645   done
1646 done
1647 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1648 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1649
1650 # When interrupted or exit'd, cleanup temporary files, and complete
1651 # config.log.  We remove comments because anyway the quotes in there
1652 # would cause problems or look ugly.
1653 # WARNING: Use '\'' to represent an apostrophe within the trap.
1654 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1655 trap 'exit_status=$?
1656   # Save into config.log some information that might help in debugging.
1657   {
1658     echo
1659
1660     cat <<\_ASBOX
1661 ## ---------------- ##
1662 ## Cache variables. ##
1663 ## ---------------- ##
1664 _ASBOX
1665     echo
1666     # The following way of writing the cache mishandles newlines in values,
1667 (
1668   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1669     eval ac_val=\$$ac_var
1670     case $ac_val in #(
1671     *${as_nl}*)
1672       case $ac_var in #(
1673       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1674 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1675       esac
1676       case $ac_var in #(
1677       _ | IFS | as_nl) ;; #(
1678       *) $as_unset $ac_var ;;
1679       esac ;;
1680     esac
1681   done
1682   (set) 2>&1 |
1683     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1684     *${as_nl}ac_space=\ *)
1685       sed -n \
1686         "s/'\''/'\''\\\\'\'''\''/g;
1687           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1688       ;; #(
1689     *)
1690       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1691       ;;
1692     esac |
1693     sort
1694 )
1695     echo
1696
1697     cat <<\_ASBOX
1698 ## ----------------- ##
1699 ## Output variables. ##
1700 ## ----------------- ##
1701 _ASBOX
1702     echo
1703     for ac_var in $ac_subst_vars
1704     do
1705       eval ac_val=\$$ac_var
1706       case $ac_val in
1707       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1708       esac
1709       echo "$ac_var='\''$ac_val'\''"
1710     done | sort
1711     echo
1712
1713     if test -n "$ac_subst_files"; then
1714       cat <<\_ASBOX
1715 ## ------------------- ##
1716 ## File substitutions. ##
1717 ## ------------------- ##
1718 _ASBOX
1719       echo
1720       for ac_var in $ac_subst_files
1721       do
1722         eval ac_val=\$$ac_var
1723         case $ac_val in
1724         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1725         esac
1726         echo "$ac_var='\''$ac_val'\''"
1727       done | sort
1728       echo
1729     fi
1730
1731     if test -s confdefs.h; then
1732       cat <<\_ASBOX
1733 ## ----------- ##
1734 ## confdefs.h. ##
1735 ## ----------- ##
1736 _ASBOX
1737       echo
1738       cat confdefs.h
1739       echo
1740     fi
1741     test "$ac_signal" != 0 &&
1742       echo "$as_me: caught signal $ac_signal"
1743     echo "$as_me: exit $exit_status"
1744   } >&5
1745   rm -f core *.core core.conftest.* &&
1746     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1747     exit $exit_status
1748 ' 0
1749 for ac_signal in 1 2 13 15; do
1750   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1751 done
1752 ac_signal=0
1753
1754 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1755 rm -f -r conftest* confdefs.h
1756
1757 # Predefined preprocessor variables.
1758
1759 cat >>confdefs.h <<_ACEOF
1760 #define PACKAGE_NAME "$PACKAGE_NAME"
1761 _ACEOF
1762
1763
1764 cat >>confdefs.h <<_ACEOF
1765 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1766 _ACEOF
1767
1768
1769 cat >>confdefs.h <<_ACEOF
1770 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1771 _ACEOF
1772
1773
1774 cat >>confdefs.h <<_ACEOF
1775 #define PACKAGE_STRING "$PACKAGE_STRING"
1776 _ACEOF
1777
1778
1779 cat >>confdefs.h <<_ACEOF
1780 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1781 _ACEOF
1782
1783
1784 # Let the site file select an alternate cache file if it wants to.
1785 # Prefer explicitly selected file to automatically selected ones.
1786 if test -n "$CONFIG_SITE"; then
1787   set x "$CONFIG_SITE"
1788 elif test "x$prefix" != xNONE; then
1789   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1790 else
1791   set x "$ac_default_prefix/share/config.site" \
1792         "$ac_default_prefix/etc/config.site"
1793 fi
1794 shift
1795 for ac_site_file
1796 do
1797   if test -r "$ac_site_file"; then
1798     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1799 echo "$as_me: loading site script $ac_site_file" >&6;}
1800     sed 's/^/| /' "$ac_site_file" >&5
1801     . "$ac_site_file"
1802   fi
1803 done
1804
1805 if test -r "$cache_file"; then
1806   # Some versions of bash will fail to source /dev/null (special
1807   # files actually), so we avoid doing that.
1808   if test -f "$cache_file"; then
1809     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1810 echo "$as_me: loading cache $cache_file" >&6;}
1811     case $cache_file in
1812       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1813       *)                      . "./$cache_file";;
1814     esac
1815   fi
1816 else
1817   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1818 echo "$as_me: creating cache $cache_file" >&6;}
1819   >$cache_file
1820 fi
1821
1822 # Check that the precious variables saved in the cache have kept the same
1823 # value.
1824 ac_cache_corrupted=false
1825 for ac_var in $ac_precious_vars; do
1826   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1827   eval ac_new_set=\$ac_env_${ac_var}_set
1828   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1829   eval ac_new_val=\$ac_env_${ac_var}_value
1830   case $ac_old_set,$ac_new_set in
1831     set,)
1832       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1833 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1834       ac_cache_corrupted=: ;;
1835     ,set)
1836       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1837 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1838       ac_cache_corrupted=: ;;
1839     ,);;
1840     *)
1841       if test "x$ac_old_val" != "x$ac_new_val"; then
1842         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1843 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1844         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1845 echo "$as_me:   former value:  $ac_old_val" >&2;}
1846         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1847 echo "$as_me:   current value: $ac_new_val" >&2;}
1848         ac_cache_corrupted=:
1849       fi;;
1850   esac
1851   # Pass precious variables to config.status.
1852   if test "$ac_new_set" = set; then
1853     case $ac_new_val in
1854     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1855     *) ac_arg=$ac_var=$ac_new_val ;;
1856     esac
1857     case " $ac_configure_args " in
1858       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1859       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1860     esac
1861   fi
1862 done
1863 if $ac_cache_corrupted; then
1864   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1865 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1866   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1867 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1868    { (exit 1); exit 1; }; }
1869 fi
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895 ac_ext=c
1896 ac_cpp='$CPP $CPPFLAGS'
1897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1900
1901
1902
1903 ac_config_headers="$ac_config_headers config.h"
1904
1905
1906 ac_aux_dir=
1907 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1908   if test -f "$ac_dir/install-sh"; then
1909     ac_aux_dir=$ac_dir
1910     ac_install_sh="$ac_aux_dir/install-sh -c"
1911     break
1912   elif test -f "$ac_dir/install.sh"; then
1913     ac_aux_dir=$ac_dir
1914     ac_install_sh="$ac_aux_dir/install.sh -c"
1915     break
1916   elif test -f "$ac_dir/shtool"; then
1917     ac_aux_dir=$ac_dir
1918     ac_install_sh="$ac_aux_dir/shtool install -c"
1919     break
1920   fi
1921 done
1922 if test -z "$ac_aux_dir"; then
1923   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1924 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1925    { (exit 1); exit 1; }; }
1926 fi
1927
1928 # These three variables are undocumented and unsupported,
1929 # and are intended to be withdrawn in a future Autoconf release.
1930 # They can cause serious problems if a builder's source tree is in a directory
1931 # whose full name contains unusual characters.
1932 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1933 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1934 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1935
1936
1937 # Make sure we can run config.sub.
1938 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1939   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1940 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1941    { (exit 1); exit 1; }; }
1942
1943 { echo "$as_me:$LINENO: checking build system type" >&5
1944 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1945 if test "${ac_cv_build+set}" = set; then
1946   echo $ECHO_N "(cached) $ECHO_C" >&6
1947 else
1948   ac_build_alias=$build_alias
1949 test "x$ac_build_alias" = x &&
1950   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1951 test "x$ac_build_alias" = x &&
1952   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1953 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1954    { (exit 1); exit 1; }; }
1955 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1956   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1957 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1958    { (exit 1); exit 1; }; }
1959
1960 fi
1961 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1962 echo "${ECHO_T}$ac_cv_build" >&6; }
1963 case $ac_cv_build in
1964 *-*-*) ;;
1965 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1966 echo "$as_me: error: invalid value of canonical build" >&2;}
1967    { (exit 1); exit 1; }; };;
1968 esac
1969 build=$ac_cv_build
1970 ac_save_IFS=$IFS; IFS='-'
1971 set x $ac_cv_build
1972 shift
1973 build_cpu=$1
1974 build_vendor=$2
1975 shift; shift
1976 # Remember, the first character of IFS is used to create $*,
1977 # except with old shells:
1978 build_os=$*
1979 IFS=$ac_save_IFS
1980 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1981
1982
1983 { echo "$as_me:$LINENO: checking host system type" >&5
1984 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1985 if test "${ac_cv_host+set}" = set; then
1986   echo $ECHO_N "(cached) $ECHO_C" >&6
1987 else
1988   if test "x$host_alias" = x; then
1989   ac_cv_host=$ac_cv_build
1990 else
1991   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1992     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1993 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1994    { (exit 1); exit 1; }; }
1995 fi
1996
1997 fi
1998 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1999 echo "${ECHO_T}$ac_cv_host" >&6; }
2000 case $ac_cv_host in
2001 *-*-*) ;;
2002 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2003 echo "$as_me: error: invalid value of canonical host" >&2;}
2004    { (exit 1); exit 1; }; };;
2005 esac
2006 host=$ac_cv_host
2007 ac_save_IFS=$IFS; IFS='-'
2008 set x $ac_cv_host
2009 shift
2010 host_cpu=$1
2011 host_vendor=$2
2012 shift; shift
2013 # Remember, the first character of IFS is used to create $*,
2014 # except with old shells:
2015 host_os=$*
2016 IFS=$ac_save_IFS
2017 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2018
2019
2020 { echo "$as_me:$LINENO: checking target system type" >&5
2021 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2022 if test "${ac_cv_target+set}" = set; then
2023   echo $ECHO_N "(cached) $ECHO_C" >&6
2024 else
2025   if test "x$target_alias" = x; then
2026   ac_cv_target=$ac_cv_host
2027 else
2028   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2029     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2030 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2031    { (exit 1); exit 1; }; }
2032 fi
2033
2034 fi
2035 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2036 echo "${ECHO_T}$ac_cv_target" >&6; }
2037 case $ac_cv_target in
2038 *-*-*) ;;
2039 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2040 echo "$as_me: error: invalid value of canonical target" >&2;}
2041    { (exit 1); exit 1; }; };;
2042 esac
2043 target=$ac_cv_target
2044 ac_save_IFS=$IFS; IFS='-'
2045 set x $ac_cv_target
2046 shift
2047 target_cpu=$1
2048 target_vendor=$2
2049 shift; shift
2050 # Remember, the first character of IFS is used to create $*,
2051 # except with old shells:
2052 target_os=$*
2053 IFS=$ac_save_IFS
2054 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2055
2056
2057 # The aliases save the names the user supplied, while $host etc.
2058 # will get canonicalized.
2059 test -n "$target_alias" &&
2060   test "$program_prefix$program_suffix$program_transform_name" = \
2061     NONENONEs,x,x, &&
2062   program_prefix=${target_alias}-
2063
2064 # Checks for programs.
2065 ac_ext=c
2066 ac_cpp='$CPP $CPPFLAGS'
2067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2070 if test -n "$ac_tool_prefix"; then
2071   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2072 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2073 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2075 if test "${ac_cv_prog_CC+set}" = set; then
2076   echo $ECHO_N "(cached) $ECHO_C" >&6
2077 else
2078   if test -n "$CC"; then
2079   ac_cv_prog_CC="$CC" # Let the user override the test.
2080 else
2081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2082 for as_dir in $PATH
2083 do
2084   IFS=$as_save_IFS
2085   test -z "$as_dir" && as_dir=.
2086   for ac_exec_ext in '' $ac_executable_extensions; do
2087   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2088     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2089     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2090     break 2
2091   fi
2092 done
2093 done
2094 IFS=$as_save_IFS
2095
2096 fi
2097 fi
2098 CC=$ac_cv_prog_CC
2099 if test -n "$CC"; then
2100   { echo "$as_me:$LINENO: result: $CC" >&5
2101 echo "${ECHO_T}$CC" >&6; }
2102 else
2103   { echo "$as_me:$LINENO: result: no" >&5
2104 echo "${ECHO_T}no" >&6; }
2105 fi
2106
2107
2108 fi
2109 if test -z "$ac_cv_prog_CC"; then
2110   ac_ct_CC=$CC
2111   # Extract the first word of "gcc", so it can be a program name with args.
2112 set dummy gcc; ac_word=$2
2113 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2115 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2116   echo $ECHO_N "(cached) $ECHO_C" >&6
2117 else
2118   if test -n "$ac_ct_CC"; then
2119   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2120 else
2121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2122 for as_dir in $PATH
2123 do
2124   IFS=$as_save_IFS
2125   test -z "$as_dir" && as_dir=.
2126   for ac_exec_ext in '' $ac_executable_extensions; do
2127   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2128     ac_cv_prog_ac_ct_CC="gcc"
2129     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2130     break 2
2131   fi
2132 done
2133 done
2134 IFS=$as_save_IFS
2135
2136 fi
2137 fi
2138 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2139 if test -n "$ac_ct_CC"; then
2140   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2141 echo "${ECHO_T}$ac_ct_CC" >&6; }
2142 else
2143   { echo "$as_me:$LINENO: result: no" >&5
2144 echo "${ECHO_T}no" >&6; }
2145 fi
2146
2147   if test "x$ac_ct_CC" = x; then
2148     CC=""
2149   else
2150     case $cross_compiling:$ac_tool_warned in
2151 yes:)
2152 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2153 whose name does not start with the host triplet.  If you think this
2154 configuration is useful to you, please write to autoconf@gnu.org." >&5
2155 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2156 whose name does not start with the host triplet.  If you think this
2157 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2158 ac_tool_warned=yes ;;
2159 esac
2160     CC=$ac_ct_CC
2161   fi
2162 else
2163   CC="$ac_cv_prog_CC"
2164 fi
2165
2166 if test -z "$CC"; then
2167           if test -n "$ac_tool_prefix"; then
2168     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2169 set dummy ${ac_tool_prefix}cc; ac_word=$2
2170 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2172 if test "${ac_cv_prog_CC+set}" = set; then
2173   echo $ECHO_N "(cached) $ECHO_C" >&6
2174 else
2175   if test -n "$CC"; then
2176   ac_cv_prog_CC="$CC" # Let the user override the test.
2177 else
2178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2179 for as_dir in $PATH
2180 do
2181   IFS=$as_save_IFS
2182   test -z "$as_dir" && as_dir=.
2183   for ac_exec_ext in '' $ac_executable_extensions; do
2184   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2185     ac_cv_prog_CC="${ac_tool_prefix}cc"
2186     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2187     break 2
2188   fi
2189 done
2190 done
2191 IFS=$as_save_IFS
2192
2193 fi
2194 fi
2195 CC=$ac_cv_prog_CC
2196 if test -n "$CC"; then
2197   { echo "$as_me:$LINENO: result: $CC" >&5
2198 echo "${ECHO_T}$CC" >&6; }
2199 else
2200   { echo "$as_me:$LINENO: result: no" >&5
2201 echo "${ECHO_T}no" >&6; }
2202 fi
2203
2204
2205   fi
2206 fi
2207 if test -z "$CC"; then
2208   # Extract the first word of "cc", so it can be a program name with args.
2209 set dummy cc; ac_word=$2
2210 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2212 if test "${ac_cv_prog_CC+set}" = set; then
2213   echo $ECHO_N "(cached) $ECHO_C" >&6
2214 else
2215   if test -n "$CC"; then
2216   ac_cv_prog_CC="$CC" # Let the user override the test.
2217 else
2218   ac_prog_rejected=no
2219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2220 for as_dir in $PATH
2221 do
2222   IFS=$as_save_IFS
2223   test -z "$as_dir" && as_dir=.
2224   for ac_exec_ext in '' $ac_executable_extensions; do
2225   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2226     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2227        ac_prog_rejected=yes
2228        continue
2229      fi
2230     ac_cv_prog_CC="cc"
2231     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2232     break 2
2233   fi
2234 done
2235 done
2236 IFS=$as_save_IFS
2237
2238 if test $ac_prog_rejected = yes; then
2239   # We found a bogon in the path, so make sure we never use it.
2240   set dummy $ac_cv_prog_CC
2241   shift
2242   if test $# != 0; then
2243     # We chose a different compiler from the bogus one.
2244     # However, it has the same basename, so the bogon will be chosen
2245     # first if we set CC to just the basename; use the full file name.
2246     shift
2247     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2248   fi
2249 fi
2250 fi
2251 fi
2252 CC=$ac_cv_prog_CC
2253 if test -n "$CC"; then
2254   { echo "$as_me:$LINENO: result: $CC" >&5
2255 echo "${ECHO_T}$CC" >&6; }
2256 else
2257   { echo "$as_me:$LINENO: result: no" >&5
2258 echo "${ECHO_T}no" >&6; }
2259 fi
2260
2261
2262 fi
2263 if test -z "$CC"; then
2264   if test -n "$ac_tool_prefix"; then
2265   for ac_prog in cl.exe
2266   do
2267     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2268 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2269 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2271 if test "${ac_cv_prog_CC+set}" = set; then
2272   echo $ECHO_N "(cached) $ECHO_C" >&6
2273 else
2274   if test -n "$CC"; then
2275   ac_cv_prog_CC="$CC" # Let the user override the test.
2276 else
2277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2278 for as_dir in $PATH
2279 do
2280   IFS=$as_save_IFS
2281   test -z "$as_dir" && as_dir=.
2282   for ac_exec_ext in '' $ac_executable_extensions; do
2283   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2284     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2285     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2286     break 2
2287   fi
2288 done
2289 done
2290 IFS=$as_save_IFS
2291
2292 fi
2293 fi
2294 CC=$ac_cv_prog_CC
2295 if test -n "$CC"; then
2296   { echo "$as_me:$LINENO: result: $CC" >&5
2297 echo "${ECHO_T}$CC" >&6; }
2298 else
2299   { echo "$as_me:$LINENO: result: no" >&5
2300 echo "${ECHO_T}no" >&6; }
2301 fi
2302
2303
2304     test -n "$CC" && break
2305   done
2306 fi
2307 if test -z "$CC"; then
2308   ac_ct_CC=$CC
2309   for ac_prog in cl.exe
2310 do
2311   # Extract the first word of "$ac_prog", so it can be a program name with args.
2312 set dummy $ac_prog; ac_word=$2
2313 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2315 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2316   echo $ECHO_N "(cached) $ECHO_C" >&6
2317 else
2318   if test -n "$ac_ct_CC"; then
2319   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2320 else
2321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2322 for as_dir in $PATH
2323 do
2324   IFS=$as_save_IFS
2325   test -z "$as_dir" && as_dir=.
2326   for ac_exec_ext in '' $ac_executable_extensions; do
2327   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2328     ac_cv_prog_ac_ct_CC="$ac_prog"
2329     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2330     break 2
2331   fi
2332 done
2333 done
2334 IFS=$as_save_IFS
2335
2336 fi
2337 fi
2338 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2339 if test -n "$ac_ct_CC"; then
2340   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2341 echo "${ECHO_T}$ac_ct_CC" >&6; }
2342 else
2343   { echo "$as_me:$LINENO: result: no" >&5
2344 echo "${ECHO_T}no" >&6; }
2345 fi
2346
2347
2348   test -n "$ac_ct_CC" && break
2349 done
2350
2351   if test "x$ac_ct_CC" = x; then
2352     CC=""
2353   else
2354     case $cross_compiling:$ac_tool_warned in
2355 yes:)
2356 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2357 whose name does not start with the host triplet.  If you think this
2358 configuration is useful to you, please write to autoconf@gnu.org." >&5
2359 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2360 whose name does not start with the host triplet.  If you think this
2361 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2362 ac_tool_warned=yes ;;
2363 esac
2364     CC=$ac_ct_CC
2365   fi
2366 fi
2367
2368 fi
2369
2370
2371 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2372 See \`config.log' for more details." >&5
2373 echo "$as_me: error: no acceptable C compiler found in \$PATH
2374 See \`config.log' for more details." >&2;}
2375    { (exit 1); exit 1; }; }
2376
2377 # Provide some information about the compiler.
2378 echo "$as_me:$LINENO: checking for C compiler version" >&5
2379 ac_compiler=`set X $ac_compile; echo $2`
2380 { (ac_try="$ac_compiler --version >&5"
2381 case "(($ac_try" in
2382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2383   *) ac_try_echo=$ac_try;;
2384 esac
2385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2386   (eval "$ac_compiler --version >&5") 2>&5
2387   ac_status=$?
2388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389   (exit $ac_status); }
2390 { (ac_try="$ac_compiler -v >&5"
2391 case "(($ac_try" in
2392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2393   *) ac_try_echo=$ac_try;;
2394 esac
2395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2396   (eval "$ac_compiler -v >&5") 2>&5
2397   ac_status=$?
2398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399   (exit $ac_status); }
2400 { (ac_try="$ac_compiler -V >&5"
2401 case "(($ac_try" in
2402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2403   *) ac_try_echo=$ac_try;;
2404 esac
2405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2406   (eval "$ac_compiler -V >&5") 2>&5
2407   ac_status=$?
2408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409   (exit $ac_status); }
2410
2411 cat >conftest.$ac_ext <<_ACEOF
2412 /* confdefs.h.  */
2413 _ACEOF
2414 cat confdefs.h >>conftest.$ac_ext
2415 cat >>conftest.$ac_ext <<_ACEOF
2416 /* end confdefs.h.  */
2417
2418 int
2419 main ()
2420 {
2421
2422   ;
2423   return 0;
2424 }
2425 _ACEOF
2426 ac_clean_files_save=$ac_clean_files
2427 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2428 # Try to create an executable without -o first, disregard a.out.
2429 # It will help us diagnose broken compilers, and finding out an intuition
2430 # of exeext.
2431 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2432 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2433 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2434 #
2435 # List of possible output files, starting from the most likely.
2436 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2437 # only as a last resort.  b.out is created by i960 compilers.
2438 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2439 #
2440 # The IRIX 6 linker writes into existing files which may not be
2441 # executable, retaining their permissions.  Remove them first so a
2442 # subsequent execution test works.
2443 ac_rmfiles=
2444 for ac_file in $ac_files
2445 do
2446   case $ac_file in
2447     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2448     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2449   esac
2450 done
2451 rm -f $ac_rmfiles
2452
2453 if { (ac_try="$ac_link_default"
2454 case "(($ac_try" in
2455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2456   *) ac_try_echo=$ac_try;;
2457 esac
2458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2459   (eval "$ac_link_default") 2>&5
2460   ac_status=$?
2461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462   (exit $ac_status); }; then
2463   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2464 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2465 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2466 # so that the user can short-circuit this test for compilers unknown to
2467 # Autoconf.
2468 for ac_file in $ac_files ''
2469 do
2470   test -f "$ac_file" || continue
2471   case $ac_file in
2472     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2473         ;;
2474     [ab].out )
2475         # We found the default executable, but exeext='' is most
2476         # certainly right.
2477         break;;
2478     *.* )
2479         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2480         then :; else
2481            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2482         fi
2483         # We set ac_cv_exeext here because the later test for it is not
2484         # safe: cross compilers may not add the suffix if given an `-o'
2485         # argument, so we may need to know it at that point already.
2486         # Even if this section looks crufty: it has the advantage of
2487         # actually working.
2488         break;;
2489     * )
2490         break;;
2491   esac
2492 done
2493 test "$ac_cv_exeext" = no && ac_cv_exeext=
2494
2495 else
2496   ac_file=''
2497 fi
2498
2499 { echo "$as_me:$LINENO: result: $ac_file" >&5
2500 echo "${ECHO_T}$ac_file" >&6; }
2501 if test -z "$ac_file"; then
2502   echo "$as_me: failed program was:" >&5
2503 sed 's/^/| /' conftest.$ac_ext >&5
2504
2505 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2506 See \`config.log' for more details." >&5
2507 echo "$as_me: error: C compiler cannot create executables
2508 See \`config.log' for more details." >&2;}
2509    { (exit 77); exit 77; }; }
2510 fi
2511
2512 ac_exeext=$ac_cv_exeext
2513
2514 # Check that the compiler produces executables we can run.  If not, either
2515 # the compiler is broken, or we cross compile.
2516 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2517 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2518 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2519 # If not cross compiling, check that we can run a simple program.
2520 if test "$cross_compiling" != yes; then
2521   if { ac_try='./$ac_file'
2522   { (case "(($ac_try" in
2523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2524   *) ac_try_echo=$ac_try;;
2525 esac
2526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2527   (eval "$ac_try") 2>&5
2528   ac_status=$?
2529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530   (exit $ac_status); }; }; then
2531     cross_compiling=no
2532   else
2533     if test "$cross_compiling" = maybe; then
2534         cross_compiling=yes
2535     else
2536         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2537 If you meant to cross compile, use \`--host'.
2538 See \`config.log' for more details." >&5
2539 echo "$as_me: error: cannot run C compiled programs.
2540 If you meant to cross compile, use \`--host'.
2541 See \`config.log' for more details." >&2;}
2542    { (exit 1); exit 1; }; }
2543     fi
2544   fi
2545 fi
2546 { echo "$as_me:$LINENO: result: yes" >&5
2547 echo "${ECHO_T}yes" >&6; }
2548
2549 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2550 ac_clean_files=$ac_clean_files_save
2551 # Check that the compiler produces executables we can run.  If not, either
2552 # the compiler is broken, or we cross compile.
2553 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2554 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2555 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2556 echo "${ECHO_T}$cross_compiling" >&6; }
2557
2558 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2559 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2560 if { (ac_try="$ac_link"
2561 case "(($ac_try" in
2562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2563   *) ac_try_echo=$ac_try;;
2564 esac
2565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2566   (eval "$ac_link") 2>&5
2567   ac_status=$?
2568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569   (exit $ac_status); }; then
2570   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2571 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2572 # work properly (i.e., refer to `conftest.exe'), while it won't with
2573 # `rm'.
2574 for ac_file in conftest.exe conftest conftest.*; do
2575   test -f "$ac_file" || continue
2576   case $ac_file in
2577     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2578     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2579           break;;
2580     * ) break;;
2581   esac
2582 done
2583 else
2584   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2585 See \`config.log' for more details." >&5
2586 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2587 See \`config.log' for more details." >&2;}
2588    { (exit 1); exit 1; }; }
2589 fi
2590
2591 rm -f conftest$ac_cv_exeext
2592 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2593 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2594
2595 rm -f conftest.$ac_ext
2596 EXEEXT=$ac_cv_exeext
2597 ac_exeext=$EXEEXT
2598 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2599 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2600 if test "${ac_cv_objext+set}" = set; then
2601   echo $ECHO_N "(cached) $ECHO_C" >&6
2602 else
2603   cat >conftest.$ac_ext <<_ACEOF
2604 /* confdefs.h.  */
2605 _ACEOF
2606 cat confdefs.h >>conftest.$ac_ext
2607 cat >>conftest.$ac_ext <<_ACEOF
2608 /* end confdefs.h.  */
2609
2610 int
2611 main ()
2612 {
2613
2614   ;
2615   return 0;
2616 }
2617 _ACEOF
2618 rm -f conftest.o conftest.obj
2619 if { (ac_try="$ac_compile"
2620 case "(($ac_try" in
2621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2622   *) ac_try_echo=$ac_try;;
2623 esac
2624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2625   (eval "$ac_compile") 2>&5
2626   ac_status=$?
2627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628   (exit $ac_status); }; then
2629   for ac_file in conftest.o conftest.obj conftest.*; do
2630   test -f "$ac_file" || continue;
2631   case $ac_file in
2632     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2633     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2634        break;;
2635   esac
2636 done
2637 else
2638   echo "$as_me: failed program was:" >&5
2639 sed 's/^/| /' conftest.$ac_ext >&5
2640
2641 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2642 See \`config.log' for more details." >&5
2643 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2644 See \`config.log' for more details." >&2;}
2645    { (exit 1); exit 1; }; }
2646 fi
2647
2648 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2649 fi
2650 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2651 echo "${ECHO_T}$ac_cv_objext" >&6; }
2652 OBJEXT=$ac_cv_objext
2653 ac_objext=$OBJEXT
2654 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2655 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2656 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2657   echo $ECHO_N "(cached) $ECHO_C" >&6
2658 else
2659   cat >conftest.$ac_ext <<_ACEOF
2660 /* confdefs.h.  */
2661 _ACEOF
2662 cat confdefs.h >>conftest.$ac_ext
2663 cat >>conftest.$ac_ext <<_ACEOF
2664 /* end confdefs.h.  */
2665
2666 int
2667 main ()
2668 {
2669 #ifndef __GNUC__
2670        choke me
2671 #endif
2672
2673   ;
2674   return 0;
2675 }
2676 _ACEOF
2677 rm -f conftest.$ac_objext
2678 if { (ac_try="$ac_compile"
2679 case "(($ac_try" in
2680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2681   *) ac_try_echo=$ac_try;;
2682 esac
2683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2684   (eval "$ac_compile") 2>conftest.er1
2685   ac_status=$?
2686   grep -v '^ *+' conftest.er1 >conftest.err
2687   rm -f conftest.er1
2688   cat conftest.err >&5
2689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2690   (exit $ac_status); } && {
2691          test -z "$ac_c_werror_flag" ||
2692          test ! -s conftest.err
2693        } && test -s conftest.$ac_objext; then
2694   ac_compiler_gnu=yes
2695 else
2696   echo "$as_me: failed program was:" >&5
2697 sed 's/^/| /' conftest.$ac_ext >&5
2698
2699         ac_compiler_gnu=no
2700 fi
2701
2702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2703 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2704
2705 fi
2706 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2707 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2708 GCC=`test $ac_compiler_gnu = yes && echo yes`
2709 ac_test_CFLAGS=${CFLAGS+set}
2710 ac_save_CFLAGS=$CFLAGS
2711 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2712 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2713 if test "${ac_cv_prog_cc_g+set}" = set; then
2714   echo $ECHO_N "(cached) $ECHO_C" >&6
2715 else
2716   ac_save_c_werror_flag=$ac_c_werror_flag
2717    ac_c_werror_flag=yes
2718    ac_cv_prog_cc_g=no
2719    CFLAGS="-g"
2720    cat >conftest.$ac_ext <<_ACEOF
2721 /* confdefs.h.  */
2722 _ACEOF
2723 cat confdefs.h >>conftest.$ac_ext
2724 cat >>conftest.$ac_ext <<_ACEOF
2725 /* end confdefs.h.  */
2726
2727 int
2728 main ()
2729 {
2730
2731   ;
2732   return 0;
2733 }
2734 _ACEOF
2735 rm -f conftest.$ac_objext
2736 if { (ac_try="$ac_compile"
2737 case "(($ac_try" in
2738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2739   *) ac_try_echo=$ac_try;;
2740 esac
2741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2742   (eval "$ac_compile") 2>conftest.er1
2743   ac_status=$?
2744   grep -v '^ *+' conftest.er1 >conftest.err
2745   rm -f conftest.er1
2746   cat conftest.err >&5
2747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748   (exit $ac_status); } && {
2749          test -z "$ac_c_werror_flag" ||
2750          test ! -s conftest.err
2751        } && test -s conftest.$ac_objext; then
2752   ac_cv_prog_cc_g=yes
2753 else
2754   echo "$as_me: failed program was:" >&5
2755 sed 's/^/| /' conftest.$ac_ext >&5
2756
2757         CFLAGS=""
2758       cat >conftest.$ac_ext <<_ACEOF
2759 /* confdefs.h.  */
2760 _ACEOF
2761 cat confdefs.h >>conftest.$ac_ext
2762 cat >>conftest.$ac_ext <<_ACEOF
2763 /* end confdefs.h.  */
2764
2765 int
2766 main ()
2767 {
2768
2769   ;
2770   return 0;
2771 }
2772 _ACEOF
2773 rm -f conftest.$ac_objext
2774 if { (ac_try="$ac_compile"
2775 case "(($ac_try" in
2776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2777   *) ac_try_echo=$ac_try;;
2778 esac
2779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2780   (eval "$ac_compile") 2>conftest.er1
2781   ac_status=$?
2782   grep -v '^ *+' conftest.er1 >conftest.err
2783   rm -f conftest.er1
2784   cat conftest.err >&5
2785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786   (exit $ac_status); } && {
2787          test -z "$ac_c_werror_flag" ||
2788          test ! -s conftest.err
2789        } && test -s conftest.$ac_objext; then
2790   :
2791 else
2792   echo "$as_me: failed program was:" >&5
2793 sed 's/^/| /' conftest.$ac_ext >&5
2794
2795         ac_c_werror_flag=$ac_save_c_werror_flag
2796          CFLAGS="-g"
2797          cat >conftest.$ac_ext <<_ACEOF
2798 /* confdefs.h.  */
2799 _ACEOF
2800 cat confdefs.h >>conftest.$ac_ext
2801 cat >>conftest.$ac_ext <<_ACEOF
2802 /* end confdefs.h.  */
2803
2804 int
2805 main ()
2806 {
2807
2808   ;
2809   return 0;
2810 }
2811 _ACEOF
2812 rm -f conftest.$ac_objext
2813 if { (ac_try="$ac_compile"
2814 case "(($ac_try" in
2815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2816   *) ac_try_echo=$ac_try;;
2817 esac
2818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2819   (eval "$ac_compile") 2>conftest.er1
2820   ac_status=$?
2821   grep -v '^ *+' conftest.er1 >conftest.err
2822   rm -f conftest.er1
2823   cat conftest.err >&5
2824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2825   (exit $ac_status); } && {
2826          test -z "$ac_c_werror_flag" ||
2827          test ! -s conftest.err
2828        } && test -s conftest.$ac_objext; then
2829   ac_cv_prog_cc_g=yes
2830 else
2831   echo "$as_me: failed program was:" >&5
2832 sed 's/^/| /' conftest.$ac_ext >&5
2833
2834
2835 fi
2836
2837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2838 fi
2839
2840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2841 fi
2842
2843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2844    ac_c_werror_flag=$ac_save_c_werror_flag
2845 fi
2846 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2847 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2848 if test "$ac_test_CFLAGS" = set; then
2849   CFLAGS=$ac_save_CFLAGS
2850 elif test $ac_cv_prog_cc_g = yes; then
2851   if test "$GCC" = yes; then
2852     CFLAGS="-g -O2"
2853   else
2854     CFLAGS="-g"
2855   fi
2856 else
2857   if test "$GCC" = yes; then
2858     CFLAGS="-O2"
2859   else
2860     CFLAGS=
2861   fi
2862 fi
2863 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2864 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2865 if test "${ac_cv_prog_cc_c89+set}" = set; then
2866   echo $ECHO_N "(cached) $ECHO_C" >&6
2867 else
2868   ac_cv_prog_cc_c89=no
2869 ac_save_CC=$CC
2870 cat >conftest.$ac_ext <<_ACEOF
2871 /* confdefs.h.  */
2872 _ACEOF
2873 cat confdefs.h >>conftest.$ac_ext
2874 cat >>conftest.$ac_ext <<_ACEOF
2875 /* end confdefs.h.  */
2876 #include <stdarg.h>
2877 #include <stdio.h>
2878 #include <sys/types.h>
2879 #include <sys/stat.h>
2880 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2881 struct buf { int x; };
2882 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2883 static char *e (p, i)
2884      char **p;
2885      int i;
2886 {
2887   return p[i];
2888 }
2889 static char *f (char * (*g) (char **, int), char **p, ...)
2890 {
2891   char *s;
2892   va_list v;
2893   va_start (v,p);
2894   s = g (p, va_arg (v,int));
2895   va_end (v);
2896   return s;
2897 }
2898
2899 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2900    function prototypes and stuff, but not '\xHH' hex character constants.
2901    These don't provoke an error unfortunately, instead are silently treated
2902    as 'x'.  The following induces an error, until -std is added to get
2903    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2904    array size at least.  It's necessary to write '\x00'==0 to get something
2905    that's true only with -std.  */
2906 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2907
2908 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2909    inside strings and character constants.  */
2910 #define FOO(x) 'x'
2911 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2912
2913 int test (int i, double x);
2914 struct s1 {int (*f) (int a);};
2915 struct s2 {int (*f) (double a);};
2916 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2917 int argc;
2918 char **argv;
2919 int
2920 main ()
2921 {
2922 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2923   ;
2924   return 0;
2925 }
2926 _ACEOF
2927 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2928         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2929 do
2930   CC="$ac_save_CC $ac_arg"
2931   rm -f conftest.$ac_objext
2932 if { (ac_try="$ac_compile"
2933 case "(($ac_try" in
2934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2935   *) ac_try_echo=$ac_try;;
2936 esac
2937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2938   (eval "$ac_compile") 2>conftest.er1
2939   ac_status=$?
2940   grep -v '^ *+' conftest.er1 >conftest.err
2941   rm -f conftest.er1
2942   cat conftest.err >&5
2943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944   (exit $ac_status); } && {
2945          test -z "$ac_c_werror_flag" ||
2946          test ! -s conftest.err
2947        } && test -s conftest.$ac_objext; then
2948   ac_cv_prog_cc_c89=$ac_arg
2949 else
2950   echo "$as_me: failed program was:" >&5
2951 sed 's/^/| /' conftest.$ac_ext >&5
2952
2953
2954 fi
2955
2956 rm -f core conftest.err conftest.$ac_objext
2957   test "x$ac_cv_prog_cc_c89" != "xno" && break
2958 done
2959 rm -f conftest.$ac_ext
2960 CC=$ac_save_CC
2961
2962 fi
2963 # AC_CACHE_VAL
2964 case "x$ac_cv_prog_cc_c89" in
2965   x)
2966     { echo "$as_me:$LINENO: result: none needed" >&5
2967 echo "${ECHO_T}none needed" >&6; } ;;
2968   xno)
2969     { echo "$as_me:$LINENO: result: unsupported" >&5
2970 echo "${ECHO_T}unsupported" >&6; } ;;
2971   *)
2972     CC="$CC $ac_cv_prog_cc_c89"
2973     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2974 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2975 esac
2976
2977
2978 ac_ext=c
2979 ac_cpp='$CPP $CPPFLAGS'
2980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2983
2984 # Check whether --enable-shared was given.
2985 if test "${enable_shared+set}" = set; then
2986   enableval=$enable_shared; p=${PACKAGE-default}
2987     case $enableval in
2988     yes) enable_shared=yes ;;
2989     no) enable_shared=no ;;
2990     *)
2991       enable_shared=no
2992       # Look at the argument we got.  We use all the common list separators.
2993       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2994       for pkg in $enableval; do
2995         IFS="$lt_save_ifs"
2996         if test "X$pkg" = "X$p"; then
2997           enable_shared=yes
2998         fi
2999       done
3000       IFS="$lt_save_ifs"
3001       ;;
3002     esac
3003 else
3004   enable_shared=yes
3005 fi
3006
3007
3008 # Check whether --enable-static was given.
3009 if test "${enable_static+set}" = set; then
3010   enableval=$enable_static; p=${PACKAGE-default}
3011     case $enableval in
3012     yes) enable_static=yes ;;
3013     no) enable_static=no ;;
3014     *)
3015      enable_static=no
3016       # Look at the argument we got.  We use all the common list separators.
3017       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3018       for pkg in $enableval; do
3019         IFS="$lt_save_ifs"
3020         if test "X$pkg" = "X$p"; then
3021           enable_static=yes
3022         fi
3023       done
3024       IFS="$lt_save_ifs"
3025       ;;
3026     esac
3027 else
3028   enable_static=yes
3029 fi
3030
3031
3032 # Check whether --enable-fast-install was given.
3033 if test "${enable_fast_install+set}" = set; then
3034   enableval=$enable_fast_install; p=${PACKAGE-default}
3035     case $enableval in
3036     yes) enable_fast_install=yes ;;
3037     no) enable_fast_install=no ;;
3038     *)
3039       enable_fast_install=no
3040       # Look at the argument we got.  We use all the common list separators.
3041       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3042       for pkg in $enableval; do
3043         IFS="$lt_save_ifs"
3044         if test "X$pkg" = "X$p"; then
3045           enable_fast_install=yes
3046         fi
3047       done
3048       IFS="$lt_save_ifs"
3049       ;;
3050     esac
3051 else
3052   enable_fast_install=yes
3053 fi
3054
3055
3056 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3057 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3058 if test "${lt_cv_path_SED+set}" = set; then
3059   echo $ECHO_N "(cached) $ECHO_C" >&6
3060 else
3061   # Loop through the user's path and test for sed and gsed.
3062 # Then use that list of sed's as ones to test for truncation.
3063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3064 for as_dir in $PATH
3065 do
3066   IFS=$as_save_IFS
3067   test -z "$as_dir" && as_dir=.
3068   for lt_ac_prog in sed gsed; do
3069     for ac_exec_ext in '' $ac_executable_extensions; do
3070       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3071         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3072       fi
3073     done
3074   done
3075 done
3076 lt_ac_max=0
3077 lt_ac_count=0
3078 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3079 # along with /bin/sed that truncates output.
3080 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3081   test ! -f $lt_ac_sed && break
3082   cat /dev/null > conftest.in
3083   lt_ac_count=0
3084   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3085   # Check for GNU sed and select it if it is found.
3086   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3087     lt_cv_path_SED=$lt_ac_sed
3088     break
3089   fi
3090   while true; do
3091     cat conftest.in conftest.in >conftest.tmp
3092     mv conftest.tmp conftest.in
3093     cp conftest.in conftest.nl
3094     echo >>conftest.nl
3095     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3096     cmp -s conftest.out conftest.nl || break
3097     # 10000 chars as input seems more than enough
3098     test $lt_ac_count -gt 10 && break
3099     lt_ac_count=`expr $lt_ac_count + 1`
3100     if test $lt_ac_count -gt $lt_ac_max; then
3101       lt_ac_max=$lt_ac_count
3102       lt_cv_path_SED=$lt_ac_sed
3103     fi
3104   done
3105 done
3106 SED=$lt_cv_path_SED
3107
3108 fi
3109
3110 { echo "$as_me:$LINENO: result: $SED" >&5
3111 echo "${ECHO_T}$SED" >&6; }
3112
3113 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3114 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3115 if test "${ac_cv_path_GREP+set}" = set; then
3116   echo $ECHO_N "(cached) $ECHO_C" >&6
3117 else
3118   # Extract the first word of "grep ggrep" to use in msg output
3119 if test -z "$GREP"; then
3120 set dummy grep ggrep; ac_prog_name=$2
3121 if test "${ac_cv_path_GREP+set}" = set; then
3122   echo $ECHO_N "(cached) $ECHO_C" >&6
3123 else
3124   ac_path_GREP_found=false
3125 # Loop through the user's path and test for each of PROGNAME-LIST
3126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3127 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3128 do
3129   IFS=$as_save_IFS
3130   test -z "$as_dir" && as_dir=.
3131   for ac_prog in grep ggrep; do
3132   for ac_exec_ext in '' $ac_executable_extensions; do
3133     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3134     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3135     # Check for GNU ac_path_GREP and select it if it is found.
3136   # Check for GNU $ac_path_GREP
3137 case `"$ac_path_GREP" --version 2>&1` in
3138 *GNU*)
3139   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3140 *)
3141   ac_count=0
3142   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3143   while :
3144   do
3145     cat "conftest.in" "conftest.in" >"conftest.tmp"
3146     mv "conftest.tmp" "conftest.in"
3147     cp "conftest.in" "conftest.nl"
3148     echo 'GREP' >> "conftest.nl"
3149     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3150     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3151     ac_count=`expr $ac_count + 1`
3152     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3153       # Best one so far, save it but keep looking for a better one
3154       ac_cv_path_GREP="$ac_path_GREP"
3155       ac_path_GREP_max=$ac_count
3156     fi
3157     # 10*(2^10) chars as input seems more than enough
3158     test $ac_count -gt 10 && break
3159   done
3160   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3161 esac
3162
3163
3164     $ac_path_GREP_found && break 3
3165   done
3166 done
3167
3168 done
3169 IFS=$as_save_IFS
3170
3171
3172 fi
3173
3174 GREP="$ac_cv_path_GREP"
3175 if test -z "$GREP"; then
3176   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3177 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3178    { (exit 1); exit 1; }; }
3179 fi
3180
3181 else
3182   ac_cv_path_GREP=$GREP
3183 fi
3184
3185
3186 fi
3187 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3188 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3189  GREP="$ac_cv_path_GREP"
3190
3191
3192 { echo "$as_me:$LINENO: checking for egrep" >&5
3193 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3194 if test "${ac_cv_path_EGREP+set}" = set; then
3195   echo $ECHO_N "(cached) $ECHO_C" >&6
3196 else
3197   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3198    then ac_cv_path_EGREP="$GREP -E"
3199    else
3200      # Extract the first word of "egrep" to use in msg output
3201 if test -z "$EGREP"; then
3202 set dummy egrep; ac_prog_name=$2
3203 if test "${ac_cv_path_EGREP+set}" = set; then
3204   echo $ECHO_N "(cached) $ECHO_C" >&6
3205 else
3206   ac_path_EGREP_found=false
3207 # Loop through the user's path and test for each of PROGNAME-LIST
3208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3209 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3210 do
3211   IFS=$as_save_IFS
3212   test -z "$as_dir" && as_dir=.
3213   for ac_prog in egrep; do
3214   for ac_exec_ext in '' $ac_executable_extensions; do
3215     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3216     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3217     # Check for GNU ac_path_EGREP and select it if it is found.
3218   # Check for GNU $ac_path_EGREP
3219 case `"$ac_path_EGREP" --version 2>&1` in
3220 *GNU*)
3221   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3222 *)
3223   ac_count=0
3224   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3225   while :
3226   do
3227     cat "conftest.in" "conftest.in" >"conftest.tmp"
3228     mv "conftest.tmp" "conftest.in"
3229     cp "conftest.in" "conftest.nl"
3230     echo 'EGREP' >> "conftest.nl"
3231     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3232     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3233     ac_count=`expr $ac_count + 1`
3234     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3235       # Best one so far, save it but keep looking for a better one
3236       ac_cv_path_EGREP="$ac_path_EGREP"
3237       ac_path_EGREP_max=$ac_count
3238     fi
3239     # 10*(2^10) chars as input seems more than enough
3240     test $ac_count -gt 10 && break
3241   done
3242   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3243 esac
3244
3245
3246     $ac_path_EGREP_found && break 3
3247   done
3248 done
3249
3250 done
3251 IFS=$as_save_IFS
3252
3253
3254 fi
3255
3256 EGREP="$ac_cv_path_EGREP"
3257 if test -z "$EGREP"; then
3258   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3259 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3260    { (exit 1); exit 1; }; }
3261 fi
3262
3263 else
3264   ac_cv_path_EGREP=$EGREP
3265 fi
3266
3267
3268    fi
3269 fi
3270 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3271 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3272  EGREP="$ac_cv_path_EGREP"
3273
3274
3275
3276 # Check whether --with-gnu-ld was given.
3277 if test "${with_gnu_ld+set}" = set; then
3278   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3279 else
3280   with_gnu_ld=no
3281 fi
3282
3283 ac_prog=ld
3284 if test "$GCC" = yes; then
3285   # Check if gcc -print-prog-name=ld gives a path.
3286   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3287 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3288   case $host in
3289   *-*-mingw*)
3290     # gcc leaves a trailing carriage return which upsets mingw
3291     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3292   *)
3293     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3294   esac
3295   case $ac_prog in
3296     # Accept absolute paths.
3297     [\\/]* | ?:[\\/]*)
3298       re_direlt='/[^/][^/]*/\.\./'
3299       # Canonicalize the pathname of ld
3300       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3301       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3302         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3303       done
3304       test -z "$LD" && LD="$ac_prog"
3305       ;;
3306   "")
3307     # If it fails, then pretend we aren't using GCC.
3308     ac_prog=ld
3309     ;;
3310   *)
3311     # If it is relative, then search for the first ld in PATH.
3312     with_gnu_ld=unknown
3313     ;;
3314   esac
3315 elif test "$with_gnu_ld" = yes; then
3316   { echo "$as_me:$LINENO: checking for GNU ld" >&5
3317 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3318 else
3319   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3320 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3321 fi
3322 if test "${lt_cv_path_LD+set}" = set; then
3323   echo $ECHO_N "(cached) $ECHO_C" >&6
3324 else
3325   if test -z "$LD"; then
3326   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3327   for ac_dir in $PATH; do
3328     IFS="$lt_save_ifs"
3329     test -z "$ac_dir" && ac_dir=.
3330     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3331       lt_cv_path_LD="$ac_dir/$ac_prog"
3332       # Check to see if the program is GNU ld.  I'd rather use --version,
3333       # but apparently some GNU ld's only accept -v.
3334       # Break only if it was the GNU/non-GNU ld that we prefer.
3335       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3336       *GNU* | *'with BFD'*)
3337         test "$with_gnu_ld" != no && break
3338         ;;
3339       *)
3340         test "$with_gnu_ld" != yes && break
3341         ;;
3342       esac
3343     fi
3344   done
3345   IFS="$lt_save_ifs"
3346 else
3347   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3348 fi
3349 fi
3350
3351 LD="$lt_cv_path_LD"
3352 if test -n "$LD"; then
3353   { echo "$as_me:$LINENO: result: $LD" >&5
3354 echo "${ECHO_T}$LD" >&6; }
3355 else
3356   { echo "$as_me:$LINENO: result: no" >&5
3357 echo "${ECHO_T}no" >&6; }
3358 fi
3359 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3360 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3361    { (exit 1); exit 1; }; }
3362 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3363 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
3364 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3365   echo $ECHO_N "(cached) $ECHO_C" >&6
3366 else
3367   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3368 case `$LD -v 2>&1 </dev/null` in
3369 *GNU* | *'with BFD'*)
3370   lt_cv_prog_gnu_ld=yes
3371   ;;
3372 *)
3373   lt_cv_prog_gnu_ld=no
3374   ;;
3375 esac
3376 fi
3377 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3378 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
3379 with_gnu_ld=$lt_cv_prog_gnu_ld
3380
3381
3382 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3383 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
3384 if test "${lt_cv_ld_reload_flag+set}" = set; then
3385   echo $ECHO_N "(cached) $ECHO_C" >&6
3386 else
3387   lt_cv_ld_reload_flag='-r'
3388 fi
3389 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3390 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
3391 reload_flag=$lt_cv_ld_reload_flag
3392 case $reload_flag in
3393 "" | " "*) ;;
3394 *) reload_flag=" $reload_flag" ;;
3395 esac
3396 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3397
3398 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3399 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
3400 if test "${lt_cv_path_NM+set}" = set; then
3401   echo $ECHO_N "(cached) $ECHO_C" >&6
3402 else
3403   if test -n "$NM"; then
3404   # Let the user override the test.
3405   lt_cv_path_NM="$NM"
3406 else
3407   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3408   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3409     IFS="$lt_save_ifs"
3410     test -z "$ac_dir" && ac_dir=.
3411     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3412     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3413       # Check to see if the nm accepts a BSD-compat flag.
3414       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3415       #   nm: unknown option "B" ignored
3416       # Tru64's nm complains that /dev/null is an invalid object file
3417       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3418       */dev/null* | *'Invalid file or object type'*)
3419         lt_cv_path_NM="$tmp_nm -B"
3420         break
3421         ;;
3422       *)
3423         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3424         */dev/null*)
3425           lt_cv_path_NM="$tmp_nm -p"
3426           break
3427           ;;
3428         *)
3429           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3430           continue # so that we can try to find one that supports BSD flags
3431           ;;
3432         esac
3433       esac
3434     fi
3435   done
3436   IFS="$lt_save_ifs"
3437   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3438 fi
3439 fi
3440 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3441 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
3442 NM="$lt_cv_path_NM"
3443
3444 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
3445 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3446 LN_S=$as_ln_s
3447 if test "$LN_S" = "ln -s"; then
3448   { echo "$as_me:$LINENO: result: yes" >&5
3449 echo "${ECHO_T}yes" >&6; }
3450 else
3451   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3452 echo "${ECHO_T}no, using $LN_S" >&6; }
3453 fi
3454
3455 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3456 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
3457 if test "${lt_cv_deplibs_check_method+set}" = set; then
3458   echo $ECHO_N "(cached) $ECHO_C" >&6
3459 else
3460   lt_cv_file_magic_cmd='$MAGIC_CMD'
3461 lt_cv_file_magic_test_file=
3462 lt_cv_deplibs_check_method='unknown'
3463 # Need to set the preceding variable on all platforms that support
3464 # interlibrary dependencies.
3465 # 'none' -- dependencies not supported.
3466 # `unknown' -- same as none, but documents that we really don't know.
3467 # 'pass_all' -- all dependencies passed with no checks.
3468 # 'test_compile' -- check by making test program.
3469 # 'file_magic [[regex]]' -- check by looking for files in library path
3470 # which responds to the $file_magic_cmd with a given extended regex.
3471 # If you have `file' or equivalent on your system and you're not sure
3472 # whether `pass_all' will *always* work, you probably want this one.
3473
3474 case $host_os in
3475 aix4* | aix5*)
3476   lt_cv_deplibs_check_method=pass_all
3477   ;;
3478
3479 beos*)
3480   lt_cv_deplibs_check_method=pass_all
3481   ;;
3482
3483 bsdi4*)
3484   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3485   lt_cv_file_magic_cmd='/usr/bin/file -L'
3486   lt_cv_file_magic_test_file=/shlib/libc.so
3487   ;;
3488
3489 cygwin* | mingw* | pw32*)
3490   # win32_libid is a shell function defined in ltmain.sh
3491   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3492   lt_cv_file_magic_cmd='win32_libid'
3493   ;;
3494
3495 darwin* | rhapsody*)
3496   # this will be overwritten by pass_all, but leave it in just in case
3497   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3498   lt_cv_file_magic_cmd='/usr/bin/file -L'
3499   case "$host_os" in
3500   rhapsody* | darwin1.[012])
3501     lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
3502     ;;
3503   *) # Darwin 1.3 on
3504     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3505     ;;
3506   esac
3507   lt_cv_deplibs_check_method=pass_all
3508   ;;
3509
3510 freebsd* | kfreebsd*-gnu)
3511   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3512     case $host_cpu in
3513     i*86 )
3514       # Not sure whether the presence of OpenBSD here was a mistake.
3515       # Let's accept both of them until this is cleared up.
3516       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3517       lt_cv_file_magic_cmd=/usr/bin/file
3518       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3519       ;;
3520     esac
3521   else
3522     lt_cv_deplibs_check_method=pass_all
3523   fi
3524   ;;
3525
3526 gnu*)
3527   lt_cv_deplibs_check_method=pass_all
3528   ;;
3529
3530 hpux10.20* | hpux11*)
3531   lt_cv_file_magic_cmd=/usr/bin/file
3532   case "$host_cpu" in
3533   ia64*)
3534     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3535     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3536     ;;
3537   hppa*64*)
3538     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]'
3539     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3540     ;;
3541   *)
3542     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3543     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3544     ;;
3545   esac
3546   ;;
3547
3548 irix5* | irix6* | nonstopux*)
3549   case $host_os in
3550   irix5* | nonstopux*)
3551     # this will be overridden with pass_all, but let us keep it just in case
3552     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3553     ;;
3554   *)
3555     case $LD in
3556     *-32|*"-32 ") libmagic=32-bit;;
3557     *-n32|*"-n32 ") libmagic=N32;;
3558     *-64|*"-64 ") libmagic=64-bit;;
3559     *) libmagic=never-match;;
3560     esac
3561     # this will be overridden with pass_all, but let us keep it just in case
3562     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3563     ;;
3564   esac
3565   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3566   lt_cv_deplibs_check_method=pass_all
3567   ;;
3568
3569 # This must be Linux ELF.
3570 linux*)
3571   # linux always uses pass_all now, this code is the old way (tm)
3572   case $host_cpu in
3573   alpha* | hppa* | i*86 | ia64* | m68* | mips* | powerpc* | sparc* | s390* | sh*)
3574     lt_cv_deplibs_check_method=pass_all ;;
3575   *)
3576     # glibc up to 2.1.1 does not perform some relocations on ARM
3577     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3578   esac
3579   lt_cv_deplibs_check_method=pass_all
3580   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3581   ;;
3582
3583 netbsd*)
3584   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3585     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3586   else
3587     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3588   fi
3589   ;;
3590
3591 newos6*)
3592   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3593   lt_cv_file_magic_cmd=/usr/bin/file
3594   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3595   ;;
3596
3597 nto-qnx*)
3598   lt_cv_deplibs_check_method=unknown
3599   ;;
3600
3601 openbsd*)
3602   lt_cv_file_magic_cmd=/usr/bin/file
3603   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3604   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3605     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3606   else
3607     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3608   fi
3609   ;;
3610
3611 osf3* | osf4* | osf5*)
3612   # this will be overridden with pass_all, but let us keep it just in case
3613   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3614   lt_cv_file_magic_test_file=/shlib/libc.so
3615   lt_cv_deplibs_check_method=pass_all
3616   ;;
3617
3618 sco3.2v5*)
3619   lt_cv_deplibs_check_method=pass_all
3620   ;;
3621
3622 solaris*)
3623   lt_cv_deplibs_check_method=pass_all
3624   lt_cv_file_magic_test_file=/lib/libc.so
3625   ;;
3626
3627 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3628   case $host_vendor in
3629   motorola)
3630     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]'
3631     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3632     ;;
3633   ncr)
3634     lt_cv_deplibs_check_method=pass_all
3635     ;;
3636   sequent)
3637     lt_cv_file_magic_cmd='/bin/file'
3638     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3639     ;;
3640   sni)
3641     lt_cv_file_magic_cmd='/bin/file'
3642     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3643     lt_cv_file_magic_test_file=/lib/libc.so
3644     ;;
3645   siemens)
3646     lt_cv_deplibs_check_method=pass_all
3647     ;;
3648   esac
3649   ;;
3650
3651 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3652   lt_cv_deplibs_check_method=pass_all
3653   ;;
3654 esac
3655
3656 fi
3657 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3658 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
3659 file_magic_cmd=$lt_cv_file_magic_cmd
3660 deplibs_check_method=$lt_cv_deplibs_check_method
3661 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3662
3663
3664
3665
3666 # If no C compiler was specified, use CC.
3667 LTCC=${LTCC-"$CC"}
3668
3669 # Allow CC to be a program name with arguments.
3670 compiler=$CC
3671
3672
3673 # Check whether --enable-libtool-lock was given.
3674 if test "${enable_libtool_lock+set}" = set; then
3675   enableval=$enable_libtool_lock;
3676 fi
3677
3678 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3679
3680 # Some flags need to be propagated to the compiler or linker for good
3681 # libtool support.
3682 case $host in
3683 ia64-*-hpux*)
3684   # Find out which ABI we are using.
3685   echo 'int i;' > conftest.$ac_ext
3686   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3687   (eval $ac_compile) 2>&5
3688   ac_status=$?
3689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3690   (exit $ac_status); }; then
3691     case `/usr/bin/file conftest.$ac_objext` in
3692     *ELF-32*)
3693       HPUX_IA64_MODE="32"
3694       ;;
3695     *ELF-64*)
3696       HPUX_IA64_MODE="64"
3697       ;;
3698     esac
3699   fi
3700   rm -rf conftest*
3701   ;;
3702 *-*-irix6*)
3703   # Find out which ABI we are using.
3704   echo '#line 3704 "configure"' > conftest.$ac_ext
3705   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3706   (eval $ac_compile) 2>&5
3707   ac_status=$?
3708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709   (exit $ac_status); }; then
3710    if test "$lt_cv_prog_gnu_ld" = yes; then
3711     case `/usr/bin/file conftest.$ac_objext` in
3712     *32-bit*)
3713       LD="${LD-ld} -melf32bsmip"
3714       ;;
3715     *N32*)
3716       LD="${LD-ld} -melf32bmipn32"
3717       ;;
3718     *64-bit*)
3719       LD="${LD-ld} -melf64bmip"
3720       ;;
3721     esac
3722    else
3723     case `/usr/bin/file conftest.$ac_objext` in
3724     *32-bit*)
3725       LD="${LD-ld} -32"
3726       ;;
3727     *N32*)
3728       LD="${LD-ld} -n32"
3729       ;;
3730     *64-bit*)
3731       LD="${LD-ld} -64"
3732       ;;
3733     esac
3734    fi
3735   fi
3736   rm -rf conftest*
3737   ;;
3738
3739 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3740   # Find out which ABI we are using.
3741   echo 'int i;' > conftest.$ac_ext
3742   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3743   (eval $ac_compile) 2>&5
3744   ac_status=$?
3745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3746   (exit $ac_status); }; then
3747     case "`/usr/bin/file conftest.o`" in
3748     *32-bit*)
3749       case $host in
3750         x86_64-*linux*)
3751           LD="${LD-ld} -m elf_i386"
3752           ;;
3753         ppc64-*linux*|powerpc64-*linux*)
3754           LD="${LD-ld} -m elf32ppclinux"
3755           ;;
3756         s390x-*linux*)
3757           LD="${LD-ld} -m elf_s390"
3758           ;;
3759         sparc64-*linux*)
3760           LD="${LD-ld} -m elf32_sparc"
3761           ;;
3762       esac
3763       ;;
3764     *64-bit*)
3765       case $host in
3766         x86_64-*linux*)
3767           LD="${LD-ld} -m elf_x86_64"
3768           ;;
3769         ppc*-*linux*|powerpc*-*linux*)
3770           LD="${LD-ld} -m elf64ppc"
3771           ;;
3772         s390*-*linux*)
3773           LD="${LD-ld} -m elf64_s390"
3774           ;;
3775         sparc*-*linux*)
3776           LD="${LD-ld} -m elf64_sparc"
3777           ;;
3778       esac
3779       ;;
3780     esac
3781   fi
3782   rm -rf conftest*
3783   ;;
3784
3785 *-*-sco3.2v5*)
3786   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3787   SAVE_CFLAGS="$CFLAGS"
3788   CFLAGS="$CFLAGS -belf"
3789   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3790 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
3791 if test "${lt_cv_cc_needs_belf+set}" = set; then
3792   echo $ECHO_N "(cached) $ECHO_C" >&6
3793 else
3794   ac_ext=c
3795 ac_cpp='$CPP $CPPFLAGS'
3796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3799
3800      cat >conftest.$ac_ext <<_ACEOF
3801 /* confdefs.h.  */
3802 _ACEOF
3803 cat confdefs.h >>conftest.$ac_ext
3804 cat >>conftest.$ac_ext <<_ACEOF
3805 /* end confdefs.h.  */
3806
3807 int
3808 main ()
3809 {
3810
3811   ;
3812   return 0;
3813 }
3814 _ACEOF
3815 rm -f conftest.$ac_objext conftest$ac_exeext
3816 if { (ac_try="$ac_link"
3817 case "(($ac_try" in
3818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3819   *) ac_try_echo=$ac_try;;
3820 esac
3821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3822   (eval "$ac_link") 2>conftest.er1
3823   ac_status=$?
3824   grep -v '^ *+' conftest.er1 >conftest.err
3825   rm -f conftest.er1
3826   cat conftest.err >&5
3827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3828   (exit $ac_status); } && {
3829          test -z "$ac_c_werror_flag" ||
3830          test ! -s conftest.err
3831        } && test -s conftest$ac_exeext &&
3832        $as_test_x conftest$ac_exeext; then
3833   lt_cv_cc_needs_belf=yes
3834 else
3835   echo "$as_me: failed program was:" >&5
3836 sed 's/^/| /' conftest.$ac_ext >&5
3837
3838         lt_cv_cc_needs_belf=no
3839 fi
3840
3841 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3842       conftest$ac_exeext conftest.$ac_ext
3843      ac_ext=c
3844 ac_cpp='$CPP $CPPFLAGS'
3845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3848
3849 fi
3850 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3851 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
3852   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3853     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3854     CFLAGS="$SAVE_CFLAGS"
3855   fi
3856   ;;
3857
3858 esac
3859
3860 need_locks="$enable_libtool_lock"
3861
3862
3863 ac_ext=c
3864 ac_cpp='$CPP $CPPFLAGS'
3865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3868 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3869 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3870 # On Suns, sometimes $CPP names a directory.
3871 if test -n "$CPP" && test -d "$CPP"; then
3872   CPP=
3873 fi
3874 if test -z "$CPP"; then
3875   if test "${ac_cv_prog_CPP+set}" = set; then
3876   echo $ECHO_N "(cached) $ECHO_C" >&6
3877 else
3878       # Double quotes because CPP needs to be expanded
3879     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3880     do
3881       ac_preproc_ok=false
3882 for ac_c_preproc_warn_flag in '' yes
3883 do
3884   # Use a header file that comes with gcc, so configuring glibc
3885   # with a fresh cross-compiler works.
3886   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3887   # <limits.h> exists even on freestanding compilers.
3888   # On the NeXT, cc -E runs the code through the compiler's parser,
3889   # not just through cpp. "Syntax error" is here to catch this case.
3890   cat >conftest.$ac_ext <<_ACEOF
3891 /* confdefs.h.  */
3892 _ACEOF
3893 cat confdefs.h >>conftest.$ac_ext
3894 cat >>conftest.$ac_ext <<_ACEOF
3895 /* end confdefs.h.  */
3896 #ifdef __STDC__
3897 # include <limits.h>
3898 #else
3899 # include <assert.h>
3900 #endif
3901                      Syntax error
3902 _ACEOF
3903 if { (ac_try="$ac_cpp conftest.$ac_ext"
3904 case "(($ac_try" in
3905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3906   *) ac_try_echo=$ac_try;;
3907 esac
3908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3909   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3910   ac_status=$?
3911   grep -v '^ *+' conftest.er1 >conftest.err
3912   rm -f conftest.er1
3913   cat conftest.err >&5
3914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3915   (exit $ac_status); } >/dev/null && {
3916          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3917          test ! -s conftest.err
3918        }; then
3919   :
3920 else
3921   echo "$as_me: failed program was:" >&5
3922 sed 's/^/| /' conftest.$ac_ext >&5
3923
3924   # Broken: fails on valid input.
3925 continue
3926 fi
3927
3928 rm -f conftest.err conftest.$ac_ext
3929
3930   # OK, works on sane cases.  Now check whether nonexistent headers
3931   # can be detected and how.
3932   cat >conftest.$ac_ext <<_ACEOF
3933 /* confdefs.h.  */
3934 _ACEOF
3935 cat confdefs.h >>conftest.$ac_ext
3936 cat >>conftest.$ac_ext <<_ACEOF
3937 /* end confdefs.h.  */
3938 #include <ac_nonexistent.h>
3939 _ACEOF
3940 if { (ac_try="$ac_cpp conftest.$ac_ext"
3941 case "(($ac_try" in
3942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3943   *) ac_try_echo=$ac_try;;
3944 esac
3945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3946   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3947   ac_status=$?
3948   grep -v '^ *+' conftest.er1 >conftest.err
3949   rm -f conftest.er1
3950   cat conftest.err >&5
3951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3952   (exit $ac_status); } >/dev/null && {
3953          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3954          test ! -s conftest.err
3955        }; then
3956   # Broken: success on invalid input.
3957 continue
3958 else
3959   echo "$as_me: failed program was:" >&5
3960 sed 's/^/| /' conftest.$ac_ext >&5
3961
3962   # Passes both tests.
3963 ac_preproc_ok=:
3964 break
3965 fi
3966
3967 rm -f conftest.err conftest.$ac_ext
3968
3969 done
3970 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3971 rm -f conftest.err conftest.$ac_ext
3972 if $ac_preproc_ok; then
3973   break
3974 fi
3975
3976     done
3977     ac_cv_prog_CPP=$CPP
3978
3979 fi
3980   CPP=$ac_cv_prog_CPP
3981 else
3982   ac_cv_prog_CPP=$CPP
3983 fi
3984 { echo "$as_me:$LINENO: result: $CPP" >&5
3985 echo "${ECHO_T}$CPP" >&6; }
3986 ac_preproc_ok=false
3987 for ac_c_preproc_warn_flag in '' yes
3988 do
3989   # Use a header file that comes with gcc, so configuring glibc
3990   # with a fresh cross-compiler works.
3991   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3992   # <limits.h> exists even on freestanding compilers.
3993   # On the NeXT, cc -E runs the code through the compiler's parser,
3994   # not just through cpp. "Syntax error" is here to catch this case.
3995   cat >conftest.$ac_ext <<_ACEOF
3996 /* confdefs.h.  */
3997 _ACEOF
3998 cat confdefs.h >>conftest.$ac_ext
3999 cat >>conftest.$ac_ext <<_ACEOF
4000 /* end confdefs.h.  */
4001 #ifdef __STDC__
4002 # include <limits.h>
4003 #else
4004 # include <assert.h>
4005 #endif
4006                      Syntax error
4007 _ACEOF
4008 if { (ac_try="$ac_cpp conftest.$ac_ext"
4009 case "(($ac_try" in
4010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4011   *) ac_try_echo=$ac_try;;
4012 esac
4013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4014   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4015   ac_status=$?
4016   grep -v '^ *+' conftest.er1 >conftest.err
4017   rm -f conftest.er1
4018   cat conftest.err >&5
4019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4020   (exit $ac_status); } >/dev/null && {
4021          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4022          test ! -s conftest.err
4023        }; then
4024   :
4025 else
4026   echo "$as_me: failed program was:" >&5
4027 sed 's/^/| /' conftest.$ac_ext >&5
4028
4029   # Broken: fails on valid input.
4030 continue
4031 fi
4032
4033 rm -f conftest.err conftest.$ac_ext
4034
4035   # OK, works on sane cases.  Now check whether nonexistent headers
4036   # can be detected and how.
4037   cat >conftest.$ac_ext <<_ACEOF
4038 /* confdefs.h.  */
4039 _ACEOF
4040 cat confdefs.h >>conftest.$ac_ext
4041 cat >>conftest.$ac_ext <<_ACEOF
4042 /* end confdefs.h.  */
4043 #include <ac_nonexistent.h>
4044 _ACEOF
4045 if { (ac_try="$ac_cpp conftest.$ac_ext"
4046 case "(($ac_try" in
4047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4048   *) ac_try_echo=$ac_try;;
4049 esac
4050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4051   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4052   ac_status=$?
4053   grep -v '^ *+' conftest.er1 >conftest.err
4054   rm -f conftest.er1
4055   cat conftest.err >&5
4056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4057   (exit $ac_status); } >/dev/null && {
4058          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4059          test ! -s conftest.err
4060        }; then
4061   # Broken: success on invalid input.
4062 continue
4063 else
4064   echo "$as_me: failed program was:" >&5
4065 sed 's/^/| /' conftest.$ac_ext >&5
4066
4067   # Passes both tests.
4068 ac_preproc_ok=:
4069 break
4070 fi
4071
4072 rm -f conftest.err conftest.$ac_ext
4073
4074 done
4075 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4076 rm -f conftest.err conftest.$ac_ext
4077 if $ac_preproc_ok; then
4078   :
4079 else
4080   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4081 See \`config.log' for more details." >&5
4082 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4083 See \`config.log' for more details." >&2;}
4084    { (exit 1); exit 1; }; }
4085 fi
4086
4087 ac_ext=c
4088 ac_cpp='$CPP $CPPFLAGS'
4089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4092
4093
4094 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4095 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4096 if test "${ac_cv_header_stdc+set}" = set; then
4097   echo $ECHO_N "(cached) $ECHO_C" >&6
4098 else
4099   cat >conftest.$ac_ext <<_ACEOF
4100 /* confdefs.h.  */
4101 _ACEOF
4102 cat confdefs.h >>conftest.$ac_ext
4103 cat >>conftest.$ac_ext <<_ACEOF
4104 /* end confdefs.h.  */
4105 #include <stdlib.h>
4106 #include <stdarg.h>
4107 #include <string.h>
4108 #include <float.h>
4109
4110 int
4111 main ()
4112 {
4113
4114   ;
4115   return 0;
4116 }
4117 _ACEOF
4118 rm -f conftest.$ac_objext
4119 if { (ac_try="$ac_compile"
4120 case "(($ac_try" in
4121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4122   *) ac_try_echo=$ac_try;;
4123 esac
4124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4125   (eval "$ac_compile") 2>conftest.er1
4126   ac_status=$?
4127   grep -v '^ *+' conftest.er1 >conftest.err
4128   rm -f conftest.er1
4129   cat conftest.err >&5
4130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4131   (exit $ac_status); } && {
4132          test -z "$ac_c_werror_flag" ||
4133          test ! -s conftest.err
4134        } && test -s conftest.$ac_objext; then
4135   ac_cv_header_stdc=yes
4136 else
4137   echo "$as_me: failed program was:" >&5
4138 sed 's/^/| /' conftest.$ac_ext >&5
4139
4140         ac_cv_header_stdc=no
4141 fi
4142
4143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4144
4145 if test $ac_cv_header_stdc = yes; then
4146   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4147   cat >conftest.$ac_ext <<_ACEOF
4148 /* confdefs.h.  */
4149 _ACEOF
4150 cat confdefs.h >>conftest.$ac_ext
4151 cat >>conftest.$ac_ext <<_ACEOF
4152 /* end confdefs.h.  */
4153 #include <string.h>
4154
4155 _ACEOF
4156 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4157   $EGREP "memchr" >/dev/null 2>&1; then
4158   :
4159 else
4160   ac_cv_header_stdc=no
4161 fi
4162 rm -f conftest*
4163
4164 fi
4165
4166 if test $ac_cv_header_stdc = yes; then
4167   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4168   cat >conftest.$ac_ext <<_ACEOF
4169 /* confdefs.h.  */
4170 _ACEOF
4171 cat confdefs.h >>conftest.$ac_ext
4172 cat >>conftest.$ac_ext <<_ACEOF
4173 /* end confdefs.h.  */
4174 #include <stdlib.h>
4175
4176 _ACEOF
4177 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4178   $EGREP "free" >/dev/null 2>&1; then
4179   :
4180 else
4181   ac_cv_header_stdc=no
4182 fi
4183 rm -f conftest*
4184
4185 fi
4186
4187 if test $ac_cv_header_stdc = yes; then
4188   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4189   if test "$cross_compiling" = yes; then
4190   :
4191 else
4192   cat >conftest.$ac_ext <<_ACEOF
4193 /* confdefs.h.  */
4194 _ACEOF
4195 cat confdefs.h >>conftest.$ac_ext
4196 cat >>conftest.$ac_ext <<_ACEOF
4197 /* end confdefs.h.  */
4198 #include <ctype.h>
4199 #include <stdlib.h>
4200 #if ((' ' & 0x0FF) == 0x020)
4201 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4202 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4203 #else
4204 # define ISLOWER(c) \
4205                    (('a' <= (c) && (c) <= 'i') \
4206                      || ('j' <= (c) && (c) <= 'r') \
4207                      || ('s' <= (c) && (c) <= 'z'))
4208 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4209 #endif
4210
4211 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4212 int
4213 main ()
4214 {
4215   int i;
4216   for (i = 0; i < 256; i++)
4217     if (XOR (islower (i), ISLOWER (i))
4218         || toupper (i) != TOUPPER (i))
4219       return 2;
4220   return 0;
4221 }
4222 _ACEOF
4223 rm -f conftest$ac_exeext
4224 if { (ac_try="$ac_link"
4225 case "(($ac_try" in
4226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4227   *) ac_try_echo=$ac_try;;
4228 esac
4229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4230   (eval "$ac_link") 2>&5
4231   ac_status=$?
4232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4234   { (case "(($ac_try" in
4235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4236   *) ac_try_echo=$ac_try;;
4237 esac
4238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4239   (eval "$ac_try") 2>&5
4240   ac_status=$?
4241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4242   (exit $ac_status); }; }; then
4243   :
4244 else
4245   echo "$as_me: program exited with status $ac_status" >&5
4246 echo "$as_me: failed program was:" >&5
4247 sed 's/^/| /' conftest.$ac_ext >&5
4248
4249 ( exit $ac_status )
4250 ac_cv_header_stdc=no
4251 fi
4252 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4253 fi
4254
4255
4256 fi
4257 fi
4258 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4259 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4260 if test $ac_cv_header_stdc = yes; then
4261
4262 cat >>confdefs.h <<\_ACEOF
4263 #define STDC_HEADERS 1
4264 _ACEOF
4265
4266 fi
4267
4268 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4279                   inttypes.h stdint.h unistd.h
4280 do
4281 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4282 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4283 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4284 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4285   echo $ECHO_N "(cached) $ECHO_C" >&6
4286 else
4287   cat >conftest.$ac_ext <<_ACEOF
4288 /* confdefs.h.  */
4289 _ACEOF
4290 cat confdefs.h >>conftest.$ac_ext
4291 cat >>conftest.$ac_ext <<_ACEOF
4292 /* end confdefs.h.  */
4293 $ac_includes_default
4294
4295 #include <$ac_header>
4296 _ACEOF
4297 rm -f conftest.$ac_objext
4298 if { (ac_try="$ac_compile"
4299 case "(($ac_try" in
4300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4301   *) ac_try_echo=$ac_try;;
4302 esac
4303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4304   (eval "$ac_compile") 2>conftest.er1
4305   ac_status=$?
4306   grep -v '^ *+' conftest.er1 >conftest.err
4307   rm -f conftest.er1
4308   cat conftest.err >&5
4309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310   (exit $ac_status); } && {
4311          test -z "$ac_c_werror_flag" ||
4312          test ! -s conftest.err
4313        } && test -s conftest.$ac_objext; then
4314   eval "$as_ac_Header=yes"
4315 else
4316   echo "$as_me: failed program was:" >&5
4317 sed 's/^/| /' conftest.$ac_ext >&5
4318
4319         eval "$as_ac_Header=no"
4320 fi
4321
4322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4323 fi
4324 ac_res=`eval echo '${'$as_ac_Header'}'`
4325                { echo "$as_me:$LINENO: result: $ac_res" >&5
4326 echo "${ECHO_T}$ac_res" >&6; }
4327 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4328   cat >>confdefs.h <<_ACEOF
4329 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4330 _ACEOF
4331
4332 fi
4333
4334 done
4335
4336
4337
4338 for ac_header in dlfcn.h
4339 do
4340 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4341 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4342   { echo "$as_me:$LINENO: checking for $ac_header" >&5
4343 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4344 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4345   echo $ECHO_N "(cached) $ECHO_C" >&6
4346 fi
4347 ac_res=`eval echo '${'$as_ac_Header'}'`
4348                { echo "$as_me:$LINENO: result: $ac_res" >&5
4349 echo "${ECHO_T}$ac_res" >&6; }
4350 else
4351   # Is the header compilable?
4352 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4353 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4354 cat >conftest.$ac_ext <<_ACEOF
4355 /* confdefs.h.  */
4356 _ACEOF
4357 cat confdefs.h >>conftest.$ac_ext
4358 cat >>conftest.$ac_ext <<_ACEOF
4359 /* end confdefs.h.  */
4360 $ac_includes_default
4361 #include <$ac_header>
4362 _ACEOF
4363 rm -f conftest.$ac_objext
4364 if { (ac_try="$ac_compile"
4365 case "(($ac_try" in
4366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4367   *) ac_try_echo=$ac_try;;
4368 esac
4369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4370   (eval "$ac_compile") 2>conftest.er1
4371   ac_status=$?
4372   grep -v '^ *+' conftest.er1 >conftest.err
4373   rm -f conftest.er1
4374   cat conftest.err >&5
4375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4376   (exit $ac_status); } && {
4377          test -z "$ac_c_werror_flag" ||
4378          test ! -s conftest.err
4379        } && test -s conftest.$ac_objext; then
4380   ac_header_compiler=yes
4381 else
4382   echo "$as_me: failed program was:" >&5
4383 sed 's/^/| /' conftest.$ac_ext >&5
4384
4385         ac_header_compiler=no
4386 fi
4387
4388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4389 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4390 echo "${ECHO_T}$ac_header_compiler" >&6; }
4391
4392 # Is the header present?
4393 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4394 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4395 cat >conftest.$ac_ext <<_ACEOF
4396 /* confdefs.h.  */
4397 _ACEOF
4398 cat confdefs.h >>conftest.$ac_ext
4399 cat >>conftest.$ac_ext <<_ACEOF
4400 /* end confdefs.h.  */
4401 #include <$ac_header>
4402 _ACEOF
4403 if { (ac_try="$ac_cpp conftest.$ac_ext"
4404 case "(($ac_try" in
4405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4406   *) ac_try_echo=$ac_try;;
4407 esac
4408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4409   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4410   ac_status=$?
4411   grep -v '^ *+' conftest.er1 >conftest.err
4412   rm -f conftest.er1
4413   cat conftest.err >&5
4414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415   (exit $ac_status); } >/dev/null && {
4416          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4417          test ! -s conftest.err
4418        }; then
4419   ac_header_preproc=yes
4420 else
4421   echo "$as_me: failed program was:" >&5
4422 sed 's/^/| /' conftest.$ac_ext >&5
4423
4424   ac_header_preproc=no
4425 fi
4426
4427 rm -f conftest.err conftest.$ac_ext
4428 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4429 echo "${ECHO_T}$ac_header_preproc" >&6; }
4430
4431 # So?  What about this header?
4432 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4433   yes:no: )
4434     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4435 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4436     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4437 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4438     ac_header_preproc=yes
4439     ;;
4440   no:yes:* )
4441     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4442 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4443     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4444 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4445     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4446 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4447     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4448 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4449     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4450 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4451     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4452 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4453     ( cat <<\_ASBOX
4454 ## -------------------------------- ##
4455 ## Report this to chise-en@m17n.org ##
4456 ## -------------------------------- ##
4457 _ASBOX
4458      ) | sed "s/^/$as_me: WARNING:     /" >&2
4459     ;;
4460 esac
4461 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4462 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4463 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4464   echo $ECHO_N "(cached) $ECHO_C" >&6
4465 else
4466   eval "$as_ac_Header=\$ac_header_preproc"
4467 fi
4468 ac_res=`eval echo '${'$as_ac_Header'}'`
4469                { echo "$as_me:$LINENO: result: $ac_res" >&5
4470 echo "${ECHO_T}$ac_res" >&6; }
4471
4472 fi
4473 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4474   cat >>confdefs.h <<_ACEOF
4475 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4476 _ACEOF
4477
4478 fi
4479
4480 done
4481
4482 ac_ext=cpp
4483 ac_cpp='$CXXCPP $CPPFLAGS'
4484 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4485 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4486 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4487 if test -z "$CXX"; then
4488   if test -n "$CCC"; then
4489     CXX=$CCC
4490   else
4491     if test -n "$ac_tool_prefix"; then
4492   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4493   do
4494     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4495 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4496 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4498 if test "${ac_cv_prog_CXX+set}" = set; then
4499   echo $ECHO_N "(cached) $ECHO_C" >&6
4500 else
4501   if test -n "$CXX"; then
4502   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4503 else
4504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4505 for as_dir in $PATH
4506 do
4507   IFS=$as_save_IFS
4508   test -z "$as_dir" && as_dir=.
4509   for ac_exec_ext in '' $ac_executable_extensions; do
4510   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4511     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4512     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4513     break 2
4514   fi
4515 done
4516 done
4517 IFS=$as_save_IFS
4518
4519 fi
4520 fi
4521 CXX=$ac_cv_prog_CXX
4522 if test -n "$CXX"; then
4523   { echo "$as_me:$LINENO: result: $CXX" >&5
4524 echo "${ECHO_T}$CXX" >&6; }
4525 else
4526   { echo "$as_me:$LINENO: result: no" >&5
4527 echo "${ECHO_T}no" >&6; }
4528 fi
4529
4530
4531     test -n "$CXX" && break
4532   done
4533 fi
4534 if test -z "$CXX"; then
4535   ac_ct_CXX=$CXX
4536   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4537 do
4538   # Extract the first word of "$ac_prog", so it can be a program name with args.
4539 set dummy $ac_prog; ac_word=$2
4540 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4542 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4543   echo $ECHO_N "(cached) $ECHO_C" >&6
4544 else
4545   if test -n "$ac_ct_CXX"; then
4546   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4547 else
4548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4549 for as_dir in $PATH
4550 do
4551   IFS=$as_save_IFS
4552   test -z "$as_dir" && as_dir=.
4553   for ac_exec_ext in '' $ac_executable_extensions; do
4554   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4555     ac_cv_prog_ac_ct_CXX="$ac_prog"
4556     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4557     break 2
4558   fi
4559 done
4560 done
4561 IFS=$as_save_IFS
4562
4563 fi
4564 fi
4565 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4566 if test -n "$ac_ct_CXX"; then
4567   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4568 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4569 else
4570   { echo "$as_me:$LINENO: result: no" >&5
4571 echo "${ECHO_T}no" >&6; }
4572 fi
4573
4574
4575   test -n "$ac_ct_CXX" && break
4576 done
4577
4578   if test "x$ac_ct_CXX" = x; then
4579     CXX="g++"
4580   else
4581     case $cross_compiling:$ac_tool_warned in
4582 yes:)
4583 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4584 whose name does not start with the host triplet.  If you think this
4585 configuration is useful to you, please write to autoconf@gnu.org." >&5
4586 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4587 whose name does not start with the host triplet.  If you think this
4588 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4589 ac_tool_warned=yes ;;
4590 esac
4591     CXX=$ac_ct_CXX
4592   fi
4593 fi
4594
4595   fi
4596 fi
4597 # Provide some information about the compiler.
4598 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4599 ac_compiler=`set X $ac_compile; echo $2`
4600 { (ac_try="$ac_compiler --version >&5"
4601 case "(($ac_try" in
4602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4603   *) ac_try_echo=$ac_try;;
4604 esac
4605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4606   (eval "$ac_compiler --version >&5") 2>&5
4607   ac_status=$?
4608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4609   (exit $ac_status); }
4610 { (ac_try="$ac_compiler -v >&5"
4611 case "(($ac_try" in
4612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4613   *) ac_try_echo=$ac_try;;
4614 esac
4615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4616   (eval "$ac_compiler -v >&5") 2>&5
4617   ac_status=$?
4618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4619   (exit $ac_status); }
4620 { (ac_try="$ac_compiler -V >&5"
4621 case "(($ac_try" in
4622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4623   *) ac_try_echo=$ac_try;;
4624 esac
4625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4626   (eval "$ac_compiler -V >&5") 2>&5
4627   ac_status=$?
4628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629   (exit $ac_status); }
4630
4631 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4632 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
4633 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4634   echo $ECHO_N "(cached) $ECHO_C" >&6
4635 else
4636   cat >conftest.$ac_ext <<_ACEOF
4637 /* confdefs.h.  */
4638 _ACEOF
4639 cat confdefs.h >>conftest.$ac_ext
4640 cat >>conftest.$ac_ext <<_ACEOF
4641 /* end confdefs.h.  */
4642
4643 int
4644 main ()
4645 {
4646 #ifndef __GNUC__
4647        choke me
4648 #endif
4649
4650   ;
4651   return 0;
4652 }
4653 _ACEOF
4654 rm -f conftest.$ac_objext
4655 if { (ac_try="$ac_compile"
4656 case "(($ac_try" in
4657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4658   *) ac_try_echo=$ac_try;;
4659 esac
4660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4661   (eval "$ac_compile") 2>conftest.er1
4662   ac_status=$?
4663   grep -v '^ *+' conftest.er1 >conftest.err
4664   rm -f conftest.er1
4665   cat conftest.err >&5
4666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4667   (exit $ac_status); } && {
4668          test -z "$ac_cxx_werror_flag" ||
4669          test ! -s conftest.err
4670        } && test -s conftest.$ac_objext; then
4671   ac_compiler_gnu=yes
4672 else
4673   echo "$as_me: failed program was:" >&5
4674 sed 's/^/| /' conftest.$ac_ext >&5
4675
4676         ac_compiler_gnu=no
4677 fi
4678
4679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4680 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4681
4682 fi
4683 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4684 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
4685 GXX=`test $ac_compiler_gnu = yes && echo yes`
4686 ac_test_CXXFLAGS=${CXXFLAGS+set}
4687 ac_save_CXXFLAGS=$CXXFLAGS
4688 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4689 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
4690 if test "${ac_cv_prog_cxx_g+set}" = set; then
4691   echo $ECHO_N "(cached) $ECHO_C" >&6
4692 else
4693   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4694    ac_cxx_werror_flag=yes
4695    ac_cv_prog_cxx_g=no
4696    CXXFLAGS="-g"
4697    cat >conftest.$ac_ext <<_ACEOF
4698 /* confdefs.h.  */
4699 _ACEOF
4700 cat confdefs.h >>conftest.$ac_ext
4701 cat >>conftest.$ac_ext <<_ACEOF
4702 /* end confdefs.h.  */
4703
4704 int
4705 main ()
4706 {
4707
4708   ;
4709   return 0;
4710 }
4711 _ACEOF
4712 rm -f conftest.$ac_objext
4713 if { (ac_try="$ac_compile"
4714 case "(($ac_try" in
4715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4716   *) ac_try_echo=$ac_try;;
4717 esac
4718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4719   (eval "$ac_compile") 2>conftest.er1
4720   ac_status=$?
4721   grep -v '^ *+' conftest.er1 >conftest.err
4722   rm -f conftest.er1
4723   cat conftest.err >&5
4724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4725   (exit $ac_status); } && {
4726          test -z "$ac_cxx_werror_flag" ||
4727          test ! -s conftest.err
4728        } && test -s conftest.$ac_objext; then
4729   ac_cv_prog_cxx_g=yes
4730 else
4731   echo "$as_me: failed program was:" >&5
4732 sed 's/^/| /' conftest.$ac_ext >&5
4733
4734         CXXFLAGS=""
4735       cat >conftest.$ac_ext <<_ACEOF
4736 /* confdefs.h.  */
4737 _ACEOF
4738 cat confdefs.h >>conftest.$ac_ext
4739 cat >>conftest.$ac_ext <<_ACEOF
4740 /* end confdefs.h.  */
4741
4742 int
4743 main ()
4744 {
4745
4746   ;
4747   return 0;
4748 }
4749 _ACEOF
4750 rm -f conftest.$ac_objext
4751 if { (ac_try="$ac_compile"
4752 case "(($ac_try" in
4753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4754   *) ac_try_echo=$ac_try;;
4755 esac
4756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4757   (eval "$ac_compile") 2>conftest.er1
4758   ac_status=$?
4759   grep -v '^ *+' conftest.er1 >conftest.err
4760   rm -f conftest.er1
4761   cat conftest.err >&5
4762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763   (exit $ac_status); } && {
4764          test -z "$ac_cxx_werror_flag" ||
4765          test ! -s conftest.err
4766        } && test -s conftest.$ac_objext; then
4767   :
4768 else
4769   echo "$as_me: failed program was:" >&5
4770 sed 's/^/| /' conftest.$ac_ext >&5
4771
4772         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4773          CXXFLAGS="-g"
4774          cat >conftest.$ac_ext <<_ACEOF
4775 /* confdefs.h.  */
4776 _ACEOF
4777 cat confdefs.h >>conftest.$ac_ext
4778 cat >>conftest.$ac_ext <<_ACEOF
4779 /* end confdefs.h.  */
4780
4781 int
4782 main ()
4783 {
4784
4785   ;
4786   return 0;
4787 }
4788 _ACEOF
4789 rm -f conftest.$ac_objext
4790 if { (ac_try="$ac_compile"
4791 case "(($ac_try" in
4792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4793   *) ac_try_echo=$ac_try;;
4794 esac
4795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4796   (eval "$ac_compile") 2>conftest.er1
4797   ac_status=$?
4798   grep -v '^ *+' conftest.er1 >conftest.err
4799   rm -f conftest.er1
4800   cat conftest.err >&5
4801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802   (exit $ac_status); } && {
4803          test -z "$ac_cxx_werror_flag" ||
4804          test ! -s conftest.err
4805        } && test -s conftest.$ac_objext; then
4806   ac_cv_prog_cxx_g=yes
4807 else
4808   echo "$as_me: failed program was:" >&5
4809 sed 's/^/| /' conftest.$ac_ext >&5
4810
4811
4812 fi
4813
4814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4815 fi
4816
4817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4818 fi
4819
4820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4821    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4822 fi
4823 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4824 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4825 if test "$ac_test_CXXFLAGS" = set; then
4826   CXXFLAGS=$ac_save_CXXFLAGS
4827 elif test $ac_cv_prog_cxx_g = yes; then
4828   if test "$GXX" = yes; then
4829     CXXFLAGS="-g -O2"
4830   else
4831     CXXFLAGS="-g"
4832   fi
4833 else
4834   if test "$GXX" = yes; then
4835     CXXFLAGS="-O2"
4836   else
4837     CXXFLAGS=
4838   fi
4839 fi
4840 ac_ext=cpp
4841 ac_cpp='$CXXCPP $CPPFLAGS'
4842 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4843 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4844 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4845
4846 ac_ext=cpp
4847 ac_cpp='$CXXCPP $CPPFLAGS'
4848 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4849 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4850 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4851 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4852 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
4853 if test -z "$CXXCPP"; then
4854   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4855   echo $ECHO_N "(cached) $ECHO_C" >&6
4856 else
4857       # Double quotes because CXXCPP needs to be expanded
4858     for CXXCPP in "$CXX -E" "/lib/cpp"
4859     do
4860       ac_preproc_ok=false
4861 for ac_cxx_preproc_warn_flag in '' yes
4862 do
4863   # Use a header file that comes with gcc, so configuring glibc
4864   # with a fresh cross-compiler works.
4865   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4866   # <limits.h> exists even on freestanding compilers.
4867   # On the NeXT, cc -E runs the code through the compiler's parser,
4868   # not just through cpp. "Syntax error" is here to catch this case.
4869   cat >conftest.$ac_ext <<_ACEOF
4870 /* confdefs.h.  */
4871 _ACEOF
4872 cat confdefs.h >>conftest.$ac_ext
4873 cat >>conftest.$ac_ext <<_ACEOF
4874 /* end confdefs.h.  */
4875 #ifdef __STDC__
4876 # include <limits.h>
4877 #else
4878 # include <assert.h>
4879 #endif
4880                      Syntax error
4881 _ACEOF
4882 if { (ac_try="$ac_cpp conftest.$ac_ext"
4883 case "(($ac_try" in
4884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4885   *) ac_try_echo=$ac_try;;
4886 esac
4887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4888   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4889   ac_status=$?
4890   grep -v '^ *+' conftest.er1 >conftest.err
4891   rm -f conftest.er1
4892   cat conftest.err >&5
4893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4894   (exit $ac_status); } >/dev/null && {
4895          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4896          test ! -s conftest.err
4897        }; then
4898   :
4899 else
4900   echo "$as_me: failed program was:" >&5
4901 sed 's/^/| /' conftest.$ac_ext >&5
4902
4903   # Broken: fails on valid input.
4904 continue
4905 fi
4906
4907 rm -f conftest.err conftest.$ac_ext
4908
4909   # OK, works on sane cases.  Now check whether nonexistent headers
4910   # can be detected and how.
4911   cat >conftest.$ac_ext <<_ACEOF
4912 /* confdefs.h.  */
4913 _ACEOF
4914 cat confdefs.h >>conftest.$ac_ext
4915 cat >>conftest.$ac_ext <<_ACEOF
4916 /* end confdefs.h.  */
4917 #include <ac_nonexistent.h>
4918 _ACEOF
4919 if { (ac_try="$ac_cpp conftest.$ac_ext"
4920 case "(($ac_try" in
4921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4922   *) ac_try_echo=$ac_try;;
4923 esac
4924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4925   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4926   ac_status=$?
4927   grep -v '^ *+' conftest.er1 >conftest.err
4928   rm -f conftest.er1
4929   cat conftest.err >&5
4930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4931   (exit $ac_status); } >/dev/null && {
4932          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4933          test ! -s conftest.err
4934        }; then
4935   # Broken: success on invalid input.
4936 continue
4937 else
4938   echo "$as_me: failed program was:" >&5
4939 sed 's/^/| /' conftest.$ac_ext >&5
4940
4941   # Passes both tests.
4942 ac_preproc_ok=:
4943 break
4944 fi
4945
4946 rm -f conftest.err conftest.$ac_ext
4947
4948 done
4949 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4950 rm -f conftest.err conftest.$ac_ext
4951 if $ac_preproc_ok; then
4952   break
4953 fi
4954
4955     done
4956     ac_cv_prog_CXXCPP=$CXXCPP
4957
4958 fi
4959   CXXCPP=$ac_cv_prog_CXXCPP
4960 else
4961   ac_cv_prog_CXXCPP=$CXXCPP
4962 fi
4963 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
4964 echo "${ECHO_T}$CXXCPP" >&6; }
4965 ac_preproc_ok=false
4966 for ac_cxx_preproc_warn_flag in '' yes
4967 do
4968   # Use a header file that comes with gcc, so configuring glibc
4969   # with a fresh cross-compiler works.
4970   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4971   # <limits.h> exists even on freestanding compilers.
4972   # On the NeXT, cc -E runs the code through the compiler's parser,
4973   # not just through cpp. "Syntax error" is here to catch this case.
4974   cat >conftest.$ac_ext <<_ACEOF
4975 /* confdefs.h.  */
4976 _ACEOF
4977 cat confdefs.h >>conftest.$ac_ext
4978 cat >>conftest.$ac_ext <<_ACEOF
4979 /* end confdefs.h.  */
4980 #ifdef __STDC__
4981 # include <limits.h>
4982 #else
4983 # include <assert.h>
4984 #endif
4985                      Syntax error
4986 _ACEOF
4987 if { (ac_try="$ac_cpp conftest.$ac_ext"
4988 case "(($ac_try" in
4989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4990   *) ac_try_echo=$ac_try;;
4991 esac
4992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4993   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4994   ac_status=$?
4995   grep -v '^ *+' conftest.er1 >conftest.err
4996   rm -f conftest.er1
4997   cat conftest.err >&5
4998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4999   (exit $ac_status); } >/dev/null && {
5000          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5001          test ! -s conftest.err
5002        }; then
5003   :
5004 else
5005   echo "$as_me: failed program was:" >&5
5006 sed 's/^/| /' conftest.$ac_ext >&5
5007
5008   # Broken: fails on valid input.
5009 continue
5010 fi
5011
5012 rm -f conftest.err conftest.$ac_ext
5013
5014   # OK, works on sane cases.  Now check whether nonexistent headers
5015   # can be detected and how.
5016   cat >conftest.$ac_ext <<_ACEOF
5017 /* confdefs.h.  */
5018 _ACEOF
5019 cat confdefs.h >>conftest.$ac_ext
5020 cat >>conftest.$ac_ext <<_ACEOF
5021 /* end confdefs.h.  */
5022 #include <ac_nonexistent.h>
5023 _ACEOF
5024 if { (ac_try="$ac_cpp conftest.$ac_ext"
5025 case "(($ac_try" in
5026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5027   *) ac_try_echo=$ac_try;;
5028 esac
5029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5030   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5031   ac_status=$?
5032   grep -v '^ *+' conftest.er1 >conftest.err
5033   rm -f conftest.er1
5034   cat conftest.err >&5
5035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036   (exit $ac_status); } >/dev/null && {
5037          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5038          test ! -s conftest.err
5039        }; then
5040   # Broken: success on invalid input.
5041 continue
5042 else
5043   echo "$as_me: failed program was:" >&5
5044 sed 's/^/| /' conftest.$ac_ext >&5
5045
5046   # Passes both tests.
5047 ac_preproc_ok=:
5048 break
5049 fi
5050
5051 rm -f conftest.err conftest.$ac_ext
5052
5053 done
5054 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5055 rm -f conftest.err conftest.$ac_ext
5056 if $ac_preproc_ok; then
5057   :
5058 else
5059   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5060 See \`config.log' for more details." >&5
5061 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5062 See \`config.log' for more details." >&2;}
5063    { (exit 1); exit 1; }; }
5064 fi
5065
5066 ac_ext=cpp
5067 ac_cpp='$CXXCPP $CPPFLAGS'
5068 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5069 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5070 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5071
5072
5073 ac_ext=f
5074 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5075 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5076 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5077 if test -n "$ac_tool_prefix"; then
5078   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
5079   do
5080     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5081 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5082 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5084 if test "${ac_cv_prog_F77+set}" = set; then
5085   echo $ECHO_N "(cached) $ECHO_C" >&6
5086 else
5087   if test -n "$F77"; then
5088   ac_cv_prog_F77="$F77" # Let the user override the test.
5089 else
5090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5091 for as_dir in $PATH
5092 do
5093   IFS=$as_save_IFS
5094   test -z "$as_dir" && as_dir=.
5095   for ac_exec_ext in '' $ac_executable_extensions; do
5096   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5097     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5098     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5099     break 2
5100   fi
5101 done
5102 done
5103 IFS=$as_save_IFS
5104
5105 fi
5106 fi
5107 F77=$ac_cv_prog_F77
5108 if test -n "$F77"; then
5109   { echo "$as_me:$LINENO: result: $F77" >&5
5110 echo "${ECHO_T}$F77" >&6; }
5111 else
5112   { echo "$as_me:$LINENO: result: no" >&5
5113 echo "${ECHO_T}no" >&6; }
5114 fi
5115
5116
5117     test -n "$F77" && break
5118   done
5119 fi
5120 if test -z "$F77"; then
5121   ac_ct_F77=$F77
5122   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
5123 do
5124   # Extract the first word of "$ac_prog", so it can be a program name with args.
5125 set dummy $ac_prog; ac_word=$2
5126 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5128 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5129   echo $ECHO_N "(cached) $ECHO_C" >&6
5130 else
5131   if test -n "$ac_ct_F77"; then
5132   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5133 else
5134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5135 for as_dir in $PATH
5136 do
5137   IFS=$as_save_IFS
5138   test -z "$as_dir" && as_dir=.
5139   for ac_exec_ext in '' $ac_executable_extensions; do
5140   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5141     ac_cv_prog_ac_ct_F77="$ac_prog"
5142     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5143     break 2
5144   fi
5145 done
5146 done
5147 IFS=$as_save_IFS
5148
5149 fi
5150 fi
5151 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5152 if test -n "$ac_ct_F77"; then
5153   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5154 echo "${ECHO_T}$ac_ct_F77" >&6; }
5155 else
5156   { echo "$as_me:$LINENO: result: no" >&5
5157 echo "${ECHO_T}no" >&6; }
5158 fi
5159
5160
5161   test -n "$ac_ct_F77" && break
5162 done
5163
5164   if test "x$ac_ct_F77" = x; then
5165     F77=""
5166   else
5167     case $cross_compiling:$ac_tool_warned in
5168 yes:)
5169 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5170 whose name does not start with the host triplet.  If you think this
5171 configuration is useful to you, please write to autoconf@gnu.org." >&5
5172 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5173 whose name does not start with the host triplet.  If you think this
5174 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5175 ac_tool_warned=yes ;;
5176 esac
5177     F77=$ac_ct_F77
5178   fi
5179 fi
5180
5181
5182 # Provide some information about the compiler.
5183 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5184 ac_compiler=`set X $ac_compile; echo $2`
5185 { (ac_try="$ac_compiler --version >&5"
5186 case "(($ac_try" in
5187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5188   *) ac_try_echo=$ac_try;;
5189 esac
5190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5191   (eval "$ac_compiler --version >&5") 2>&5
5192   ac_status=$?
5193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5194   (exit $ac_status); }
5195 { (ac_try="$ac_compiler -v >&5"
5196 case "(($ac_try" in
5197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5198   *) ac_try_echo=$ac_try;;
5199 esac
5200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5201   (eval "$ac_compiler -v >&5") 2>&5
5202   ac_status=$?
5203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5204   (exit $ac_status); }
5205 { (ac_try="$ac_compiler -V >&5"
5206 case "(($ac_try" in
5207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5208   *) ac_try_echo=$ac_try;;
5209 esac
5210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5211   (eval "$ac_compiler -V >&5") 2>&5
5212   ac_status=$?
5213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5214   (exit $ac_status); }
5215 rm -f a.out
5216
5217 # If we don't use `.F' as extension, the preprocessor is not run on the
5218 # input file.  (Note that this only needs to work for GNU compilers.)
5219 ac_save_ext=$ac_ext
5220 ac_ext=F
5221 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5222 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
5223 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5224   echo $ECHO_N "(cached) $ECHO_C" >&6
5225 else
5226   cat >conftest.$ac_ext <<_ACEOF
5227       program main
5228 #ifndef __GNUC__
5229        choke me
5230 #endif
5231
5232       end
5233 _ACEOF
5234 rm -f conftest.$ac_objext
5235 if { (ac_try="$ac_compile"
5236 case "(($ac_try" in
5237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5238   *) ac_try_echo=$ac_try;;
5239 esac
5240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5241   (eval "$ac_compile") 2>conftest.er1
5242   ac_status=$?
5243   grep -v '^ *+' conftest.er1 >conftest.err
5244   rm -f conftest.er1
5245   cat conftest.err >&5
5246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247   (exit $ac_status); } && {
5248          test -z "$ac_f77_werror_flag" ||
5249          test ! -s conftest.err
5250        } && test -s conftest.$ac_objext; then
5251   ac_compiler_gnu=yes
5252 else
5253   echo "$as_me: failed program was:" >&5
5254 sed 's/^/| /' conftest.$ac_ext >&5
5255
5256         ac_compiler_gnu=no
5257 fi
5258
5259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5260 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5261
5262 fi
5263 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5264 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
5265 ac_ext=$ac_save_ext
5266 ac_test_FFLAGS=${FFLAGS+set}
5267 ac_save_FFLAGS=$FFLAGS
5268 FFLAGS=
5269 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5270 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
5271 if test "${ac_cv_prog_f77_g+set}" = set; then
5272   echo $ECHO_N "(cached) $ECHO_C" >&6
5273 else
5274   FFLAGS=-g
5275 cat >conftest.$ac_ext <<_ACEOF
5276       program main
5277
5278       end
5279 _ACEOF
5280 rm -f conftest.$ac_objext
5281 if { (ac_try="$ac_compile"
5282 case "(($ac_try" in
5283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5284   *) ac_try_echo=$ac_try;;
5285 esac
5286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5287   (eval "$ac_compile") 2>conftest.er1
5288   ac_status=$?
5289   grep -v '^ *+' conftest.er1 >conftest.err
5290   rm -f conftest.er1
5291   cat conftest.err >&5
5292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5293   (exit $ac_status); } && {
5294          test -z "$ac_f77_werror_flag" ||
5295          test ! -s conftest.err
5296        } && test -s conftest.$ac_objext; then
5297   ac_cv_prog_f77_g=yes
5298 else
5299   echo "$as_me: failed program was:" >&5
5300 sed 's/^/| /' conftest.$ac_ext >&5
5301
5302         ac_cv_prog_f77_g=no
5303 fi
5304
5305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5306
5307 fi
5308 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5309 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
5310 if test "$ac_test_FFLAGS" = set; then
5311   FFLAGS=$ac_save_FFLAGS
5312 elif test $ac_cv_prog_f77_g = yes; then
5313   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5314     FFLAGS="-g -O2"
5315   else
5316     FFLAGS="-g"
5317   fi
5318 else
5319   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5320     FFLAGS="-O2"
5321   else
5322     FFLAGS=
5323   fi
5324 fi
5325
5326 G77=`test $ac_compiler_gnu = yes && echo yes`
5327 ac_ext=c
5328 ac_cpp='$CPP $CPPFLAGS'
5329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5332
5333
5334
5335 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5336
5337 # find the maximum length of command line arguments
5338 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5339 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
5340 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5341   echo $ECHO_N "(cached) $ECHO_C" >&6
5342 else
5343     i=0
5344   testring="ABCD"
5345
5346   case $build_os in
5347   msdosdjgpp*)
5348     # On DJGPP, this test can blow up pretty badly due to problems in libc
5349     # (any single argument exceeding 2000 bytes causes a buffer overrun
5350     # during glob expansion).  Even if it were fixed, the result of this
5351     # check would be larger than it should be.
5352     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5353     ;;
5354
5355   gnu*)
5356     # Under GNU Hurd, this test is not required because there is
5357     # no limit to the length of command line arguments.
5358     # Libtool will interpret -1 as no limit whatsoever
5359     lt_cv_sys_max_cmd_len=-1;
5360     ;;
5361
5362   cygwin* | mingw*)
5363     # On Win9x/ME, this test blows up -- it succeeds, but takes
5364     # about 5 minutes as the teststring grows exponentially.
5365     # Worse, since 9x/ME are not pre-emptively multitasking,
5366     # you end up with a "frozen" computer, even though with patience
5367     # the test eventually succeeds (with a max line length of 256k).
5368     # Instead, let's just punt: use the minimum linelength reported by
5369     # all of the supported platforms: 8192 (on NT/2K/XP).
5370     lt_cv_sys_max_cmd_len=8192;
5371     ;;
5372
5373   amigaos*)
5374     # On AmigaOS with pdksh, this test takes hours, literally.
5375     # So we just punt and use a minimum line length of 8192.
5376     lt_cv_sys_max_cmd_len=8192;
5377     ;;
5378
5379  *)
5380     # If test is not a shell built-in, we'll probably end up computing a
5381     # maximum length that is only half of the actual maximum length, but
5382     # we can't tell.
5383     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5384                = "XX$testring") >/dev/null 2>&1 &&
5385             new_result=`expr "X$testring" : ".*" 2>&1` &&
5386             lt_cv_sys_max_cmd_len=$new_result &&
5387             test $i != 17 # 1/2 MB should be enough
5388     do
5389       i=`expr $i + 1`
5390       testring=$testring$testring
5391     done
5392     testring=
5393     # Add a significant safety factor because C++ compilers can tack on massive
5394     # amounts of additional arguments before passing them to the linker.
5395     # It appears as though 1/2 is a usable value.
5396     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5397     ;;
5398   esac
5399
5400 fi
5401
5402 if test -n $lt_cv_sys_max_cmd_len ; then
5403   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5404 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
5405 else
5406   { echo "$as_me:$LINENO: result: none" >&5
5407 echo "${ECHO_T}none" >&6; }
5408 fi
5409
5410
5411
5412
5413 # Check for command to grab the raw symbol name followed by C symbol from nm.
5414 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5415 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
5416 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5417   echo $ECHO_N "(cached) $ECHO_C" >&6
5418 else
5419
5420 # These are sane defaults that work on at least a few old systems.
5421 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5422
5423 # Character class describing NM global symbol codes.
5424 symcode='[BCDEGRST]'
5425
5426 # Regexp to match symbols that can be accessed directly from C.
5427 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5428
5429 # Transform the above into a raw symbol and a C symbol.
5430 symxfrm='\1 \2\3 \3'
5431
5432 # Transform an extracted symbol line into a proper C declaration
5433 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5434
5435 # Transform an extracted symbol line into symbol name and symbol address
5436 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'"
5437
5438 # Define system-specific variables.
5439 case $host_os in
5440 aix*)
5441   symcode='[BCDT]'
5442   ;;
5443 cygwin* | mingw* | pw32*)
5444   symcode='[ABCDGISTW]'
5445   ;;
5446 hpux*) # Its linker distinguishes data from code symbols
5447   if test "$host_cpu" = ia64; then
5448     symcode='[ABCDEGRST]'
5449   fi
5450   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5451   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'"
5452   ;;
5453 irix* | nonstopux*)
5454   symcode='[BCDEGRST]'
5455   ;;
5456 osf*)
5457   symcode='[BCDEGQRST]'
5458   ;;
5459 solaris* | sysv5*)
5460   symcode='[BDRT]'
5461   ;;
5462 sysv4)
5463   symcode='[DFNSTU]'
5464   ;;
5465 esac
5466
5467 # Handle CRLF in mingw tool chain
5468 opt_cr=
5469 case $build_os in
5470 mingw*)
5471   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5472   ;;
5473 esac
5474
5475 # If we're using GNU nm, then use its standard symbol codes.
5476 case `$NM -V 2>&1` in
5477 *GNU* | *'with BFD'*)
5478   symcode='[ABCDGIRSTW]' ;;
5479 esac
5480
5481 # Try without a prefix undercore, then with it.
5482 for ac_symprfx in "" "_"; do
5483
5484   # Write the raw and C identifiers.
5485   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5486
5487   # Check to see that the pipe works correctly.
5488   pipe_works=no
5489
5490   rm -f conftest*
5491   cat > conftest.$ac_ext <<EOF
5492 #ifdef __cplusplus
5493 extern "C" {
5494 #endif
5495 char nm_test_var;
5496 void nm_test_func(){}
5497 #ifdef __cplusplus
5498 }
5499 #endif
5500 int main(){nm_test_var='a';nm_test_func();return(0);}
5501 EOF
5502
5503   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5504   (eval $ac_compile) 2>&5
5505   ac_status=$?
5506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5507   (exit $ac_status); }; then
5508     # Now try to grab the symbols.
5509     nlist=conftest.nm
5510     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5511   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5512   ac_status=$?
5513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514   (exit $ac_status); } && test -s "$nlist"; then
5515       # Try sorting and uniquifying the output.
5516       if sort "$nlist" | uniq > "$nlist"T; then
5517         mv -f "$nlist"T "$nlist"
5518       else
5519         rm -f "$nlist"T
5520       fi
5521
5522       # Make sure that we snagged all the symbols we need.
5523       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5524         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5525           cat <<EOF > conftest.$ac_ext
5526 #ifdef __cplusplus
5527 extern "C" {
5528 #endif
5529
5530 EOF
5531           # Now generate the symbol file.
5532           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5533
5534           cat <<EOF >> conftest.$ac_ext
5535 #if defined (__STDC__) && __STDC__
5536 # define lt_ptr_t void *
5537 #else
5538 # define lt_ptr_t char *
5539 # define const
5540 #endif
5541
5542 /* The mapping between symbol names and symbols. */
5543 const struct {
5544   const char *name;
5545   lt_ptr_t address;
5546 }
5547 lt_preloaded_symbols[] =
5548 {
5549 EOF
5550           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5551           cat <<\EOF >> conftest.$ac_ext
5552   {0, (lt_ptr_t) 0}
5553 };
5554
5555 #ifdef __cplusplus
5556 }
5557 #endif
5558 EOF
5559           # Now try linking the two files.
5560           mv conftest.$ac_objext conftstm.$ac_objext
5561           lt_save_LIBS="$LIBS"
5562           lt_save_CFLAGS="$CFLAGS"
5563           LIBS="conftstm.$ac_objext"
5564           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5565           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5566   (eval $ac_link) 2>&5
5567   ac_status=$?
5568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5569   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5570             pipe_works=yes
5571           fi
5572           LIBS="$lt_save_LIBS"
5573           CFLAGS="$lt_save_CFLAGS"
5574         else
5575           echo "cannot find nm_test_func in $nlist" >&5
5576         fi
5577       else
5578         echo "cannot find nm_test_var in $nlist" >&5
5579       fi
5580     else
5581       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5582     fi
5583   else
5584     echo "$progname: failed program was:" >&5
5585     cat conftest.$ac_ext >&5
5586   fi
5587   rm -f conftest* conftst*
5588
5589   # Do not use the global_symbol_pipe unless it works.
5590   if test "$pipe_works" = yes; then
5591     break
5592   else
5593     lt_cv_sys_global_symbol_pipe=
5594   fi
5595 done
5596
5597 fi
5598
5599 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5600   lt_cv_sys_global_symbol_to_cdecl=
5601 fi
5602 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5603   { echo "$as_me:$LINENO: result: failed" >&5
5604 echo "${ECHO_T}failed" >&6; }
5605 else
5606   { echo "$as_me:$LINENO: result: ok" >&5
5607 echo "${ECHO_T}ok" >&6; }
5608 fi
5609
5610 { echo "$as_me:$LINENO: checking for objdir" >&5
5611 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
5612 if test "${lt_cv_objdir+set}" = set; then
5613   echo $ECHO_N "(cached) $ECHO_C" >&6
5614 else
5615   rm -f .libs 2>/dev/null
5616 mkdir .libs 2>/dev/null
5617 if test -d .libs; then
5618   lt_cv_objdir=.libs
5619 else
5620   # MS-DOS does not allow filenames that begin with a dot.
5621   lt_cv_objdir=_libs
5622 fi
5623 rmdir .libs 2>/dev/null
5624 fi
5625 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5626 echo "${ECHO_T}$lt_cv_objdir" >&6; }
5627 objdir=$lt_cv_objdir
5628
5629
5630
5631
5632
5633 case $host_os in
5634 aix3*)
5635   # AIX sometimes has problems with the GCC collect2 program.  For some
5636   # reason, if we set the COLLECT_NAMES environment variable, the problems
5637   # vanish in a puff of smoke.
5638   if test "X${COLLECT_NAMES+set}" != Xset; then
5639     COLLECT_NAMES=
5640     export COLLECT_NAMES
5641   fi
5642   ;;
5643 esac
5644
5645 # Sed substitution that helps us do robust quoting.  It backslashifies
5646 # metacharacters that are still active within double-quoted strings.
5647 Xsed='sed -e s/^X//'
5648 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5649
5650 # Same as above, but do not quote variable references.
5651 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5652
5653 # Sed substitution to delay expansion of an escaped shell variable in a
5654 # double_quote_subst'ed string.
5655 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5656
5657 # Sed substitution to avoid accidental globbing in evaled expressions
5658 no_glob_subst='s/\*/\\\*/g'
5659
5660 # Constants:
5661 rm="rm -f"
5662
5663 # Global variables:
5664 default_ofile=libtool
5665 can_build_shared=yes
5666
5667 # All known linkers require a `.a' archive for static linking (except M$VC,
5668 # which needs '.lib').
5669 libext=a
5670 ltmain="$ac_aux_dir/ltmain.sh"
5671 ofile="$default_ofile"
5672 with_gnu_ld="$lt_cv_prog_gnu_ld"
5673
5674 if test -n "$ac_tool_prefix"; then
5675   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5676 set dummy ${ac_tool_prefix}ar; ac_word=$2
5677 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5679 if test "${ac_cv_prog_AR+set}" = set; then
5680   echo $ECHO_N "(cached) $ECHO_C" >&6
5681 else
5682   if test -n "$AR"; then
5683   ac_cv_prog_AR="$AR" # Let the user override the test.
5684 else
5685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5686 for as_dir in $PATH
5687 do
5688   IFS=$as_save_IFS
5689   test -z "$as_dir" && as_dir=.
5690   for ac_exec_ext in '' $ac_executable_extensions; do
5691   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5692     ac_cv_prog_AR="${ac_tool_prefix}ar"
5693     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5694     break 2
5695   fi
5696 done
5697 done
5698 IFS=$as_save_IFS
5699
5700 fi
5701 fi
5702 AR=$ac_cv_prog_AR
5703 if test -n "$AR"; then
5704   { echo "$as_me:$LINENO: result: $AR" >&5
5705 echo "${ECHO_T}$AR" >&6; }
5706 else
5707   { echo "$as_me:$LINENO: result: no" >&5
5708 echo "${ECHO_T}no" >&6; }
5709 fi
5710
5711
5712 fi
5713 if test -z "$ac_cv_prog_AR"; then
5714   ac_ct_AR=$AR
5715   # Extract the first word of "ar", so it can be a program name with args.
5716 set dummy ar; ac_word=$2
5717 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5719 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5720   echo $ECHO_N "(cached) $ECHO_C" >&6
5721 else
5722   if test -n "$ac_ct_AR"; then
5723   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5724 else
5725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5726 for as_dir in $PATH
5727 do
5728   IFS=$as_save_IFS
5729   test -z "$as_dir" && as_dir=.
5730   for ac_exec_ext in '' $ac_executable_extensions; do
5731   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5732     ac_cv_prog_ac_ct_AR="ar"
5733     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5734     break 2
5735   fi
5736 done
5737 done
5738 IFS=$as_save_IFS
5739
5740 fi
5741 fi
5742 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5743 if test -n "$ac_ct_AR"; then
5744   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5745 echo "${ECHO_T}$ac_ct_AR" >&6; }
5746 else
5747   { echo "$as_me:$LINENO: result: no" >&5
5748 echo "${ECHO_T}no" >&6; }
5749 fi
5750
5751   if test "x$ac_ct_AR" = x; then
5752     AR="false"
5753   else
5754     case $cross_compiling:$ac_tool_warned in
5755 yes:)
5756 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5757 whose name does not start with the host triplet.  If you think this
5758 configuration is useful to you, please write to autoconf@gnu.org." >&5
5759 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5760 whose name does not start with the host triplet.  If you think this
5761 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5762 ac_tool_warned=yes ;;
5763 esac
5764     AR=$ac_ct_AR
5765   fi
5766 else
5767   AR="$ac_cv_prog_AR"
5768 fi
5769
5770 if test -n "$ac_tool_prefix"; then
5771   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5772 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5773 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5775 if test "${ac_cv_prog_RANLIB+set}" = set; then
5776   echo $ECHO_N "(cached) $ECHO_C" >&6
5777 else
5778   if test -n "$RANLIB"; then
5779   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5780 else
5781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5782 for as_dir in $PATH
5783 do
5784   IFS=$as_save_IFS
5785   test -z "$as_dir" && as_dir=.
5786   for ac_exec_ext in '' $ac_executable_extensions; do
5787   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5788     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5789     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5790     break 2
5791   fi
5792 done
5793 done
5794 IFS=$as_save_IFS
5795
5796 fi
5797 fi
5798 RANLIB=$ac_cv_prog_RANLIB
5799 if test -n "$RANLIB"; then
5800   { echo "$as_me:$LINENO: result: $RANLIB" >&5
5801 echo "${ECHO_T}$RANLIB" >&6; }
5802 else
5803   { echo "$as_me:$LINENO: result: no" >&5
5804 echo "${ECHO_T}no" >&6; }
5805 fi
5806
5807
5808 fi
5809 if test -z "$ac_cv_prog_RANLIB"; then
5810   ac_ct_RANLIB=$RANLIB
5811   # Extract the first word of "ranlib", so it can be a program name with args.
5812 set dummy ranlib; ac_word=$2
5813 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5815 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5816   echo $ECHO_N "(cached) $ECHO_C" >&6
5817 else
5818   if test -n "$ac_ct_RANLIB"; then
5819   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5820 else
5821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5822 for as_dir in $PATH
5823 do
5824   IFS=$as_save_IFS
5825   test -z "$as_dir" && as_dir=.
5826   for ac_exec_ext in '' $ac_executable_extensions; do
5827   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5828     ac_cv_prog_ac_ct_RANLIB="ranlib"
5829     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5830     break 2
5831   fi
5832 done
5833 done
5834 IFS=$as_save_IFS
5835
5836 fi
5837 fi
5838 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5839 if test -n "$ac_ct_RANLIB"; then
5840   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5841 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5842 else
5843   { echo "$as_me:$LINENO: result: no" >&5
5844 echo "${ECHO_T}no" >&6; }
5845 fi
5846
5847   if test "x$ac_ct_RANLIB" = x; then
5848     RANLIB=":"
5849   else
5850     case $cross_compiling:$ac_tool_warned in
5851 yes:)
5852 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5853 whose name does not start with the host triplet.  If you think this
5854 configuration is useful to you, please write to autoconf@gnu.org." >&5
5855 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5856 whose name does not start with the host triplet.  If you think this
5857 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5858 ac_tool_warned=yes ;;
5859 esac
5860     RANLIB=$ac_ct_RANLIB
5861   fi
5862 else
5863   RANLIB="$ac_cv_prog_RANLIB"
5864 fi
5865
5866 if test -n "$ac_tool_prefix"; then
5867   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5868 set dummy ${ac_tool_prefix}strip; ac_word=$2
5869 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5871 if test "${ac_cv_prog_STRIP+set}" = set; then
5872   echo $ECHO_N "(cached) $ECHO_C" >&6
5873 else
5874   if test -n "$STRIP"; then
5875   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5876 else
5877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5878 for as_dir in $PATH
5879 do
5880   IFS=$as_save_IFS
5881   test -z "$as_dir" && as_dir=.
5882   for ac_exec_ext in '' $ac_executable_extensions; do
5883   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5884     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5885     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5886     break 2
5887   fi
5888 done
5889 done
5890 IFS=$as_save_IFS
5891
5892 fi
5893 fi
5894 STRIP=$ac_cv_prog_STRIP
5895 if test -n "$STRIP"; then
5896   { echo "$as_me:$LINENO: result: $STRIP" >&5
5897 echo "${ECHO_T}$STRIP" >&6; }
5898 else
5899   { echo "$as_me:$LINENO: result: no" >&5
5900 echo "${ECHO_T}no" >&6; }
5901 fi
5902
5903
5904 fi
5905 if test -z "$ac_cv_prog_STRIP"; then
5906   ac_ct_STRIP=$STRIP
5907   # Extract the first word of "strip", so it can be a program name with args.
5908 set dummy strip; ac_word=$2
5909 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5911 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5912   echo $ECHO_N "(cached) $ECHO_C" >&6
5913 else
5914   if test -n "$ac_ct_STRIP"; then
5915   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5916 else
5917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5918 for as_dir in $PATH
5919 do
5920   IFS=$as_save_IFS
5921   test -z "$as_dir" && as_dir=.
5922   for ac_exec_ext in '' $ac_executable_extensions; do
5923   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5924     ac_cv_prog_ac_ct_STRIP="strip"
5925     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5926     break 2
5927   fi
5928 done
5929 done
5930 IFS=$as_save_IFS
5931
5932 fi
5933 fi
5934 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5935 if test -n "$ac_ct_STRIP"; then
5936   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5937 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
5938 else
5939   { echo "$as_me:$LINENO: result: no" >&5
5940 echo "${ECHO_T}no" >&6; }
5941 fi
5942
5943   if test "x$ac_ct_STRIP" = x; then
5944     STRIP=":"
5945   else
5946     case $cross_compiling:$ac_tool_warned in
5947 yes:)
5948 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5949 whose name does not start with the host triplet.  If you think this
5950 configuration is useful to you, please write to autoconf@gnu.org." >&5
5951 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5952 whose name does not start with the host triplet.  If you think this
5953 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5954 ac_tool_warned=yes ;;
5955 esac
5956     STRIP=$ac_ct_STRIP
5957   fi
5958 else
5959   STRIP="$ac_cv_prog_STRIP"
5960 fi
5961
5962
5963 old_CC="$CC"
5964 old_CFLAGS="$CFLAGS"
5965
5966 # Set sane defaults for various variables
5967 test -z "$AR" && AR=ar
5968 test -z "$AR_FLAGS" && AR_FLAGS=cru
5969 test -z "$AS" && AS=as
5970 test -z "$CC" && CC=cc
5971 test -z "$LTCC" && LTCC=$CC
5972 test -z "$DLLTOOL" && DLLTOOL=dlltool
5973 test -z "$LD" && LD=ld
5974 test -z "$LN_S" && LN_S="ln -s"
5975 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5976 test -z "$NM" && NM=nm
5977 test -z "$SED" && SED=sed
5978 test -z "$OBJDUMP" && OBJDUMP=objdump
5979 test -z "$RANLIB" && RANLIB=:
5980 test -z "$STRIP" && STRIP=:
5981 test -z "$ac_objext" && ac_objext=o
5982
5983 # Determine commands to create old-style static archives.
5984 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5985 old_postinstall_cmds='chmod 644 $oldlib'
5986 old_postuninstall_cmds=
5987
5988 if test -n "$RANLIB"; then
5989   case $host_os in
5990   openbsd*)
5991     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5992     ;;
5993   *)
5994     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5995     ;;
5996   esac
5997   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5998 fi
5999
6000 # Only perform the check for file, if the check method requires it
6001 case $deplibs_check_method in
6002 file_magic*)
6003   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6004     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6005 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6006 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6007   echo $ECHO_N "(cached) $ECHO_C" >&6
6008 else
6009   case $MAGIC_CMD in
6010 [\\/*] |  ?:[\\/]*)
6011   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6012   ;;
6013 *)
6014   lt_save_MAGIC_CMD="$MAGIC_CMD"
6015   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6016   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6017   for ac_dir in $ac_dummy; do
6018     IFS="$lt_save_ifs"
6019     test -z "$ac_dir" && ac_dir=.
6020     if test -f $ac_dir/${ac_tool_prefix}file; then
6021       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6022       if test -n "$file_magic_test_file"; then
6023         case $deplibs_check_method in
6024         "file_magic "*)
6025           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6026           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6027           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6028             $EGREP "$file_magic_regex" > /dev/null; then
6029             :
6030           else
6031             cat <<EOF 1>&2
6032
6033 *** Warning: the command libtool uses to detect shared libraries,
6034 *** $file_magic_cmd, produces output that libtool cannot recognize.
6035 *** The result is that libtool may fail to recognize shared libraries
6036 *** as such.  This will affect the creation of libtool libraries that
6037 *** depend on shared libraries, but programs linked with such libtool
6038 *** libraries will work regardless of this problem.  Nevertheless, you
6039 *** may want to report the problem to your system manager and/or to
6040 *** bug-libtool@gnu.org
6041
6042 EOF
6043           fi ;;
6044         esac
6045       fi
6046       break
6047     fi
6048   done
6049   IFS="$lt_save_ifs"
6050   MAGIC_CMD="$lt_save_MAGIC_CMD"
6051   ;;
6052 esac
6053 fi
6054
6055 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6056 if test -n "$MAGIC_CMD"; then
6057   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6058 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6059 else
6060   { echo "$as_me:$LINENO: result: no" >&5
6061 echo "${ECHO_T}no" >&6; }
6062 fi
6063
6064 if test -z "$lt_cv_path_MAGIC_CMD"; then
6065   if test -n "$ac_tool_prefix"; then
6066     { echo "$as_me:$LINENO: checking for file" >&5
6067 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6068 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6069   echo $ECHO_N "(cached) $ECHO_C" >&6
6070 else
6071   case $MAGIC_CMD in
6072 [\\/*] |  ?:[\\/]*)
6073   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6074   ;;
6075 *)
6076   lt_save_MAGIC_CMD="$MAGIC_CMD"
6077   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6078   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6079   for ac_dir in $ac_dummy; do
6080     IFS="$lt_save_ifs"
6081     test -z "$ac_dir" && ac_dir=.
6082     if test -f $ac_dir/file; then
6083       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6084       if test -n "$file_magic_test_file"; then
6085         case $deplibs_check_method in
6086         "file_magic "*)
6087           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6088           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6089           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6090             $EGREP "$file_magic_regex" > /dev/null; then
6091             :
6092           else
6093             cat <<EOF 1>&2
6094
6095 *** Warning: the command libtool uses to detect shared libraries,
6096 *** $file_magic_cmd, produces output that libtool cannot recognize.
6097 *** The result is that libtool may fail to recognize shared libraries
6098 *** as such.  This will affect the creation of libtool libraries that
6099 *** depend on shared libraries, but programs linked with such libtool
6100 *** libraries will work regardless of this problem.  Nevertheless, you
6101 *** may want to report the problem to your system manager and/or to
6102 *** bug-libtool@gnu.org
6103
6104 EOF
6105           fi ;;
6106         esac
6107       fi
6108       break
6109     fi
6110   done
6111   IFS="$lt_save_ifs"
6112   MAGIC_CMD="$lt_save_MAGIC_CMD"
6113   ;;
6114 esac
6115 fi
6116
6117 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6118 if test -n "$MAGIC_CMD"; then
6119   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6120 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6121 else
6122   { echo "$as_me:$LINENO: result: no" >&5
6123 echo "${ECHO_T}no" >&6; }
6124 fi
6125
6126   else
6127     MAGIC_CMD=:
6128   fi
6129 fi
6130
6131   fi
6132   ;;
6133 esac
6134
6135 enable_dlopen=no
6136 enable_win32_dll=no
6137
6138 # Check whether --enable-libtool-lock was given.
6139 if test "${enable_libtool_lock+set}" = set; then
6140   enableval=$enable_libtool_lock;
6141 fi
6142
6143 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6144
6145
6146 # Check whether --with-pic was given.
6147 if test "${with_pic+set}" = set; then
6148   withval=$with_pic; pic_mode="$withval"
6149 else
6150   pic_mode=default
6151 fi
6152
6153 test -z "$pic_mode" && pic_mode=default
6154
6155 # Use C for the default configuration in the libtool script
6156 tagname=
6157 lt_save_CC="$CC"
6158 ac_ext=c
6159 ac_cpp='$CPP $CPPFLAGS'
6160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6162 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6163
6164
6165 # Source file extension for C test sources.
6166 ac_ext=c
6167
6168 # Object file extension for compiled C test sources.
6169 objext=o
6170 objext=$objext
6171
6172 # Code to be used in simple compile tests
6173 lt_simple_compile_test_code="int some_variable = 0;\n"
6174
6175 # Code to be used in simple link tests
6176 lt_simple_link_test_code='int main(){return(0);}\n'
6177
6178
6179 # If no C compiler was specified, use CC.
6180 LTCC=${LTCC-"$CC"}
6181
6182 # Allow CC to be a program name with arguments.
6183 compiler=$CC
6184
6185
6186 #
6187 # Check for any special shared library compilation flags.
6188 #
6189 lt_prog_cc_shlib=
6190 if test "$GCC" = no; then
6191   case $host_os in
6192   sco3.2v5*)
6193     lt_prog_cc_shlib='-belf'
6194     ;;
6195   esac
6196 fi
6197 if test -n "$lt_prog_cc_shlib"; then
6198   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6199 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6200   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6201   else
6202     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6203 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6204     lt_cv_prog_cc_can_build_shared=no
6205   fi
6206 fi
6207
6208
6209 #
6210 # Check to make sure the static flag actually works.
6211 #
6212 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6213 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6; }
6214 if test "${lt_prog_compiler_static_works+set}" = set; then
6215   echo $ECHO_N "(cached) $ECHO_C" >&6
6216 else
6217   lt_prog_compiler_static_works=no
6218    save_LDFLAGS="$LDFLAGS"
6219    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6220    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6221    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6222      # The compiler can only warn and ignore the option if not recognized
6223      # So say no if there are warnings
6224      if test -s conftest.err; then
6225        # Append any errors to the config.log.
6226        cat conftest.err 1>&5
6227      else
6228        lt_prog_compiler_static_works=yes
6229      fi
6230    fi
6231    $rm conftest*
6232    LDFLAGS="$save_LDFLAGS"
6233
6234 fi
6235 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6236 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
6237
6238 if test x"$lt_prog_compiler_static_works" = xyes; then
6239     :
6240 else
6241     lt_prog_compiler_static=
6242 fi
6243
6244
6245
6246 ## CAVEAT EMPTOR:
6247 ## There is no encapsulation within the following macros, do not change
6248 ## the running order or otherwise move them around unless you know exactly
6249 ## what you are doing...
6250
6251 lt_prog_compiler_no_builtin_flag=
6252
6253 if test "$GCC" = yes; then
6254   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6255
6256
6257 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6258 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
6259 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6260   echo $ECHO_N "(cached) $ECHO_C" >&6
6261 else
6262   lt_cv_prog_compiler_rtti_exceptions=no
6263   ac_outfile=conftest.$ac_objext
6264    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6265    lt_compiler_flag="-fno-rtti -fno-exceptions"
6266    # Insert the option either (1) after the last *FLAGS variable, or
6267    # (2) before a word containing "conftest.", or (3) at the end.
6268    # Note that $ac_compile itself does not contain backslashes and begins
6269    # with a dollar sign (not a hyphen), so the echo should work correctly.
6270    # The option is referenced via a variable to avoid confusing sed.
6271    lt_compile=`echo "$ac_compile" | $SED \
6272    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6273    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6274    -e 's:$: $lt_compiler_flag:'`
6275    (eval echo "\"\$as_me:6275: $lt_compile\"" >&5)
6276    (eval "$lt_compile" 2>conftest.err)
6277    ac_status=$?
6278    cat conftest.err >&5
6279    echo "$as_me:6279: \$? = $ac_status" >&5
6280    if (exit $ac_status) && test -s "$ac_outfile"; then
6281      # The compiler can only warn and ignore the option if not recognized
6282      # So say no if there are warnings
6283      if test ! -s conftest.err; then
6284        lt_cv_prog_compiler_rtti_exceptions=yes
6285      fi
6286    fi
6287    $rm conftest*
6288
6289 fi
6290 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6291 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6292
6293 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6294     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6295 else
6296     :
6297 fi
6298
6299 fi
6300
6301 lt_prog_compiler_wl=
6302 lt_prog_compiler_pic=
6303 lt_prog_compiler_static=
6304
6305 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6306 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
6307
6308   if test "$GCC" = yes; then
6309     lt_prog_compiler_wl='-Wl,'
6310     lt_prog_compiler_static='-static'
6311
6312     case $host_os in
6313       aix*)
6314       # All AIX code is PIC.
6315       if test "$host_cpu" = ia64; then
6316         # AIX 5 now supports IA64 processor
6317         lt_prog_compiler_static='-Bstatic'
6318       fi
6319       ;;
6320
6321     amigaos*)
6322       # FIXME: we need at least 68020 code to build shared libraries, but
6323       # adding the `-m68020' flag to GCC prevents building anything better,
6324       # like `-m68040'.
6325       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6326       ;;
6327
6328     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6329       # PIC is the default for these OSes.
6330       ;;
6331
6332     mingw* | pw32* | os2*)
6333       # This hack is so that the source file can tell whether it is being
6334       # built for inclusion in a dll (and should export symbols for example).
6335       lt_prog_compiler_pic='-DDLL_EXPORT'
6336       ;;
6337
6338     darwin* | rhapsody*)
6339       # PIC is the default on this platform
6340       # Common symbols not allowed in MH_DYLIB files
6341       lt_prog_compiler_pic='-fno-common'
6342       ;;
6343
6344     msdosdjgpp*)
6345       # Just because we use GCC doesn't mean we suddenly get shared libraries
6346       # on systems that don't support them.
6347       lt_prog_compiler_can_build_shared=no
6348       enable_shared=no
6349       ;;
6350
6351     sysv4*MP*)
6352       if test -d /usr/nec; then
6353         lt_prog_compiler_pic=-Kconform_pic
6354       fi
6355       ;;
6356
6357     hpux*)
6358       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6359       # not for PA HP-UX.
6360       case "$host_cpu" in
6361       hppa*64*|ia64*)
6362         # +Z the default
6363         ;;
6364       *)
6365         lt_prog_compiler_pic='-fPIC'
6366         ;;
6367       esac
6368       ;;
6369
6370     *)
6371       lt_prog_compiler_pic='-fPIC'
6372       ;;
6373     esac
6374   else
6375     # PORTME Check for flag to pass linker flags through the system compiler.
6376     case $host_os in
6377     aix*)
6378       lt_prog_compiler_wl='-Wl,'
6379       if test "$host_cpu" = ia64; then
6380         # AIX 5 now supports IA64 processor
6381         lt_prog_compiler_static='-Bstatic'
6382       else
6383         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6384       fi
6385       ;;
6386
6387     mingw* | pw32* | os2*)
6388       # This hack is so that the source file can tell whether it is being
6389       # built for inclusion in a dll (and should export symbols for example).
6390       lt_prog_compiler_pic='-DDLL_EXPORT'
6391       ;;
6392
6393     hpux9* | hpux10* | hpux11*)
6394       lt_prog_compiler_wl='-Wl,'
6395       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6396       # not for PA HP-UX.
6397       case "$host_cpu" in
6398       hppa*64*|ia64*)
6399         # +Z the default
6400         ;;
6401       *)
6402         lt_prog_compiler_pic='+Z'
6403         ;;
6404       esac
6405       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6406       lt_prog_compiler_static='${wl}-a ${wl}archive'
6407       ;;
6408
6409     irix5* | irix6* | nonstopux*)
6410       lt_prog_compiler_wl='-Wl,'
6411       # PIC (with -KPIC) is the default.
6412       lt_prog_compiler_static='-non_shared'
6413       ;;
6414
6415     newsos6)
6416       lt_prog_compiler_pic='-KPIC'
6417       lt_prog_compiler_static='-Bstatic'
6418       ;;
6419
6420     linux*)
6421       case $CC in
6422       icc* | ecc*)
6423         lt_prog_compiler_wl='-Wl,'
6424         lt_prog_compiler_pic='-KPIC'
6425         lt_prog_compiler_static='-static'
6426         ;;
6427       ccc*)
6428         lt_prog_compiler_wl='-Wl,'
6429         # All Alpha code is PIC.
6430         lt_prog_compiler_static='-non_shared'
6431         ;;
6432       esac
6433       ;;
6434
6435     osf3* | osf4* | osf5*)
6436       lt_prog_compiler_wl='-Wl,'
6437       # All OSF/1 code is PIC.
6438       lt_prog_compiler_static='-non_shared'
6439       ;;
6440
6441     sco3.2v5*)
6442       lt_prog_compiler_pic='-Kpic'
6443       lt_prog_compiler_static='-dn'
6444       ;;
6445
6446     solaris*)
6447       lt_prog_compiler_wl='-Wl,'
6448       lt_prog_compiler_pic='-KPIC'
6449       lt_prog_compiler_static='-Bstatic'
6450       ;;
6451
6452     sunos4*)
6453       lt_prog_compiler_wl='-Qoption ld '
6454       lt_prog_compiler_pic='-PIC'
6455       lt_prog_compiler_static='-Bstatic'
6456       ;;
6457
6458     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6459       lt_prog_compiler_wl='-Wl,'
6460       lt_prog_compiler_pic='-KPIC'
6461       lt_prog_compiler_static='-Bstatic'
6462       ;;
6463
6464     sysv4*MP*)
6465       if test -d /usr/nec ;then
6466         lt_prog_compiler_pic='-Kconform_pic'
6467         lt_prog_compiler_static='-Bstatic'
6468       fi
6469       ;;
6470
6471     uts4*)
6472       lt_prog_compiler_pic='-pic'
6473       lt_prog_compiler_static='-Bstatic'
6474       ;;
6475
6476     *)
6477       lt_prog_compiler_can_build_shared=no
6478       ;;
6479     esac
6480   fi
6481
6482 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6483 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
6484
6485 #
6486 # Check to make sure the PIC flag actually works.
6487 #
6488 if test -n "$lt_prog_compiler_pic"; then
6489
6490 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6491 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
6492 if test "${lt_prog_compiler_pic_works+set}" = set; then
6493   echo $ECHO_N "(cached) $ECHO_C" >&6
6494 else
6495   lt_prog_compiler_pic_works=no
6496   ac_outfile=conftest.$ac_objext
6497    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6498    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6499    # Insert the option either (1) after the last *FLAGS variable, or
6500    # (2) before a word containing "conftest.", or (3) at the end.
6501    # Note that $ac_compile itself does not contain backslashes and begins
6502    # with a dollar sign (not a hyphen), so the echo should work correctly.
6503    # The option is referenced via a variable to avoid confusing sed.
6504    lt_compile=`echo "$ac_compile" | $SED \
6505    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6506    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6507    -e 's:$: $lt_compiler_flag:'`
6508    (eval echo "\"\$as_me:6508: $lt_compile\"" >&5)
6509    (eval "$lt_compile" 2>conftest.err)
6510    ac_status=$?
6511    cat conftest.err >&5
6512    echo "$as_me:6512: \$? = $ac_status" >&5
6513    if (exit $ac_status) && test -s "$ac_outfile"; then
6514      # The compiler can only warn and ignore the option if not recognized
6515      # So say no if there are warnings
6516      if test ! -s conftest.err; then
6517        lt_prog_compiler_pic_works=yes
6518      fi
6519    fi
6520    $rm conftest*
6521
6522 fi
6523 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6524 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
6525
6526 if test x"$lt_prog_compiler_pic_works" = xyes; then
6527     case $lt_prog_compiler_pic in
6528      "" | " "*) ;;
6529      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6530      esac
6531 else
6532     lt_prog_compiler_pic=
6533      lt_prog_compiler_can_build_shared=no
6534 fi
6535
6536 fi
6537 case "$host_os" in
6538   # For platforms which do not support PIC, -DPIC is meaningless:
6539   *djgpp*)
6540     lt_prog_compiler_pic=
6541     ;;
6542   *)
6543     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6544     ;;
6545 esac
6546
6547 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6548 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
6549 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6550   echo $ECHO_N "(cached) $ECHO_C" >&6
6551 else
6552   lt_cv_prog_compiler_c_o=no
6553    $rm -r conftest 2>/dev/null
6554    mkdir conftest
6555    cd conftest
6556    mkdir out
6557    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6558
6559    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6560    # that will create temporary files in the current directory regardless of
6561    # the output directory.  Thus, making CWD read-only will cause this test
6562    # to fail, enabling locking or at least warning the user not to do parallel
6563    # builds.
6564    chmod -w .
6565
6566    lt_compiler_flag="-o out/conftest2.$ac_objext"
6567    # Insert the option either (1) after the last *FLAGS variable, or
6568    # (2) before a word containing "conftest.", or (3) at the end.
6569    # Note that $ac_compile itself does not contain backslashes and begins
6570    # with a dollar sign (not a hyphen), so the echo should work correctly.
6571    lt_compile=`echo "$ac_compile" | $SED \
6572    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6573    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6574    -e 's:$: $lt_compiler_flag:'`
6575    (eval echo "\"\$as_me:6575: $lt_compile\"" >&5)
6576    (eval "$lt_compile" 2>out/conftest.err)
6577    ac_status=$?
6578    cat out/conftest.err >&5
6579    echo "$as_me:6579: \$? = $ac_status" >&5
6580    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6581    then
6582      # The compiler can only warn and ignore the option if not recognized
6583      # So say no if there are warnings
6584      if test ! -s out/conftest.err; then
6585        lt_cv_prog_compiler_c_o=yes
6586      fi
6587    fi
6588    chmod u+w .
6589    $rm conftest*
6590    # SGI C++ compiler will create directory out/ii_files/ for
6591    # template instantiation
6592    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6593    $rm out/* && rmdir out
6594    cd ..
6595    rmdir conftest
6596    $rm conftest*
6597
6598 fi
6599 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6600 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
6601
6602
6603 hard_links="nottested"
6604 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6605   # do not overwrite the value of need_locks provided by the user
6606   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6607 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
6608   hard_links=yes
6609   $rm conftest*
6610   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6611   touch conftest.a
6612   ln conftest.a conftest.b 2>&5 || hard_links=no
6613   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6614   { echo "$as_me:$LINENO: result: $hard_links" >&5
6615 echo "${ECHO_T}$hard_links" >&6; }
6616   if test "$hard_links" = no; then
6617     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6618 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6619     need_locks=warn
6620   fi
6621 else
6622   need_locks=no
6623 fi
6624
6625 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6626 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
6627
6628   runpath_var=
6629   allow_undefined_flag=
6630   enable_shared_with_static_runtimes=no
6631   archive_cmds=
6632   archive_expsym_cmds=
6633   old_archive_From_new_cmds=
6634   old_archive_from_expsyms_cmds=
6635   export_dynamic_flag_spec=
6636   whole_archive_flag_spec=
6637   thread_safe_flag_spec=
6638   hardcode_libdir_flag_spec=
6639   hardcode_libdir_flag_spec_ld=
6640   hardcode_libdir_separator=
6641   hardcode_direct=no
6642   hardcode_minus_L=no
6643   hardcode_shlibpath_var=unsupported
6644   link_all_deplibs=unknown
6645   hardcode_automatic=no
6646   module_cmds=
6647   module_expsym_cmds=
6648   always_export_symbols=no
6649   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6650   # include_expsyms should be a list of space-separated symbols to be *always*
6651   # included in the symbol list
6652   include_expsyms=
6653   # exclude_expsyms can be an extended regexp of symbols to exclude
6654   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6655   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6656   # as well as any symbol that contains `d'.
6657   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6658   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6659   # platforms (ab)use it in PIC code, but their linkers get confused if
6660   # the symbol is explicitly referenced.  Since portable code cannot
6661   # rely on this symbol name, it's probably fine to never include it in
6662   # preloaded symbol tables.
6663   extract_expsyms_cmds=
6664
6665   case $host_os in
6666   cygwin* | mingw* | pw32*)
6667     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6668     # When not using gcc, we currently assume that we are using
6669     # Microsoft Visual C++.
6670     if test "$GCC" != yes; then
6671       with_gnu_ld=no
6672     fi
6673     ;;
6674   openbsd*)
6675     with_gnu_ld=no
6676     ;;
6677   esac
6678
6679   ld_shlibs=yes
6680   if test "$with_gnu_ld" = yes; then
6681     # If archive_cmds runs LD, not CC, wlarc should be empty
6682     wlarc='${wl}'
6683
6684     # See if GNU ld supports shared libraries.
6685     case $host_os in
6686     aix3* | aix4* | aix5*)
6687       # On AIX/PPC, the GNU linker is very broken
6688       if test "$host_cpu" != ia64; then
6689         ld_shlibs=no
6690         cat <<EOF 1>&2
6691
6692 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6693 *** to be unable to reliably create shared libraries on AIX.
6694 *** Therefore, libtool is disabling shared libraries support.  If you
6695 *** really care for shared libraries, you may want to modify your PATH
6696 *** so that a non-GNU linker is found, and then restart.
6697
6698 EOF
6699       fi
6700       ;;
6701
6702     amigaos*)
6703       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)'
6704       hardcode_libdir_flag_spec='-L$libdir'
6705       hardcode_minus_L=yes
6706
6707       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6708       # that the semantics of dynamic libraries on AmigaOS, at least up
6709       # to version 4, is to share data among multiple programs linked
6710       # with the same dynamic library.  Since this doesn't match the
6711       # behavior of shared libraries on other platforms, we can't use
6712       # them.
6713       ld_shlibs=no
6714       ;;
6715
6716     beos*)
6717       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6718         allow_undefined_flag=unsupported
6719         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6720         # support --undefined.  This deserves some investigation.  FIXME
6721         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6722       else
6723         ld_shlibs=no
6724       fi
6725       ;;
6726
6727     cygwin* | mingw* | pw32*)
6728       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6729       # as there is no search path for DLLs.
6730       hardcode_libdir_flag_spec='-L$libdir'
6731       allow_undefined_flag=unsupported
6732       always_export_symbols=no
6733       enable_shared_with_static_runtimes=yes
6734       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6735
6736       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6737         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6738         # If the export-symbols file already is a .def file (1st line
6739         # is EXPORTS), use it as is; otherwise, prepend...
6740         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6741           cp $export_symbols $output_objdir/$soname.def;
6742         else
6743           echo EXPORTS > $output_objdir/$soname.def;
6744           cat $export_symbols >> $output_objdir/$soname.def;
6745         fi~
6746         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6747       else
6748         ld_shlibs=no
6749       fi
6750       ;;
6751
6752     netbsd*)
6753       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6754         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6755         wlarc=
6756       else
6757         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6758         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6759       fi
6760       ;;
6761
6762     solaris* | sysv5*)
6763       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6764         ld_shlibs=no
6765         cat <<EOF 1>&2
6766
6767 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6768 *** create shared libraries on Solaris systems.  Therefore, libtool
6769 *** is disabling shared libraries support.  We urge you to upgrade GNU
6770 *** binutils to release 2.9.1 or newer.  Another option is to modify
6771 *** your PATH or compiler configuration so that the native linker is
6772 *** used, and then restart.
6773
6774 EOF
6775       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6776         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6777         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6778       else
6779         ld_shlibs=no
6780       fi
6781       ;;
6782
6783     sunos4*)
6784       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6785       wlarc=
6786       hardcode_direct=yes
6787       hardcode_shlibpath_var=no
6788       ;;
6789
6790   linux*)
6791     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6792         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6793         archive_cmds="$tmp_archive_cmds"
6794       supports_anon_versioning=no
6795       case `$LD -v 2>/dev/null` in
6796         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6797         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6798         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6799         *\ 2.11.*) ;; # other 2.11 versions
6800         *) supports_anon_versioning=yes ;;
6801       esac
6802       if test $supports_anon_versioning = yes; then
6803         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6804 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6805 $echo "local: *; };" >> $output_objdir/$libname.ver~
6806         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6807       else
6808         archive_expsym_cmds="$tmp_archive_cmds"
6809       fi
6810     else
6811       ld_shlibs=no
6812     fi
6813     ;;
6814
6815     *)
6816       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6817         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6818         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6819       else
6820         ld_shlibs=no
6821       fi
6822       ;;
6823     esac
6824
6825     if test "$ld_shlibs" = yes; then
6826       runpath_var=LD_RUN_PATH
6827       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6828       export_dynamic_flag_spec='${wl}--export-dynamic'
6829       # ancient GNU ld didn't support --whole-archive et. al.
6830       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6831         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6832       else
6833         whole_archive_flag_spec=
6834       fi
6835     fi
6836   else
6837     # PORTME fill in a description of your system's linker (not GNU ld)
6838     case $host_os in
6839     aix3*)
6840       allow_undefined_flag=unsupported
6841       always_export_symbols=yes
6842       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'
6843       # Note: this linker hardcodes the directories in LIBPATH if there
6844       # are no directories specified by -L.
6845       hardcode_minus_L=yes
6846       if test "$GCC" = yes && test -z "$link_static_flag"; then
6847         # Neither direct hardcoding nor static linking is supported with a
6848         # broken collect2.
6849         hardcode_direct=unsupported
6850       fi
6851       ;;
6852
6853     aix4* | aix5*)
6854       if test "$host_cpu" = ia64; then
6855         # On IA64, the linker does run time linking by default, so we don't
6856         # have to do anything special.
6857         aix_use_runtimelinking=no
6858         exp_sym_flag='-Bexport'
6859         no_entry_flag=""
6860       else
6861         # If we're using GNU nm, then we don't want the "-C" option.
6862         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6863         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6864           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'
6865         else
6866           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'
6867         fi
6868         aix_use_runtimelinking=no
6869
6870         # Test if we are trying to use run time linking or normal
6871         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6872         # need to do runtime linking.
6873         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6874           for ld_flag in $LDFLAGS; do
6875           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6876             aix_use_runtimelinking=yes
6877             break
6878           fi
6879           done
6880         esac
6881
6882         exp_sym_flag='-bexport'
6883         no_entry_flag='-bnoentry'
6884       fi
6885
6886       # When large executables or shared objects are built, AIX ld can
6887       # have problems creating the table of contents.  If linking a library
6888       # or program results in "error TOC overflow" add -mminimal-toc to
6889       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6890       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6891
6892       archive_cmds=''
6893       hardcode_direct=yes
6894       hardcode_libdir_separator=':'
6895       link_all_deplibs=yes
6896
6897       if test "$GCC" = yes; then
6898         case $host_os in aix4.012|aix4.012.*)
6899         # We only want to do this on AIX 4.2 and lower, the check
6900         # below for broken collect2 doesn't work under 4.3+
6901           collect2name=`${CC} -print-prog-name=collect2`
6902           if test -f "$collect2name" && \
6903            strings "$collect2name" | grep resolve_lib_name >/dev/null
6904           then
6905           # We have reworked collect2
6906           hardcode_direct=yes
6907           else
6908           # We have old collect2
6909           hardcode_direct=unsupported
6910           # It fails to find uninstalled libraries when the uninstalled
6911           # path is not listed in the libpath.  Setting hardcode_minus_L
6912           # to unsupported forces relinking
6913           hardcode_minus_L=yes
6914           hardcode_libdir_flag_spec='-L$libdir'
6915           hardcode_libdir_separator=
6916           fi
6917         esac
6918         shared_flag='-shared'
6919       else
6920         # not using gcc
6921         if test "$host_cpu" = ia64; then
6922         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6923         # chokes on -Wl,-G. The following line is correct:
6924           shared_flag='-G'
6925         else
6926         if test "$aix_use_runtimelinking" = yes; then
6927             shared_flag='${wl}-G'
6928           else
6929             shared_flag='${wl}-bM:SRE'
6930         fi
6931         fi
6932       fi
6933
6934       # It seems that -bexpall does not export symbols beginning with
6935       # underscore (_), so it is better to generate a list of symbols to export.
6936       always_export_symbols=yes
6937       if test "$aix_use_runtimelinking" = yes; then
6938         # Warning - without using the other runtime loading flags (-brtl),
6939         # -berok will link without error, but may produce a broken library.
6940         allow_undefined_flag='-berok'
6941        # Determine the default libpath from the value encoded in an empty executable.
6942        cat >conftest.$ac_ext <<_ACEOF
6943 /* confdefs.h.  */
6944 _ACEOF
6945 cat confdefs.h >>conftest.$ac_ext
6946 cat >>conftest.$ac_ext <<_ACEOF
6947 /* end confdefs.h.  */
6948
6949 int
6950 main ()
6951 {
6952
6953   ;
6954   return 0;
6955 }
6956 _ACEOF
6957 rm -f conftest.$ac_objext conftest$ac_exeext
6958 if { (ac_try="$ac_link"
6959 case "(($ac_try" in
6960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6961   *) ac_try_echo=$ac_try;;
6962 esac
6963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6964   (eval "$ac_link") 2>conftest.er1
6965   ac_status=$?
6966   grep -v '^ *+' conftest.er1 >conftest.err
6967   rm -f conftest.er1
6968   cat conftest.err >&5
6969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6970   (exit $ac_status); } && {
6971          test -z "$ac_c_werror_flag" ||
6972          test ! -s conftest.err
6973        } && test -s conftest$ac_exeext &&
6974        $as_test_x conftest$ac_exeext; then
6975
6976 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6977 }'`
6978 # Check for a 64-bit object if we didn't find anything.
6979 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; }
6980 }'`; fi
6981 else
6982   echo "$as_me: failed program was:" >&5
6983 sed 's/^/| /' conftest.$ac_ext >&5
6984
6985
6986 fi
6987
6988 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6989       conftest$ac_exeext conftest.$ac_ext
6990 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6991
6992        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6993         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"
6994        else
6995         if test "$host_cpu" = ia64; then
6996           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6997           allow_undefined_flag="-z nodefs"
6998           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"
6999         else
7000          # Determine the default libpath from the value encoded in an empty executable.
7001          cat >conftest.$ac_ext <<_ACEOF
7002 /* confdefs.h.  */
7003 _ACEOF
7004 cat confdefs.h >>conftest.$ac_ext
7005 cat >>conftest.$ac_ext <<_ACEOF
7006 /* end confdefs.h.  */
7007
7008 int
7009 main ()
7010 {
7011
7012   ;
7013   return 0;
7014 }
7015 _ACEOF
7016 rm -f conftest.$ac_objext conftest$ac_exeext
7017 if { (ac_try="$ac_link"
7018 case "(($ac_try" in
7019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7020   *) ac_try_echo=$ac_try;;
7021 esac
7022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7023   (eval "$ac_link") 2>conftest.er1
7024   ac_status=$?
7025   grep -v '^ *+' conftest.er1 >conftest.err
7026   rm -f conftest.er1
7027   cat conftest.err >&5
7028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7029   (exit $ac_status); } && {
7030          test -z "$ac_c_werror_flag" ||
7031          test ! -s conftest.err
7032        } && test -s conftest$ac_exeext &&
7033        $as_test_x conftest$ac_exeext; then
7034
7035 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7036 }'`
7037 # Check for a 64-bit object if we didn't find anything.
7038 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; }
7039 }'`; fi
7040 else
7041   echo "$as_me: failed program was:" >&5
7042 sed 's/^/| /' conftest.$ac_ext >&5
7043
7044
7045 fi
7046
7047 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7048       conftest$ac_exeext conftest.$ac_ext
7049 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7050
7051          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7052           # Warning - without using the other run time loading flags,
7053           # -berok will link without error, but may produce a broken library.
7054           no_undefined_flag=' ${wl}-bernotok'
7055           allow_undefined_flag=' ${wl}-berok'
7056           # -bexpall does not export symbols beginning with underscore (_)
7057           always_export_symbols=yes
7058           # Exported symbols can be pulled into shared objects from archives
7059           whole_archive_flag_spec=' '
7060           archive_cmds_need_lc=yes
7061           # This is similar to how AIX traditionally builds it's shared libraries.
7062           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'
7063         fi
7064       fi
7065       ;;
7066
7067     amigaos*)
7068       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)'
7069       hardcode_libdir_flag_spec='-L$libdir'
7070       hardcode_minus_L=yes
7071       # see comment about different semantics on the GNU ld section
7072       ld_shlibs=no
7073       ;;
7074
7075     bsdi4*)
7076       export_dynamic_flag_spec=-rdynamic
7077       ;;
7078
7079     cygwin* | mingw* | pw32*)
7080       # When not using gcc, we currently assume that we are using
7081       # Microsoft Visual C++.
7082       # hardcode_libdir_flag_spec is actually meaningless, as there is
7083       # no search path for DLLs.
7084       hardcode_libdir_flag_spec=' '
7085       allow_undefined_flag=unsupported
7086       # Tell ltmain to make .lib files, not .a files.
7087       libext=lib
7088       # Tell ltmain to make .dll files, not .so files.
7089       shrext=".dll"
7090       # FIXME: Setting linknames here is a bad hack.
7091       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7092       # The linker will automatically build a .lib file if we build a DLL.
7093       old_archive_From_new_cmds='true'
7094       # FIXME: Should let the user specify the lib program.
7095       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7096       fix_srcfile_path='`cygpath -w "$srcfile"`'
7097       enable_shared_with_static_runtimes=yes
7098       ;;
7099
7100     darwin* | rhapsody*)
7101     if test "$GXX" = yes ; then
7102       archive_cmds_need_lc=no
7103       case "$host_os" in
7104       rhapsody* | darwin1.[012])
7105         allow_undefined_flag='-undefined suppress'
7106         ;;
7107       *) # Darwin 1.3 on
7108       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7109         allow_undefined_flag='-flat_namespace -undefined suppress'
7110       else
7111         case ${MACOSX_DEPLOYMENT_TARGET} in
7112           10.[012])
7113             allow_undefined_flag='-flat_namespace -undefined suppress'
7114             ;;
7115           10.*)
7116             allow_undefined_flag='-undefined dynamic_lookup'
7117             ;;
7118         esac
7119       fi
7120         ;;
7121       esac
7122         lt_int_apple_cc_single_mod=no
7123         output_verbose_link_cmd='echo'
7124         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7125           lt_int_apple_cc_single_mod=yes
7126         fi
7127         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7128           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7129         else
7130         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'
7131       fi
7132       module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7133       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7134         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7135           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}'
7136         else
7137           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}'
7138         fi
7139           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}'
7140       hardcode_direct=no
7141       hardcode_automatic=yes
7142       hardcode_shlibpath_var=unsupported
7143       whole_archive_flag_spec='-all_load $convenience'
7144       link_all_deplibs=yes
7145     else
7146       ld_shlibs=no
7147     fi
7148       ;;
7149
7150     dgux*)
7151       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7152       hardcode_libdir_flag_spec='-L$libdir'
7153       hardcode_shlibpath_var=no
7154       ;;
7155
7156     freebsd1*)
7157       ld_shlibs=no
7158       ;;
7159
7160     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7161     # support.  Future versions do this automatically, but an explicit c++rt0.o
7162     # does not break anything, and helps significantly (at the cost of a little
7163     # extra space).
7164     freebsd2.2*)
7165       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7166       hardcode_libdir_flag_spec='-R$libdir'
7167       hardcode_direct=yes
7168       hardcode_shlibpath_var=no
7169       ;;
7170
7171     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7172     freebsd2*)
7173       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7174       hardcode_direct=yes
7175       hardcode_minus_L=yes
7176       hardcode_shlibpath_var=no
7177       ;;
7178
7179     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7180     freebsd* | kfreebsd*-gnu)
7181       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7182       hardcode_libdir_flag_spec='-R$libdir'
7183       hardcode_direct=yes
7184       hardcode_shlibpath_var=no
7185       ;;
7186
7187     hpux9*)
7188       if test "$GCC" = yes; then
7189         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'
7190       else
7191         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'
7192       fi
7193       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7194       hardcode_libdir_separator=:
7195       hardcode_direct=yes
7196
7197       # hardcode_minus_L: Not really in the search PATH,
7198       # but as the default location of the library.
7199       hardcode_minus_L=yes
7200       export_dynamic_flag_spec='${wl}-E'
7201       ;;
7202
7203     hpux10* | hpux11*)
7204       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7205         case "$host_cpu" in
7206         hppa*64*|ia64*)
7207           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7208           ;;
7209         *)
7210           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7211           ;;
7212         esac
7213       else
7214         case "$host_cpu" in
7215         hppa*64*|ia64*)
7216           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7217           ;;
7218         *)
7219           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7220           ;;
7221         esac
7222       fi
7223       if test "$with_gnu_ld" = no; then
7224         case "$host_cpu" in
7225         hppa*64*)
7226           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7227           hardcode_libdir_flag_spec_ld='+b $libdir'
7228           hardcode_libdir_separator=:
7229           hardcode_direct=no
7230           hardcode_shlibpath_var=no
7231           ;;
7232         ia64*)
7233           hardcode_libdir_flag_spec='-L$libdir'
7234           hardcode_direct=no
7235           hardcode_shlibpath_var=no
7236
7237           # hardcode_minus_L: Not really in the search PATH,
7238           # but as the default location of the library.
7239           hardcode_minus_L=yes
7240           ;;
7241         *)
7242           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7243           hardcode_libdir_separator=:
7244           hardcode_direct=yes
7245           export_dynamic_flag_spec='${wl}-E'
7246
7247           # hardcode_minus_L: Not really in the search PATH,
7248           # but as the default location of the library.
7249           hardcode_minus_L=yes
7250           ;;
7251         esac
7252       fi
7253       ;;
7254
7255     irix5* | irix6* | nonstopux*)
7256       if test "$GCC" = yes; then
7257         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'
7258       else
7259         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'
7260         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7261       fi
7262       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7263       hardcode_libdir_separator=:
7264       link_all_deplibs=yes
7265       ;;
7266
7267     netbsd*)
7268       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7269         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7270       else
7271         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7272       fi
7273       hardcode_libdir_flag_spec='-R$libdir'
7274       hardcode_direct=yes
7275       hardcode_shlibpath_var=no
7276       ;;
7277
7278     newsos6)
7279       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7280       hardcode_direct=yes
7281       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7282       hardcode_libdir_separator=:
7283       hardcode_shlibpath_var=no
7284       ;;
7285
7286     openbsd*)
7287       hardcode_direct=yes
7288       hardcode_shlibpath_var=no
7289       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7290         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7291         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7292         export_dynamic_flag_spec='${wl}-E'
7293       else
7294        case $host_os in
7295          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7296            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7297            hardcode_libdir_flag_spec='-R$libdir'
7298            ;;
7299          *)
7300            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7301            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7302            ;;
7303        esac
7304       fi
7305       ;;
7306
7307     os2*)
7308       hardcode_libdir_flag_spec='-L$libdir'
7309       hardcode_minus_L=yes
7310       allow_undefined_flag=unsupported
7311       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'
7312       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7313       ;;
7314
7315     osf3*)
7316       if test "$GCC" = yes; then
7317         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7318         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'
7319       else
7320         allow_undefined_flag=' -expect_unresolved \*'
7321         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'
7322       fi
7323       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7324       hardcode_libdir_separator=:
7325       ;;
7326
7327     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7328       if test "$GCC" = yes; then
7329         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7330         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'
7331         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7332       else
7333         allow_undefined_flag=' -expect_unresolved \*'
7334         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'
7335         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7336         $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'
7337
7338         # Both c and cxx compiler support -rpath directly
7339         hardcode_libdir_flag_spec='-rpath $libdir'
7340       fi
7341       hardcode_libdir_separator=:
7342       ;;
7343
7344     sco3.2v5*)
7345       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7346       hardcode_shlibpath_var=no
7347       export_dynamic_flag_spec='${wl}-Bexport'
7348       runpath_var=LD_RUN_PATH
7349       hardcode_runpath_var=yes
7350       ;;
7351
7352     solaris*)
7353       no_undefined_flag=' -z text'
7354       if test "$GCC" = yes; then
7355         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7356         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7357           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7358       else
7359         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7360         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7361         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7362       fi
7363       hardcode_libdir_flag_spec='-R$libdir'
7364       hardcode_shlibpath_var=no
7365       case $host_os in
7366       solaris2.[0-5] | solaris2.[0-5].*) ;;
7367       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7368         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7369       esac
7370       link_all_deplibs=yes
7371       ;;
7372
7373     sunos4*)
7374       if test "x$host_vendor" = xsequent; then
7375         # Use $CC to link under sequent, because it throws in some extra .o
7376         # files that make .init and .fini sections work.
7377         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7378       else
7379         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7380       fi
7381       hardcode_libdir_flag_spec='-L$libdir'
7382       hardcode_direct=yes
7383       hardcode_minus_L=yes
7384       hardcode_shlibpath_var=no
7385       ;;
7386
7387     sysv4)
7388       case $host_vendor in
7389         sni)
7390           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7391           hardcode_direct=yes # is this really true???
7392         ;;
7393         siemens)
7394           ## LD is ld it makes a PLAMLIB
7395           ## CC just makes a GrossModule.
7396           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7397           reload_cmds='$CC -r -o $output$reload_objs'
7398           hardcode_direct=no
7399         ;;
7400         motorola)
7401           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7402           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7403         ;;
7404       esac
7405       runpath_var='LD_RUN_PATH'
7406       hardcode_shlibpath_var=no
7407       ;;
7408
7409     sysv4.3*)
7410       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7411       hardcode_shlibpath_var=no
7412       export_dynamic_flag_spec='-Bexport'
7413       ;;
7414
7415     sysv4*MP*)
7416       if test -d /usr/nec; then
7417         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7418         hardcode_shlibpath_var=no
7419         runpath_var=LD_RUN_PATH
7420         hardcode_runpath_var=yes
7421         ld_shlibs=yes
7422       fi
7423       ;;
7424
7425     sysv4.2uw2*)
7426       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7427       hardcode_direct=yes
7428       hardcode_minus_L=no
7429       hardcode_shlibpath_var=no
7430       hardcode_runpath_var=yes
7431       runpath_var=LD_RUN_PATH
7432       ;;
7433
7434    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7435       no_undefined_flag='${wl}-z ${wl}text'
7436       if test "$GCC" = yes; then
7437         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7438       else
7439         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7440       fi
7441       runpath_var='LD_RUN_PATH'
7442       hardcode_shlibpath_var=no
7443       ;;
7444
7445     sysv5*)
7446       no_undefined_flag=' -z text'
7447       # $CC -shared without GNU ld will not create a library from C++
7448       # object files and a static libstdc++, better avoid it by now
7449       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7450       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7451                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7452       hardcode_libdir_flag_spec=
7453       hardcode_shlibpath_var=no
7454       runpath_var='LD_RUN_PATH'
7455       ;;
7456
7457     uts4*)
7458       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7459       hardcode_libdir_flag_spec='-L$libdir'
7460       hardcode_shlibpath_var=no
7461       ;;
7462
7463     *)
7464       ld_shlibs=no
7465       ;;
7466     esac
7467   fi
7468
7469 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7470 echo "${ECHO_T}$ld_shlibs" >&6; }
7471 test "$ld_shlibs" = no && can_build_shared=no
7472
7473 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7474 if test "$GCC" = yes; then
7475   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7476 fi
7477
7478 #
7479 # Do we need to explicitly link libc?
7480 #
7481 case "x$archive_cmds_need_lc" in
7482 x|xyes)
7483   # Assume -lc should be added
7484   archive_cmds_need_lc=yes
7485
7486   if test "$enable_shared" = yes && test "$GCC" = yes; then
7487     case $archive_cmds in
7488     *'~'*)
7489       # FIXME: we may have to deal with multi-command sequences.
7490       ;;
7491     '$CC '*)
7492       # Test whether the compiler implicitly links with -lc since on some
7493       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7494       # to ld, don't add -lc before -lgcc.
7495       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7496 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
7497       $rm conftest*
7498       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7499
7500       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7501   (eval $ac_compile) 2>&5
7502   ac_status=$?
7503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7504   (exit $ac_status); } 2>conftest.err; then
7505         soname=conftest
7506         lib=conftest
7507         libobjs=conftest.$ac_objext
7508         deplibs=
7509         wl=$lt_prog_compiler_wl
7510         compiler_flags=-v
7511         linker_flags=-v
7512         verstring=
7513         output_objdir=.
7514         libname=conftest
7515         lt_save_allow_undefined_flag=$allow_undefined_flag
7516         allow_undefined_flag=
7517         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7518   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7519   ac_status=$?
7520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7521   (exit $ac_status); }
7522         then
7523           archive_cmds_need_lc=no
7524         else
7525           archive_cmds_need_lc=yes
7526         fi
7527         allow_undefined_flag=$lt_save_allow_undefined_flag
7528       else
7529         cat conftest.err 1>&5
7530       fi
7531       $rm conftest*
7532       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7533 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
7534       ;;
7535     esac
7536   fi
7537   ;;
7538 esac
7539
7540 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7541 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
7542 library_names_spec=
7543 libname_spec='lib$name'
7544 soname_spec=
7545 shrext=".so"
7546 postinstall_cmds=
7547 postuninstall_cmds=
7548 finish_cmds=
7549 finish_eval=
7550 shlibpath_var=
7551 shlibpath_overrides_runpath=unknown
7552 version_type=none
7553 dynamic_linker="$host_os ld.so"
7554 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7555 if test "$GCC" = yes; then
7556   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7557   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7558     # if the path contains ";" then we assume it to be the separator
7559     # otherwise default to the standard path separator (i.e. ":") - it is
7560     # assumed that no part of a normal pathname contains ";" but that should
7561     # okay in the real world where ";" in dirpaths is itself problematic.
7562     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7563   else
7564     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7565   fi
7566 else
7567   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7568 fi
7569 need_lib_prefix=unknown
7570 hardcode_into_libs=no
7571
7572 # when you set need_version to no, make sure it does not cause -set_version
7573 # flags to be left without arguments
7574 need_version=unknown
7575
7576 case $host_os in
7577 aix3*)
7578   version_type=linux
7579   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7580   shlibpath_var=LIBPATH
7581
7582   # AIX 3 has no versioning support, so we append a major version to the name.
7583   soname_spec='${libname}${release}${shared_ext}$major'
7584   ;;
7585
7586 aix4* | aix5*)
7587   version_type=linux
7588   need_lib_prefix=no
7589   need_version=no
7590   hardcode_into_libs=yes
7591   if test "$host_cpu" = ia64; then
7592     # AIX 5 supports IA64
7593     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7594     shlibpath_var=LD_LIBRARY_PATH
7595   else
7596     # With GCC up to 2.95.x, collect2 would create an import file
7597     # for dependence libraries.  The import file would start with
7598     # the line `#! .'.  This would cause the generated library to
7599     # depend on `.', always an invalid library.  This was fixed in
7600     # development snapshots of GCC prior to 3.0.
7601     case $host_os in
7602       aix4 | aix4.[01] | aix4.[01].*)
7603       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7604            echo ' yes '
7605            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7606         :
7607       else
7608         can_build_shared=no
7609       fi
7610       ;;
7611     esac
7612     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7613     # soname into executable. Probably we can add versioning support to
7614     # collect2, so additional links can be useful in future.
7615     if test "$aix_use_runtimelinking" = yes; then
7616       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7617       # instead of lib<name>.a to let people know that these are not
7618       # typical AIX shared libraries.
7619       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7620     else
7621       # We preserve .a as extension for shared libraries through AIX4.2
7622       # and later when we are not doing run time linking.
7623       library_names_spec='${libname}${release}.a $libname.a'
7624       soname_spec='${libname}${release}${shared_ext}$major'
7625     fi
7626     shlibpath_var=LIBPATH
7627   fi
7628   ;;
7629
7630 amigaos*)
7631   library_names_spec='$libname.ixlibrary $libname.a'
7632   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7633   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'
7634   ;;
7635
7636 beos*)
7637   library_names_spec='${libname}${shared_ext}'
7638   dynamic_linker="$host_os ld.so"
7639   shlibpath_var=LIBRARY_PATH
7640   ;;
7641
7642 bsdi4*)
7643   version_type=linux
7644   need_version=no
7645   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7646   soname_spec='${libname}${release}${shared_ext}$major'
7647   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7648   shlibpath_var=LD_LIBRARY_PATH
7649   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7650   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7651   # the default ld.so.conf also contains /usr/contrib/lib and
7652   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7653   # libtool to hard-code these into programs
7654   ;;
7655
7656 cygwin* | mingw* | pw32*)
7657   version_type=windows
7658   shrext=".dll"
7659   need_version=no
7660   need_lib_prefix=no
7661
7662   case $GCC,$host_os in
7663   yes,cygwin* | yes,mingw* | yes,pw32*)
7664     library_names_spec='$libname.dll.a'
7665     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7666     postinstall_cmds='base_file=`basename \${file}`~
7667       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7668       dldir=$destdir/`dirname \$dlpath`~
7669       test -d \$dldir || mkdir -p \$dldir~
7670       $install_prog $dir/$dlname \$dldir/$dlname'
7671     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7672       dlpath=$dir/\$dldll~
7673        $rm \$dlpath'
7674     shlibpath_overrides_runpath=yes
7675
7676     case $host_os in
7677     cygwin*)
7678       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7679       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7680       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7681       ;;
7682     mingw*)
7683       # MinGW DLLs use traditional 'lib' prefix
7684       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7685       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7686       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7687         # It is most probably a Windows format PATH printed by
7688         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7689         # path with ; separators, and with drive letters. We can handle the
7690         # drive letters (cygwin fileutils understands them), so leave them,
7691         # especially as we might pass files found there to a mingw objdump,
7692         # which wouldn't understand a cygwinified path. Ahh.
7693         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7694       else
7695         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7696       fi
7697       ;;
7698     pw32*)
7699       # pw32 DLLs use 'pw' prefix rather than 'lib'
7700       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7701       ;;
7702     esac
7703     ;;
7704
7705   *)
7706     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7707     ;;
7708   esac
7709   dynamic_linker='Win32 ld.exe'
7710   # FIXME: first we should search . and the directory the executable is in
7711   shlibpath_var=PATH
7712   ;;
7713
7714 darwin* | rhapsody*)
7715   dynamic_linker="$host_os dyld"
7716   version_type=darwin
7717   need_lib_prefix=no
7718   need_version=no
7719   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7720   soname_spec='${libname}${release}${major}$shared_ext'
7721   shlibpath_overrides_runpath=yes
7722   shlibpath_var=DYLD_LIBRARY_PATH
7723   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7724   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7725   if test "$GCC" = yes; then
7726     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"`
7727   else
7728     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7729   fi
7730   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7731   ;;
7732
7733 dgux*)
7734   version_type=linux
7735   need_lib_prefix=no
7736   need_version=no
7737   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7738   soname_spec='${libname}${release}${shared_ext}$major'
7739   shlibpath_var=LD_LIBRARY_PATH
7740   ;;
7741
7742 freebsd1*)
7743   dynamic_linker=no
7744   ;;
7745
7746 kfreebsd*-gnu)
7747   version_type=linux
7748   need_lib_prefix=no
7749   need_version=no
7750   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7751   soname_spec='${libname}${release}${shared_ext}$major'
7752   shlibpath_var=LD_LIBRARY_PATH
7753   shlibpath_overrides_runpath=no
7754   hardcode_into_libs=yes
7755   dynamic_linker='GNU ld.so'
7756   ;;
7757
7758 freebsd*)
7759   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7760   version_type=freebsd-$objformat
7761   case $version_type in
7762     freebsd-elf*)
7763       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7764       need_version=no
7765       need_lib_prefix=no
7766       ;;
7767     freebsd-*)
7768       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7769       need_version=yes
7770       ;;
7771   esac
7772   shlibpath_var=LD_LIBRARY_PATH
7773   case $host_os in
7774   freebsd2*)
7775     shlibpath_overrides_runpath=yes
7776     ;;
7777   freebsd3.01* | freebsdelf3.01*)
7778     shlibpath_overrides_runpath=yes
7779     hardcode_into_libs=yes
7780     ;;
7781   *) # from 3.2 on
7782     shlibpath_overrides_runpath=no
7783     hardcode_into_libs=yes
7784     ;;
7785   esac
7786   ;;
7787
7788 gnu*)
7789   version_type=linux
7790   need_lib_prefix=no
7791   need_version=no
7792   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7793   soname_spec='${libname}${release}${shared_ext}$major'
7794   shlibpath_var=LD_LIBRARY_PATH
7795   hardcode_into_libs=yes
7796   ;;
7797
7798 hpux9* | hpux10* | hpux11*)
7799   # Give a soname corresponding to the major version so that dld.sl refuses to
7800   # link against other versions.
7801   version_type=sunos
7802   need_lib_prefix=no
7803   need_version=no
7804   case "$host_cpu" in
7805   ia64*)
7806     shrext='.so'
7807     hardcode_into_libs=yes
7808     dynamic_linker="$host_os dld.so"
7809     shlibpath_var=LD_LIBRARY_PATH
7810     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7811     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7812     soname_spec='${libname}${release}${shared_ext}$major'
7813     if test "X$HPUX_IA64_MODE" = X32; then
7814       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7815     else
7816       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7817     fi
7818     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7819     ;;
7820    hppa*64*)
7821      shrext='.sl'
7822      hardcode_into_libs=yes
7823      dynamic_linker="$host_os dld.sl"
7824      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7825      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7826      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7827      soname_spec='${libname}${release}${shared_ext}$major'
7828      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7829      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7830      ;;
7831    *)
7832     shrext='.sl'
7833     dynamic_linker="$host_os dld.sl"
7834     shlibpath_var=SHLIB_PATH
7835     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7836     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7837     soname_spec='${libname}${release}${shared_ext}$major'
7838     ;;
7839   esac
7840   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7841   postinstall_cmds='chmod 555 $lib'
7842   ;;
7843
7844 irix5* | irix6* | nonstopux*)
7845   case $host_os in
7846     nonstopux*) version_type=nonstopux ;;
7847     *)
7848         if test "$lt_cv_prog_gnu_ld" = yes; then
7849                 version_type=linux
7850         else
7851                 version_type=irix
7852         fi ;;
7853   esac
7854   need_lib_prefix=no
7855   need_version=no
7856   soname_spec='${libname}${release}${shared_ext}$major'
7857   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7858   case $host_os in
7859   irix5* | nonstopux*)
7860     libsuff= shlibsuff=
7861     ;;
7862   *)
7863     case $LD in # libtool.m4 will add one of these switches to LD
7864     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7865       libsuff= shlibsuff= libmagic=32-bit;;
7866     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7867       libsuff=32 shlibsuff=N32 libmagic=N32;;
7868     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7869       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7870     *) libsuff= shlibsuff= libmagic=never-match;;
7871     esac
7872     ;;
7873   esac
7874   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7875   shlibpath_overrides_runpath=no
7876   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7877   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7878   hardcode_into_libs=yes
7879   ;;
7880
7881 # No shared lib support for Linux oldld, aout, or coff.
7882 linux*oldld* | linux*aout* | linux*coff*)
7883   dynamic_linker=no
7884   ;;
7885
7886 # This must be Linux ELF.
7887 linux*)
7888   version_type=linux
7889   need_lib_prefix=no
7890   need_version=no
7891   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7892   soname_spec='${libname}${release}${shared_ext}$major'
7893   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7894   shlibpath_var=LD_LIBRARY_PATH
7895   shlibpath_overrides_runpath=no
7896   # This implies no fast_install, which is unacceptable.
7897   # Some rework will be needed to allow for fast_install
7898   # before this can be enabled.
7899   hardcode_into_libs=yes
7900
7901   # We used to test for /lib/ld.so.1 and disable shared libraries on
7902   # powerpc, because MkLinux only supported shared libraries with the
7903   # GNU dynamic linker.  Since this was broken with cross compilers,
7904   # most powerpc-linux boxes support dynamic linking these days and
7905   # people can always --disable-shared, the test was removed, and we
7906   # assume the GNU/Linux dynamic linker is in use.
7907   dynamic_linker='GNU/Linux ld.so'
7908   ;;
7909
7910 netbsd*)
7911   version_type=sunos
7912   need_lib_prefix=no
7913   need_version=no
7914   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7915     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7916     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7917     dynamic_linker='NetBSD (a.out) ld.so'
7918   else
7919     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7920     soname_spec='${libname}${release}${shared_ext}$major'
7921     dynamic_linker='NetBSD ld.elf_so'
7922   fi
7923   shlibpath_var=LD_LIBRARY_PATH
7924   shlibpath_overrides_runpath=yes
7925   hardcode_into_libs=yes
7926   ;;
7927
7928 newsos6)
7929   version_type=linux
7930   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7931   shlibpath_var=LD_LIBRARY_PATH
7932   shlibpath_overrides_runpath=yes
7933   ;;
7934
7935 nto-qnx*)
7936   version_type=linux
7937   need_lib_prefix=no
7938   need_version=no
7939   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7940   soname_spec='${libname}${release}${shared_ext}$major'
7941   shlibpath_var=LD_LIBRARY_PATH
7942   shlibpath_overrides_runpath=yes
7943   ;;
7944
7945 openbsd*)
7946   version_type=sunos
7947   need_lib_prefix=no
7948   need_version=no
7949   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7950   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7951   shlibpath_var=LD_LIBRARY_PATH
7952   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7953     case $host_os in
7954       openbsd2.[89] | openbsd2.[89].*)
7955         shlibpath_overrides_runpath=no
7956         ;;
7957       *)
7958         shlibpath_overrides_runpath=yes
7959         ;;
7960       esac
7961   else
7962     shlibpath_overrides_runpath=yes
7963   fi
7964   ;;
7965
7966 os2*)
7967   libname_spec='$name'
7968   shrext=".dll"
7969   need_lib_prefix=no
7970   library_names_spec='$libname${shared_ext} $libname.a'
7971   dynamic_linker='OS/2 ld.exe'
7972   shlibpath_var=LIBPATH
7973   ;;
7974
7975 osf3* | osf4* | osf5*)
7976   version_type=osf
7977   need_lib_prefix=no
7978   need_version=no
7979   soname_spec='${libname}${release}${shared_ext}$major'
7980   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7981   shlibpath_var=LD_LIBRARY_PATH
7982   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7983   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7984   ;;
7985
7986 sco3.2v5*)
7987   version_type=osf
7988   soname_spec='${libname}${release}${shared_ext}$major'
7989   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7990   shlibpath_var=LD_LIBRARY_PATH
7991   ;;
7992
7993 solaris*)
7994   version_type=linux
7995   need_lib_prefix=no
7996   need_version=no
7997   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7998   soname_spec='${libname}${release}${shared_ext}$major'
7999   shlibpath_var=LD_LIBRARY_PATH
8000   shlibpath_overrides_runpath=yes
8001   hardcode_into_libs=yes
8002   # ldd complains unless libraries are executable
8003   postinstall_cmds='chmod +x $lib'
8004   ;;
8005
8006 sunos4*)
8007   version_type=sunos
8008   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8009   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8010   shlibpath_var=LD_LIBRARY_PATH
8011   shlibpath_overrides_runpath=yes
8012   if test "$with_gnu_ld" = yes; then
8013     need_lib_prefix=no
8014   fi
8015   need_version=yes
8016   ;;
8017
8018 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8019   version_type=linux
8020   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8021   soname_spec='${libname}${release}${shared_ext}$major'
8022   shlibpath_var=LD_LIBRARY_PATH
8023   case $host_vendor in
8024     sni)
8025       shlibpath_overrides_runpath=no
8026       need_lib_prefix=no
8027       export_dynamic_flag_spec='${wl}-Blargedynsym'
8028       runpath_var=LD_RUN_PATH
8029       ;;
8030     siemens)
8031       need_lib_prefix=no
8032       ;;
8033     motorola)
8034       need_lib_prefix=no
8035       need_version=no
8036       shlibpath_overrides_runpath=no
8037       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8038       ;;
8039   esac
8040   ;;
8041
8042 sysv4*MP*)
8043   if test -d /usr/nec ;then
8044     version_type=linux
8045     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8046     soname_spec='$libname${shared_ext}.$major'
8047     shlibpath_var=LD_LIBRARY_PATH
8048   fi
8049   ;;
8050
8051 uts4*)
8052   version_type=linux
8053   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8054   soname_spec='${libname}${release}${shared_ext}$major'
8055   shlibpath_var=LD_LIBRARY_PATH
8056   ;;
8057
8058 *)
8059   dynamic_linker=no
8060   ;;
8061 esac
8062 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8063 echo "${ECHO_T}$dynamic_linker" >&6; }
8064 test "$dynamic_linker" = no && can_build_shared=no
8065
8066 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8067 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
8068 hardcode_action=
8069 if test -n "$hardcode_libdir_flag_spec" || \
8070    test -n "$runpath_var " || \
8071    test "X$hardcode_automatic"="Xyes" ; then
8072
8073   # We can hardcode non-existant directories.
8074   if test "$hardcode_direct" != no &&
8075      # If the only mechanism to avoid hardcoding is shlibpath_var, we
8076      # have to relink, otherwise we might link with an installed library
8077      # when we should be linking with a yet-to-be-installed one
8078      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8079      test "$hardcode_minus_L" != no; then
8080     # Linking always hardcodes the temporary library directory.
8081     hardcode_action=relink
8082   else
8083     # We can link without hardcoding, and we can hardcode nonexisting dirs.
8084     hardcode_action=immediate
8085   fi
8086 else
8087   # We cannot hardcode anything, or else we can only hardcode existing
8088   # directories.
8089   hardcode_action=unsupported
8090 fi
8091 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
8092 echo "${ECHO_T}$hardcode_action" >&6; }
8093
8094 if test "$hardcode_action" = relink; then
8095   # Fast installation is not supported
8096   enable_fast_install=no
8097 elif test "$shlibpath_overrides_runpath" = yes ||
8098      test "$enable_shared" = no; then
8099   # Fast installation is not necessary
8100   enable_fast_install=needless
8101 fi
8102
8103 striplib=
8104 old_striplib=
8105 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8106 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
8107 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8108   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8109   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8110   { echo "$as_me:$LINENO: result: yes" >&5
8111 echo "${ECHO_T}yes" >&6; }
8112 else
8113 # FIXME - insert some real tests, host_os isn't really good enough
8114   case $host_os in
8115    darwin*)
8116        if test -n "$STRIP" ; then
8117          striplib="$STRIP -x"
8118          { echo "$as_me:$LINENO: result: yes" >&5
8119 echo "${ECHO_T}yes" >&6; }
8120        else
8121   { echo "$as_me:$LINENO: result: no" >&5
8122 echo "${ECHO_T}no" >&6; }
8123 fi
8124        ;;
8125    *)
8126   { echo "$as_me:$LINENO: result: no" >&5
8127 echo "${ECHO_T}no" >&6; }
8128     ;;
8129   esac
8130 fi
8131
8132 if test "x$enable_dlopen" != xyes; then
8133   enable_dlopen=unknown
8134   enable_dlopen_self=unknown
8135   enable_dlopen_self_static=unknown
8136 else
8137   lt_cv_dlopen=no
8138   lt_cv_dlopen_libs=
8139
8140   case $host_os in
8141   beos*)
8142     lt_cv_dlopen="load_add_on"
8143     lt_cv_dlopen_libs=
8144     lt_cv_dlopen_self=yes
8145     ;;
8146
8147   mingw* | pw32*)
8148     lt_cv_dlopen="LoadLibrary"
8149     lt_cv_dlopen_libs=
8150    ;;
8151
8152   cygwin*)
8153     lt_cv_dlopen="dlopen"
8154     lt_cv_dlopen_libs=
8155    ;;
8156
8157   darwin*)
8158   # if libdl is installed we need to link against it
8159     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8160 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
8161 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8162   echo $ECHO_N "(cached) $ECHO_C" >&6
8163 else
8164   ac_check_lib_save_LIBS=$LIBS
8165 LIBS="-ldl  $LIBS"
8166 cat >conftest.$ac_ext <<_ACEOF
8167 /* confdefs.h.  */
8168 _ACEOF
8169 cat confdefs.h >>conftest.$ac_ext
8170 cat >>conftest.$ac_ext <<_ACEOF
8171 /* end confdefs.h.  */
8172
8173 /* Override any GCC internal prototype to avoid an error.
8174    Use char because int might match the return type of a GCC
8175    builtin and then its argument prototype would still apply.  */
8176 #ifdef __cplusplus
8177 extern "C"
8178 #endif
8179 char dlopen ();
8180 int
8181 main ()
8182 {
8183 return dlopen ();
8184   ;
8185   return 0;
8186 }
8187 _ACEOF
8188 rm -f conftest.$ac_objext conftest$ac_exeext
8189 if { (ac_try="$ac_link"
8190 case "(($ac_try" in
8191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8192   *) ac_try_echo=$ac_try;;
8193 esac
8194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8195   (eval "$ac_link") 2>conftest.er1
8196   ac_status=$?
8197   grep -v '^ *+' conftest.er1 >conftest.err
8198   rm -f conftest.er1
8199   cat conftest.err >&5
8200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8201   (exit $ac_status); } && {
8202          test -z "$ac_c_werror_flag" ||
8203          test ! -s conftest.err
8204        } && test -s conftest$ac_exeext &&
8205        $as_test_x conftest$ac_exeext; then
8206   ac_cv_lib_dl_dlopen=yes
8207 else
8208   echo "$as_me: failed program was:" >&5
8209 sed 's/^/| /' conftest.$ac_ext >&5
8210
8211         ac_cv_lib_dl_dlopen=no
8212 fi
8213
8214 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8215       conftest$ac_exeext conftest.$ac_ext
8216 LIBS=$ac_check_lib_save_LIBS
8217 fi
8218 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8219 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
8220 if test $ac_cv_lib_dl_dlopen = yes; then
8221   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8222 else
8223
8224     lt_cv_dlopen="dyld"
8225     lt_cv_dlopen_libs=
8226     lt_cv_dlopen_self=yes
8227
8228 fi
8229
8230    ;;
8231
8232   *)
8233     { echo "$as_me:$LINENO: checking for shl_load" >&5
8234 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
8235 if test "${ac_cv_func_shl_load+set}" = set; then
8236   echo $ECHO_N "(cached) $ECHO_C" >&6
8237 else
8238   cat >conftest.$ac_ext <<_ACEOF
8239 /* confdefs.h.  */
8240 _ACEOF
8241 cat confdefs.h >>conftest.$ac_ext
8242 cat >>conftest.$ac_ext <<_ACEOF
8243 /* end confdefs.h.  */
8244 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8245    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8246 #define shl_load innocuous_shl_load
8247
8248 /* System header to define __stub macros and hopefully few prototypes,
8249     which can conflict with char shl_load (); below.
8250     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8251     <limits.h> exists even on freestanding compilers.  */
8252
8253 #ifdef __STDC__
8254 # include <limits.h>
8255 #else
8256 # include <assert.h>
8257 #endif
8258
8259 #undef shl_load
8260
8261 /* Override any GCC internal prototype to avoid an error.
8262    Use char because int might match the return type of a GCC
8263    builtin and then its argument prototype would still apply.  */
8264 #ifdef __cplusplus
8265 extern "C"
8266 #endif
8267 char shl_load ();
8268 /* The GNU C library defines this for functions which it implements
8269     to always fail with ENOSYS.  Some functions are actually named
8270     something starting with __ and the normal name is an alias.  */
8271 #if defined __stub_shl_load || defined __stub___shl_load
8272 choke me
8273 #endif
8274
8275 int
8276 main ()
8277 {
8278 return shl_load ();
8279   ;
8280   return 0;
8281 }
8282 _ACEOF
8283 rm -f conftest.$ac_objext conftest$ac_exeext
8284 if { (ac_try="$ac_link"
8285 case "(($ac_try" in
8286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8287   *) ac_try_echo=$ac_try;;
8288 esac
8289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8290   (eval "$ac_link") 2>conftest.er1
8291   ac_status=$?
8292   grep -v '^ *+' conftest.er1 >conftest.err
8293   rm -f conftest.er1
8294   cat conftest.err >&5
8295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8296   (exit $ac_status); } && {
8297          test -z "$ac_c_werror_flag" ||
8298          test ! -s conftest.err
8299        } && test -s conftest$ac_exeext &&
8300        $as_test_x conftest$ac_exeext; then
8301   ac_cv_func_shl_load=yes
8302 else
8303   echo "$as_me: failed program was:" >&5
8304 sed 's/^/| /' conftest.$ac_ext >&5
8305
8306         ac_cv_func_shl_load=no
8307 fi
8308
8309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8310       conftest$ac_exeext conftest.$ac_ext
8311 fi
8312 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8313 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
8314 if test $ac_cv_func_shl_load = yes; then
8315   lt_cv_dlopen="shl_load"
8316 else
8317   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8318 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
8319 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8320   echo $ECHO_N "(cached) $ECHO_C" >&6
8321 else
8322   ac_check_lib_save_LIBS=$LIBS
8323 LIBS="-ldld  $LIBS"
8324 cat >conftest.$ac_ext <<_ACEOF
8325 /* confdefs.h.  */
8326 _ACEOF
8327 cat confdefs.h >>conftest.$ac_ext
8328 cat >>conftest.$ac_ext <<_ACEOF
8329 /* end confdefs.h.  */
8330
8331 /* Override any GCC internal prototype to avoid an error.
8332    Use char because int might match the return type of a GCC
8333    builtin and then its argument prototype would still apply.  */
8334 #ifdef __cplusplus
8335 extern "C"
8336 #endif
8337 char shl_load ();
8338 int
8339 main ()
8340 {
8341 return shl_load ();
8342   ;
8343   return 0;
8344 }
8345 _ACEOF
8346 rm -f conftest.$ac_objext conftest$ac_exeext
8347 if { (ac_try="$ac_link"
8348 case "(($ac_try" in
8349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8350   *) ac_try_echo=$ac_try;;
8351 esac
8352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8353   (eval "$ac_link") 2>conftest.er1
8354   ac_status=$?
8355   grep -v '^ *+' conftest.er1 >conftest.err
8356   rm -f conftest.er1
8357   cat conftest.err >&5
8358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8359   (exit $ac_status); } && {
8360          test -z "$ac_c_werror_flag" ||
8361          test ! -s conftest.err
8362        } && test -s conftest$ac_exeext &&
8363        $as_test_x conftest$ac_exeext; then
8364   ac_cv_lib_dld_shl_load=yes
8365 else
8366   echo "$as_me: failed program was:" >&5
8367 sed 's/^/| /' conftest.$ac_ext >&5
8368
8369         ac_cv_lib_dld_shl_load=no
8370 fi
8371
8372 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8373       conftest$ac_exeext conftest.$ac_ext
8374 LIBS=$ac_check_lib_save_LIBS
8375 fi
8376 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8377 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
8378 if test $ac_cv_lib_dld_shl_load = yes; then
8379   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8380 else
8381   { echo "$as_me:$LINENO: checking for dlopen" >&5
8382 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
8383 if test "${ac_cv_func_dlopen+set}" = set; then
8384   echo $ECHO_N "(cached) $ECHO_C" >&6
8385 else
8386   cat >conftest.$ac_ext <<_ACEOF
8387 /* confdefs.h.  */
8388 _ACEOF
8389 cat confdefs.h >>conftest.$ac_ext
8390 cat >>conftest.$ac_ext <<_ACEOF
8391 /* end confdefs.h.  */
8392 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8393    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8394 #define dlopen innocuous_dlopen
8395
8396 /* System header to define __stub macros and hopefully few prototypes,
8397     which can conflict with char dlopen (); below.
8398     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8399     <limits.h> exists even on freestanding compilers.  */
8400
8401 #ifdef __STDC__
8402 # include <limits.h>
8403 #else
8404 # include <assert.h>
8405 #endif
8406
8407 #undef dlopen
8408
8409 /* Override any GCC internal prototype to avoid an error.
8410    Use char because int might match the return type of a GCC
8411    builtin and then its argument prototype would still apply.  */
8412 #ifdef __cplusplus
8413 extern "C"
8414 #endif
8415 char dlopen ();
8416 /* The GNU C library defines this for functions which it implements
8417     to always fail with ENOSYS.  Some functions are actually named
8418     something starting with __ and the normal name is an alias.  */
8419 #if defined __stub_dlopen || defined __stub___dlopen
8420 choke me
8421 #endif
8422
8423 int
8424 main ()
8425 {
8426 return dlopen ();
8427   ;
8428   return 0;
8429 }
8430 _ACEOF
8431 rm -f conftest.$ac_objext conftest$ac_exeext
8432 if { (ac_try="$ac_link"
8433 case "(($ac_try" in
8434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8435   *) ac_try_echo=$ac_try;;
8436 esac
8437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8438   (eval "$ac_link") 2>conftest.er1
8439   ac_status=$?
8440   grep -v '^ *+' conftest.er1 >conftest.err
8441   rm -f conftest.er1
8442   cat conftest.err >&5
8443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8444   (exit $ac_status); } && {
8445          test -z "$ac_c_werror_flag" ||
8446          test ! -s conftest.err
8447        } && test -s conftest$ac_exeext &&
8448        $as_test_x conftest$ac_exeext; then
8449   ac_cv_func_dlopen=yes
8450 else
8451   echo "$as_me: failed program was:" >&5
8452 sed 's/^/| /' conftest.$ac_ext >&5
8453
8454         ac_cv_func_dlopen=no
8455 fi
8456
8457 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8458       conftest$ac_exeext conftest.$ac_ext
8459 fi
8460 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8461 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
8462 if test $ac_cv_func_dlopen = yes; then
8463   lt_cv_dlopen="dlopen"
8464 else
8465   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8466 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
8467 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8468   echo $ECHO_N "(cached) $ECHO_C" >&6
8469 else
8470   ac_check_lib_save_LIBS=$LIBS
8471 LIBS="-ldl  $LIBS"
8472 cat >conftest.$ac_ext <<_ACEOF
8473 /* confdefs.h.  */
8474 _ACEOF
8475 cat confdefs.h >>conftest.$ac_ext
8476 cat >>conftest.$ac_ext <<_ACEOF
8477 /* end confdefs.h.  */
8478
8479 /* Override any GCC internal prototype to avoid an error.
8480    Use char because int might match the return type of a GCC
8481    builtin and then its argument prototype would still apply.  */
8482 #ifdef __cplusplus
8483 extern "C"
8484 #endif
8485 char dlopen ();
8486 int
8487 main ()
8488 {
8489 return dlopen ();
8490   ;
8491   return 0;
8492 }
8493 _ACEOF
8494 rm -f conftest.$ac_objext conftest$ac_exeext
8495 if { (ac_try="$ac_link"
8496 case "(($ac_try" in
8497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8498   *) ac_try_echo=$ac_try;;
8499 esac
8500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8501   (eval "$ac_link") 2>conftest.er1
8502   ac_status=$?
8503   grep -v '^ *+' conftest.er1 >conftest.err
8504   rm -f conftest.er1
8505   cat conftest.err >&5
8506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8507   (exit $ac_status); } && {
8508          test -z "$ac_c_werror_flag" ||
8509          test ! -s conftest.err
8510        } && test -s conftest$ac_exeext &&
8511        $as_test_x conftest$ac_exeext; then
8512   ac_cv_lib_dl_dlopen=yes
8513 else
8514   echo "$as_me: failed program was:" >&5
8515 sed 's/^/| /' conftest.$ac_ext >&5
8516
8517         ac_cv_lib_dl_dlopen=no
8518 fi
8519
8520 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8521       conftest$ac_exeext conftest.$ac_ext
8522 LIBS=$ac_check_lib_save_LIBS
8523 fi
8524 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8525 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
8526 if test $ac_cv_lib_dl_dlopen = yes; then
8527   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8528 else
8529   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8530 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
8531 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8532   echo $ECHO_N "(cached) $ECHO_C" >&6
8533 else
8534   ac_check_lib_save_LIBS=$LIBS
8535 LIBS="-lsvld  $LIBS"
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
8543 /* Override any GCC internal prototype to avoid an error.
8544    Use char because int might match the return type of a GCC
8545    builtin and then its argument prototype would still apply.  */
8546 #ifdef __cplusplus
8547 extern "C"
8548 #endif
8549 char dlopen ();
8550 int
8551 main ()
8552 {
8553 return dlopen ();
8554   ;
8555   return 0;
8556 }
8557 _ACEOF
8558 rm -f conftest.$ac_objext conftest$ac_exeext
8559 if { (ac_try="$ac_link"
8560 case "(($ac_try" in
8561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8562   *) ac_try_echo=$ac_try;;
8563 esac
8564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8565   (eval "$ac_link") 2>conftest.er1
8566   ac_status=$?
8567   grep -v '^ *+' conftest.er1 >conftest.err
8568   rm -f conftest.er1
8569   cat conftest.err >&5
8570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8571   (exit $ac_status); } && {
8572          test -z "$ac_c_werror_flag" ||
8573          test ! -s conftest.err
8574        } && test -s conftest$ac_exeext &&
8575        $as_test_x conftest$ac_exeext; then
8576   ac_cv_lib_svld_dlopen=yes
8577 else
8578   echo "$as_me: failed program was:" >&5
8579 sed 's/^/| /' conftest.$ac_ext >&5
8580
8581         ac_cv_lib_svld_dlopen=no
8582 fi
8583
8584 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8585       conftest$ac_exeext conftest.$ac_ext
8586 LIBS=$ac_check_lib_save_LIBS
8587 fi
8588 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8589 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
8590 if test $ac_cv_lib_svld_dlopen = yes; then
8591   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8592 else
8593   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8594 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
8595 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8596   echo $ECHO_N "(cached) $ECHO_C" >&6
8597 else
8598   ac_check_lib_save_LIBS=$LIBS
8599 LIBS="-ldld  $LIBS"
8600 cat >conftest.$ac_ext <<_ACEOF
8601 /* confdefs.h.  */
8602 _ACEOF
8603 cat confdefs.h >>conftest.$ac_ext
8604 cat >>conftest.$ac_ext <<_ACEOF
8605 /* end confdefs.h.  */
8606
8607 /* Override any GCC internal prototype to avoid an error.
8608    Use char because int might match the return type of a GCC
8609    builtin and then its argument prototype would still apply.  */
8610 #ifdef __cplusplus
8611 extern "C"
8612 #endif
8613 char dld_link ();
8614 int
8615 main ()
8616 {
8617 return dld_link ();
8618   ;
8619   return 0;
8620 }
8621 _ACEOF
8622 rm -f conftest.$ac_objext conftest$ac_exeext
8623 if { (ac_try="$ac_link"
8624 case "(($ac_try" in
8625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8626   *) ac_try_echo=$ac_try;;
8627 esac
8628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8629   (eval "$ac_link") 2>conftest.er1
8630   ac_status=$?
8631   grep -v '^ *+' conftest.er1 >conftest.err
8632   rm -f conftest.er1
8633   cat conftest.err >&5
8634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8635   (exit $ac_status); } && {
8636          test -z "$ac_c_werror_flag" ||
8637          test ! -s conftest.err
8638        } && test -s conftest$ac_exeext &&
8639        $as_test_x conftest$ac_exeext; then
8640   ac_cv_lib_dld_dld_link=yes
8641 else
8642   echo "$as_me: failed program was:" >&5
8643 sed 's/^/| /' conftest.$ac_ext >&5
8644
8645         ac_cv_lib_dld_dld_link=no
8646 fi
8647
8648 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8649       conftest$ac_exeext conftest.$ac_ext
8650 LIBS=$ac_check_lib_save_LIBS
8651 fi
8652 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8653 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
8654 if test $ac_cv_lib_dld_dld_link = yes; then
8655   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8656 fi
8657
8658
8659 fi
8660
8661
8662 fi
8663
8664
8665 fi
8666
8667
8668 fi
8669
8670
8671 fi
8672
8673     ;;
8674   esac
8675
8676   if test "x$lt_cv_dlopen" != xno; then
8677     enable_dlopen=yes
8678   else
8679     enable_dlopen=no
8680   fi
8681
8682   case $lt_cv_dlopen in
8683   dlopen)
8684     save_CPPFLAGS="$CPPFLAGS"
8685     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8686
8687     save_LDFLAGS="$LDFLAGS"
8688     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8689
8690     save_LIBS="$LIBS"
8691     LIBS="$lt_cv_dlopen_libs $LIBS"
8692
8693     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8694 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
8695 if test "${lt_cv_dlopen_self+set}" = set; then
8696   echo $ECHO_N "(cached) $ECHO_C" >&6
8697 else
8698           if test "$cross_compiling" = yes; then :
8699   lt_cv_dlopen_self=cross
8700 else
8701   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8702   lt_status=$lt_dlunknown
8703   cat > conftest.$ac_ext <<EOF
8704 #line 8704 "configure"
8705 #include "confdefs.h"
8706
8707 #if HAVE_DLFCN_H
8708 #include <dlfcn.h>
8709 #endif
8710
8711 #include <stdio.h>
8712
8713 #ifdef RTLD_GLOBAL
8714 #  define LT_DLGLOBAL           RTLD_GLOBAL
8715 #else
8716 #  ifdef DL_GLOBAL
8717 #    define LT_DLGLOBAL         DL_GLOBAL
8718 #  else
8719 #    define LT_DLGLOBAL         0
8720 #  endif
8721 #endif
8722
8723 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8724    find out it does not work in some platform. */
8725 #ifndef LT_DLLAZY_OR_NOW
8726 #  ifdef RTLD_LAZY
8727 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8728 #  else
8729 #    ifdef DL_LAZY
8730 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8731 #    else
8732 #      ifdef RTLD_NOW
8733 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8734 #      else
8735 #        ifdef DL_NOW
8736 #          define LT_DLLAZY_OR_NOW      DL_NOW
8737 #        else
8738 #          define LT_DLLAZY_OR_NOW      0
8739 #        endif
8740 #      endif
8741 #    endif
8742 #  endif
8743 #endif
8744
8745 #ifdef __cplusplus
8746 extern "C" void exit (int);
8747 #endif
8748
8749 void fnord() { int i=42;}
8750 int main ()
8751 {
8752   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8753   int status = $lt_dlunknown;
8754
8755   if (self)
8756     {
8757       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8758       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8759       /* dlclose (self); */
8760     }
8761
8762     exit (status);
8763 }
8764 EOF
8765   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8766   (eval $ac_link) 2>&5
8767   ac_status=$?
8768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8769   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8770     (./conftest; exit; ) 2>/dev/null
8771     lt_status=$?
8772     case x$lt_status in
8773       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8774       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8775       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8776     esac
8777   else :
8778     # compilation failed
8779     lt_cv_dlopen_self=no
8780   fi
8781 fi
8782 rm -fr conftest*
8783
8784
8785 fi
8786 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8787 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
8788
8789     if test "x$lt_cv_dlopen_self" = xyes; then
8790       LDFLAGS="$LDFLAGS $link_static_flag"
8791       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8792 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
8793 if test "${lt_cv_dlopen_self_static+set}" = set; then
8794   echo $ECHO_N "(cached) $ECHO_C" >&6
8795 else
8796           if test "$cross_compiling" = yes; then :
8797   lt_cv_dlopen_self_static=cross
8798 else
8799   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8800   lt_status=$lt_dlunknown
8801   cat > conftest.$ac_ext <<EOF
8802 #line 8802 "configure"
8803 #include "confdefs.h"
8804
8805 #if HAVE_DLFCN_H
8806 #include <dlfcn.h>
8807 #endif
8808
8809 #include <stdio.h>
8810
8811 #ifdef RTLD_GLOBAL
8812 #  define LT_DLGLOBAL           RTLD_GLOBAL
8813 #else
8814 #  ifdef DL_GLOBAL
8815 #    define LT_DLGLOBAL         DL_GLOBAL
8816 #  else
8817 #    define LT_DLGLOBAL         0
8818 #  endif
8819 #endif
8820
8821 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8822    find out it does not work in some platform. */
8823 #ifndef LT_DLLAZY_OR_NOW
8824 #  ifdef RTLD_LAZY
8825 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8826 #  else
8827 #    ifdef DL_LAZY
8828 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8829 #    else
8830 #      ifdef RTLD_NOW
8831 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8832 #      else
8833 #        ifdef DL_NOW
8834 #          define LT_DLLAZY_OR_NOW      DL_NOW
8835 #        else
8836 #          define LT_DLLAZY_OR_NOW      0
8837 #        endif
8838 #      endif
8839 #    endif
8840 #  endif
8841 #endif
8842
8843 #ifdef __cplusplus
8844 extern "C" void exit (int);
8845 #endif
8846
8847 void fnord() { int i=42;}
8848 int main ()
8849 {
8850   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8851   int status = $lt_dlunknown;
8852
8853   if (self)
8854     {
8855       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8856       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8857       /* dlclose (self); */
8858     }
8859
8860     exit (status);
8861 }
8862 EOF
8863   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8864   (eval $ac_link) 2>&5
8865   ac_status=$?
8866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8867   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8868     (./conftest; exit; ) 2>/dev/null
8869     lt_status=$?
8870     case x$lt_status in
8871       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8872       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8873       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8874     esac
8875   else :
8876     # compilation failed
8877     lt_cv_dlopen_self_static=no
8878   fi
8879 fi
8880 rm -fr conftest*
8881
8882
8883 fi
8884 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8885 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
8886     fi
8887
8888     CPPFLAGS="$save_CPPFLAGS"
8889     LDFLAGS="$save_LDFLAGS"
8890     LIBS="$save_LIBS"
8891     ;;
8892   esac
8893
8894   case $lt_cv_dlopen_self in
8895   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8896   *) enable_dlopen_self=unknown ;;
8897   esac
8898
8899   case $lt_cv_dlopen_self_static in
8900   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8901   *) enable_dlopen_self_static=unknown ;;
8902   esac
8903 fi
8904
8905
8906 # Report which librarie types wil actually be built
8907 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8908 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
8909 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
8910 echo "${ECHO_T}$can_build_shared" >&6; }
8911
8912 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8913 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
8914 test "$can_build_shared" = "no" && enable_shared=no
8915
8916 # On AIX, shared libraries and static libraries use the same namespace, and
8917 # are all built from PIC.
8918 case "$host_os" in
8919 aix3*)
8920   test "$enable_shared" = yes && enable_static=no
8921   if test -n "$RANLIB"; then
8922     archive_cmds="$archive_cmds~\$RANLIB \$lib"
8923     postinstall_cmds='$RANLIB $lib'
8924   fi
8925   ;;
8926
8927 aix4*)
8928   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8929     test "$enable_shared" = yes && enable_static=no
8930   fi
8931   ;;
8932   darwin* | rhapsody*)
8933   if test "$GCC" = yes; then
8934     archive_cmds_need_lc=no
8935     case "$host_os" in
8936     rhapsody* | darwin1.[012])
8937       allow_undefined_flag='-undefined suppress'
8938       ;;
8939     *) # Darwin 1.3 on
8940       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8941         allow_undefined_flag='-flat_namespace -undefined suppress'
8942       else
8943         case ${MACOSX_DEPLOYMENT_TARGET} in
8944           10.[012])
8945             allow_undefined_flag='-flat_namespace -undefined suppress'
8946             ;;
8947           10.*)
8948             allow_undefined_flag='-undefined dynamic_lookup'
8949             ;;
8950         esac
8951       fi
8952       ;;
8953     esac
8954     output_verbose_link_cmd='echo'
8955     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8956     module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8957     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8958     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}'
8959     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}'
8960     hardcode_direct=no
8961     hardcode_automatic=yes
8962     hardcode_shlibpath_var=unsupported
8963     whole_archive_flag_spec='-all_load $convenience'
8964     link_all_deplibs=yes
8965   else
8966     ld_shlibs=no
8967   fi
8968     ;;
8969 esac
8970 { echo "$as_me:$LINENO: result: $enable_shared" >&5
8971 echo "${ECHO_T}$enable_shared" >&6; }
8972
8973 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8974 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
8975 # Make sure either enable_shared or enable_static is yes.
8976 test "$enable_shared" = yes || enable_static=yes
8977 { echo "$as_me:$LINENO: result: $enable_static" >&5
8978 echo "${ECHO_T}$enable_static" >&6; }
8979
8980 # The else clause should only fire when bootstrapping the
8981 # libtool distribution, otherwise you forgot to ship ltmain.sh
8982 # with your package, and you will get complaints that there are
8983 # no rules to generate ltmain.sh.
8984 if test -f "$ltmain"; then
8985   # See if we are running on zsh, and set the options which allow our commands through
8986   # without removal of \ escapes.
8987   if test -n "${ZSH_VERSION+set}" ; then
8988     setopt NO_GLOB_SUBST
8989   fi
8990   # Now quote all the things that may contain metacharacters while being
8991   # careful not to overquote the AC_SUBSTed values.  We take copies of the
8992   # variables and quote the copies for generation of the libtool script.
8993   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
8994     SED SHELL STRIP \
8995     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8996     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8997     deplibs_check_method reload_flag reload_cmds need_locks \
8998     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8999     lt_cv_sys_global_symbol_to_c_name_address \
9000     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9001     old_postinstall_cmds old_postuninstall_cmds \
9002     compiler \
9003     CC \
9004     LD \
9005     lt_prog_compiler_wl \
9006     lt_prog_compiler_pic \
9007     lt_prog_compiler_static \
9008     lt_prog_compiler_no_builtin_flag \
9009     export_dynamic_flag_spec \
9010     thread_safe_flag_spec \
9011     whole_archive_flag_spec \
9012     enable_shared_with_static_runtimes \
9013     old_archive_cmds \
9014     old_archive_from_new_cmds \
9015     predep_objects \
9016     postdep_objects \
9017     predeps \
9018     postdeps \
9019     compiler_lib_search_path \
9020     archive_cmds \
9021     archive_expsym_cmds \
9022     postinstall_cmds \
9023     postuninstall_cmds \
9024     old_archive_from_expsyms_cmds \
9025     allow_undefined_flag \
9026     no_undefined_flag \
9027     export_symbols_cmds \
9028     hardcode_libdir_flag_spec \
9029     hardcode_libdir_flag_spec_ld \
9030     hardcode_libdir_separator \
9031     hardcode_automatic \
9032     module_cmds \
9033     module_expsym_cmds \
9034     lt_cv_prog_compiler_c_o \
9035     exclude_expsyms \
9036     include_expsyms; do
9037
9038     case $var in
9039     old_archive_cmds | \
9040     old_archive_from_new_cmds | \
9041     archive_cmds | \
9042     archive_expsym_cmds | \
9043     module_cmds | \
9044     module_expsym_cmds | \
9045     old_archive_from_expsyms_cmds | \
9046     export_symbols_cmds | \
9047     extract_expsyms_cmds | reload_cmds | finish_cmds | \
9048     postinstall_cmds | postuninstall_cmds | \
9049     old_postinstall_cmds | old_postuninstall_cmds | \
9050     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9051       # Double-quote double-evaled strings.
9052       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9053       ;;
9054     *)
9055       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9056       ;;
9057     esac
9058   done
9059
9060   case $lt_echo in
9061   *'\$0 --fallback-echo"')
9062     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9063     ;;
9064   esac
9065
9066 cfgfile="${ofile}T"
9067   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9068   $rm -f "$cfgfile"
9069   { echo "$as_me:$LINENO: creating $ofile" >&5
9070 echo "$as_me: creating $ofile" >&6;}
9071
9072   cat <<__EOF__ >> "$cfgfile"
9073 #! $SHELL
9074
9075 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9076 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9077 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9078 #
9079 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9080 # Free Software Foundation, Inc.
9081 #
9082 # This file is part of GNU Libtool:
9083 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9084 #
9085 # This program is free software; you can redistribute it and/or modify
9086 # it under the terms of the GNU General Public License as published by
9087 # the Free Software Foundation; either version 2 of the License, or
9088 # (at your option) any later version.
9089 #
9090 # This program is distributed in the hope that it will be useful, but
9091 # WITHOUT ANY WARRANTY; without even the implied warranty of
9092 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9093 # General Public License for more details.
9094 #
9095 # You should have received a copy of the GNU General Public License
9096 # along with this program; if not, write to the Free Software
9097 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9098 #
9099 # As a special exception to the GNU General Public License, if you
9100 # distribute this file as part of a program that contains a
9101 # configuration script generated by Autoconf, you may include it under
9102 # the same distribution terms that you use for the rest of that program.
9103
9104 # A sed program that does not truncate output.
9105 SED=$lt_SED
9106
9107 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9108 Xsed="$SED -e s/^X//"
9109
9110 # The HP-UX ksh and POSIX shell print the target directory to stdout
9111 # if CDPATH is set.
9112 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9113
9114 # The names of the tagged configurations supported by this script.
9115 available_tags=
9116
9117 # ### BEGIN LIBTOOL CONFIG
9118
9119 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9120
9121 # Shell to use when invoking shell scripts.
9122 SHELL=$lt_SHELL
9123
9124 # Whether or not to build shared libraries.
9125 build_libtool_libs=$enable_shared
9126
9127 # Whether or not to build static libraries.
9128 build_old_libs=$enable_static
9129
9130 # Whether or not to add -lc for building shared libraries.
9131 build_libtool_need_lc=$archive_cmds_need_lc
9132
9133 # Whether or not to disallow shared libs when runtime libs are static
9134 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9135
9136 # Whether or not to optimize for fast installation.
9137 fast_install=$enable_fast_install
9138
9139 # The host system.
9140 host_alias=$host_alias
9141 host=$host
9142
9143 # An echo program that does not interpret backslashes.
9144 echo=$lt_echo
9145
9146 # The archiver.
9147 AR=$lt_AR
9148 AR_FLAGS=$lt_AR_FLAGS
9149
9150 # A C compiler.
9151 LTCC=$lt_LTCC
9152
9153 # A language-specific compiler.
9154 CC=$lt_compiler
9155
9156 # Is the compiler the GNU C compiler?
9157 with_gcc=$GCC
9158
9159 # An ERE matcher.
9160 EGREP=$lt_EGREP
9161
9162 # The linker used to build libraries.
9163 LD=$lt_LD
9164
9165 # Whether we need hard or soft links.
9166 LN_S=$lt_LN_S
9167
9168 # A BSD-compatible nm program.
9169 NM=$lt_NM
9170
9171 # A symbol stripping program
9172 STRIP=$lt_STRIP
9173
9174 # Used to examine libraries when file_magic_cmd begins "file"
9175 MAGIC_CMD=$MAGIC_CMD
9176
9177 # Used on cygwin: DLL creation program.
9178 DLLTOOL="$DLLTOOL"
9179
9180 # Used on cygwin: object dumper.
9181 OBJDUMP="$OBJDUMP"
9182
9183 # Used on cygwin: assembler.
9184 AS="$AS"
9185
9186 # The name of the directory that contains temporary libtool files.
9187 objdir=$objdir
9188
9189 # How to create reloadable object files.
9190 reload_flag=$lt_reload_flag
9191 reload_cmds=$lt_reload_cmds
9192
9193 # How to pass a linker flag through the compiler.
9194 wl=$lt_lt_prog_compiler_wl
9195
9196 # Object file suffix (normally "o").
9197 objext="$ac_objext"
9198
9199 # Old archive suffix (normally "a").
9200 libext="$libext"
9201
9202 # Shared library suffix (normally ".so").
9203 shrext='$shrext'
9204
9205 # Executable file suffix (normally "").
9206 exeext="$exeext"
9207
9208 # Additional compiler flags for building library objects.
9209 pic_flag=$lt_lt_prog_compiler_pic
9210 pic_mode=$pic_mode
9211
9212 # What is the maximum length of a command?
9213 max_cmd_len=$lt_cv_sys_max_cmd_len
9214
9215 # Does compiler simultaneously support -c and -o options?
9216 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9217
9218 # Must we lock files when doing compilation ?
9219 need_locks=$lt_need_locks
9220
9221 # Do we need the lib prefix for modules?
9222 need_lib_prefix=$need_lib_prefix
9223
9224 # Do we need a version for libraries?
9225 need_version=$need_version
9226
9227 # Whether dlopen is supported.
9228 dlopen_support=$enable_dlopen
9229
9230 # Whether dlopen of programs is supported.
9231 dlopen_self=$enable_dlopen_self
9232
9233 # Whether dlopen of statically linked programs is supported.
9234 dlopen_self_static=$enable_dlopen_self_static
9235
9236 # Compiler flag to prevent dynamic linking.
9237 link_static_flag=$lt_lt_prog_compiler_static
9238
9239 # Compiler flag to turn off builtin functions.
9240 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9241
9242 # Compiler flag to allow reflexive dlopens.
9243 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9244
9245 # Compiler flag to generate shared objects directly from archives.
9246 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9247
9248 # Compiler flag to generate thread-safe objects.
9249 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9250
9251 # Library versioning type.
9252 version_type=$version_type
9253
9254 # Format of library name prefix.
9255 libname_spec=$lt_libname_spec
9256
9257 # List of archive names.  First name is the real one, the rest are links.
9258 # The last name is the one that the linker finds with -lNAME.
9259 library_names_spec=$lt_library_names_spec
9260
9261 # The coded name of the library, if different from the real name.
9262 soname_spec=$lt_soname_spec
9263
9264 # Commands used to build and install an old-style archive.
9265 RANLIB=$lt_RANLIB
9266 old_archive_cmds=$lt_old_archive_cmds
9267 old_postinstall_cmds=$lt_old_postinstall_cmds
9268 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9269
9270 # Create an old-style archive from a shared archive.
9271 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9272
9273 # Create a temporary old-style archive to link instead of a shared archive.
9274 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9275
9276 # Commands used to build and install a shared archive.
9277 archive_cmds=$lt_archive_cmds
9278 archive_expsym_cmds=$lt_archive_expsym_cmds
9279 postinstall_cmds=$lt_postinstall_cmds
9280 postuninstall_cmds=$lt_postuninstall_cmds
9281
9282 # Commands used to build a loadable module (assumed same as above if empty)
9283 module_cmds=$lt_module_cmds
9284 module_expsym_cmds=$lt_module_expsym_cmds
9285
9286 # Commands to strip libraries.
9287 old_striplib=$lt_old_striplib
9288 striplib=$lt_striplib
9289
9290 # Dependencies to place before the objects being linked to create a
9291 # shared library.
9292 predep_objects=$lt_predep_objects
9293
9294 # Dependencies to place after the objects being linked to create a
9295 # shared library.
9296 postdep_objects=$lt_postdep_objects
9297
9298 # Dependencies to place before the objects being linked to create a
9299 # shared library.
9300 predeps=$lt_predeps
9301
9302 # Dependencies to place after the objects being linked to create a
9303 # shared library.
9304 postdeps=$lt_postdeps
9305
9306 # The library search path used internally by the compiler when linking
9307 # a shared library.
9308 compiler_lib_search_path=$lt_compiler_lib_search_path
9309
9310 # Method to check whether dependent libraries are shared objects.
9311 deplibs_check_method=$lt_deplibs_check_method
9312
9313 # Command to use when deplibs_check_method == file_magic.
9314 file_magic_cmd=$lt_file_magic_cmd
9315
9316 # Flag that allows shared libraries with undefined symbols to be built.
9317 allow_undefined_flag=$lt_allow_undefined_flag
9318
9319 # Flag that forces no undefined symbols.
9320 no_undefined_flag=$lt_no_undefined_flag
9321
9322 # Commands used to finish a libtool library installation in a directory.
9323 finish_cmds=$lt_finish_cmds
9324
9325 # Same as above, but a single script fragment to be evaled but not shown.
9326 finish_eval=$lt_finish_eval
9327
9328 # Take the output of nm and produce a listing of raw symbols and C names.
9329 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9330
9331 # Transform the output of nm in a proper C declaration
9332 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9333
9334 # Transform the output of nm in a C name address pair
9335 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9336
9337 # This is the shared library runtime path variable.
9338 runpath_var=$runpath_var
9339
9340 # This is the shared library path variable.
9341 shlibpath_var=$shlibpath_var
9342
9343 # Is shlibpath searched before the hard-coded library search path?
9344 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9345
9346 # How to hardcode a shared library path into an executable.
9347 hardcode_action=$hardcode_action
9348
9349 # Whether we should hardcode library paths into libraries.
9350 hardcode_into_libs=$hardcode_into_libs
9351
9352 # Flag to hardcode \$libdir into a binary during linking.
9353 # This must work even if \$libdir does not exist.
9354 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9355
9356 # If ld is used when linking, flag to hardcode \$libdir into
9357 # a binary during linking. This must work even if \$libdir does
9358 # not exist.
9359 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9360
9361 # Whether we need a single -rpath flag with a separated argument.
9362 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9363
9364 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9365 # resulting binary.
9366 hardcode_direct=$hardcode_direct
9367
9368 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9369 # resulting binary.
9370 hardcode_minus_L=$hardcode_minus_L
9371
9372 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9373 # the resulting binary.
9374 hardcode_shlibpath_var=$hardcode_shlibpath_var
9375
9376 # Set to yes if building a shared library automatically hardcodes DIR into the library
9377 # and all subsequent libraries and executables linked against it.
9378 hardcode_automatic=$hardcode_automatic
9379
9380 # Variables whose values should be saved in libtool wrapper scripts and
9381 # restored at relink time.
9382 variables_saved_for_relink="$variables_saved_for_relink"
9383
9384 # Whether libtool must link a program against all its dependency libraries.
9385 link_all_deplibs=$link_all_deplibs
9386
9387 # Compile-time system search path for libraries
9388 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9389
9390 # Run-time system search path for libraries
9391 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9392
9393 # Fix the shell variable \$srcfile for the compiler.
9394 fix_srcfile_path="$fix_srcfile_path"
9395
9396 # Set to yes if exported symbols are required.
9397 always_export_symbols=$always_export_symbols
9398
9399 # The commands to list exported symbols.
9400 export_symbols_cmds=$lt_export_symbols_cmds
9401
9402 # The commands to extract the exported symbol list from a shared archive.
9403 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9404
9405 # Symbols that should not be listed in the preloaded symbols.
9406 exclude_expsyms=$lt_exclude_expsyms
9407
9408 # Symbols that must always be exported.
9409 include_expsyms=$lt_include_expsyms
9410
9411 # ### END LIBTOOL CONFIG
9412
9413 __EOF__
9414
9415
9416   case $host_os in
9417   aix3*)
9418     cat <<\EOF >> "$cfgfile"
9419
9420 # AIX sometimes has problems with the GCC collect2 program.  For some
9421 # reason, if we set the COLLECT_NAMES environment variable, the problems
9422 # vanish in a puff of smoke.
9423 if test "X${COLLECT_NAMES+set}" != Xset; then
9424   COLLECT_NAMES=
9425   export COLLECT_NAMES
9426 fi
9427 EOF
9428     ;;
9429   esac
9430
9431   # We use sed instead of cat because bash on DJGPP gets confused if
9432   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9433   # text mode, it properly converts lines to CR/LF.  This bash problem
9434   # is reportedly fixed, but why not run on old versions too?
9435   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9436
9437   mv -f "$cfgfile" "$ofile" || \
9438     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9439   chmod +x "$ofile"
9440
9441 else
9442   # If there is no Makefile yet, we rely on a make rule to execute
9443   # `config.status --recheck' to rerun these tests and create the
9444   # libtool script then.
9445   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9446   if test -f "$ltmain_in"; then
9447     test -f Makefile && make "$ltmain"
9448   fi
9449 fi
9450
9451
9452 ac_ext=c
9453 ac_cpp='$CPP $CPPFLAGS'
9454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9457
9458 CC="$lt_save_CC"
9459
9460
9461 # Check whether --with-tags was given.
9462 if test "${with_tags+set}" = set; then
9463   withval=$with_tags; tagnames="$withval"
9464 fi
9465
9466
9467 if test -f "$ltmain" && test -n "$tagnames"; then
9468   if test ! -f "${ofile}"; then
9469     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9470 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9471   fi
9472
9473   if test -z "$LTCC"; then
9474     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9475     if test -z "$LTCC"; then
9476       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9477 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9478     else
9479       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9480 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9481     fi
9482   fi
9483
9484   # Extract list of available tagged configurations in $ofile.
9485   # Note that this assumes the entire list is on one line.
9486   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9487
9488   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9489   for tagname in $tagnames; do
9490     IFS="$lt_save_ifs"
9491     # Check whether tagname contains only valid characters
9492     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9493     "") ;;
9494     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9495 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9496    { (exit 1); exit 1; }; }
9497         ;;
9498     esac
9499
9500     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9501     then
9502       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9503 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9504    { (exit 1); exit 1; }; }
9505     fi
9506
9507     # Update the list of available tags.
9508     if test -n "$tagname"; then
9509       echo appending configuration tag \"$tagname\" to $ofile
9510
9511       case $tagname in
9512       CXX)
9513         if test -n "$CXX" && test "X$CXX" != "Xno"; then
9514           ac_ext=cpp
9515 ac_cpp='$CXXCPP $CPPFLAGS'
9516 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9517 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9518 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9519
9520
9521
9522
9523 archive_cmds_need_lc_CXX=no
9524 allow_undefined_flag_CXX=
9525 always_export_symbols_CXX=no
9526 archive_expsym_cmds_CXX=
9527 export_dynamic_flag_spec_CXX=
9528 hardcode_direct_CXX=no
9529 hardcode_libdir_flag_spec_CXX=
9530 hardcode_libdir_flag_spec_ld_CXX=
9531 hardcode_libdir_separator_CXX=
9532 hardcode_minus_L_CXX=no
9533 hardcode_automatic_CXX=no
9534 module_cmds_CXX=
9535 module_expsym_cmds_CXX=
9536 link_all_deplibs_CXX=unknown
9537 old_archive_cmds_CXX=$old_archive_cmds
9538 no_undefined_flag_CXX=
9539 whole_archive_flag_spec_CXX=
9540 enable_shared_with_static_runtimes_CXX=no
9541
9542 # Dependencies to place before and after the object being linked:
9543 predep_objects_CXX=
9544 postdep_objects_CXX=
9545 predeps_CXX=
9546 postdeps_CXX=
9547 compiler_lib_search_path_CXX=
9548
9549 # Source file extension for C++ test sources.
9550 ac_ext=cc
9551
9552 # Object file extension for compiled C++ test sources.
9553 objext=o
9554 objext_CXX=$objext
9555
9556 # Code to be used in simple compile tests
9557 lt_simple_compile_test_code="int some_variable = 0;\n"
9558
9559 # Code to be used in simple link tests
9560 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9561
9562 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9563
9564 # If no C compiler was specified, use CC.
9565 LTCC=${LTCC-"$CC"}
9566
9567 # Allow CC to be a program name with arguments.
9568 compiler=$CC
9569
9570
9571 # Allow CC to be a program name with arguments.
9572 lt_save_CC=$CC
9573 lt_save_LD=$LD
9574 lt_save_GCC=$GCC
9575 GCC=$GXX
9576 lt_save_with_gnu_ld=$with_gnu_ld
9577 lt_save_path_LD=$lt_cv_path_LD
9578 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9579   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9580 else
9581   unset lt_cv_prog_gnu_ld
9582 fi
9583 if test -n "${lt_cv_path_LDCXX+set}"; then
9584   lt_cv_path_LD=$lt_cv_path_LDCXX
9585 else
9586   unset lt_cv_path_LD
9587 fi
9588 test -z "${LDCXX+set}" || LD=$LDCXX
9589 CC=${CXX-"c++"}
9590 compiler=$CC
9591 compiler_CXX=$CC
9592 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9593
9594 # We don't want -fno-exception wen compiling C++ code, so set the
9595 # no_builtin_flag separately
9596 if test "$GXX" = yes; then
9597   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9598 else
9599   lt_prog_compiler_no_builtin_flag_CXX=
9600 fi
9601
9602 if test "$GXX" = yes; then
9603   # Set up default GNU C++ configuration
9604
9605
9606 # Check whether --with-gnu-ld was given.
9607 if test "${with_gnu_ld+set}" = set; then
9608   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9609 else
9610   with_gnu_ld=no
9611 fi
9612
9613 ac_prog=ld
9614 if test "$GCC" = yes; then
9615   # Check if gcc -print-prog-name=ld gives a path.
9616   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9617 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
9618   case $host in
9619   *-*-mingw*)
9620     # gcc leaves a trailing carriage return which upsets mingw
9621     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9622   *)
9623     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9624   esac
9625   case $ac_prog in
9626     # Accept absolute paths.
9627     [\\/]* | ?:[\\/]*)
9628       re_direlt='/[^/][^/]*/\.\./'
9629       # Canonicalize the pathname of ld
9630       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9631       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9632         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9633       done
9634       test -z "$LD" && LD="$ac_prog"
9635       ;;
9636   "")
9637     # If it fails, then pretend we aren't using GCC.
9638     ac_prog=ld
9639     ;;
9640   *)
9641     # If it is relative, then search for the first ld in PATH.
9642     with_gnu_ld=unknown
9643     ;;
9644   esac
9645 elif test "$with_gnu_ld" = yes; then
9646   { echo "$as_me:$LINENO: checking for GNU ld" >&5
9647 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
9648 else
9649   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9650 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
9651 fi
9652 if test "${lt_cv_path_LD+set}" = set; then
9653   echo $ECHO_N "(cached) $ECHO_C" >&6
9654 else
9655   if test -z "$LD"; then
9656   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9657   for ac_dir in $PATH; do
9658     IFS="$lt_save_ifs"
9659     test -z "$ac_dir" && ac_dir=.
9660     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9661       lt_cv_path_LD="$ac_dir/$ac_prog"
9662       # Check to see if the program is GNU ld.  I'd rather use --version,
9663       # but apparently some GNU ld's only accept -v.
9664       # Break only if it was the GNU/non-GNU ld that we prefer.
9665       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9666       *GNU* | *'with BFD'*)
9667         test "$with_gnu_ld" != no && break
9668         ;;
9669       *)
9670         test "$with_gnu_ld" != yes && break
9671         ;;
9672       esac
9673     fi
9674   done
9675   IFS="$lt_save_ifs"
9676 else
9677   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9678 fi
9679 fi
9680
9681 LD="$lt_cv_path_LD"
9682 if test -n "$LD"; then
9683   { echo "$as_me:$LINENO: result: $LD" >&5
9684 echo "${ECHO_T}$LD" >&6; }
9685 else
9686   { echo "$as_me:$LINENO: result: no" >&5
9687 echo "${ECHO_T}no" >&6; }
9688 fi
9689 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9690 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9691    { (exit 1); exit 1; }; }
9692 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9693 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
9694 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9695   echo $ECHO_N "(cached) $ECHO_C" >&6
9696 else
9697   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9698 case `$LD -v 2>&1 </dev/null` in
9699 *GNU* | *'with BFD'*)
9700   lt_cv_prog_gnu_ld=yes
9701   ;;
9702 *)
9703   lt_cv_prog_gnu_ld=no
9704   ;;
9705 esac
9706 fi
9707 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9708 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
9709 with_gnu_ld=$lt_cv_prog_gnu_ld
9710
9711
9712
9713   # Check if GNU C++ uses GNU ld as the underlying linker, since the
9714   # archiving commands below assume that GNU ld is being used.
9715   if test "$with_gnu_ld" = yes; then
9716     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9717     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'
9718
9719     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9720     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9721
9722     # If archive_cmds runs LD, not CC, wlarc should be empty
9723     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9724     #     investigate it a little bit more. (MM)
9725     wlarc='${wl}'
9726
9727     # ancient GNU ld didn't support --whole-archive et. al.
9728     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9729         grep 'no-whole-archive' > /dev/null; then
9730       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9731     else
9732       whole_archive_flag_spec_CXX=
9733     fi
9734   else
9735     with_gnu_ld=no
9736     wlarc=
9737
9738     # A generic and very simple default shared library creation
9739     # command for GNU C++ for the case where it uses the native
9740     # linker, instead of GNU ld.  If possible, this setting should
9741     # overridden to take advantage of the native linker features on
9742     # the platform it is being used on.
9743     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9744   fi
9745
9746   # Commands to make compiler produce verbose output that lists
9747   # what "hidden" libraries, object files and flags are used when
9748   # linking a shared library.
9749   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9750
9751 else
9752   GXX=no
9753   with_gnu_ld=no
9754   wlarc=
9755 fi
9756
9757 # PORTME: fill in a description of your system's C++ link characteristics
9758 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9759 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9760 ld_shlibs_CXX=yes
9761 case $host_os in
9762   aix3*)
9763     # FIXME: insert proper C++ library support
9764     ld_shlibs_CXX=no
9765     ;;
9766   aix4* | aix5*)
9767     if test "$host_cpu" = ia64; then
9768       # On IA64, the linker does run time linking by default, so we don't
9769       # have to do anything special.
9770       aix_use_runtimelinking=no
9771       exp_sym_flag='-Bexport'
9772       no_entry_flag=""
9773     else
9774       aix_use_runtimelinking=no
9775
9776       # Test if we are trying to use run time linking or normal
9777       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9778       # need to do runtime linking.
9779       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9780         for ld_flag in $LDFLAGS; do
9781           case $ld_flag in
9782           *-brtl*)
9783             aix_use_runtimelinking=yes
9784             break
9785             ;;
9786           esac
9787         done
9788       esac
9789
9790       exp_sym_flag='-bexport'
9791       no_entry_flag='-bnoentry'
9792     fi
9793
9794     # When large executables or shared objects are built, AIX ld can
9795     # have problems creating the table of contents.  If linking a library
9796     # or program results in "error TOC overflow" add -mminimal-toc to
9797     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9798     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9799
9800     archive_cmds_CXX=''
9801     hardcode_direct_CXX=yes
9802     hardcode_libdir_separator_CXX=':'
9803     link_all_deplibs_CXX=yes
9804
9805     if test "$GXX" = yes; then
9806       case $host_os in aix4.012|aix4.012.*)
9807       # We only want to do this on AIX 4.2 and lower, the check
9808       # below for broken collect2 doesn't work under 4.3+
9809         collect2name=`${CC} -print-prog-name=collect2`
9810         if test -f "$collect2name" && \
9811            strings "$collect2name" | grep resolve_lib_name >/dev/null
9812         then
9813           # We have reworked collect2
9814           hardcode_direct_CXX=yes
9815         else
9816           # We have old collect2
9817           hardcode_direct_CXX=unsupported
9818           # It fails to find uninstalled libraries when the uninstalled
9819           # path is not listed in the libpath.  Setting hardcode_minus_L
9820           # to unsupported forces relinking
9821           hardcode_minus_L_CXX=yes
9822           hardcode_libdir_flag_spec_CXX='-L$libdir'
9823           hardcode_libdir_separator_CXX=
9824         fi
9825       esac
9826       shared_flag='-shared'
9827     else
9828       # not using gcc
9829       if test "$host_cpu" = ia64; then
9830         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9831         # chokes on -Wl,-G. The following line is correct:
9832         shared_flag='-G'
9833       else
9834         if test "$aix_use_runtimelinking" = yes; then
9835           shared_flag='${wl}-G'
9836         else
9837           shared_flag='${wl}-bM:SRE'
9838         fi
9839       fi
9840     fi
9841
9842     # It seems that -bexpall does not export symbols beginning with
9843     # underscore (_), so it is better to generate a list of symbols to export.
9844     always_export_symbols_CXX=yes
9845     if test "$aix_use_runtimelinking" = yes; then
9846       # Warning - without using the other runtime loading flags (-brtl),
9847       # -berok will link without error, but may produce a broken library.
9848       allow_undefined_flag_CXX='-berok'
9849       # Determine the default libpath from the value encoded in an empty executable.
9850       cat >conftest.$ac_ext <<_ACEOF
9851 /* confdefs.h.  */
9852 _ACEOF
9853 cat confdefs.h >>conftest.$ac_ext
9854 cat >>conftest.$ac_ext <<_ACEOF
9855 /* end confdefs.h.  */
9856
9857 int
9858 main ()
9859 {
9860
9861   ;
9862   return 0;
9863 }
9864 _ACEOF
9865 rm -f conftest.$ac_objext conftest$ac_exeext
9866 if { (ac_try="$ac_link"
9867 case "(($ac_try" in
9868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9869   *) ac_try_echo=$ac_try;;
9870 esac
9871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9872   (eval "$ac_link") 2>conftest.er1
9873   ac_status=$?
9874   grep -v '^ *+' conftest.er1 >conftest.err
9875   rm -f conftest.er1
9876   cat conftest.err >&5
9877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9878   (exit $ac_status); } && {
9879          test -z "$ac_cxx_werror_flag" ||
9880          test ! -s conftest.err
9881        } && test -s conftest$ac_exeext &&
9882        $as_test_x conftest$ac_exeext; then
9883
9884 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9885 }'`
9886 # Check for a 64-bit object if we didn't find anything.
9887 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; }
9888 }'`; fi
9889 else
9890   echo "$as_me: failed program was:" >&5
9891 sed 's/^/| /' conftest.$ac_ext >&5
9892
9893
9894 fi
9895
9896 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9897       conftest$ac_exeext conftest.$ac_ext
9898 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9899
9900       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9901
9902       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"
9903      else
9904       if test "$host_cpu" = ia64; then
9905         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9906         allow_undefined_flag_CXX="-z nodefs"
9907         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"
9908       else
9909         # Determine the default libpath from the value encoded in an empty executable.
9910         cat >conftest.$ac_ext <<_ACEOF
9911 /* confdefs.h.  */
9912 _ACEOF
9913 cat confdefs.h >>conftest.$ac_ext
9914 cat >>conftest.$ac_ext <<_ACEOF
9915 /* end confdefs.h.  */
9916
9917 int
9918 main ()
9919 {
9920
9921   ;
9922   return 0;
9923 }
9924 _ACEOF
9925 rm -f conftest.$ac_objext conftest$ac_exeext
9926 if { (ac_try="$ac_link"
9927 case "(($ac_try" in
9928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9929   *) ac_try_echo=$ac_try;;
9930 esac
9931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9932   (eval "$ac_link") 2>conftest.er1
9933   ac_status=$?
9934   grep -v '^ *+' conftest.er1 >conftest.err
9935   rm -f conftest.er1
9936   cat conftest.err >&5
9937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9938   (exit $ac_status); } && {
9939          test -z "$ac_cxx_werror_flag" ||
9940          test ! -s conftest.err
9941        } && test -s conftest$ac_exeext &&
9942        $as_test_x conftest$ac_exeext; then
9943
9944 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9945 }'`
9946 # Check for a 64-bit object if we didn't find anything.
9947 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; }
9948 }'`; fi
9949 else
9950   echo "$as_me: failed program was:" >&5
9951 sed 's/^/| /' conftest.$ac_ext >&5
9952
9953
9954 fi
9955
9956 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9957       conftest$ac_exeext conftest.$ac_ext
9958 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9959
9960         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9961         # Warning - without using the other run time loading flags,
9962         # -berok will link without error, but may produce a broken library.
9963         no_undefined_flag_CXX=' ${wl}-bernotok'
9964         allow_undefined_flag_CXX=' ${wl}-berok'
9965         # -bexpall does not export symbols beginning with underscore (_)
9966         always_export_symbols_CXX=yes
9967         # Exported symbols can be pulled into shared objects from archives
9968         whole_archive_flag_spec_CXX=' '
9969         archive_cmds_need_lc_CXX=yes
9970         # This is similar to how AIX traditionally builds it's shared libraries.
9971         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'
9972       fi
9973     fi
9974     ;;
9975   chorus*)
9976     case $cc_basename in
9977       *)
9978         # FIXME: insert proper C++ library support
9979         ld_shlibs_CXX=no
9980         ;;
9981     esac
9982     ;;
9983
9984   cygwin* | mingw* | pw32*)
9985     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9986     # as there is no search path for DLLs.
9987     hardcode_libdir_flag_spec_CXX='-L$libdir'
9988     allow_undefined_flag_CXX=unsupported
9989     always_export_symbols_CXX=no
9990     enable_shared_with_static_runtimes_CXX=yes
9991
9992     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9993       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'
9994       # If the export-symbols file already is a .def file (1st line
9995       # is EXPORTS), use it as is; otherwise, prepend...
9996       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9997         cp $export_symbols $output_objdir/$soname.def;
9998       else
9999         echo EXPORTS > $output_objdir/$soname.def;
10000         cat $export_symbols >> $output_objdir/$soname.def;
10001       fi~
10002       $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'
10003     else
10004       ld_shlibs_CXX=no
10005     fi
10006   ;;
10007
10008   darwin* | rhapsody*)
10009   if test "$GXX" = yes; then
10010     archive_cmds_need_lc_CXX=no
10011     case "$host_os" in
10012     rhapsody* | darwin1.[012])
10013       allow_undefined_flag_CXX='-undefined suppress'
10014       ;;
10015     *) # Darwin 1.3 on
10016       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10017         allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10018       else
10019         case ${MACOSX_DEPLOYMENT_TARGET} in
10020           10.[012])
10021             allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10022             ;;
10023           10.*)
10024             allow_undefined_flag_CXX='-undefined dynamic_lookup'
10025             ;;
10026         esac
10027       fi
10028       ;;
10029     esac
10030     lt_int_apple_cc_single_mod=no
10031     output_verbose_link_cmd='echo'
10032     if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10033       lt_int_apple_cc_single_mod=yes
10034     fi
10035     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10036       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10037     else
10038       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'
10039     fi
10040     module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10041
10042     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10043     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10044       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}'
10045     else
10046       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}'
10047     fi
10048     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}'
10049     hardcode_direct_CXX=no
10050     hardcode_automatic_CXX=yes
10051     hardcode_shlibpath_var_CXX=unsupported
10052     whole_archive_flag_spec_CXX='-all_load $convenience'
10053     link_all_deplibs_CXX=yes
10054   else
10055     ld_shlibs_CXX=no
10056   fi
10057     ;;
10058
10059   dgux*)
10060     case $cc_basename in
10061       ec++)
10062         # FIXME: insert proper C++ library support
10063         ld_shlibs_CXX=no
10064         ;;
10065       ghcx)
10066         # Green Hills C++ Compiler
10067         # FIXME: insert proper C++ library support
10068         ld_shlibs_CXX=no
10069         ;;
10070       *)
10071         # FIXME: insert proper C++ library support
10072         ld_shlibs_CXX=no
10073         ;;
10074     esac
10075     ;;
10076   freebsd12*)
10077     # C++ shared libraries reported to be fairly broken before switch to ELF
10078     ld_shlibs_CXX=no
10079     ;;
10080   freebsd-elf*)
10081     archive_cmds_need_lc_CXX=no
10082     ;;
10083   freebsd* | kfreebsd*-gnu)
10084     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10085     # conventions
10086     ld_shlibs_CXX=yes
10087     ;;
10088   gnu*)
10089     ;;
10090   hpux9*)
10091     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10092     hardcode_libdir_separator_CXX=:
10093     export_dynamic_flag_spec_CXX='${wl}-E'
10094     hardcode_direct_CXX=yes
10095     hardcode_minus_L_CXX=yes # Not in the search PATH,
10096                                 # but as the default
10097                                 # location of the library.
10098
10099     case $cc_basename in
10100     CC)
10101       # FIXME: insert proper C++ library support
10102       ld_shlibs_CXX=no
10103       ;;
10104     aCC)
10105       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'
10106       # Commands to make compiler produce verbose output that lists
10107       # what "hidden" libraries, object files and flags are used when
10108       # linking a shared library.
10109       #
10110       # There doesn't appear to be a way to prevent this compiler from
10111       # explicitly linking system object files so we need to strip them
10112       # from the output so that they don't get included in the library
10113       # dependencies.
10114       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'
10115       ;;
10116     *)
10117       if test "$GXX" = yes; then
10118         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'
10119       else
10120         # FIXME: insert proper C++ library support
10121         ld_shlibs_CXX=no
10122       fi
10123       ;;
10124     esac
10125     ;;
10126   hpux10*|hpux11*)
10127     if test $with_gnu_ld = no; then
10128       case "$host_cpu" in
10129       hppa*64*)
10130         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10131         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10132         hardcode_libdir_separator_CXX=:
10133         ;;
10134       ia64*)
10135         hardcode_libdir_flag_spec_CXX='-L$libdir'
10136         ;;
10137       *)
10138         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10139         hardcode_libdir_separator_CXX=:
10140         export_dynamic_flag_spec_CXX='${wl}-E'
10141         ;;
10142       esac
10143     fi
10144     case "$host_cpu" in
10145     hppa*64*)
10146       hardcode_direct_CXX=no
10147       hardcode_shlibpath_var_CXX=no
10148       ;;
10149     ia64*)
10150       hardcode_direct_CXX=no
10151       hardcode_shlibpath_var_CXX=no
10152       hardcode_minus_L_CXX=yes # Not in the search PATH,
10153                                               # but as the default
10154                                               # location of the library.
10155       ;;
10156     *)
10157       hardcode_direct_CXX=yes
10158       hardcode_minus_L_CXX=yes # Not in the search PATH,
10159                                               # but as the default
10160                                               # location of the library.
10161       ;;
10162     esac
10163
10164     case $cc_basename in
10165       CC)
10166         # FIXME: insert proper C++ library support
10167         ld_shlibs_CXX=no
10168         ;;
10169       aCC)
10170         case "$host_cpu" in
10171         hppa*64*|ia64*)
10172           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10173           ;;
10174         *)
10175           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10176           ;;
10177         esac
10178         # Commands to make compiler produce verbose output that lists
10179         # what "hidden" libraries, object files and flags are used when
10180         # linking a shared library.
10181         #
10182         # There doesn't appear to be a way to prevent this compiler from
10183         # explicitly linking system object files so we need to strip them
10184         # from the output so that they don't get included in the library
10185         # dependencies.
10186         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'
10187         ;;
10188       *)
10189         if test "$GXX" = yes; then
10190           if test $with_gnu_ld = no; then
10191             case "$host_cpu" in
10192             ia64*|hppa*64*)
10193               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10194               ;;
10195             *)
10196               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'
10197               ;;
10198             esac
10199           fi
10200         else
10201           # FIXME: insert proper C++ library support
10202           ld_shlibs_CXX=no
10203         fi
10204         ;;
10205     esac
10206     ;;
10207   irix5* | irix6*)
10208     case $cc_basename in
10209       CC)
10210         # SGI C++
10211         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'
10212
10213         # Archives containing C++ object files must be created using
10214         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10215         # necessary to make sure instantiated templates are included
10216         # in the archive.
10217         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10218         ;;
10219       *)
10220         if test "$GXX" = yes; then
10221           if test "$with_gnu_ld" = no; then
10222             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'
10223           else
10224             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'
10225           fi
10226         fi
10227         link_all_deplibs_CXX=yes
10228         ;;
10229     esac
10230     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10231     hardcode_libdir_separator_CXX=:
10232     ;;
10233   linux*)
10234     case $cc_basename in
10235       KCC)
10236         # Kuck and Associates, Inc. (KAI) C++ Compiler
10237
10238         # KCC will only create a shared library if the output file
10239         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10240         # to its proper name (with version) after linking.
10241         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'
10242         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'
10243         # Commands to make compiler produce verbose output that lists
10244         # what "hidden" libraries, object files and flags are used when
10245         # linking a shared library.
10246         #
10247         # There doesn't appear to be a way to prevent this compiler from
10248         # explicitly linking system object files so we need to strip them
10249         # from the output so that they don't get included in the library
10250         # dependencies.
10251         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'
10252
10253         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10254         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10255
10256         # Archives containing C++ object files must be created using
10257         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10258         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10259         ;;
10260       icpc)
10261         # Intel C++
10262         with_gnu_ld=yes
10263         archive_cmds_need_lc_CXX=no
10264         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10265         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'
10266         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10267         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10268         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10269         ;;
10270       cxx)
10271         # Compaq C++
10272         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10273         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'
10274
10275         runpath_var=LD_RUN_PATH
10276         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10277         hardcode_libdir_separator_CXX=:
10278
10279         # Commands to make compiler produce verbose output that lists
10280         # what "hidden" libraries, object files and flags are used when
10281         # linking a shared library.
10282         #
10283         # There doesn't appear to be a way to prevent this compiler from
10284         # explicitly linking system object files so we need to strip them
10285         # from the output so that they don't get included in the library
10286         # dependencies.
10287         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'
10288         ;;
10289     esac
10290     ;;
10291   lynxos*)
10292     # FIXME: insert proper C++ library support
10293     ld_shlibs_CXX=no
10294     ;;
10295   m88k*)
10296     # FIXME: insert proper C++ library support
10297     ld_shlibs_CXX=no
10298     ;;
10299   mvs*)
10300     case $cc_basename in
10301       cxx)
10302         # FIXME: insert proper C++ library support
10303         ld_shlibs_CXX=no
10304         ;;
10305       *)
10306         # FIXME: insert proper C++ library support
10307         ld_shlibs_CXX=no
10308         ;;
10309     esac
10310     ;;
10311   netbsd*)
10312     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10313       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10314       wlarc=
10315       hardcode_libdir_flag_spec_CXX='-R$libdir'
10316       hardcode_direct_CXX=yes
10317       hardcode_shlibpath_var_CXX=no
10318     fi
10319     # Workaround some broken pre-1.5 toolchains
10320     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10321     ;;
10322   osf3*)
10323     case $cc_basename in
10324       KCC)
10325         # Kuck and Associates, Inc. (KAI) C++ Compiler
10326
10327         # KCC will only create a shared library if the output file
10328         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10329         # to its proper name (with version) after linking.
10330         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'
10331
10332         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10333         hardcode_libdir_separator_CXX=:
10334
10335         # Archives containing C++ object files must be created using
10336         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10337         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10338
10339         ;;
10340       RCC)
10341         # Rational C++ 2.4.1
10342         # FIXME: insert proper C++ library support
10343         ld_shlibs_CXX=no
10344         ;;
10345       cxx)
10346         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10347         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'
10348
10349         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10350         hardcode_libdir_separator_CXX=:
10351
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 -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'
10361         ;;
10362       *)
10363         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10364           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10365           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'
10366
10367           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10368           hardcode_libdir_separator_CXX=:
10369
10370           # Commands to make compiler produce verbose output that lists
10371           # what "hidden" libraries, object files and flags are used when
10372           # linking a shared library.
10373           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10374
10375         else
10376           # FIXME: insert proper C++ library support
10377           ld_shlibs_CXX=no
10378         fi
10379         ;;
10380     esac
10381     ;;
10382   osf4* | osf5*)
10383     case $cc_basename in
10384       KCC)
10385         # Kuck and Associates, Inc. (KAI) C++ Compiler
10386
10387         # KCC will only create a shared library if the output file
10388         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10389         # to its proper name (with version) after linking.
10390         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'
10391
10392         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10393         hardcode_libdir_separator_CXX=:
10394
10395         # Archives containing C++ object files must be created using
10396         # the KAI C++ compiler.
10397         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10398         ;;
10399       RCC)
10400         # Rational C++ 2.4.1
10401         # FIXME: insert proper C++ library support
10402         ld_shlibs_CXX=no
10403         ;;
10404       cxx)
10405         allow_undefined_flag_CXX=' -expect_unresolved \*'
10406         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'
10407         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10408           echo "-hidden">> $lib.exp~
10409           $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~
10410           $rm $lib.exp'
10411
10412         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10413         hardcode_libdir_separator_CXX=:
10414
10415         # Commands to make compiler produce verbose output that lists
10416         # what "hidden" libraries, object files and flags are used when
10417         # linking a shared library.
10418         #
10419         # There doesn't appear to be a way to prevent this compiler from
10420         # explicitly linking system object files so we need to strip them
10421         # from the output so that they don't get included in the library
10422         # dependencies.
10423         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'
10424         ;;
10425       *)
10426         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10427           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10428          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'
10429
10430           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10431           hardcode_libdir_separator_CXX=:
10432
10433           # Commands to make compiler produce verbose output that lists
10434           # what "hidden" libraries, object files and flags are used when
10435           # linking a shared library.
10436           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10437
10438         else
10439           # FIXME: insert proper C++ library support
10440           ld_shlibs_CXX=no
10441         fi
10442         ;;
10443     esac
10444     ;;
10445   psos*)
10446     # FIXME: insert proper C++ library support
10447     ld_shlibs_CXX=no
10448     ;;
10449   sco*)
10450     archive_cmds_need_lc_CXX=no
10451     case $cc_basename in
10452       CC)
10453         # FIXME: insert proper C++ library support
10454         ld_shlibs_CXX=no
10455         ;;
10456       *)
10457         # FIXME: insert proper C++ library support
10458         ld_shlibs_CXX=no
10459         ;;
10460     esac
10461     ;;
10462   sunos4*)
10463     case $cc_basename in
10464       CC)
10465         # Sun C++ 4.x
10466         # FIXME: insert proper C++ library support
10467         ld_shlibs_CXX=no
10468         ;;
10469       lcc)
10470         # Lucid
10471         # FIXME: insert proper C++ library support
10472         ld_shlibs_CXX=no
10473         ;;
10474       *)
10475         # FIXME: insert proper C++ library support
10476         ld_shlibs_CXX=no
10477         ;;
10478     esac
10479     ;;
10480   solaris*)
10481     case $cc_basename in
10482       CC)
10483         # Sun C++ 4.2, 5.x and Centerline C++
10484         no_undefined_flag_CXX=' -zdefs'
10485         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10486         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10487         $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'
10488
10489         hardcode_libdir_flag_spec_CXX='-R$libdir'
10490         hardcode_shlibpath_var_CXX=no
10491         case $host_os in
10492           solaris2.0-5 | solaris2.0-5.*) ;;
10493           *)
10494             # The C++ compiler is used as linker so we must use $wl
10495             # flag to pass the commands to the underlying system
10496             # linker.
10497             # Supported since Solaris 2.6 (maybe 2.5.1?)
10498             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10499             ;;
10500         esac
10501         link_all_deplibs_CXX=yes
10502
10503         # Commands to make compiler produce verbose output that lists
10504         # what "hidden" libraries, object files and flags are used when
10505         # linking a shared library.
10506         #
10507         # There doesn't appear to be a way to prevent this compiler from
10508         # explicitly linking system object files so we need to strip them
10509         # from the output so that they don't get included in the library
10510         # dependencies.
10511         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'
10512
10513         # Archives containing C++ object files must be created using
10514         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10515         # necessary to make sure instantiated templates are included
10516         # in the archive.
10517         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10518         ;;
10519       gcx)
10520         # Green Hills C++ Compiler
10521         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10522
10523         # The C++ compiler must be used to create the archive.
10524         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10525         ;;
10526       *)
10527         # GNU C++ compiler with Solaris linker
10528         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10529           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10530           if $CC --version | grep -v '^2\.7' > /dev/null; then
10531             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10532             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10533                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10534
10535             # Commands to make compiler produce verbose output that lists
10536             # what "hidden" libraries, object files and flags are used when
10537             # linking a shared library.
10538             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10539           else
10540             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10541             # platform.
10542             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10543             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10544                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10545
10546             # Commands to make compiler produce verbose output that lists
10547             # what "hidden" libraries, object files and flags are used when
10548             # linking a shared library.
10549             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10550           fi
10551
10552           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10553         fi
10554         ;;
10555     esac
10556     ;;
10557   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10558     archive_cmds_need_lc_CXX=no
10559     ;;
10560   tandem*)
10561     case $cc_basename in
10562       NCC)
10563         # NonStop-UX NCC 3.20
10564         # FIXME: insert proper C++ library support
10565         ld_shlibs_CXX=no
10566         ;;
10567       *)
10568         # FIXME: insert proper C++ library support
10569         ld_shlibs_CXX=no
10570         ;;
10571     esac
10572     ;;
10573   vxworks*)
10574     # FIXME: insert proper C++ library support
10575     ld_shlibs_CXX=no
10576     ;;
10577   *)
10578     # FIXME: insert proper C++ library support
10579     ld_shlibs_CXX=no
10580     ;;
10581 esac
10582 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10583 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
10584 test "$ld_shlibs_CXX" = no && can_build_shared=no
10585
10586 GCC_CXX="$GXX"
10587 LD_CXX="$LD"
10588
10589 ## CAVEAT EMPTOR:
10590 ## There is no encapsulation within the following macros, do not change
10591 ## the running order or otherwise move them around unless you know exactly
10592 ## what you are doing...
10593
10594 cat > conftest.$ac_ext <<EOF
10595 class Foo
10596 {
10597 public:
10598   Foo (void) { a = 0; }
10599 private:
10600   int a;
10601 };
10602 EOF
10603
10604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10605   (eval $ac_compile) 2>&5
10606   ac_status=$?
10607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10608   (exit $ac_status); }; then
10609   # Parse the compiler output and extract the necessary
10610   # objects, libraries and library flags.
10611
10612   # Sentinel used to keep track of whether or not we are before
10613   # the conftest object file.
10614   pre_test_object_deps_done=no
10615
10616   # The `*' in the case matches for architectures that use `case' in
10617   # $output_verbose_cmd can trigger glob expansion during the loop
10618   # eval without this substitution.
10619   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10620
10621   for p in `eval $output_verbose_link_cmd`; do
10622     case $p in
10623
10624     -L* | -R* | -l*)
10625        # Some compilers place space between "-{L,R}" and the path.
10626        # Remove the space.
10627        if test $p = "-L" \
10628           || test $p = "-R"; then
10629          prev=$p
10630          continue
10631        else
10632          prev=
10633        fi
10634
10635        if test "$pre_test_object_deps_done" = no; then
10636          case $p in
10637          -L* | -R*)
10638            # Internal compiler library paths should come after those
10639            # provided the user.  The postdeps already come after the
10640            # user supplied libs so there is no need to process them.
10641            if test -z "$compiler_lib_search_path_CXX"; then
10642              compiler_lib_search_path_CXX="${prev}${p}"
10643            else
10644              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10645            fi
10646            ;;
10647          # The "-l" case would never come before the object being
10648          # linked, so don't bother handling this case.
10649          esac
10650        else
10651          if test -z "$postdeps_CXX"; then
10652            postdeps_CXX="${prev}${p}"
10653          else
10654            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10655          fi
10656        fi
10657        ;;
10658
10659     *.$objext)
10660        # This assumes that the test object file only shows up
10661        # once in the compiler output.
10662        if test "$p" = "conftest.$objext"; then
10663          pre_test_object_deps_done=yes
10664          continue
10665        fi
10666
10667        if test "$pre_test_object_deps_done" = no; then
10668          if test -z "$predep_objects_CXX"; then
10669            predep_objects_CXX="$p"
10670          else
10671            predep_objects_CXX="$predep_objects_CXX $p"
10672          fi
10673        else
10674          if test -z "$postdep_objects_CXX"; then
10675            postdep_objects_CXX="$p"
10676          else
10677            postdep_objects_CXX="$postdep_objects_CXX $p"
10678          fi
10679        fi
10680        ;;
10681
10682     *) ;; # Ignore the rest.
10683
10684     esac
10685   done
10686
10687   # Clean up.
10688   rm -f a.out a.exe
10689 else
10690   echo "libtool.m4: error: problem compiling CXX test program"
10691 fi
10692
10693 $rm -f confest.$objext
10694
10695 case " $postdeps_CXX " in
10696 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10697 esac
10698
10699 lt_prog_compiler_wl_CXX=
10700 lt_prog_compiler_pic_CXX=
10701 lt_prog_compiler_static_CXX=
10702
10703 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10704 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
10705
10706   # C++ specific cases for pic, static, wl, etc.
10707   if test "$GXX" = yes; then
10708     lt_prog_compiler_wl_CXX='-Wl,'
10709     lt_prog_compiler_static_CXX='-static'
10710
10711     case $host_os in
10712     aix*)
10713       # All AIX code is PIC.
10714       if test "$host_cpu" = ia64; then
10715         # AIX 5 now supports IA64 processor
10716         lt_prog_compiler_static_CXX='-Bstatic'
10717       fi
10718       ;;
10719     amigaos*)
10720       # FIXME: we need at least 68020 code to build shared libraries, but
10721       # adding the `-m68020' flag to GCC prevents building anything better,
10722       # like `-m68040'.
10723       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10724       ;;
10725     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10726       # PIC is the default for these OSes.
10727       ;;
10728     mingw* | os2* | pw32*)
10729       # This hack is so that the source file can tell whether it is being
10730       # built for inclusion in a dll (and should export symbols for example).
10731       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10732       ;;
10733     darwin* | rhapsody*)
10734       # PIC is the default on this platform
10735       # Common symbols not allowed in MH_DYLIB files
10736       lt_prog_compiler_pic_CXX='-fno-common'
10737       ;;
10738     *djgpp*)
10739       # DJGPP does not support shared libraries at all
10740       lt_prog_compiler_pic_CXX=
10741       ;;
10742     sysv4*MP*)
10743       if test -d /usr/nec; then
10744         lt_prog_compiler_pic_CXX=-Kconform_pic
10745       fi
10746       ;;
10747     hpux*)
10748       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10749       # not for PA HP-UX.
10750       case "$host_cpu" in
10751       hppa*64*|ia64*)
10752         ;;
10753       *)
10754         lt_prog_compiler_pic_CXX='-fPIC'
10755         ;;
10756       esac
10757       ;;
10758     *)
10759       lt_prog_compiler_pic_CXX='-fPIC'
10760       ;;
10761     esac
10762   else
10763     case $host_os in
10764       aix4* | aix5*)
10765         # All AIX code is PIC.
10766         if test "$host_cpu" = ia64; then
10767           # AIX 5 now supports IA64 processor
10768           lt_prog_compiler_static_CXX='-Bstatic'
10769         else
10770           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10771         fi
10772         ;;
10773       chorus*)
10774         case $cc_basename in
10775         cxch68)
10776           # Green Hills C++ Compiler
10777           # _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"
10778           ;;
10779         esac
10780         ;;
10781       dgux*)
10782         case $cc_basename in
10783           ec++)
10784             lt_prog_compiler_pic_CXX='-KPIC'
10785             ;;
10786           ghcx)
10787             # Green Hills C++ Compiler
10788             lt_prog_compiler_pic_CXX='-pic'
10789             ;;
10790           *)
10791             ;;
10792         esac
10793         ;;
10794       freebsd* | kfreebsd*-gnu)
10795         # FreeBSD uses GNU C++
10796         ;;
10797       hpux9* | hpux10* | hpux11*)
10798         case $cc_basename in
10799           CC)
10800             lt_prog_compiler_wl_CXX='-Wl,'
10801             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10802             if test "$host_cpu" != ia64; then
10803               lt_prog_compiler_pic_CXX='+Z'
10804             fi
10805             ;;
10806           aCC)
10807             lt_prog_compiler_wl_CXX='-Wl,'
10808             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10809             case "$host_cpu" in
10810             hppa*64*|ia64*)
10811               # +Z the default
10812               ;;
10813             *)
10814               lt_prog_compiler_pic_CXX='+Z'
10815               ;;
10816             esac
10817             ;;
10818           *)
10819             ;;
10820         esac
10821         ;;
10822       irix5* | irix6* | nonstopux*)
10823         case $cc_basename in
10824           CC)
10825             lt_prog_compiler_wl_CXX='-Wl,'
10826             lt_prog_compiler_static_CXX='-non_shared'
10827             # CC pic flag -KPIC is the default.
10828             ;;
10829           *)
10830             ;;
10831         esac
10832         ;;
10833       linux*)
10834         case $cc_basename in
10835           KCC)
10836             # KAI C++ Compiler
10837             lt_prog_compiler_wl_CXX='--backend -Wl,'
10838             lt_prog_compiler_pic_CXX='-fPIC'
10839             ;;
10840           icpc)
10841             # Intel C++
10842             lt_prog_compiler_wl_CXX='-Wl,'
10843             lt_prog_compiler_pic_CXX='-KPIC'
10844             lt_prog_compiler_static_CXX='-static'
10845             ;;
10846           cxx)
10847             # Compaq C++
10848             # Make sure the PIC flag is empty.  It appears that all Alpha
10849             # Linux and Compaq Tru64 Unix objects are PIC.
10850             lt_prog_compiler_pic_CXX=
10851             lt_prog_compiler_static_CXX='-non_shared'
10852             ;;
10853           *)
10854             ;;
10855         esac
10856         ;;
10857       lynxos*)
10858         ;;
10859       m88k*)
10860         ;;
10861       mvs*)
10862         case $cc_basename in
10863           cxx)
10864             lt_prog_compiler_pic_CXX='-W c,exportall'
10865             ;;
10866           *)
10867             ;;
10868         esac
10869         ;;
10870       netbsd*)
10871         ;;
10872       osf3* | osf4* | osf5*)
10873         case $cc_basename in
10874           KCC)
10875             lt_prog_compiler_wl_CXX='--backend -Wl,'
10876             ;;
10877           RCC)
10878             # Rational C++ 2.4.1
10879             lt_prog_compiler_pic_CXX='-pic'
10880             ;;
10881           cxx)
10882             # Digital/Compaq C++
10883             lt_prog_compiler_wl_CXX='-Wl,'
10884             # Make sure the PIC flag is empty.  It appears that all Alpha
10885             # Linux and Compaq Tru64 Unix objects are PIC.
10886             lt_prog_compiler_pic_CXX=
10887             lt_prog_compiler_static_CXX='-non_shared'
10888             ;;
10889           *)
10890             ;;
10891         esac
10892         ;;
10893       psos*)
10894         ;;
10895       sco*)
10896         case $cc_basename in
10897           CC)
10898             lt_prog_compiler_pic_CXX='-fPIC'
10899             ;;
10900           *)
10901             ;;
10902         esac
10903         ;;
10904       solaris*)
10905         case $cc_basename in
10906           CC)
10907             # Sun C++ 4.2, 5.x and Centerline C++
10908             lt_prog_compiler_pic_CXX='-KPIC'
10909             lt_prog_compiler_static_CXX='-Bstatic'
10910             lt_prog_compiler_wl_CXX='-Qoption ld '
10911             ;;
10912           gcx)
10913             # Green Hills C++ Compiler
10914             lt_prog_compiler_pic_CXX='-PIC'
10915             ;;
10916           *)
10917             ;;
10918         esac
10919         ;;
10920       sunos4*)
10921         case $cc_basename in
10922           CC)
10923             # Sun C++ 4.x
10924             lt_prog_compiler_pic_CXX='-pic'
10925             lt_prog_compiler_static_CXX='-Bstatic'
10926             ;;
10927           lcc)
10928             # Lucid
10929             lt_prog_compiler_pic_CXX='-pic'
10930             ;;
10931           *)
10932             ;;
10933         esac
10934         ;;
10935       tandem*)
10936         case $cc_basename in
10937           NCC)
10938             # NonStop-UX NCC 3.20
10939             lt_prog_compiler_pic_CXX='-KPIC'
10940             ;;
10941           *)
10942             ;;
10943         esac
10944         ;;
10945       unixware*)
10946         ;;
10947       vxworks*)
10948         ;;
10949       *)
10950         lt_prog_compiler_can_build_shared_CXX=no
10951         ;;
10952     esac
10953   fi
10954
10955 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10956 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
10957
10958 #
10959 # Check to make sure the PIC flag actually works.
10960 #
10961 if test -n "$lt_prog_compiler_pic_CXX"; then
10962
10963 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10964 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
10965 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10966   echo $ECHO_N "(cached) $ECHO_C" >&6
10967 else
10968   lt_prog_compiler_pic_works_CXX=no
10969   ac_outfile=conftest.$ac_objext
10970    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10971    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10972    # Insert the option either (1) after the last *FLAGS variable, or
10973    # (2) before a word containing "conftest.", or (3) at the end.
10974    # Note that $ac_compile itself does not contain backslashes and begins
10975    # with a dollar sign (not a hyphen), so the echo should work correctly.
10976    # The option is referenced via a variable to avoid confusing sed.
10977    lt_compile=`echo "$ac_compile" | $SED \
10978    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10979    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10980    -e 's:$: $lt_compiler_flag:'`
10981    (eval echo "\"\$as_me:10981: $lt_compile\"" >&5)
10982    (eval "$lt_compile" 2>conftest.err)
10983    ac_status=$?
10984    cat conftest.err >&5
10985    echo "$as_me:10985: \$? = $ac_status" >&5
10986    if (exit $ac_status) && test -s "$ac_outfile"; then
10987      # The compiler can only warn and ignore the option if not recognized
10988      # So say no if there are warnings
10989      if test ! -s conftest.err; then
10990        lt_prog_compiler_pic_works_CXX=yes
10991      fi
10992    fi
10993    $rm conftest*
10994
10995 fi
10996 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10997 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
10998
10999 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11000     case $lt_prog_compiler_pic_CXX in
11001      "" | " "*) ;;
11002      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11003      esac
11004 else
11005     lt_prog_compiler_pic_CXX=
11006      lt_prog_compiler_can_build_shared_CXX=no
11007 fi
11008
11009 fi
11010 case "$host_os" in
11011   # For platforms which do not support PIC, -DPIC is meaningless:
11012   *djgpp*)
11013     lt_prog_compiler_pic_CXX=
11014     ;;
11015   *)
11016     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11017     ;;
11018 esac
11019
11020 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11021 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
11022 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11023   echo $ECHO_N "(cached) $ECHO_C" >&6
11024 else
11025   lt_cv_prog_compiler_c_o_CXX=no
11026    $rm -r conftest 2>/dev/null
11027    mkdir conftest
11028    cd conftest
11029    mkdir out
11030    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11031
11032    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
11033    # that will create temporary files in the current directory regardless of
11034    # the output directory.  Thus, making CWD read-only will cause this test
11035    # to fail, enabling locking or at least warning the user not to do parallel
11036    # builds.
11037    chmod -w .
11038
11039    lt_compiler_flag="-o out/conftest2.$ac_objext"
11040    # Insert the option either (1) after the last *FLAGS variable, or
11041    # (2) before a word containing "conftest.", or (3) at the end.
11042    # Note that $ac_compile itself does not contain backslashes and begins
11043    # with a dollar sign (not a hyphen), so the echo should work correctly.
11044    lt_compile=`echo "$ac_compile" | $SED \
11045    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11046    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11047    -e 's:$: $lt_compiler_flag:'`
11048    (eval echo "\"\$as_me:11048: $lt_compile\"" >&5)
11049    (eval "$lt_compile" 2>out/conftest.err)
11050    ac_status=$?
11051    cat out/conftest.err >&5
11052    echo "$as_me:11052: \$? = $ac_status" >&5
11053    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11054    then
11055      # The compiler can only warn and ignore the option if not recognized
11056      # So say no if there are warnings
11057      if test ! -s out/conftest.err; then
11058        lt_cv_prog_compiler_c_o_CXX=yes
11059      fi
11060    fi
11061    chmod u+w .
11062    $rm conftest*
11063    # SGI C++ compiler will create directory out/ii_files/ for
11064    # template instantiation
11065    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11066    $rm out/* && rmdir out
11067    cd ..
11068    rmdir conftest
11069    $rm conftest*
11070
11071 fi
11072 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11073 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
11074
11075
11076 hard_links="nottested"
11077 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11078   # do not overwrite the value of need_locks provided by the user
11079   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11080 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
11081   hard_links=yes
11082   $rm conftest*
11083   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11084   touch conftest.a
11085   ln conftest.a conftest.b 2>&5 || hard_links=no
11086   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11087   { echo "$as_me:$LINENO: result: $hard_links" >&5
11088 echo "${ECHO_T}$hard_links" >&6; }
11089   if test "$hard_links" = no; then
11090     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11091 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11092     need_locks=warn
11093   fi
11094 else
11095   need_locks=no
11096 fi
11097
11098 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11099 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11100
11101   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11102   case $host_os in
11103   aix4* | aix5*)
11104     # If we're using GNU nm, then we don't want the "-C" option.
11105     # -C means demangle to AIX nm, but means don't demangle with GNU nm
11106     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11107       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'
11108     else
11109       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'
11110     fi
11111     ;;
11112   pw32*)
11113     export_symbols_cmds_CXX="$ltdll_cmds"
11114   ;;
11115   cygwin* | mingw*)
11116     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11117   ;;
11118   *)
11119     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11120   ;;
11121   esac
11122
11123 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11124 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11125 test "$ld_shlibs_CXX" = no && can_build_shared=no
11126
11127 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11128 if test "$GCC" = yes; then
11129   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11130 fi
11131
11132 #
11133 # Do we need to explicitly link libc?
11134 #
11135 case "x$archive_cmds_need_lc_CXX" in
11136 x|xyes)
11137   # Assume -lc should be added
11138   archive_cmds_need_lc_CXX=yes
11139
11140   if test "$enable_shared" = yes && test "$GCC" = yes; then
11141     case $archive_cmds_CXX in
11142     *'~'*)
11143       # FIXME: we may have to deal with multi-command sequences.
11144       ;;
11145     '$CC '*)
11146       # Test whether the compiler implicitly links with -lc since on some
11147       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11148       # to ld, don't add -lc before -lgcc.
11149       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11150 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11151       $rm conftest*
11152       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11153
11154       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11155   (eval $ac_compile) 2>&5
11156   ac_status=$?
11157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11158   (exit $ac_status); } 2>conftest.err; then
11159         soname=conftest
11160         lib=conftest
11161         libobjs=conftest.$ac_objext
11162         deplibs=
11163         wl=$lt_prog_compiler_wl_CXX
11164         compiler_flags=-v
11165         linker_flags=-v
11166         verstring=
11167         output_objdir=.
11168         libname=conftest
11169         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11170         allow_undefined_flag_CXX=
11171         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11172   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11173   ac_status=$?
11174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11175   (exit $ac_status); }
11176         then
11177           archive_cmds_need_lc_CXX=no
11178         else
11179           archive_cmds_need_lc_CXX=yes
11180         fi
11181         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11182       else
11183         cat conftest.err 1>&5
11184       fi
11185       $rm conftest*
11186       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11187 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
11188       ;;
11189     esac
11190   fi
11191   ;;
11192 esac
11193
11194 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11195 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11196 library_names_spec=
11197 libname_spec='lib$name'
11198 soname_spec=
11199 shrext=".so"
11200 postinstall_cmds=
11201 postuninstall_cmds=
11202 finish_cmds=
11203 finish_eval=
11204 shlibpath_var=
11205 shlibpath_overrides_runpath=unknown
11206 version_type=none
11207 dynamic_linker="$host_os ld.so"
11208 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11209 if test "$GCC" = yes; then
11210   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11211   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11212     # if the path contains ";" then we assume it to be the separator
11213     # otherwise default to the standard path separator (i.e. ":") - it is
11214     # assumed that no part of a normal pathname contains ";" but that should
11215     # okay in the real world where ";" in dirpaths is itself problematic.
11216     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11217   else
11218     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11219   fi
11220 else
11221   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11222 fi
11223 need_lib_prefix=unknown
11224 hardcode_into_libs=no
11225
11226 # when you set need_version to no, make sure it does not cause -set_version
11227 # flags to be left without arguments
11228 need_version=unknown
11229
11230 case $host_os in
11231 aix3*)
11232   version_type=linux
11233   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11234   shlibpath_var=LIBPATH
11235
11236   # AIX 3 has no versioning support, so we append a major version to the name.
11237   soname_spec='${libname}${release}${shared_ext}$major'
11238   ;;
11239
11240 aix4* | aix5*)
11241   version_type=linux
11242   need_lib_prefix=no
11243   need_version=no
11244   hardcode_into_libs=yes
11245   if test "$host_cpu" = ia64; then
11246     # AIX 5 supports IA64
11247     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11248     shlibpath_var=LD_LIBRARY_PATH
11249   else
11250     # With GCC up to 2.95.x, collect2 would create an import file
11251     # for dependence libraries.  The import file would start with
11252     # the line `#! .'.  This would cause the generated library to
11253     # depend on `.', always an invalid library.  This was fixed in
11254     # development snapshots of GCC prior to 3.0.
11255     case $host_os in
11256       aix4 | aix4.[01] | aix4.[01].*)
11257       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11258            echo ' yes '
11259            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11260         :
11261       else
11262         can_build_shared=no
11263       fi
11264       ;;
11265     esac
11266     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11267     # soname into executable. Probably we can add versioning support to
11268     # collect2, so additional links can be useful in future.
11269     if test "$aix_use_runtimelinking" = yes; then
11270       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11271       # instead of lib<name>.a to let people know that these are not
11272       # typical AIX shared libraries.
11273       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11274     else
11275       # We preserve .a as extension for shared libraries through AIX4.2
11276       # and later when we are not doing run time linking.
11277       library_names_spec='${libname}${release}.a $libname.a'
11278       soname_spec='${libname}${release}${shared_ext}$major'
11279     fi
11280     shlibpath_var=LIBPATH
11281   fi
11282   ;;
11283
11284 amigaos*)
11285   library_names_spec='$libname.ixlibrary $libname.a'
11286   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11287   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'
11288   ;;
11289
11290 beos*)
11291   library_names_spec='${libname}${shared_ext}'
11292   dynamic_linker="$host_os ld.so"
11293   shlibpath_var=LIBRARY_PATH
11294   ;;
11295
11296 bsdi4*)
11297   version_type=linux
11298   need_version=no
11299   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11300   soname_spec='${libname}${release}${shared_ext}$major'
11301   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11302   shlibpath_var=LD_LIBRARY_PATH
11303   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11304   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11305   # the default ld.so.conf also contains /usr/contrib/lib and
11306   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11307   # libtool to hard-code these into programs
11308   ;;
11309
11310 cygwin* | mingw* | pw32*)
11311   version_type=windows
11312   shrext=".dll"
11313   need_version=no
11314   need_lib_prefix=no
11315
11316   case $GCC,$host_os in
11317   yes,cygwin* | yes,mingw* | yes,pw32*)
11318     library_names_spec='$libname.dll.a'
11319     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11320     postinstall_cmds='base_file=`basename \${file}`~
11321       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11322       dldir=$destdir/`dirname \$dlpath`~
11323       test -d \$dldir || mkdir -p \$dldir~
11324       $install_prog $dir/$dlname \$dldir/$dlname'
11325     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11326       dlpath=$dir/\$dldll~
11327        $rm \$dlpath'
11328     shlibpath_overrides_runpath=yes
11329
11330     case $host_os in
11331     cygwin*)
11332       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11333       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11334       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11335       ;;
11336     mingw*)
11337       # MinGW DLLs use traditional 'lib' prefix
11338       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11339       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11340       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11341         # It is most probably a Windows format PATH printed by
11342         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11343         # path with ; separators, and with drive letters. We can handle the
11344         # drive letters (cygwin fileutils understands them), so leave them,
11345         # especially as we might pass files found there to a mingw objdump,
11346         # which wouldn't understand a cygwinified path. Ahh.
11347         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11348       else
11349         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11350       fi
11351       ;;
11352     pw32*)
11353       # pw32 DLLs use 'pw' prefix rather than 'lib'
11354       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11355       ;;
11356     esac
11357     ;;
11358
11359   *)
11360     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11361     ;;
11362   esac
11363   dynamic_linker='Win32 ld.exe'
11364   # FIXME: first we should search . and the directory the executable is in
11365   shlibpath_var=PATH
11366   ;;
11367
11368 darwin* | rhapsody*)
11369   dynamic_linker="$host_os dyld"
11370   version_type=darwin
11371   need_lib_prefix=no
11372   need_version=no
11373   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11374   soname_spec='${libname}${release}${major}$shared_ext'
11375   shlibpath_overrides_runpath=yes
11376   shlibpath_var=DYLD_LIBRARY_PATH
11377   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11378   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11379   if test "$GCC" = yes; then
11380     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"`
11381   else
11382     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11383   fi
11384   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11385   ;;
11386
11387 dgux*)
11388   version_type=linux
11389   need_lib_prefix=no
11390   need_version=no
11391   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11392   soname_spec='${libname}${release}${shared_ext}$major'
11393   shlibpath_var=LD_LIBRARY_PATH
11394   ;;
11395
11396 freebsd1*)
11397   dynamic_linker=no
11398   ;;
11399
11400 kfreebsd*-gnu)
11401   version_type=linux
11402   need_lib_prefix=no
11403   need_version=no
11404   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11405   soname_spec='${libname}${release}${shared_ext}$major'
11406   shlibpath_var=LD_LIBRARY_PATH
11407   shlibpath_overrides_runpath=no
11408   hardcode_into_libs=yes
11409   dynamic_linker='GNU ld.so'
11410   ;;
11411
11412 freebsd*)
11413   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11414   version_type=freebsd-$objformat
11415   case $version_type in
11416     freebsd-elf*)
11417       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11418       need_version=no
11419       need_lib_prefix=no
11420       ;;
11421     freebsd-*)
11422       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11423       need_version=yes
11424       ;;
11425   esac
11426   shlibpath_var=LD_LIBRARY_PATH
11427   case $host_os in
11428   freebsd2*)
11429     shlibpath_overrides_runpath=yes
11430     ;;
11431   freebsd3.01* | freebsdelf3.01*)
11432     shlibpath_overrides_runpath=yes
11433     hardcode_into_libs=yes
11434     ;;
11435   *) # from 3.2 on
11436     shlibpath_overrides_runpath=no
11437     hardcode_into_libs=yes
11438     ;;
11439   esac
11440   ;;
11441
11442 gnu*)
11443   version_type=linux
11444   need_lib_prefix=no
11445   need_version=no
11446   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11447   soname_spec='${libname}${release}${shared_ext}$major'
11448   shlibpath_var=LD_LIBRARY_PATH
11449   hardcode_into_libs=yes
11450   ;;
11451
11452 hpux9* | hpux10* | hpux11*)
11453   # Give a soname corresponding to the major version so that dld.sl refuses to
11454   # link against other versions.
11455   version_type=sunos
11456   need_lib_prefix=no
11457   need_version=no
11458   case "$host_cpu" in
11459   ia64*)
11460     shrext='.so'
11461     hardcode_into_libs=yes
11462     dynamic_linker="$host_os dld.so"
11463     shlibpath_var=LD_LIBRARY_PATH
11464     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11465     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11466     soname_spec='${libname}${release}${shared_ext}$major'
11467     if test "X$HPUX_IA64_MODE" = X32; then
11468       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11469     else
11470       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11471     fi
11472     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11473     ;;
11474    hppa*64*)
11475      shrext='.sl'
11476      hardcode_into_libs=yes
11477      dynamic_linker="$host_os dld.sl"
11478      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11479      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11480      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11481      soname_spec='${libname}${release}${shared_ext}$major'
11482      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11483      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11484      ;;
11485    *)
11486     shrext='.sl'
11487     dynamic_linker="$host_os dld.sl"
11488     shlibpath_var=SHLIB_PATH
11489     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11490     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11491     soname_spec='${libname}${release}${shared_ext}$major'
11492     ;;
11493   esac
11494   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11495   postinstall_cmds='chmod 555 $lib'
11496   ;;
11497
11498 irix5* | irix6* | nonstopux*)
11499   case $host_os in
11500     nonstopux*) version_type=nonstopux ;;
11501     *)
11502         if test "$lt_cv_prog_gnu_ld" = yes; then
11503                 version_type=linux
11504         else
11505                 version_type=irix
11506         fi ;;
11507   esac
11508   need_lib_prefix=no
11509   need_version=no
11510   soname_spec='${libname}${release}${shared_ext}$major'
11511   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11512   case $host_os in
11513   irix5* | nonstopux*)
11514     libsuff= shlibsuff=
11515     ;;
11516   *)
11517     case $LD in # libtool.m4 will add one of these switches to LD
11518     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11519       libsuff= shlibsuff= libmagic=32-bit;;
11520     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11521       libsuff=32 shlibsuff=N32 libmagic=N32;;
11522     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11523       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11524     *) libsuff= shlibsuff= libmagic=never-match;;
11525     esac
11526     ;;
11527   esac
11528   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11529   shlibpath_overrides_runpath=no
11530   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11531   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11532   hardcode_into_libs=yes
11533   ;;
11534
11535 # No shared lib support for Linux oldld, aout, or coff.
11536 linux*oldld* | linux*aout* | linux*coff*)
11537   dynamic_linker=no
11538   ;;
11539
11540 # This must be Linux ELF.
11541 linux*)
11542   version_type=linux
11543   need_lib_prefix=no
11544   need_version=no
11545   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11546   soname_spec='${libname}${release}${shared_ext}$major'
11547   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11548   shlibpath_var=LD_LIBRARY_PATH
11549   shlibpath_overrides_runpath=no
11550   # This implies no fast_install, which is unacceptable.
11551   # Some rework will be needed to allow for fast_install
11552   # before this can be enabled.
11553   hardcode_into_libs=yes
11554
11555   # We used to test for /lib/ld.so.1 and disable shared libraries on
11556   # powerpc, because MkLinux only supported shared libraries with the
11557   # GNU dynamic linker.  Since this was broken with cross compilers,
11558   # most powerpc-linux boxes support dynamic linking these days and
11559   # people can always --disable-shared, the test was removed, and we
11560   # assume the GNU/Linux dynamic linker is in use.
11561   dynamic_linker='GNU/Linux ld.so'
11562   ;;
11563
11564 netbsd*)
11565   version_type=sunos
11566   need_lib_prefix=no
11567   need_version=no
11568   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11569     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11570     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11571     dynamic_linker='NetBSD (a.out) ld.so'
11572   else
11573     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11574     soname_spec='${libname}${release}${shared_ext}$major'
11575     dynamic_linker='NetBSD ld.elf_so'
11576   fi
11577   shlibpath_var=LD_LIBRARY_PATH
11578   shlibpath_overrides_runpath=yes
11579   hardcode_into_libs=yes
11580   ;;
11581
11582 newsos6)
11583   version_type=linux
11584   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11585   shlibpath_var=LD_LIBRARY_PATH
11586   shlibpath_overrides_runpath=yes
11587   ;;
11588
11589 nto-qnx*)
11590   version_type=linux
11591   need_lib_prefix=no
11592   need_version=no
11593   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11594   soname_spec='${libname}${release}${shared_ext}$major'
11595   shlibpath_var=LD_LIBRARY_PATH
11596   shlibpath_overrides_runpath=yes
11597   ;;
11598
11599 openbsd*)
11600   version_type=sunos
11601   need_lib_prefix=no
11602   need_version=no
11603   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11604   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11605   shlibpath_var=LD_LIBRARY_PATH
11606   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11607     case $host_os in
11608       openbsd2.[89] | openbsd2.[89].*)
11609         shlibpath_overrides_runpath=no
11610         ;;
11611       *)
11612         shlibpath_overrides_runpath=yes
11613         ;;
11614       esac
11615   else
11616     shlibpath_overrides_runpath=yes
11617   fi
11618   ;;
11619
11620 os2*)
11621   libname_spec='$name'
11622   shrext=".dll"
11623   need_lib_prefix=no
11624   library_names_spec='$libname${shared_ext} $libname.a'
11625   dynamic_linker='OS/2 ld.exe'
11626   shlibpath_var=LIBPATH
11627   ;;
11628
11629 osf3* | osf4* | osf5*)
11630   version_type=osf
11631   need_lib_prefix=no
11632   need_version=no
11633   soname_spec='${libname}${release}${shared_ext}$major'
11634   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11635   shlibpath_var=LD_LIBRARY_PATH
11636   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11637   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11638   ;;
11639
11640 sco3.2v5*)
11641   version_type=osf
11642   soname_spec='${libname}${release}${shared_ext}$major'
11643   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11644   shlibpath_var=LD_LIBRARY_PATH
11645   ;;
11646
11647 solaris*)
11648   version_type=linux
11649   need_lib_prefix=no
11650   need_version=no
11651   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11652   soname_spec='${libname}${release}${shared_ext}$major'
11653   shlibpath_var=LD_LIBRARY_PATH
11654   shlibpath_overrides_runpath=yes
11655   hardcode_into_libs=yes
11656   # ldd complains unless libraries are executable
11657   postinstall_cmds='chmod +x $lib'
11658   ;;
11659
11660 sunos4*)
11661   version_type=sunos
11662   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11663   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11664   shlibpath_var=LD_LIBRARY_PATH
11665   shlibpath_overrides_runpath=yes
11666   if test "$with_gnu_ld" = yes; then
11667     need_lib_prefix=no
11668   fi
11669   need_version=yes
11670   ;;
11671
11672 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11673   version_type=linux
11674   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11675   soname_spec='${libname}${release}${shared_ext}$major'
11676   shlibpath_var=LD_LIBRARY_PATH
11677   case $host_vendor in
11678     sni)
11679       shlibpath_overrides_runpath=no
11680       need_lib_prefix=no
11681       export_dynamic_flag_spec='${wl}-Blargedynsym'
11682       runpath_var=LD_RUN_PATH
11683       ;;
11684     siemens)
11685       need_lib_prefix=no
11686       ;;
11687     motorola)
11688       need_lib_prefix=no
11689       need_version=no
11690       shlibpath_overrides_runpath=no
11691       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11692       ;;
11693   esac
11694   ;;
11695
11696 sysv4*MP*)
11697   if test -d /usr/nec ;then
11698     version_type=linux
11699     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11700     soname_spec='$libname${shared_ext}.$major'
11701     shlibpath_var=LD_LIBRARY_PATH
11702   fi
11703   ;;
11704
11705 uts4*)
11706   version_type=linux
11707   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11708   soname_spec='${libname}${release}${shared_ext}$major'
11709   shlibpath_var=LD_LIBRARY_PATH
11710   ;;
11711
11712 *)
11713   dynamic_linker=no
11714   ;;
11715 esac
11716 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11717 echo "${ECHO_T}$dynamic_linker" >&6; }
11718 test "$dynamic_linker" = no && can_build_shared=no
11719
11720 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11721 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
11722 hardcode_action_CXX=
11723 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11724    test -n "$runpath_var CXX" || \
11725    test "X$hardcode_automatic_CXX"="Xyes" ; then
11726
11727   # We can hardcode non-existant directories.
11728   if test "$hardcode_direct_CXX" != no &&
11729      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11730      # have to relink, otherwise we might link with an installed library
11731      # when we should be linking with a yet-to-be-installed one
11732      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11733      test "$hardcode_minus_L_CXX" != no; then
11734     # Linking always hardcodes the temporary library directory.
11735     hardcode_action_CXX=relink
11736   else
11737     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11738     hardcode_action_CXX=immediate
11739   fi
11740 else
11741   # We cannot hardcode anything, or else we can only hardcode existing
11742   # directories.
11743   hardcode_action_CXX=unsupported
11744 fi
11745 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11746 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
11747
11748 if test "$hardcode_action_CXX" = relink; then
11749   # Fast installation is not supported
11750   enable_fast_install=no
11751 elif test "$shlibpath_overrides_runpath" = yes ||
11752      test "$enable_shared" = no; then
11753   # Fast installation is not necessary
11754   enable_fast_install=needless
11755 fi
11756
11757 striplib=
11758 old_striplib=
11759 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11760 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
11761 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11762   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11763   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11764   { echo "$as_me:$LINENO: result: yes" >&5
11765 echo "${ECHO_T}yes" >&6; }
11766 else
11767 # FIXME - insert some real tests, host_os isn't really good enough
11768   case $host_os in
11769    darwin*)
11770        if test -n "$STRIP" ; then
11771          striplib="$STRIP -x"
11772          { echo "$as_me:$LINENO: result: yes" >&5
11773 echo "${ECHO_T}yes" >&6; }
11774        else
11775   { echo "$as_me:$LINENO: result: no" >&5
11776 echo "${ECHO_T}no" >&6; }
11777 fi
11778        ;;
11779    *)
11780   { echo "$as_me:$LINENO: result: no" >&5
11781 echo "${ECHO_T}no" >&6; }
11782     ;;
11783   esac
11784 fi
11785
11786 if test "x$enable_dlopen" != xyes; then
11787   enable_dlopen=unknown
11788   enable_dlopen_self=unknown
11789   enable_dlopen_self_static=unknown
11790 else
11791   lt_cv_dlopen=no
11792   lt_cv_dlopen_libs=
11793
11794   case $host_os in
11795   beos*)
11796     lt_cv_dlopen="load_add_on"
11797     lt_cv_dlopen_libs=
11798     lt_cv_dlopen_self=yes
11799     ;;
11800
11801   mingw* | pw32*)
11802     lt_cv_dlopen="LoadLibrary"
11803     lt_cv_dlopen_libs=
11804    ;;
11805
11806   cygwin*)
11807     lt_cv_dlopen="dlopen"
11808     lt_cv_dlopen_libs=
11809    ;;
11810
11811   darwin*)
11812   # if libdl is installed we need to link against it
11813     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11814 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11815 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11816   echo $ECHO_N "(cached) $ECHO_C" >&6
11817 else
11818   ac_check_lib_save_LIBS=$LIBS
11819 LIBS="-ldl  $LIBS"
11820 cat >conftest.$ac_ext <<_ACEOF
11821 /* confdefs.h.  */
11822 _ACEOF
11823 cat confdefs.h >>conftest.$ac_ext
11824 cat >>conftest.$ac_ext <<_ACEOF
11825 /* end confdefs.h.  */
11826
11827 /* Override any GCC internal prototype to avoid an error.
11828    Use char because int might match the return type of a GCC
11829    builtin and then its argument prototype would still apply.  */
11830 #ifdef __cplusplus
11831 extern "C"
11832 #endif
11833 char dlopen ();
11834 int
11835 main ()
11836 {
11837 return dlopen ();
11838   ;
11839   return 0;
11840 }
11841 _ACEOF
11842 rm -f conftest.$ac_objext conftest$ac_exeext
11843 if { (ac_try="$ac_link"
11844 case "(($ac_try" in
11845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11846   *) ac_try_echo=$ac_try;;
11847 esac
11848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11849   (eval "$ac_link") 2>conftest.er1
11850   ac_status=$?
11851   grep -v '^ *+' conftest.er1 >conftest.err
11852   rm -f conftest.er1
11853   cat conftest.err >&5
11854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11855   (exit $ac_status); } && {
11856          test -z "$ac_cxx_werror_flag" ||
11857          test ! -s conftest.err
11858        } && test -s conftest$ac_exeext &&
11859        $as_test_x conftest$ac_exeext; then
11860   ac_cv_lib_dl_dlopen=yes
11861 else
11862   echo "$as_me: failed program was:" >&5
11863 sed 's/^/| /' conftest.$ac_ext >&5
11864
11865         ac_cv_lib_dl_dlopen=no
11866 fi
11867
11868 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11869       conftest$ac_exeext conftest.$ac_ext
11870 LIBS=$ac_check_lib_save_LIBS
11871 fi
11872 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11873 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11874 if test $ac_cv_lib_dl_dlopen = yes; then
11875   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11876 else
11877
11878     lt_cv_dlopen="dyld"
11879     lt_cv_dlopen_libs=
11880     lt_cv_dlopen_self=yes
11881
11882 fi
11883
11884    ;;
11885
11886   *)
11887     { echo "$as_me:$LINENO: checking for shl_load" >&5
11888 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
11889 if test "${ac_cv_func_shl_load+set}" = set; then
11890   echo $ECHO_N "(cached) $ECHO_C" >&6
11891 else
11892   cat >conftest.$ac_ext <<_ACEOF
11893 /* confdefs.h.  */
11894 _ACEOF
11895 cat confdefs.h >>conftest.$ac_ext
11896 cat >>conftest.$ac_ext <<_ACEOF
11897 /* end confdefs.h.  */
11898 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11899    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11900 #define shl_load innocuous_shl_load
11901
11902 /* System header to define __stub macros and hopefully few prototypes,
11903     which can conflict with char shl_load (); below.
11904     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11905     <limits.h> exists even on freestanding compilers.  */
11906
11907 #ifdef __STDC__
11908 # include <limits.h>
11909 #else
11910 # include <assert.h>
11911 #endif
11912
11913 #undef shl_load
11914
11915 /* Override any GCC internal prototype to avoid an error.
11916    Use char because int might match the return type of a GCC
11917    builtin and then its argument prototype would still apply.  */
11918 #ifdef __cplusplus
11919 extern "C"
11920 #endif
11921 char shl_load ();
11922 /* The GNU C library defines this for functions which it implements
11923     to always fail with ENOSYS.  Some functions are actually named
11924     something starting with __ and the normal name is an alias.  */
11925 #if defined __stub_shl_load || defined __stub___shl_load
11926 choke me
11927 #endif
11928
11929 int
11930 main ()
11931 {
11932 return shl_load ();
11933   ;
11934   return 0;
11935 }
11936 _ACEOF
11937 rm -f conftest.$ac_objext conftest$ac_exeext
11938 if { (ac_try="$ac_link"
11939 case "(($ac_try" in
11940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11941   *) ac_try_echo=$ac_try;;
11942 esac
11943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11944   (eval "$ac_link") 2>conftest.er1
11945   ac_status=$?
11946   grep -v '^ *+' conftest.er1 >conftest.err
11947   rm -f conftest.er1
11948   cat conftest.err >&5
11949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11950   (exit $ac_status); } && {
11951          test -z "$ac_cxx_werror_flag" ||
11952          test ! -s conftest.err
11953        } && test -s conftest$ac_exeext &&
11954        $as_test_x conftest$ac_exeext; then
11955   ac_cv_func_shl_load=yes
11956 else
11957   echo "$as_me: failed program was:" >&5
11958 sed 's/^/| /' conftest.$ac_ext >&5
11959
11960         ac_cv_func_shl_load=no
11961 fi
11962
11963 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11964       conftest$ac_exeext conftest.$ac_ext
11965 fi
11966 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11967 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
11968 if test $ac_cv_func_shl_load = yes; then
11969   lt_cv_dlopen="shl_load"
11970 else
11971   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11972 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
11973 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11974   echo $ECHO_N "(cached) $ECHO_C" >&6
11975 else
11976   ac_check_lib_save_LIBS=$LIBS
11977 LIBS="-ldld  $LIBS"
11978 cat >conftest.$ac_ext <<_ACEOF
11979 /* confdefs.h.  */
11980 _ACEOF
11981 cat confdefs.h >>conftest.$ac_ext
11982 cat >>conftest.$ac_ext <<_ACEOF
11983 /* end confdefs.h.  */
11984
11985 /* Override any GCC internal prototype to avoid an error.
11986    Use char because int might match the return type of a GCC
11987    builtin and then its argument prototype would still apply.  */
11988 #ifdef __cplusplus
11989 extern "C"
11990 #endif
11991 char shl_load ();
11992 int
11993 main ()
11994 {
11995 return shl_load ();
11996   ;
11997   return 0;
11998 }
11999 _ACEOF
12000 rm -f conftest.$ac_objext conftest$ac_exeext
12001 if { (ac_try="$ac_link"
12002 case "(($ac_try" in
12003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12004   *) ac_try_echo=$ac_try;;
12005 esac
12006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12007   (eval "$ac_link") 2>conftest.er1
12008   ac_status=$?
12009   grep -v '^ *+' conftest.er1 >conftest.err
12010   rm -f conftest.er1
12011   cat conftest.err >&5
12012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12013   (exit $ac_status); } && {
12014          test -z "$ac_cxx_werror_flag" ||
12015          test ! -s conftest.err
12016        } && test -s conftest$ac_exeext &&
12017        $as_test_x conftest$ac_exeext; then
12018   ac_cv_lib_dld_shl_load=yes
12019 else
12020   echo "$as_me: failed program was:" >&5
12021 sed 's/^/| /' conftest.$ac_ext >&5
12022
12023         ac_cv_lib_dld_shl_load=no
12024 fi
12025
12026 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12027       conftest$ac_exeext conftest.$ac_ext
12028 LIBS=$ac_check_lib_save_LIBS
12029 fi
12030 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12031 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
12032 if test $ac_cv_lib_dld_shl_load = yes; then
12033   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12034 else
12035   { echo "$as_me:$LINENO: checking for dlopen" >&5
12036 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
12037 if test "${ac_cv_func_dlopen+set}" = set; then
12038   echo $ECHO_N "(cached) $ECHO_C" >&6
12039 else
12040   cat >conftest.$ac_ext <<_ACEOF
12041 /* confdefs.h.  */
12042 _ACEOF
12043 cat confdefs.h >>conftest.$ac_ext
12044 cat >>conftest.$ac_ext <<_ACEOF
12045 /* end confdefs.h.  */
12046 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12047    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12048 #define dlopen innocuous_dlopen
12049
12050 /* System header to define __stub macros and hopefully few prototypes,
12051     which can conflict with char dlopen (); below.
12052     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12053     <limits.h> exists even on freestanding compilers.  */
12054
12055 #ifdef __STDC__
12056 # include <limits.h>
12057 #else
12058 # include <assert.h>
12059 #endif
12060
12061 #undef dlopen
12062
12063 /* Override any GCC internal prototype to avoid an error.
12064    Use char because int might match the return type of a GCC
12065    builtin and then its argument prototype would still apply.  */
12066 #ifdef __cplusplus
12067 extern "C"
12068 #endif
12069 char dlopen ();
12070 /* The GNU C library defines this for functions which it implements
12071     to always fail with ENOSYS.  Some functions are actually named
12072     something starting with __ and the normal name is an alias.  */
12073 #if defined __stub_dlopen || defined __stub___dlopen
12074 choke me
12075 #endif
12076
12077 int
12078 main ()
12079 {
12080 return dlopen ();
12081   ;
12082   return 0;
12083 }
12084 _ACEOF
12085 rm -f conftest.$ac_objext conftest$ac_exeext
12086 if { (ac_try="$ac_link"
12087 case "(($ac_try" in
12088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12089   *) ac_try_echo=$ac_try;;
12090 esac
12091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12092   (eval "$ac_link") 2>conftest.er1
12093   ac_status=$?
12094   grep -v '^ *+' conftest.er1 >conftest.err
12095   rm -f conftest.er1
12096   cat conftest.err >&5
12097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12098   (exit $ac_status); } && {
12099          test -z "$ac_cxx_werror_flag" ||
12100          test ! -s conftest.err
12101        } && test -s conftest$ac_exeext &&
12102        $as_test_x conftest$ac_exeext; then
12103   ac_cv_func_dlopen=yes
12104 else
12105   echo "$as_me: failed program was:" >&5
12106 sed 's/^/| /' conftest.$ac_ext >&5
12107
12108         ac_cv_func_dlopen=no
12109 fi
12110
12111 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12112       conftest$ac_exeext conftest.$ac_ext
12113 fi
12114 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12115 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
12116 if test $ac_cv_func_dlopen = yes; then
12117   lt_cv_dlopen="dlopen"
12118 else
12119   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12120 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12121 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12122   echo $ECHO_N "(cached) $ECHO_C" >&6
12123 else
12124   ac_check_lib_save_LIBS=$LIBS
12125 LIBS="-ldl  $LIBS"
12126 cat >conftest.$ac_ext <<_ACEOF
12127 /* confdefs.h.  */
12128 _ACEOF
12129 cat confdefs.h >>conftest.$ac_ext
12130 cat >>conftest.$ac_ext <<_ACEOF
12131 /* end confdefs.h.  */
12132
12133 /* Override any GCC internal prototype to avoid an error.
12134    Use char because int might match the return type of a GCC
12135    builtin and then its argument prototype would still apply.  */
12136 #ifdef __cplusplus
12137 extern "C"
12138 #endif
12139 char dlopen ();
12140 int
12141 main ()
12142 {
12143 return dlopen ();
12144   ;
12145   return 0;
12146 }
12147 _ACEOF
12148 rm -f conftest.$ac_objext conftest$ac_exeext
12149 if { (ac_try="$ac_link"
12150 case "(($ac_try" in
12151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12152   *) ac_try_echo=$ac_try;;
12153 esac
12154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12155   (eval "$ac_link") 2>conftest.er1
12156   ac_status=$?
12157   grep -v '^ *+' conftest.er1 >conftest.err
12158   rm -f conftest.er1
12159   cat conftest.err >&5
12160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12161   (exit $ac_status); } && {
12162          test -z "$ac_cxx_werror_flag" ||
12163          test ! -s conftest.err
12164        } && test -s conftest$ac_exeext &&
12165        $as_test_x conftest$ac_exeext; then
12166   ac_cv_lib_dl_dlopen=yes
12167 else
12168   echo "$as_me: failed program was:" >&5
12169 sed 's/^/| /' conftest.$ac_ext >&5
12170
12171         ac_cv_lib_dl_dlopen=no
12172 fi
12173
12174 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12175       conftest$ac_exeext conftest.$ac_ext
12176 LIBS=$ac_check_lib_save_LIBS
12177 fi
12178 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12179 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12180 if test $ac_cv_lib_dl_dlopen = yes; then
12181   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12182 else
12183   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12184 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
12185 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12186   echo $ECHO_N "(cached) $ECHO_C" >&6
12187 else
12188   ac_check_lib_save_LIBS=$LIBS
12189 LIBS="-lsvld  $LIBS"
12190 cat >conftest.$ac_ext <<_ACEOF
12191 /* confdefs.h.  */
12192 _ACEOF
12193 cat confdefs.h >>conftest.$ac_ext
12194 cat >>conftest.$ac_ext <<_ACEOF
12195 /* end confdefs.h.  */
12196
12197 /* Override any GCC internal prototype to avoid an error.
12198    Use char because int might match the return type of a GCC
12199    builtin and then its argument prototype would still apply.  */
12200 #ifdef __cplusplus
12201 extern "C"
12202 #endif
12203 char dlopen ();
12204 int
12205 main ()
12206 {
12207 return dlopen ();
12208   ;
12209   return 0;
12210 }
12211 _ACEOF
12212 rm -f conftest.$ac_objext conftest$ac_exeext
12213 if { (ac_try="$ac_link"
12214 case "(($ac_try" in
12215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12216   *) ac_try_echo=$ac_try;;
12217 esac
12218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12219   (eval "$ac_link") 2>conftest.er1
12220   ac_status=$?
12221   grep -v '^ *+' conftest.er1 >conftest.err
12222   rm -f conftest.er1
12223   cat conftest.err >&5
12224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12225   (exit $ac_status); } && {
12226          test -z "$ac_cxx_werror_flag" ||
12227          test ! -s conftest.err
12228        } && test -s conftest$ac_exeext &&
12229        $as_test_x conftest$ac_exeext; then
12230   ac_cv_lib_svld_dlopen=yes
12231 else
12232   echo "$as_me: failed program was:" >&5
12233 sed 's/^/| /' conftest.$ac_ext >&5
12234
12235         ac_cv_lib_svld_dlopen=no
12236 fi
12237
12238 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12239       conftest$ac_exeext conftest.$ac_ext
12240 LIBS=$ac_check_lib_save_LIBS
12241 fi
12242 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12243 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
12244 if test $ac_cv_lib_svld_dlopen = yes; then
12245   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12246 else
12247   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12248 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
12249 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12250   echo $ECHO_N "(cached) $ECHO_C" >&6
12251 else
12252   ac_check_lib_save_LIBS=$LIBS
12253 LIBS="-ldld  $LIBS"
12254 cat >conftest.$ac_ext <<_ACEOF
12255 /* confdefs.h.  */
12256 _ACEOF
12257 cat confdefs.h >>conftest.$ac_ext
12258 cat >>conftest.$ac_ext <<_ACEOF
12259 /* end confdefs.h.  */
12260
12261 /* Override any GCC internal prototype to avoid an error.
12262    Use char because int might match the return type of a GCC
12263    builtin and then its argument prototype would still apply.  */
12264 #ifdef __cplusplus
12265 extern "C"
12266 #endif
12267 char dld_link ();
12268 int
12269 main ()
12270 {
12271 return dld_link ();
12272   ;
12273   return 0;
12274 }
12275 _ACEOF
12276 rm -f conftest.$ac_objext conftest$ac_exeext
12277 if { (ac_try="$ac_link"
12278 case "(($ac_try" in
12279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12280   *) ac_try_echo=$ac_try;;
12281 esac
12282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12283   (eval "$ac_link") 2>conftest.er1
12284   ac_status=$?
12285   grep -v '^ *+' conftest.er1 >conftest.err
12286   rm -f conftest.er1
12287   cat conftest.err >&5
12288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12289   (exit $ac_status); } && {
12290          test -z "$ac_cxx_werror_flag" ||
12291          test ! -s conftest.err
12292        } && test -s conftest$ac_exeext &&
12293        $as_test_x conftest$ac_exeext; then
12294   ac_cv_lib_dld_dld_link=yes
12295 else
12296   echo "$as_me: failed program was:" >&5
12297 sed 's/^/| /' conftest.$ac_ext >&5
12298
12299         ac_cv_lib_dld_dld_link=no
12300 fi
12301
12302 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12303       conftest$ac_exeext conftest.$ac_ext
12304 LIBS=$ac_check_lib_save_LIBS
12305 fi
12306 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12307 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
12308 if test $ac_cv_lib_dld_dld_link = yes; then
12309   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12310 fi
12311
12312
12313 fi
12314
12315
12316 fi
12317
12318
12319 fi
12320
12321
12322 fi
12323
12324
12325 fi
12326
12327     ;;
12328   esac
12329
12330   if test "x$lt_cv_dlopen" != xno; then
12331     enable_dlopen=yes
12332   else
12333     enable_dlopen=no
12334   fi
12335
12336   case $lt_cv_dlopen in
12337   dlopen)
12338     save_CPPFLAGS="$CPPFLAGS"
12339     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12340
12341     save_LDFLAGS="$LDFLAGS"
12342     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12343
12344     save_LIBS="$LIBS"
12345     LIBS="$lt_cv_dlopen_libs $LIBS"
12346
12347     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12348 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
12349 if test "${lt_cv_dlopen_self+set}" = set; then
12350   echo $ECHO_N "(cached) $ECHO_C" >&6
12351 else
12352           if test "$cross_compiling" = yes; then :
12353   lt_cv_dlopen_self=cross
12354 else
12355   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12356   lt_status=$lt_dlunknown
12357   cat > conftest.$ac_ext <<EOF
12358 #line 12358 "configure"
12359 #include "confdefs.h"
12360
12361 #if HAVE_DLFCN_H
12362 #include <dlfcn.h>
12363 #endif
12364
12365 #include <stdio.h>
12366
12367 #ifdef RTLD_GLOBAL
12368 #  define LT_DLGLOBAL           RTLD_GLOBAL
12369 #else
12370 #  ifdef DL_GLOBAL
12371 #    define LT_DLGLOBAL         DL_GLOBAL
12372 #  else
12373 #    define LT_DLGLOBAL         0
12374 #  endif
12375 #endif
12376
12377 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12378    find out it does not work in some platform. */
12379 #ifndef LT_DLLAZY_OR_NOW
12380 #  ifdef RTLD_LAZY
12381 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12382 #  else
12383 #    ifdef DL_LAZY
12384 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12385 #    else
12386 #      ifdef RTLD_NOW
12387 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12388 #      else
12389 #        ifdef DL_NOW
12390 #          define LT_DLLAZY_OR_NOW      DL_NOW
12391 #        else
12392 #          define LT_DLLAZY_OR_NOW      0
12393 #        endif
12394 #      endif
12395 #    endif
12396 #  endif
12397 #endif
12398
12399 #ifdef __cplusplus
12400 extern "C" void exit (int);
12401 #endif
12402
12403 void fnord() { int i=42;}
12404 int main ()
12405 {
12406   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12407   int status = $lt_dlunknown;
12408
12409   if (self)
12410     {
12411       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12412       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12413       /* dlclose (self); */
12414     }
12415
12416     exit (status);
12417 }
12418 EOF
12419   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12420   (eval $ac_link) 2>&5
12421   ac_status=$?
12422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12424     (./conftest; exit; ) 2>/dev/null
12425     lt_status=$?
12426     case x$lt_status in
12427       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12428       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12429       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12430     esac
12431   else :
12432     # compilation failed
12433     lt_cv_dlopen_self=no
12434   fi
12435 fi
12436 rm -fr conftest*
12437
12438
12439 fi
12440 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12441 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
12442
12443     if test "x$lt_cv_dlopen_self" = xyes; then
12444       LDFLAGS="$LDFLAGS $link_static_flag"
12445       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12446 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
12447 if test "${lt_cv_dlopen_self_static+set}" = set; then
12448   echo $ECHO_N "(cached) $ECHO_C" >&6
12449 else
12450           if test "$cross_compiling" = yes; then :
12451   lt_cv_dlopen_self_static=cross
12452 else
12453   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12454   lt_status=$lt_dlunknown
12455   cat > conftest.$ac_ext <<EOF
12456 #line 12456 "configure"
12457 #include "confdefs.h"
12458
12459 #if HAVE_DLFCN_H
12460 #include <dlfcn.h>
12461 #endif
12462
12463 #include <stdio.h>
12464
12465 #ifdef RTLD_GLOBAL
12466 #  define LT_DLGLOBAL           RTLD_GLOBAL
12467 #else
12468 #  ifdef DL_GLOBAL
12469 #    define LT_DLGLOBAL         DL_GLOBAL
12470 #  else
12471 #    define LT_DLGLOBAL         0
12472 #  endif
12473 #endif
12474
12475 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12476    find out it does not work in some platform. */
12477 #ifndef LT_DLLAZY_OR_NOW
12478 #  ifdef RTLD_LAZY
12479 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12480 #  else
12481 #    ifdef DL_LAZY
12482 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12483 #    else
12484 #      ifdef RTLD_NOW
12485 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12486 #      else
12487 #        ifdef DL_NOW
12488 #          define LT_DLLAZY_OR_NOW      DL_NOW
12489 #        else
12490 #          define LT_DLLAZY_OR_NOW      0
12491 #        endif
12492 #      endif
12493 #    endif
12494 #  endif
12495 #endif
12496
12497 #ifdef __cplusplus
12498 extern "C" void exit (int);
12499 #endif
12500
12501 void fnord() { int i=42;}
12502 int main ()
12503 {
12504   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12505   int status = $lt_dlunknown;
12506
12507   if (self)
12508     {
12509       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12510       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12511       /* dlclose (self); */
12512     }
12513
12514     exit (status);
12515 }
12516 EOF
12517   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12518   (eval $ac_link) 2>&5
12519   ac_status=$?
12520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12521   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12522     (./conftest; exit; ) 2>/dev/null
12523     lt_status=$?
12524     case x$lt_status in
12525       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12526       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12527       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12528     esac
12529   else :
12530     # compilation failed
12531     lt_cv_dlopen_self_static=no
12532   fi
12533 fi
12534 rm -fr conftest*
12535
12536
12537 fi
12538 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12539 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
12540     fi
12541
12542     CPPFLAGS="$save_CPPFLAGS"
12543     LDFLAGS="$save_LDFLAGS"
12544     LIBS="$save_LIBS"
12545     ;;
12546   esac
12547
12548   case $lt_cv_dlopen_self in
12549   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12550   *) enable_dlopen_self=unknown ;;
12551   esac
12552
12553   case $lt_cv_dlopen_self_static in
12554   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12555   *) enable_dlopen_self_static=unknown ;;
12556   esac
12557 fi
12558
12559
12560 # The else clause should only fire when bootstrapping the
12561 # libtool distribution, otherwise you forgot to ship ltmain.sh
12562 # with your package, and you will get complaints that there are
12563 # no rules to generate ltmain.sh.
12564 if test -f "$ltmain"; then
12565   # See if we are running on zsh, and set the options which allow our commands through
12566   # without removal of \ escapes.
12567   if test -n "${ZSH_VERSION+set}" ; then
12568     setopt NO_GLOB_SUBST
12569   fi
12570   # Now quote all the things that may contain metacharacters while being
12571   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12572   # variables and quote the copies for generation of the libtool script.
12573   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12574     SED SHELL STRIP \
12575     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12576     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12577     deplibs_check_method reload_flag reload_cmds need_locks \
12578     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12579     lt_cv_sys_global_symbol_to_c_name_address \
12580     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12581     old_postinstall_cmds old_postuninstall_cmds \
12582     compiler_CXX \
12583     CC_CXX \
12584     LD_CXX \
12585     lt_prog_compiler_wl_CXX \
12586     lt_prog_compiler_pic_CXX \
12587     lt_prog_compiler_static_CXX \
12588     lt_prog_compiler_no_builtin_flag_CXX \
12589     export_dynamic_flag_spec_CXX \
12590     thread_safe_flag_spec_CXX \
12591     whole_archive_flag_spec_CXX \
12592     enable_shared_with_static_runtimes_CXX \
12593     old_archive_cmds_CXX \
12594     old_archive_from_new_cmds_CXX \
12595     predep_objects_CXX \
12596     postdep_objects_CXX \
12597     predeps_CXX \
12598     postdeps_CXX \
12599     compiler_lib_search_path_CXX \
12600     archive_cmds_CXX \
12601     archive_expsym_cmds_CXX \
12602     postinstall_cmds_CXX \
12603     postuninstall_cmds_CXX \
12604     old_archive_from_expsyms_cmds_CXX \
12605     allow_undefined_flag_CXX \
12606     no_undefined_flag_CXX \
12607     export_symbols_cmds_CXX \
12608     hardcode_libdir_flag_spec_CXX \
12609     hardcode_libdir_flag_spec_ld_CXX \
12610     hardcode_libdir_separator_CXX \
12611     hardcode_automatic_CXX \
12612     module_cmds_CXX \
12613     module_expsym_cmds_CXX \
12614     lt_cv_prog_compiler_c_o_CXX \
12615     exclude_expsyms_CXX \
12616     include_expsyms_CXX; do
12617
12618     case $var in
12619     old_archive_cmds_CXX | \
12620     old_archive_from_new_cmds_CXX | \
12621     archive_cmds_CXX | \
12622     archive_expsym_cmds_CXX | \
12623     module_cmds_CXX | \
12624     module_expsym_cmds_CXX | \
12625     old_archive_from_expsyms_cmds_CXX | \
12626     export_symbols_cmds_CXX | \
12627     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12628     postinstall_cmds | postuninstall_cmds | \
12629     old_postinstall_cmds | old_postuninstall_cmds | \
12630     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12631       # Double-quote double-evaled strings.
12632       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12633       ;;
12634     *)
12635       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12636       ;;
12637     esac
12638   done
12639
12640   case $lt_echo in
12641   *'\$0 --fallback-echo"')
12642     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12643     ;;
12644   esac
12645
12646 cfgfile="$ofile"
12647
12648   cat <<__EOF__ >> "$cfgfile"
12649 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12650
12651 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12652
12653 # Shell to use when invoking shell scripts.
12654 SHELL=$lt_SHELL
12655
12656 # Whether or not to build shared libraries.
12657 build_libtool_libs=$enable_shared
12658
12659 # Whether or not to build static libraries.
12660 build_old_libs=$enable_static
12661
12662 # Whether or not to add -lc for building shared libraries.
12663 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12664
12665 # Whether or not to disallow shared libs when runtime libs are static
12666 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12667
12668 # Whether or not to optimize for fast installation.
12669 fast_install=$enable_fast_install
12670
12671 # The host system.
12672 host_alias=$host_alias
12673 host=$host
12674
12675 # An echo program that does not interpret backslashes.
12676 echo=$lt_echo
12677
12678 # The archiver.
12679 AR=$lt_AR
12680 AR_FLAGS=$lt_AR_FLAGS
12681
12682 # A C compiler.
12683 LTCC=$lt_LTCC
12684
12685 # A language-specific compiler.
12686 CC=$lt_compiler_CXX
12687
12688 # Is the compiler the GNU C compiler?
12689 with_gcc=$GCC_CXX
12690
12691 # An ERE matcher.
12692 EGREP=$lt_EGREP
12693
12694 # The linker used to build libraries.
12695 LD=$lt_LD_CXX
12696
12697 # Whether we need hard or soft links.
12698 LN_S=$lt_LN_S
12699
12700 # A BSD-compatible nm program.
12701 NM=$lt_NM
12702
12703 # A symbol stripping program
12704 STRIP=$lt_STRIP
12705
12706 # Used to examine libraries when file_magic_cmd begins "file"
12707 MAGIC_CMD=$MAGIC_CMD
12708
12709 # Used on cygwin: DLL creation program.
12710 DLLTOOL="$DLLTOOL"
12711
12712 # Used on cygwin: object dumper.
12713 OBJDUMP="$OBJDUMP"
12714
12715 # Used on cygwin: assembler.
12716 AS="$AS"
12717
12718 # The name of the directory that contains temporary libtool files.
12719 objdir=$objdir
12720
12721 # How to create reloadable object files.
12722 reload_flag=$lt_reload_flag
12723 reload_cmds=$lt_reload_cmds
12724
12725 # How to pass a linker flag through the compiler.
12726 wl=$lt_lt_prog_compiler_wl_CXX
12727
12728 # Object file suffix (normally "o").
12729 objext="$ac_objext"
12730
12731 # Old archive suffix (normally "a").
12732 libext="$libext"
12733
12734 # Shared library suffix (normally ".so").
12735 shrext='$shrext'
12736
12737 # Executable file suffix (normally "").
12738 exeext="$exeext"
12739
12740 # Additional compiler flags for building library objects.
12741 pic_flag=$lt_lt_prog_compiler_pic_CXX
12742 pic_mode=$pic_mode
12743
12744 # What is the maximum length of a command?
12745 max_cmd_len=$lt_cv_sys_max_cmd_len
12746
12747 # Does compiler simultaneously support -c and -o options?
12748 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12749
12750 # Must we lock files when doing compilation ?
12751 need_locks=$lt_need_locks
12752
12753 # Do we need the lib prefix for modules?
12754 need_lib_prefix=$need_lib_prefix
12755
12756 # Do we need a version for libraries?
12757 need_version=$need_version
12758
12759 # Whether dlopen is supported.
12760 dlopen_support=$enable_dlopen
12761
12762 # Whether dlopen of programs is supported.
12763 dlopen_self=$enable_dlopen_self
12764
12765 # Whether dlopen of statically linked programs is supported.
12766 dlopen_self_static=$enable_dlopen_self_static
12767
12768 # Compiler flag to prevent dynamic linking.
12769 link_static_flag=$lt_lt_prog_compiler_static_CXX
12770
12771 # Compiler flag to turn off builtin functions.
12772 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12773
12774 # Compiler flag to allow reflexive dlopens.
12775 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12776
12777 # Compiler flag to generate shared objects directly from archives.
12778 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12779
12780 # Compiler flag to generate thread-safe objects.
12781 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12782
12783 # Library versioning type.
12784 version_type=$version_type
12785
12786 # Format of library name prefix.
12787 libname_spec=$lt_libname_spec
12788
12789 # List of archive names.  First name is the real one, the rest are links.
12790 # The last name is the one that the linker finds with -lNAME.
12791 library_names_spec=$lt_library_names_spec
12792
12793 # The coded name of the library, if different from the real name.
12794 soname_spec=$lt_soname_spec
12795
12796 # Commands used to build and install an old-style archive.
12797 RANLIB=$lt_RANLIB
12798 old_archive_cmds=$lt_old_archive_cmds_CXX
12799 old_postinstall_cmds=$lt_old_postinstall_cmds
12800 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12801
12802 # Create an old-style archive from a shared archive.
12803 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12804
12805 # Create a temporary old-style archive to link instead of a shared archive.
12806 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12807
12808 # Commands used to build and install a shared archive.
12809 archive_cmds=$lt_archive_cmds_CXX
12810 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12811 postinstall_cmds=$lt_postinstall_cmds
12812 postuninstall_cmds=$lt_postuninstall_cmds
12813
12814 # Commands used to build a loadable module (assumed same as above if empty)
12815 module_cmds=$lt_module_cmds_CXX
12816 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12817
12818 # Commands to strip libraries.
12819 old_striplib=$lt_old_striplib
12820 striplib=$lt_striplib
12821
12822 # Dependencies to place before the objects being linked to create a
12823 # shared library.
12824 predep_objects=$lt_predep_objects_CXX
12825
12826 # Dependencies to place after the objects being linked to create a
12827 # shared library.
12828 postdep_objects=$lt_postdep_objects_CXX
12829
12830 # Dependencies to place before the objects being linked to create a
12831 # shared library.
12832 predeps=$lt_predeps_CXX
12833
12834 # Dependencies to place after the objects being linked to create a
12835 # shared library.
12836 postdeps=$lt_postdeps_CXX
12837
12838 # The library search path used internally by the compiler when linking
12839 # a shared library.
12840 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12841
12842 # Method to check whether dependent libraries are shared objects.
12843 deplibs_check_method=$lt_deplibs_check_method
12844
12845 # Command to use when deplibs_check_method == file_magic.
12846 file_magic_cmd=$lt_file_magic_cmd
12847
12848 # Flag that allows shared libraries with undefined symbols to be built.
12849 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12850
12851 # Flag that forces no undefined symbols.
12852 no_undefined_flag=$lt_no_undefined_flag_CXX
12853
12854 # Commands used to finish a libtool library installation in a directory.
12855 finish_cmds=$lt_finish_cmds
12856
12857 # Same as above, but a single script fragment to be evaled but not shown.
12858 finish_eval=$lt_finish_eval
12859
12860 # Take the output of nm and produce a listing of raw symbols and C names.
12861 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12862
12863 # Transform the output of nm in a proper C declaration
12864 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12865
12866 # Transform the output of nm in a C name address pair
12867 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12868
12869 # This is the shared library runtime path variable.
12870 runpath_var=$runpath_var
12871
12872 # This is the shared library path variable.
12873 shlibpath_var=$shlibpath_var
12874
12875 # Is shlibpath searched before the hard-coded library search path?
12876 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12877
12878 # How to hardcode a shared library path into an executable.
12879 hardcode_action=$hardcode_action_CXX
12880
12881 # Whether we should hardcode library paths into libraries.
12882 hardcode_into_libs=$hardcode_into_libs
12883
12884 # Flag to hardcode \$libdir into a binary during linking.
12885 # This must work even if \$libdir does not exist.
12886 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12887
12888 # If ld is used when linking, flag to hardcode \$libdir into
12889 # a binary during linking. This must work even if \$libdir does
12890 # not exist.
12891 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12892
12893 # Whether we need a single -rpath flag with a separated argument.
12894 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12895
12896 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12897 # resulting binary.
12898 hardcode_direct=$hardcode_direct_CXX
12899
12900 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12901 # resulting binary.
12902 hardcode_minus_L=$hardcode_minus_L_CXX
12903
12904 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12905 # the resulting binary.
12906 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12907
12908 # Set to yes if building a shared library automatically hardcodes DIR into the library
12909 # and all subsequent libraries and executables linked against it.
12910 hardcode_automatic=$hardcode_automatic_CXX
12911
12912 # Variables whose values should be saved in libtool wrapper scripts and
12913 # restored at relink time.
12914 variables_saved_for_relink="$variables_saved_for_relink"
12915
12916 # Whether libtool must link a program against all its dependency libraries.
12917 link_all_deplibs=$link_all_deplibs_CXX
12918
12919 # Compile-time system search path for libraries
12920 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12921
12922 # Run-time system search path for libraries
12923 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12924
12925 # Fix the shell variable \$srcfile for the compiler.
12926 fix_srcfile_path="$fix_srcfile_path_CXX"
12927
12928 # Set to yes if exported symbols are required.
12929 always_export_symbols=$always_export_symbols_CXX
12930
12931 # The commands to list exported symbols.
12932 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12933
12934 # The commands to extract the exported symbol list from a shared archive.
12935 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12936
12937 # Symbols that should not be listed in the preloaded symbols.
12938 exclude_expsyms=$lt_exclude_expsyms_CXX
12939
12940 # Symbols that must always be exported.
12941 include_expsyms=$lt_include_expsyms_CXX
12942
12943 # ### END LIBTOOL TAG CONFIG: $tagname
12944
12945 __EOF__
12946
12947
12948 else
12949   # If there is no Makefile yet, we rely on a make rule to execute
12950   # `config.status --recheck' to rerun these tests and create the
12951   # libtool script then.
12952   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12953   if test -f "$ltmain_in"; then
12954     test -f Makefile && make "$ltmain"
12955   fi
12956 fi
12957
12958
12959 ac_ext=c
12960 ac_cpp='$CPP $CPPFLAGS'
12961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12964
12965 CC=$lt_save_CC
12966 LDCXX=$LD
12967 LD=$lt_save_LD
12968 GCC=$lt_save_GCC
12969 with_gnu_ldcxx=$with_gnu_ld
12970 with_gnu_ld=$lt_save_with_gnu_ld
12971 lt_cv_path_LDCXX=$lt_cv_path_LD
12972 lt_cv_path_LD=$lt_save_path_LD
12973 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12974 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12975
12976         else
12977           tagname=""
12978         fi
12979         ;;
12980
12981       F77)
12982         if test -n "$F77" && test "X$F77" != "Xno"; then
12983
12984 ac_ext=f
12985 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12986 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12987 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12988
12989
12990 archive_cmds_need_lc_F77=no
12991 allow_undefined_flag_F77=
12992 always_export_symbols_F77=no
12993 archive_expsym_cmds_F77=
12994 export_dynamic_flag_spec_F77=
12995 hardcode_direct_F77=no
12996 hardcode_libdir_flag_spec_F77=
12997 hardcode_libdir_flag_spec_ld_F77=
12998 hardcode_libdir_separator_F77=
12999 hardcode_minus_L_F77=no
13000 hardcode_automatic_F77=no
13001 module_cmds_F77=
13002 module_expsym_cmds_F77=
13003 link_all_deplibs_F77=unknown
13004 old_archive_cmds_F77=$old_archive_cmds
13005 no_undefined_flag_F77=
13006 whole_archive_flag_spec_F77=
13007 enable_shared_with_static_runtimes_F77=no
13008
13009 # Source file extension for f77 test sources.
13010 ac_ext=f
13011
13012 # Object file extension for compiled f77 test sources.
13013 objext=o
13014 objext_F77=$objext
13015
13016 # Code to be used in simple compile tests
13017 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13018
13019 # Code to be used in simple link tests
13020 lt_simple_link_test_code="      program t\n      end\n"
13021
13022 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13023
13024 # If no C compiler was specified, use CC.
13025 LTCC=${LTCC-"$CC"}
13026
13027 # Allow CC to be a program name with arguments.
13028 compiler=$CC
13029
13030
13031 # Allow CC to be a program name with arguments.
13032 lt_save_CC="$CC"
13033 CC=${F77-"f77"}
13034 compiler=$CC
13035 compiler_F77=$CC
13036 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13037
13038 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13039 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13040 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13041 echo "${ECHO_T}$can_build_shared" >&6; }
13042
13043 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13044 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13045 test "$can_build_shared" = "no" && enable_shared=no
13046
13047 # On AIX, shared libraries and static libraries use the same namespace, and
13048 # are all built from PIC.
13049 case "$host_os" in
13050 aix3*)
13051   test "$enable_shared" = yes && enable_static=no
13052   if test -n "$RANLIB"; then
13053     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13054     postinstall_cmds='$RANLIB $lib'
13055   fi
13056   ;;
13057 aix4*)
13058   test "$enable_shared" = yes && enable_static=no
13059   ;;
13060 esac
13061 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13062 echo "${ECHO_T}$enable_shared" >&6; }
13063
13064 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13065 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13066 # Make sure either enable_shared or enable_static is yes.
13067 test "$enable_shared" = yes || enable_static=yes
13068 { echo "$as_me:$LINENO: result: $enable_static" >&5
13069 echo "${ECHO_T}$enable_static" >&6; }
13070
13071 test "$ld_shlibs_F77" = no && can_build_shared=no
13072
13073 GCC_F77="$G77"
13074 LD_F77="$LD"
13075
13076 lt_prog_compiler_wl_F77=
13077 lt_prog_compiler_pic_F77=
13078 lt_prog_compiler_static_F77=
13079
13080 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13081 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13082
13083   if test "$GCC" = yes; then
13084     lt_prog_compiler_wl_F77='-Wl,'
13085     lt_prog_compiler_static_F77='-static'
13086
13087     case $host_os in
13088       aix*)
13089       # All AIX code is PIC.
13090       if test "$host_cpu" = ia64; then
13091         # AIX 5 now supports IA64 processor
13092         lt_prog_compiler_static_F77='-Bstatic'
13093       fi
13094       ;;
13095
13096     amigaos*)
13097       # FIXME: we need at least 68020 code to build shared libraries, but
13098       # adding the `-m68020' flag to GCC prevents building anything better,
13099       # like `-m68040'.
13100       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13101       ;;
13102
13103     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13104       # PIC is the default for these OSes.
13105       ;;
13106
13107     mingw* | pw32* | os2*)
13108       # This hack is so that the source file can tell whether it is being
13109       # built for inclusion in a dll (and should export symbols for example).
13110       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13111       ;;
13112
13113     darwin* | rhapsody*)
13114       # PIC is the default on this platform
13115       # Common symbols not allowed in MH_DYLIB files
13116       lt_prog_compiler_pic_F77='-fno-common'
13117       ;;
13118
13119     msdosdjgpp*)
13120       # Just because we use GCC doesn't mean we suddenly get shared libraries
13121       # on systems that don't support them.
13122       lt_prog_compiler_can_build_shared_F77=no
13123       enable_shared=no
13124       ;;
13125
13126     sysv4*MP*)
13127       if test -d /usr/nec; then
13128         lt_prog_compiler_pic_F77=-Kconform_pic
13129       fi
13130       ;;
13131
13132     hpux*)
13133       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13134       # not for PA HP-UX.
13135       case "$host_cpu" in
13136       hppa*64*|ia64*)
13137         # +Z the default
13138         ;;
13139       *)
13140         lt_prog_compiler_pic_F77='-fPIC'
13141         ;;
13142       esac
13143       ;;
13144
13145     *)
13146       lt_prog_compiler_pic_F77='-fPIC'
13147       ;;
13148     esac
13149   else
13150     # PORTME Check for flag to pass linker flags through the system compiler.
13151     case $host_os in
13152     aix*)
13153       lt_prog_compiler_wl_F77='-Wl,'
13154       if test "$host_cpu" = ia64; then
13155         # AIX 5 now supports IA64 processor
13156         lt_prog_compiler_static_F77='-Bstatic'
13157       else
13158         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13159       fi
13160       ;;
13161
13162     mingw* | pw32* | os2*)
13163       # This hack is so that the source file can tell whether it is being
13164       # built for inclusion in a dll (and should export symbols for example).
13165       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13166       ;;
13167
13168     hpux9* | hpux10* | hpux11*)
13169       lt_prog_compiler_wl_F77='-Wl,'
13170       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13171       # not for PA HP-UX.
13172       case "$host_cpu" in
13173       hppa*64*|ia64*)
13174         # +Z the default
13175         ;;
13176       *)
13177         lt_prog_compiler_pic_F77='+Z'
13178         ;;
13179       esac
13180       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13181       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13182       ;;
13183
13184     irix5* | irix6* | nonstopux*)
13185       lt_prog_compiler_wl_F77='-Wl,'
13186       # PIC (with -KPIC) is the default.
13187       lt_prog_compiler_static_F77='-non_shared'
13188       ;;
13189
13190     newsos6)
13191       lt_prog_compiler_pic_F77='-KPIC'
13192       lt_prog_compiler_static_F77='-Bstatic'
13193       ;;
13194
13195     linux*)
13196       case $CC in
13197       icc* | ecc*)
13198         lt_prog_compiler_wl_F77='-Wl,'
13199         lt_prog_compiler_pic_F77='-KPIC'
13200         lt_prog_compiler_static_F77='-static'
13201         ;;
13202       ccc*)
13203         lt_prog_compiler_wl_F77='-Wl,'
13204         # All Alpha code is PIC.
13205         lt_prog_compiler_static_F77='-non_shared'
13206         ;;
13207       esac
13208       ;;
13209
13210     osf3* | osf4* | osf5*)
13211       lt_prog_compiler_wl_F77='-Wl,'
13212       # All OSF/1 code is PIC.
13213       lt_prog_compiler_static_F77='-non_shared'
13214       ;;
13215
13216     sco3.2v5*)
13217       lt_prog_compiler_pic_F77='-Kpic'
13218       lt_prog_compiler_static_F77='-dn'
13219       ;;
13220
13221     solaris*)
13222       lt_prog_compiler_wl_F77='-Wl,'
13223       lt_prog_compiler_pic_F77='-KPIC'
13224       lt_prog_compiler_static_F77='-Bstatic'
13225       ;;
13226
13227     sunos4*)
13228       lt_prog_compiler_wl_F77='-Qoption ld '
13229       lt_prog_compiler_pic_F77='-PIC'
13230       lt_prog_compiler_static_F77='-Bstatic'
13231       ;;
13232
13233     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13234       lt_prog_compiler_wl_F77='-Wl,'
13235       lt_prog_compiler_pic_F77='-KPIC'
13236       lt_prog_compiler_static_F77='-Bstatic'
13237       ;;
13238
13239     sysv4*MP*)
13240       if test -d /usr/nec ;then
13241         lt_prog_compiler_pic_F77='-Kconform_pic'
13242         lt_prog_compiler_static_F77='-Bstatic'
13243       fi
13244       ;;
13245
13246     uts4*)
13247       lt_prog_compiler_pic_F77='-pic'
13248       lt_prog_compiler_static_F77='-Bstatic'
13249       ;;
13250
13251     *)
13252       lt_prog_compiler_can_build_shared_F77=no
13253       ;;
13254     esac
13255   fi
13256
13257 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13258 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13259
13260 #
13261 # Check to make sure the PIC flag actually works.
13262 #
13263 if test -n "$lt_prog_compiler_pic_F77"; then
13264
13265 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13266 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13267 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13268   echo $ECHO_N "(cached) $ECHO_C" >&6
13269 else
13270   lt_prog_compiler_pic_works_F77=no
13271   ac_outfile=conftest.$ac_objext
13272    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13273    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13274    # Insert the option either (1) after the last *FLAGS variable, or
13275    # (2) before a word containing "conftest.", or (3) at the end.
13276    # Note that $ac_compile itself does not contain backslashes and begins
13277    # with a dollar sign (not a hyphen), so the echo should work correctly.
13278    # The option is referenced via a variable to avoid confusing sed.
13279    lt_compile=`echo "$ac_compile" | $SED \
13280    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13281    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13282    -e 's:$: $lt_compiler_flag:'`
13283    (eval echo "\"\$as_me:13283: $lt_compile\"" >&5)
13284    (eval "$lt_compile" 2>conftest.err)
13285    ac_status=$?
13286    cat conftest.err >&5
13287    echo "$as_me:13287: \$? = $ac_status" >&5
13288    if (exit $ac_status) && test -s "$ac_outfile"; then
13289      # The compiler can only warn and ignore the option if not recognized
13290      # So say no if there are warnings
13291      if test ! -s conftest.err; then
13292        lt_prog_compiler_pic_works_F77=yes
13293      fi
13294    fi
13295    $rm conftest*
13296
13297 fi
13298 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13299 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
13300
13301 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13302     case $lt_prog_compiler_pic_F77 in
13303      "" | " "*) ;;
13304      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13305      esac
13306 else
13307     lt_prog_compiler_pic_F77=
13308      lt_prog_compiler_can_build_shared_F77=no
13309 fi
13310
13311 fi
13312 case "$host_os" in
13313   # For platforms which do not support PIC, -DPIC is meaningless:
13314   *djgpp*)
13315     lt_prog_compiler_pic_F77=
13316     ;;
13317   *)
13318     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13319     ;;
13320 esac
13321
13322 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13323 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13324 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13325   echo $ECHO_N "(cached) $ECHO_C" >&6
13326 else
13327   lt_cv_prog_compiler_c_o_F77=no
13328    $rm -r conftest 2>/dev/null
13329    mkdir conftest
13330    cd conftest
13331    mkdir out
13332    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13333
13334    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13335    # that will create temporary files in the current directory regardless of
13336    # the output directory.  Thus, making CWD read-only will cause this test
13337    # to fail, enabling locking or at least warning the user not to do parallel
13338    # builds.
13339    chmod -w .
13340
13341    lt_compiler_flag="-o out/conftest2.$ac_objext"
13342    # Insert the option either (1) after the last *FLAGS variable, or
13343    # (2) before a word containing "conftest.", or (3) at the end.
13344    # Note that $ac_compile itself does not contain backslashes and begins
13345    # with a dollar sign (not a hyphen), so the echo should work correctly.
13346    lt_compile=`echo "$ac_compile" | $SED \
13347    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13348    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13349    -e 's:$: $lt_compiler_flag:'`
13350    (eval echo "\"\$as_me:13350: $lt_compile\"" >&5)
13351    (eval "$lt_compile" 2>out/conftest.err)
13352    ac_status=$?
13353    cat out/conftest.err >&5
13354    echo "$as_me:13354: \$? = $ac_status" >&5
13355    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13356    then
13357      # The compiler can only warn and ignore the option if not recognized
13358      # So say no if there are warnings
13359      if test ! -s out/conftest.err; then
13360        lt_cv_prog_compiler_c_o_F77=yes
13361      fi
13362    fi
13363    chmod u+w .
13364    $rm conftest*
13365    # SGI C++ compiler will create directory out/ii_files/ for
13366    # template instantiation
13367    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13368    $rm out/* && rmdir out
13369    cd ..
13370    rmdir conftest
13371    $rm conftest*
13372
13373 fi
13374 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13375 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
13376
13377
13378 hard_links="nottested"
13379 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13380   # do not overwrite the value of need_locks provided by the user
13381   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13382 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13383   hard_links=yes
13384   $rm conftest*
13385   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13386   touch conftest.a
13387   ln conftest.a conftest.b 2>&5 || hard_links=no
13388   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13389   { echo "$as_me:$LINENO: result: $hard_links" >&5
13390 echo "${ECHO_T}$hard_links" >&6; }
13391   if test "$hard_links" = no; then
13392     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13393 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13394     need_locks=warn
13395   fi
13396 else
13397   need_locks=no
13398 fi
13399
13400 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13401 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13402
13403   runpath_var=
13404   allow_undefined_flag_F77=
13405   enable_shared_with_static_runtimes_F77=no
13406   archive_cmds_F77=
13407   archive_expsym_cmds_F77=
13408   old_archive_From_new_cmds_F77=
13409   old_archive_from_expsyms_cmds_F77=
13410   export_dynamic_flag_spec_F77=
13411   whole_archive_flag_spec_F77=
13412   thread_safe_flag_spec_F77=
13413   hardcode_libdir_flag_spec_F77=
13414   hardcode_libdir_flag_spec_ld_F77=
13415   hardcode_libdir_separator_F77=
13416   hardcode_direct_F77=no
13417   hardcode_minus_L_F77=no
13418   hardcode_shlibpath_var_F77=unsupported
13419   link_all_deplibs_F77=unknown
13420   hardcode_automatic_F77=no
13421   module_cmds_F77=
13422   module_expsym_cmds_F77=
13423   always_export_symbols_F77=no
13424   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13425   # include_expsyms should be a list of space-separated symbols to be *always*
13426   # included in the symbol list
13427   include_expsyms_F77=
13428   # exclude_expsyms can be an extended regexp of symbols to exclude
13429   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13430   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13431   # as well as any symbol that contains `d'.
13432   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13433   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13434   # platforms (ab)use it in PIC code, but their linkers get confused if
13435   # the symbol is explicitly referenced.  Since portable code cannot
13436   # rely on this symbol name, it's probably fine to never include it in
13437   # preloaded symbol tables.
13438   extract_expsyms_cmds=
13439
13440   case $host_os in
13441   cygwin* | mingw* | pw32*)
13442     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13443     # When not using gcc, we currently assume that we are using
13444     # Microsoft Visual C++.
13445     if test "$GCC" != yes; then
13446       with_gnu_ld=no
13447     fi
13448     ;;
13449   openbsd*)
13450     with_gnu_ld=no
13451     ;;
13452   esac
13453
13454   ld_shlibs_F77=yes
13455   if test "$with_gnu_ld" = yes; then
13456     # If archive_cmds runs LD, not CC, wlarc should be empty
13457     wlarc='${wl}'
13458
13459     # See if GNU ld supports shared libraries.
13460     case $host_os in
13461     aix3* | aix4* | aix5*)
13462       # On AIX/PPC, the GNU linker is very broken
13463       if test "$host_cpu" != ia64; then
13464         ld_shlibs_F77=no
13465         cat <<EOF 1>&2
13466
13467 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13468 *** to be unable to reliably create shared libraries on AIX.
13469 *** Therefore, libtool is disabling shared libraries support.  If you
13470 *** really care for shared libraries, you may want to modify your PATH
13471 *** so that a non-GNU linker is found, and then restart.
13472
13473 EOF
13474       fi
13475       ;;
13476
13477     amigaos*)
13478       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)'
13479       hardcode_libdir_flag_spec_F77='-L$libdir'
13480       hardcode_minus_L_F77=yes
13481
13482       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13483       # that the semantics of dynamic libraries on AmigaOS, at least up
13484       # to version 4, is to share data among multiple programs linked
13485       # with the same dynamic library.  Since this doesn't match the
13486       # behavior of shared libraries on other platforms, we can't use
13487       # them.
13488       ld_shlibs_F77=no
13489       ;;
13490
13491     beos*)
13492       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13493         allow_undefined_flag_F77=unsupported
13494         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13495         # support --undefined.  This deserves some investigation.  FIXME
13496         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13497       else
13498         ld_shlibs_F77=no
13499       fi
13500       ;;
13501
13502     cygwin* | mingw* | pw32*)
13503       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13504       # as there is no search path for DLLs.
13505       hardcode_libdir_flag_spec_F77='-L$libdir'
13506       allow_undefined_flag_F77=unsupported
13507       always_export_symbols_F77=no
13508       enable_shared_with_static_runtimes_F77=yes
13509       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13510
13511       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13512         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13513         # If the export-symbols file already is a .def file (1st line
13514         # is EXPORTS), use it as is; otherwise, prepend...
13515         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13516           cp $export_symbols $output_objdir/$soname.def;
13517         else
13518           echo EXPORTS > $output_objdir/$soname.def;
13519           cat $export_symbols >> $output_objdir/$soname.def;
13520         fi~
13521         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13522       else
13523         ld_shlibs=no
13524       fi
13525       ;;
13526
13527     netbsd*)
13528       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13529         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13530         wlarc=
13531       else
13532         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13533         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13534       fi
13535       ;;
13536
13537     solaris* | sysv5*)
13538       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13539         ld_shlibs_F77=no
13540         cat <<EOF 1>&2
13541
13542 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13543 *** create shared libraries on Solaris systems.  Therefore, libtool
13544 *** is disabling shared libraries support.  We urge you to upgrade GNU
13545 *** binutils to release 2.9.1 or newer.  Another option is to modify
13546 *** your PATH or compiler configuration so that the native linker is
13547 *** used, and then restart.
13548
13549 EOF
13550       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13551         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13552         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13553       else
13554         ld_shlibs_F77=no
13555       fi
13556       ;;
13557
13558     sunos4*)
13559       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13560       wlarc=
13561       hardcode_direct_F77=yes
13562       hardcode_shlibpath_var_F77=no
13563       ;;
13564
13565   linux*)
13566     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
13567         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13568         archive_cmds_F77="$tmp_archive_cmds"
13569       supports_anon_versioning=no
13570       case `$LD -v 2>/dev/null` in
13571         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13572         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13573         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13574         *\ 2.11.*) ;; # other 2.11 versions
13575         *) supports_anon_versioning=yes ;;
13576       esac
13577       if test $supports_anon_versioning = yes; then
13578         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13579 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13580 $echo "local: *; };" >> $output_objdir/$libname.ver~
13581         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13582       else
13583         archive_expsym_cmds_F77="$tmp_archive_cmds"
13584       fi
13585     else
13586       ld_shlibs_F77=no
13587     fi
13588     ;;
13589
13590     *)
13591       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13592         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13593         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13594       else
13595         ld_shlibs_F77=no
13596       fi
13597       ;;
13598     esac
13599
13600     if test "$ld_shlibs_F77" = yes; then
13601       runpath_var=LD_RUN_PATH
13602       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13603       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13604       # ancient GNU ld didn't support --whole-archive et. al.
13605       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13606         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13607       else
13608         whole_archive_flag_spec_F77=
13609       fi
13610     fi
13611   else
13612     # PORTME fill in a description of your system's linker (not GNU ld)
13613     case $host_os in
13614     aix3*)
13615       allow_undefined_flag_F77=unsupported
13616       always_export_symbols_F77=yes
13617       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'
13618       # Note: this linker hardcodes the directories in LIBPATH if there
13619       # are no directories specified by -L.
13620       hardcode_minus_L_F77=yes
13621       if test "$GCC" = yes && test -z "$link_static_flag"; then
13622         # Neither direct hardcoding nor static linking is supported with a
13623         # broken collect2.
13624         hardcode_direct_F77=unsupported
13625       fi
13626       ;;
13627
13628     aix4* | aix5*)
13629       if test "$host_cpu" = ia64; then
13630         # On IA64, the linker does run time linking by default, so we don't
13631         # have to do anything special.
13632         aix_use_runtimelinking=no
13633         exp_sym_flag='-Bexport'
13634         no_entry_flag=""
13635       else
13636         # If we're using GNU nm, then we don't want the "-C" option.
13637         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13638         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13639           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'
13640         else
13641           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'
13642         fi
13643         aix_use_runtimelinking=no
13644
13645         # Test if we are trying to use run time linking or normal
13646         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13647         # need to do runtime linking.
13648         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13649           for ld_flag in $LDFLAGS; do
13650           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13651             aix_use_runtimelinking=yes
13652             break
13653           fi
13654           done
13655         esac
13656
13657         exp_sym_flag='-bexport'
13658         no_entry_flag='-bnoentry'
13659       fi
13660
13661       # When large executables or shared objects are built, AIX ld can
13662       # have problems creating the table of contents.  If linking a library
13663       # or program results in "error TOC overflow" add -mminimal-toc to
13664       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13665       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13666
13667       archive_cmds_F77=''
13668       hardcode_direct_F77=yes
13669       hardcode_libdir_separator_F77=':'
13670       link_all_deplibs_F77=yes
13671
13672       if test "$GCC" = yes; then
13673         case $host_os in aix4.012|aix4.012.*)
13674         # We only want to do this on AIX 4.2 and lower, the check
13675         # below for broken collect2 doesn't work under 4.3+
13676           collect2name=`${CC} -print-prog-name=collect2`
13677           if test -f "$collect2name" && \
13678            strings "$collect2name" | grep resolve_lib_name >/dev/null
13679           then
13680           # We have reworked collect2
13681           hardcode_direct_F77=yes
13682           else
13683           # We have old collect2
13684           hardcode_direct_F77=unsupported
13685           # It fails to find uninstalled libraries when the uninstalled
13686           # path is not listed in the libpath.  Setting hardcode_minus_L
13687           # to unsupported forces relinking
13688           hardcode_minus_L_F77=yes
13689           hardcode_libdir_flag_spec_F77='-L$libdir'
13690           hardcode_libdir_separator_F77=
13691           fi
13692         esac
13693         shared_flag='-shared'
13694       else
13695         # not using gcc
13696         if test "$host_cpu" = ia64; then
13697         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13698         # chokes on -Wl,-G. The following line is correct:
13699           shared_flag='-G'
13700         else
13701         if test "$aix_use_runtimelinking" = yes; then
13702             shared_flag='${wl}-G'
13703           else
13704             shared_flag='${wl}-bM:SRE'
13705         fi
13706         fi
13707       fi
13708
13709       # It seems that -bexpall does not export symbols beginning with
13710       # underscore (_), so it is better to generate a list of symbols to export.
13711       always_export_symbols_F77=yes
13712       if test "$aix_use_runtimelinking" = yes; then
13713         # Warning - without using the other runtime loading flags (-brtl),
13714         # -berok will link without error, but may produce a broken library.
13715         allow_undefined_flag_F77='-berok'
13716        # Determine the default libpath from the value encoded in an empty executable.
13717        cat >conftest.$ac_ext <<_ACEOF
13718       program main
13719
13720       end
13721 _ACEOF
13722 rm -f conftest.$ac_objext conftest$ac_exeext
13723 if { (ac_try="$ac_link"
13724 case "(($ac_try" in
13725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13726   *) ac_try_echo=$ac_try;;
13727 esac
13728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13729   (eval "$ac_link") 2>conftest.er1
13730   ac_status=$?
13731   grep -v '^ *+' conftest.er1 >conftest.err
13732   rm -f conftest.er1
13733   cat conftest.err >&5
13734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13735   (exit $ac_status); } && {
13736          test -z "$ac_f77_werror_flag" ||
13737          test ! -s conftest.err
13738        } && test -s conftest$ac_exeext &&
13739        $as_test_x conftest$ac_exeext; then
13740
13741 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13742 }'`
13743 # Check for a 64-bit object if we didn't find anything.
13744 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; }
13745 }'`; fi
13746 else
13747   echo "$as_me: failed program was:" >&5
13748 sed 's/^/| /' conftest.$ac_ext >&5
13749
13750
13751 fi
13752
13753 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13754       conftest$ac_exeext conftest.$ac_ext
13755 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13756
13757        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13758         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"
13759        else
13760         if test "$host_cpu" = ia64; then
13761           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13762           allow_undefined_flag_F77="-z nodefs"
13763           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"
13764         else
13765          # Determine the default libpath from the value encoded in an empty executable.
13766          cat >conftest.$ac_ext <<_ACEOF
13767       program main
13768
13769       end
13770 _ACEOF
13771 rm -f conftest.$ac_objext conftest$ac_exeext
13772 if { (ac_try="$ac_link"
13773 case "(($ac_try" in
13774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13775   *) ac_try_echo=$ac_try;;
13776 esac
13777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13778   (eval "$ac_link") 2>conftest.er1
13779   ac_status=$?
13780   grep -v '^ *+' conftest.er1 >conftest.err
13781   rm -f conftest.er1
13782   cat conftest.err >&5
13783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13784   (exit $ac_status); } && {
13785          test -z "$ac_f77_werror_flag" ||
13786          test ! -s conftest.err
13787        } && test -s conftest$ac_exeext &&
13788        $as_test_x conftest$ac_exeext; then
13789
13790 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13791 }'`
13792 # Check for a 64-bit object if we didn't find anything.
13793 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; }
13794 }'`; fi
13795 else
13796   echo "$as_me: failed program was:" >&5
13797 sed 's/^/| /' conftest.$ac_ext >&5
13798
13799
13800 fi
13801
13802 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13803       conftest$ac_exeext conftest.$ac_ext
13804 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13805
13806          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13807           # Warning - without using the other run time loading flags,
13808           # -berok will link without error, but may produce a broken library.
13809           no_undefined_flag_F77=' ${wl}-bernotok'
13810           allow_undefined_flag_F77=' ${wl}-berok'
13811           # -bexpall does not export symbols beginning with underscore (_)
13812           always_export_symbols_F77=yes
13813           # Exported symbols can be pulled into shared objects from archives
13814           whole_archive_flag_spec_F77=' '
13815           archive_cmds_need_lc_F77=yes
13816           # This is similar to how AIX traditionally builds it's shared libraries.
13817           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'
13818         fi
13819       fi
13820       ;;
13821
13822     amigaos*)
13823       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)'
13824       hardcode_libdir_flag_spec_F77='-L$libdir'
13825       hardcode_minus_L_F77=yes
13826       # see comment about different semantics on the GNU ld section
13827       ld_shlibs_F77=no
13828       ;;
13829
13830     bsdi4*)
13831       export_dynamic_flag_spec_F77=-rdynamic
13832       ;;
13833
13834     cygwin* | mingw* | pw32*)
13835       # When not using gcc, we currently assume that we are using
13836       # Microsoft Visual C++.
13837       # hardcode_libdir_flag_spec is actually meaningless, as there is
13838       # no search path for DLLs.
13839       hardcode_libdir_flag_spec_F77=' '
13840       allow_undefined_flag_F77=unsupported
13841       # Tell ltmain to make .lib files, not .a files.
13842       libext=lib
13843       # Tell ltmain to make .dll files, not .so files.
13844       shrext=".dll"
13845       # FIXME: Setting linknames here is a bad hack.
13846       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13847       # The linker will automatically build a .lib file if we build a DLL.
13848       old_archive_From_new_cmds_F77='true'
13849       # FIXME: Should let the user specify the lib program.
13850       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13851       fix_srcfile_path='`cygpath -w "$srcfile"`'
13852       enable_shared_with_static_runtimes_F77=yes
13853       ;;
13854
13855     darwin* | rhapsody*)
13856     if test "$GXX" = yes ; then
13857       archive_cmds_need_lc_F77=no
13858       case "$host_os" in
13859       rhapsody* | darwin1.[012])
13860         allow_undefined_flag_F77='-undefined suppress'
13861         ;;
13862       *) # Darwin 1.3 on
13863       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13864         allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13865       else
13866         case ${MACOSX_DEPLOYMENT_TARGET} in
13867           10.[012])
13868             allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13869             ;;
13870           10.*)
13871             allow_undefined_flag_F77='-undefined dynamic_lookup'
13872             ;;
13873         esac
13874       fi
13875         ;;
13876       esac
13877         lt_int_apple_cc_single_mod=no
13878         output_verbose_link_cmd='echo'
13879         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13880           lt_int_apple_cc_single_mod=yes
13881         fi
13882         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13883           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13884         else
13885         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'
13886       fi
13887       module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13888       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13889         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13890           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}'
13891         else
13892           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}'
13893         fi
13894           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}'
13895       hardcode_direct_F77=no
13896       hardcode_automatic_F77=yes
13897       hardcode_shlibpath_var_F77=unsupported
13898       whole_archive_flag_spec_F77='-all_load $convenience'
13899       link_all_deplibs_F77=yes
13900     else
13901       ld_shlibs_F77=no
13902     fi
13903       ;;
13904
13905     dgux*)
13906       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13907       hardcode_libdir_flag_spec_F77='-L$libdir'
13908       hardcode_shlibpath_var_F77=no
13909       ;;
13910
13911     freebsd1*)
13912       ld_shlibs_F77=no
13913       ;;
13914
13915     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13916     # support.  Future versions do this automatically, but an explicit c++rt0.o
13917     # does not break anything, and helps significantly (at the cost of a little
13918     # extra space).
13919     freebsd2.2*)
13920       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13921       hardcode_libdir_flag_spec_F77='-R$libdir'
13922       hardcode_direct_F77=yes
13923       hardcode_shlibpath_var_F77=no
13924       ;;
13925
13926     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13927     freebsd2*)
13928       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13929       hardcode_direct_F77=yes
13930       hardcode_minus_L_F77=yes
13931       hardcode_shlibpath_var_F77=no
13932       ;;
13933
13934     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13935     freebsd* | kfreebsd*-gnu)
13936       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13937       hardcode_libdir_flag_spec_F77='-R$libdir'
13938       hardcode_direct_F77=yes
13939       hardcode_shlibpath_var_F77=no
13940       ;;
13941
13942     hpux9*)
13943       if test "$GCC" = yes; then
13944         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'
13945       else
13946         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'
13947       fi
13948       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13949       hardcode_libdir_separator_F77=:
13950       hardcode_direct_F77=yes
13951
13952       # hardcode_minus_L: Not really in the search PATH,
13953       # but as the default location of the library.
13954       hardcode_minus_L_F77=yes
13955       export_dynamic_flag_spec_F77='${wl}-E'
13956       ;;
13957
13958     hpux10* | hpux11*)
13959       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13960         case "$host_cpu" in
13961         hppa*64*|ia64*)
13962           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13963           ;;
13964         *)
13965           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13966           ;;
13967         esac
13968       else
13969         case "$host_cpu" in
13970         hppa*64*|ia64*)
13971           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13972           ;;
13973         *)
13974           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13975           ;;
13976         esac
13977       fi
13978       if test "$with_gnu_ld" = no; then
13979         case "$host_cpu" in
13980         hppa*64*)
13981           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13982           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13983           hardcode_libdir_separator_F77=:
13984           hardcode_direct_F77=no
13985           hardcode_shlibpath_var_F77=no
13986           ;;
13987         ia64*)
13988           hardcode_libdir_flag_spec_F77='-L$libdir'
13989           hardcode_direct_F77=no
13990           hardcode_shlibpath_var_F77=no
13991
13992           # hardcode_minus_L: Not really in the search PATH,
13993           # but as the default location of the library.
13994           hardcode_minus_L_F77=yes
13995           ;;
13996         *)
13997           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13998           hardcode_libdir_separator_F77=:
13999           hardcode_direct_F77=yes
14000           export_dynamic_flag_spec_F77='${wl}-E'
14001
14002           # hardcode_minus_L: Not really in the search PATH,
14003           # but as the default location of the library.
14004           hardcode_minus_L_F77=yes
14005           ;;
14006         esac
14007       fi
14008       ;;
14009
14010     irix5* | irix6* | nonstopux*)
14011       if test "$GCC" = yes; then
14012         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'
14013       else
14014         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'
14015         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14016       fi
14017       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14018       hardcode_libdir_separator_F77=:
14019       link_all_deplibs_F77=yes
14020       ;;
14021
14022     netbsd*)
14023       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14024         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14025       else
14026         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14027       fi
14028       hardcode_libdir_flag_spec_F77='-R$libdir'
14029       hardcode_direct_F77=yes
14030       hardcode_shlibpath_var_F77=no
14031       ;;
14032
14033     newsos6)
14034       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14035       hardcode_direct_F77=yes
14036       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14037       hardcode_libdir_separator_F77=:
14038       hardcode_shlibpath_var_F77=no
14039       ;;
14040
14041     openbsd*)
14042       hardcode_direct_F77=yes
14043       hardcode_shlibpath_var_F77=no
14044       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14045         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14046         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14047         export_dynamic_flag_spec_F77='${wl}-E'
14048       else
14049        case $host_os in
14050          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14051            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14052            hardcode_libdir_flag_spec_F77='-R$libdir'
14053            ;;
14054          *)
14055            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14056            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14057            ;;
14058        esac
14059       fi
14060       ;;
14061
14062     os2*)
14063       hardcode_libdir_flag_spec_F77='-L$libdir'
14064       hardcode_minus_L_F77=yes
14065       allow_undefined_flag_F77=unsupported
14066       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'
14067       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14068       ;;
14069
14070     osf3*)
14071       if test "$GCC" = yes; then
14072         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14073         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'
14074       else
14075         allow_undefined_flag_F77=' -expect_unresolved \*'
14076         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'
14077       fi
14078       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14079       hardcode_libdir_separator_F77=:
14080       ;;
14081
14082     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14083       if test "$GCC" = yes; then
14084         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14085         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'
14086         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14087       else
14088         allow_undefined_flag_F77=' -expect_unresolved \*'
14089         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'
14090         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~
14091         $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'
14092
14093         # Both c and cxx compiler support -rpath directly
14094         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14095       fi
14096       hardcode_libdir_separator_F77=:
14097       ;;
14098
14099     sco3.2v5*)
14100       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14101       hardcode_shlibpath_var_F77=no
14102       export_dynamic_flag_spec_F77='${wl}-Bexport'
14103       runpath_var=LD_RUN_PATH
14104       hardcode_runpath_var=yes
14105       ;;
14106
14107     solaris*)
14108       no_undefined_flag_F77=' -z text'
14109       if test "$GCC" = yes; then
14110         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14111         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14112           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14113       else
14114         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14115         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14116         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14117       fi
14118       hardcode_libdir_flag_spec_F77='-R$libdir'
14119       hardcode_shlibpath_var_F77=no
14120       case $host_os in
14121       solaris2.[0-5] | solaris2.[0-5].*) ;;
14122       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14123         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14124       esac
14125       link_all_deplibs_F77=yes
14126       ;;
14127
14128     sunos4*)
14129       if test "x$host_vendor" = xsequent; then
14130         # Use $CC to link under sequent, because it throws in some extra .o
14131         # files that make .init and .fini sections work.
14132         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14133       else
14134         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14135       fi
14136       hardcode_libdir_flag_spec_F77='-L$libdir'
14137       hardcode_direct_F77=yes
14138       hardcode_minus_L_F77=yes
14139       hardcode_shlibpath_var_F77=no
14140       ;;
14141
14142     sysv4)
14143       case $host_vendor in
14144         sni)
14145           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14146           hardcode_direct_F77=yes # is this really true???
14147         ;;
14148         siemens)
14149           ## LD is ld it makes a PLAMLIB
14150           ## CC just makes a GrossModule.
14151           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14152           reload_cmds_F77='$CC -r -o $output$reload_objs'
14153           hardcode_direct_F77=no
14154         ;;
14155         motorola)
14156           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14157           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14158         ;;
14159       esac
14160       runpath_var='LD_RUN_PATH'
14161       hardcode_shlibpath_var_F77=no
14162       ;;
14163
14164     sysv4.3*)
14165       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14166       hardcode_shlibpath_var_F77=no
14167       export_dynamic_flag_spec_F77='-Bexport'
14168       ;;
14169
14170     sysv4*MP*)
14171       if test -d /usr/nec; then
14172         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14173         hardcode_shlibpath_var_F77=no
14174         runpath_var=LD_RUN_PATH
14175         hardcode_runpath_var=yes
14176         ld_shlibs_F77=yes
14177       fi
14178       ;;
14179
14180     sysv4.2uw2*)
14181       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14182       hardcode_direct_F77=yes
14183       hardcode_minus_L_F77=no
14184       hardcode_shlibpath_var_F77=no
14185       hardcode_runpath_var=yes
14186       runpath_var=LD_RUN_PATH
14187       ;;
14188
14189    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
14190       no_undefined_flag_F77='${wl}-z ${wl}text'
14191       if test "$GCC" = yes; then
14192         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14193       else
14194         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14195       fi
14196       runpath_var='LD_RUN_PATH'
14197       hardcode_shlibpath_var_F77=no
14198       ;;
14199
14200     sysv5*)
14201       no_undefined_flag_F77=' -z text'
14202       # $CC -shared without GNU ld will not create a library from C++
14203       # object files and a static libstdc++, better avoid it by now
14204       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14205       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14206                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14207       hardcode_libdir_flag_spec_F77=
14208       hardcode_shlibpath_var_F77=no
14209       runpath_var='LD_RUN_PATH'
14210       ;;
14211
14212     uts4*)
14213       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14214       hardcode_libdir_flag_spec_F77='-L$libdir'
14215       hardcode_shlibpath_var_F77=no
14216       ;;
14217
14218     *)
14219       ld_shlibs_F77=no
14220       ;;
14221     esac
14222   fi
14223
14224 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14225 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
14226 test "$ld_shlibs_F77" = no && can_build_shared=no
14227
14228 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14229 if test "$GCC" = yes; then
14230   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14231 fi
14232
14233 #
14234 # Do we need to explicitly link libc?
14235 #
14236 case "x$archive_cmds_need_lc_F77" in
14237 x|xyes)
14238   # Assume -lc should be added
14239   archive_cmds_need_lc_F77=yes
14240
14241   if test "$enable_shared" = yes && test "$GCC" = yes; then
14242     case $archive_cmds_F77 in
14243     *'~'*)
14244       # FIXME: we may have to deal with multi-command sequences.
14245       ;;
14246     '$CC '*)
14247       # Test whether the compiler implicitly links with -lc since on some
14248       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14249       # to ld, don't add -lc before -lgcc.
14250       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14251 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14252       $rm conftest*
14253       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14254
14255       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14256   (eval $ac_compile) 2>&5
14257   ac_status=$?
14258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14259   (exit $ac_status); } 2>conftest.err; then
14260         soname=conftest
14261         lib=conftest
14262         libobjs=conftest.$ac_objext
14263         deplibs=
14264         wl=$lt_prog_compiler_wl_F77
14265         compiler_flags=-v
14266         linker_flags=-v
14267         verstring=
14268         output_objdir=.
14269         libname=conftest
14270         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14271         allow_undefined_flag_F77=
14272         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14273   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14274   ac_status=$?
14275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14276   (exit $ac_status); }
14277         then
14278           archive_cmds_need_lc_F77=no
14279         else
14280           archive_cmds_need_lc_F77=yes
14281         fi
14282         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14283       else
14284         cat conftest.err 1>&5
14285       fi
14286       $rm conftest*
14287       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14288 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
14289       ;;
14290     esac
14291   fi
14292   ;;
14293 esac
14294
14295 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14296 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14297 library_names_spec=
14298 libname_spec='lib$name'
14299 soname_spec=
14300 shrext=".so"
14301 postinstall_cmds=
14302 postuninstall_cmds=
14303 finish_cmds=
14304 finish_eval=
14305 shlibpath_var=
14306 shlibpath_overrides_runpath=unknown
14307 version_type=none
14308 dynamic_linker="$host_os ld.so"
14309 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14310 if test "$GCC" = yes; then
14311   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14312   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14313     # if the path contains ";" then we assume it to be the separator
14314     # otherwise default to the standard path separator (i.e. ":") - it is
14315     # assumed that no part of a normal pathname contains ";" but that should
14316     # okay in the real world where ";" in dirpaths is itself problematic.
14317     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14318   else
14319     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14320   fi
14321 else
14322   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14323 fi
14324 need_lib_prefix=unknown
14325 hardcode_into_libs=no
14326
14327 # when you set need_version to no, make sure it does not cause -set_version
14328 # flags to be left without arguments
14329 need_version=unknown
14330
14331 case $host_os in
14332 aix3*)
14333   version_type=linux
14334   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14335   shlibpath_var=LIBPATH
14336
14337   # AIX 3 has no versioning support, so we append a major version to the name.
14338   soname_spec='${libname}${release}${shared_ext}$major'
14339   ;;
14340
14341 aix4* | aix5*)
14342   version_type=linux
14343   need_lib_prefix=no
14344   need_version=no
14345   hardcode_into_libs=yes
14346   if test "$host_cpu" = ia64; then
14347     # AIX 5 supports IA64
14348     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14349     shlibpath_var=LD_LIBRARY_PATH
14350   else
14351     # With GCC up to 2.95.x, collect2 would create an import file
14352     # for dependence libraries.  The import file would start with
14353     # the line `#! .'.  This would cause the generated library to
14354     # depend on `.', always an invalid library.  This was fixed in
14355     # development snapshots of GCC prior to 3.0.
14356     case $host_os in
14357       aix4 | aix4.[01] | aix4.[01].*)
14358       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14359            echo ' yes '
14360            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14361         :
14362       else
14363         can_build_shared=no
14364       fi
14365       ;;
14366     esac
14367     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14368     # soname into executable. Probably we can add versioning support to
14369     # collect2, so additional links can be useful in future.
14370     if test "$aix_use_runtimelinking" = yes; then
14371       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14372       # instead of lib<name>.a to let people know that these are not
14373       # typical AIX shared libraries.
14374       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14375     else
14376       # We preserve .a as extension for shared libraries through AIX4.2
14377       # and later when we are not doing run time linking.
14378       library_names_spec='${libname}${release}.a $libname.a'
14379       soname_spec='${libname}${release}${shared_ext}$major'
14380     fi
14381     shlibpath_var=LIBPATH
14382   fi
14383   ;;
14384
14385 amigaos*)
14386   library_names_spec='$libname.ixlibrary $libname.a'
14387   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14388   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'
14389   ;;
14390
14391 beos*)
14392   library_names_spec='${libname}${shared_ext}'
14393   dynamic_linker="$host_os ld.so"
14394   shlibpath_var=LIBRARY_PATH
14395   ;;
14396
14397 bsdi4*)
14398   version_type=linux
14399   need_version=no
14400   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14401   soname_spec='${libname}${release}${shared_ext}$major'
14402   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14403   shlibpath_var=LD_LIBRARY_PATH
14404   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14405   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14406   # the default ld.so.conf also contains /usr/contrib/lib and
14407   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14408   # libtool to hard-code these into programs
14409   ;;
14410
14411 cygwin* | mingw* | pw32*)
14412   version_type=windows
14413   shrext=".dll"
14414   need_version=no
14415   need_lib_prefix=no
14416
14417   case $GCC,$host_os in
14418   yes,cygwin* | yes,mingw* | yes,pw32*)
14419     library_names_spec='$libname.dll.a'
14420     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14421     postinstall_cmds='base_file=`basename \${file}`~
14422       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14423       dldir=$destdir/`dirname \$dlpath`~
14424       test -d \$dldir || mkdir -p \$dldir~
14425       $install_prog $dir/$dlname \$dldir/$dlname'
14426     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14427       dlpath=$dir/\$dldll~
14428        $rm \$dlpath'
14429     shlibpath_overrides_runpath=yes
14430
14431     case $host_os in
14432     cygwin*)
14433       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14434       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14435       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14436       ;;
14437     mingw*)
14438       # MinGW DLLs use traditional 'lib' prefix
14439       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14440       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14441       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14442         # It is most probably a Windows format PATH printed by
14443         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14444         # path with ; separators, and with drive letters. We can handle the
14445         # drive letters (cygwin fileutils understands them), so leave them,
14446         # especially as we might pass files found there to a mingw objdump,
14447         # which wouldn't understand a cygwinified path. Ahh.
14448         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14449       else
14450         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14451       fi
14452       ;;
14453     pw32*)
14454       # pw32 DLLs use 'pw' prefix rather than 'lib'
14455       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14456       ;;
14457     esac
14458     ;;
14459
14460   *)
14461     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14462     ;;
14463   esac
14464   dynamic_linker='Win32 ld.exe'
14465   # FIXME: first we should search . and the directory the executable is in
14466   shlibpath_var=PATH
14467   ;;
14468
14469 darwin* | rhapsody*)
14470   dynamic_linker="$host_os dyld"
14471   version_type=darwin
14472   need_lib_prefix=no
14473   need_version=no
14474   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14475   soname_spec='${libname}${release}${major}$shared_ext'
14476   shlibpath_overrides_runpath=yes
14477   shlibpath_var=DYLD_LIBRARY_PATH
14478   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14479   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14480   if test "$GCC" = yes; then
14481     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"`
14482   else
14483     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14484   fi
14485   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14486   ;;
14487
14488 dgux*)
14489   version_type=linux
14490   need_lib_prefix=no
14491   need_version=no
14492   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14493   soname_spec='${libname}${release}${shared_ext}$major'
14494   shlibpath_var=LD_LIBRARY_PATH
14495   ;;
14496
14497 freebsd1*)
14498   dynamic_linker=no
14499   ;;
14500
14501 kfreebsd*-gnu)
14502   version_type=linux
14503   need_lib_prefix=no
14504   need_version=no
14505   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14506   soname_spec='${libname}${release}${shared_ext}$major'
14507   shlibpath_var=LD_LIBRARY_PATH
14508   shlibpath_overrides_runpath=no
14509   hardcode_into_libs=yes
14510   dynamic_linker='GNU ld.so'
14511   ;;
14512
14513 freebsd*)
14514   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14515   version_type=freebsd-$objformat
14516   case $version_type in
14517     freebsd-elf*)
14518       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14519       need_version=no
14520       need_lib_prefix=no
14521       ;;
14522     freebsd-*)
14523       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14524       need_version=yes
14525       ;;
14526   esac
14527   shlibpath_var=LD_LIBRARY_PATH
14528   case $host_os in
14529   freebsd2*)
14530     shlibpath_overrides_runpath=yes
14531     ;;
14532   freebsd3.01* | freebsdelf3.01*)
14533     shlibpath_overrides_runpath=yes
14534     hardcode_into_libs=yes
14535     ;;
14536   *) # from 3.2 on
14537     shlibpath_overrides_runpath=no
14538     hardcode_into_libs=yes
14539     ;;
14540   esac
14541   ;;
14542
14543 gnu*)
14544   version_type=linux
14545   need_lib_prefix=no
14546   need_version=no
14547   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14548   soname_spec='${libname}${release}${shared_ext}$major'
14549   shlibpath_var=LD_LIBRARY_PATH
14550   hardcode_into_libs=yes
14551   ;;
14552
14553 hpux9* | hpux10* | hpux11*)
14554   # Give a soname corresponding to the major version so that dld.sl refuses to
14555   # link against other versions.
14556   version_type=sunos
14557   need_lib_prefix=no
14558   need_version=no
14559   case "$host_cpu" in
14560   ia64*)
14561     shrext='.so'
14562     hardcode_into_libs=yes
14563     dynamic_linker="$host_os dld.so"
14564     shlibpath_var=LD_LIBRARY_PATH
14565     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14566     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14567     soname_spec='${libname}${release}${shared_ext}$major'
14568     if test "X$HPUX_IA64_MODE" = X32; then
14569       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14570     else
14571       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14572     fi
14573     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14574     ;;
14575    hppa*64*)
14576      shrext='.sl'
14577      hardcode_into_libs=yes
14578      dynamic_linker="$host_os dld.sl"
14579      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14580      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14581      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14582      soname_spec='${libname}${release}${shared_ext}$major'
14583      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14584      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14585      ;;
14586    *)
14587     shrext='.sl'
14588     dynamic_linker="$host_os dld.sl"
14589     shlibpath_var=SHLIB_PATH
14590     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14591     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14592     soname_spec='${libname}${release}${shared_ext}$major'
14593     ;;
14594   esac
14595   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14596   postinstall_cmds='chmod 555 $lib'
14597   ;;
14598
14599 irix5* | irix6* | nonstopux*)
14600   case $host_os in
14601     nonstopux*) version_type=nonstopux ;;
14602     *)
14603         if test "$lt_cv_prog_gnu_ld" = yes; then
14604                 version_type=linux
14605         else
14606                 version_type=irix
14607         fi ;;
14608   esac
14609   need_lib_prefix=no
14610   need_version=no
14611   soname_spec='${libname}${release}${shared_ext}$major'
14612   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14613   case $host_os in
14614   irix5* | nonstopux*)
14615     libsuff= shlibsuff=
14616     ;;
14617   *)
14618     case $LD in # libtool.m4 will add one of these switches to LD
14619     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14620       libsuff= shlibsuff= libmagic=32-bit;;
14621     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14622       libsuff=32 shlibsuff=N32 libmagic=N32;;
14623     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14624       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14625     *) libsuff= shlibsuff= libmagic=never-match;;
14626     esac
14627     ;;
14628   esac
14629   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14630   shlibpath_overrides_runpath=no
14631   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14632   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14633   hardcode_into_libs=yes
14634   ;;
14635
14636 # No shared lib support for Linux oldld, aout, or coff.
14637 linux*oldld* | linux*aout* | linux*coff*)
14638   dynamic_linker=no
14639   ;;
14640
14641 # This must be Linux ELF.
14642 linux*)
14643   version_type=linux
14644   need_lib_prefix=no
14645   need_version=no
14646   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14647   soname_spec='${libname}${release}${shared_ext}$major'
14648   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14649   shlibpath_var=LD_LIBRARY_PATH
14650   shlibpath_overrides_runpath=no
14651   # This implies no fast_install, which is unacceptable.
14652   # Some rework will be needed to allow for fast_install
14653   # before this can be enabled.
14654   hardcode_into_libs=yes
14655
14656   # We used to test for /lib/ld.so.1 and disable shared libraries on
14657   # powerpc, because MkLinux only supported shared libraries with the
14658   # GNU dynamic linker.  Since this was broken with cross compilers,
14659   # most powerpc-linux boxes support dynamic linking these days and
14660   # people can always --disable-shared, the test was removed, and we
14661   # assume the GNU/Linux dynamic linker is in use.
14662   dynamic_linker='GNU/Linux ld.so'
14663   ;;
14664
14665 netbsd*)
14666   version_type=sunos
14667   need_lib_prefix=no
14668   need_version=no
14669   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14670     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14671     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14672     dynamic_linker='NetBSD (a.out) ld.so'
14673   else
14674     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14675     soname_spec='${libname}${release}${shared_ext}$major'
14676     dynamic_linker='NetBSD ld.elf_so'
14677   fi
14678   shlibpath_var=LD_LIBRARY_PATH
14679   shlibpath_overrides_runpath=yes
14680   hardcode_into_libs=yes
14681   ;;
14682
14683 newsos6)
14684   version_type=linux
14685   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14686   shlibpath_var=LD_LIBRARY_PATH
14687   shlibpath_overrides_runpath=yes
14688   ;;
14689
14690 nto-qnx*)
14691   version_type=linux
14692   need_lib_prefix=no
14693   need_version=no
14694   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14695   soname_spec='${libname}${release}${shared_ext}$major'
14696   shlibpath_var=LD_LIBRARY_PATH
14697   shlibpath_overrides_runpath=yes
14698   ;;
14699
14700 openbsd*)
14701   version_type=sunos
14702   need_lib_prefix=no
14703   need_version=no
14704   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14705   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14706   shlibpath_var=LD_LIBRARY_PATH
14707   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14708     case $host_os in
14709       openbsd2.[89] | openbsd2.[89].*)
14710         shlibpath_overrides_runpath=no
14711         ;;
14712       *)
14713         shlibpath_overrides_runpath=yes
14714         ;;
14715       esac
14716   else
14717     shlibpath_overrides_runpath=yes
14718   fi
14719   ;;
14720
14721 os2*)
14722   libname_spec='$name'
14723   shrext=".dll"
14724   need_lib_prefix=no
14725   library_names_spec='$libname${shared_ext} $libname.a'
14726   dynamic_linker='OS/2 ld.exe'
14727   shlibpath_var=LIBPATH
14728   ;;
14729
14730 osf3* | osf4* | osf5*)
14731   version_type=osf
14732   need_lib_prefix=no
14733   need_version=no
14734   soname_spec='${libname}${release}${shared_ext}$major'
14735   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14736   shlibpath_var=LD_LIBRARY_PATH
14737   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14738   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14739   ;;
14740
14741 sco3.2v5*)
14742   version_type=osf
14743   soname_spec='${libname}${release}${shared_ext}$major'
14744   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14745   shlibpath_var=LD_LIBRARY_PATH
14746   ;;
14747
14748 solaris*)
14749   version_type=linux
14750   need_lib_prefix=no
14751   need_version=no
14752   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14753   soname_spec='${libname}${release}${shared_ext}$major'
14754   shlibpath_var=LD_LIBRARY_PATH
14755   shlibpath_overrides_runpath=yes
14756   hardcode_into_libs=yes
14757   # ldd complains unless libraries are executable
14758   postinstall_cmds='chmod +x $lib'
14759   ;;
14760
14761 sunos4*)
14762   version_type=sunos
14763   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14764   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14765   shlibpath_var=LD_LIBRARY_PATH
14766   shlibpath_overrides_runpath=yes
14767   if test "$with_gnu_ld" = yes; then
14768     need_lib_prefix=no
14769   fi
14770   need_version=yes
14771   ;;
14772
14773 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14774   version_type=linux
14775   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14776   soname_spec='${libname}${release}${shared_ext}$major'
14777   shlibpath_var=LD_LIBRARY_PATH
14778   case $host_vendor in
14779     sni)
14780       shlibpath_overrides_runpath=no
14781       need_lib_prefix=no
14782       export_dynamic_flag_spec='${wl}-Blargedynsym'
14783       runpath_var=LD_RUN_PATH
14784       ;;
14785     siemens)
14786       need_lib_prefix=no
14787       ;;
14788     motorola)
14789       need_lib_prefix=no
14790       need_version=no
14791       shlibpath_overrides_runpath=no
14792       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14793       ;;
14794   esac
14795   ;;
14796
14797 sysv4*MP*)
14798   if test -d /usr/nec ;then
14799     version_type=linux
14800     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14801     soname_spec='$libname${shared_ext}.$major'
14802     shlibpath_var=LD_LIBRARY_PATH
14803   fi
14804   ;;
14805
14806 uts4*)
14807   version_type=linux
14808   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14809   soname_spec='${libname}${release}${shared_ext}$major'
14810   shlibpath_var=LD_LIBRARY_PATH
14811   ;;
14812
14813 *)
14814   dynamic_linker=no
14815   ;;
14816 esac
14817 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14818 echo "${ECHO_T}$dynamic_linker" >&6; }
14819 test "$dynamic_linker" = no && can_build_shared=no
14820
14821 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14822 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
14823 hardcode_action_F77=
14824 if test -n "$hardcode_libdir_flag_spec_F77" || \
14825    test -n "$runpath_var F77" || \
14826    test "X$hardcode_automatic_F77"="Xyes" ; then
14827
14828   # We can hardcode non-existant directories.
14829   if test "$hardcode_direct_F77" != no &&
14830      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14831      # have to relink, otherwise we might link with an installed library
14832      # when we should be linking with a yet-to-be-installed one
14833      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14834      test "$hardcode_minus_L_F77" != no; then
14835     # Linking always hardcodes the temporary library directory.
14836     hardcode_action_F77=relink
14837   else
14838     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14839     hardcode_action_F77=immediate
14840   fi
14841 else
14842   # We cannot hardcode anything, or else we can only hardcode existing
14843   # directories.
14844   hardcode_action_F77=unsupported
14845 fi
14846 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14847 echo "${ECHO_T}$hardcode_action_F77" >&6; }
14848
14849 if test "$hardcode_action_F77" = relink; then
14850   # Fast installation is not supported
14851   enable_fast_install=no
14852 elif test "$shlibpath_overrides_runpath" = yes ||
14853      test "$enable_shared" = no; then
14854   # Fast installation is not necessary
14855   enable_fast_install=needless
14856 fi
14857
14858 striplib=
14859 old_striplib=
14860 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14861 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
14862 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14863   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14864   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14865   { echo "$as_me:$LINENO: result: yes" >&5
14866 echo "${ECHO_T}yes" >&6; }
14867 else
14868 # FIXME - insert some real tests, host_os isn't really good enough
14869   case $host_os in
14870    darwin*)
14871        if test -n "$STRIP" ; then
14872          striplib="$STRIP -x"
14873          { echo "$as_me:$LINENO: result: yes" >&5
14874 echo "${ECHO_T}yes" >&6; }
14875        else
14876   { echo "$as_me:$LINENO: result: no" >&5
14877 echo "${ECHO_T}no" >&6; }
14878 fi
14879        ;;
14880    *)
14881   { echo "$as_me:$LINENO: result: no" >&5
14882 echo "${ECHO_T}no" >&6; }
14883     ;;
14884   esac
14885 fi
14886
14887
14888
14889 # The else clause should only fire when bootstrapping the
14890 # libtool distribution, otherwise you forgot to ship ltmain.sh
14891 # with your package, and you will get complaints that there are
14892 # no rules to generate ltmain.sh.
14893 if test -f "$ltmain"; then
14894   # See if we are running on zsh, and set the options which allow our commands through
14895   # without removal of \ escapes.
14896   if test -n "${ZSH_VERSION+set}" ; then
14897     setopt NO_GLOB_SUBST
14898   fi
14899   # Now quote all the things that may contain metacharacters while being
14900   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14901   # variables and quote the copies for generation of the libtool script.
14902   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14903     SED SHELL STRIP \
14904     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14905     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14906     deplibs_check_method reload_flag reload_cmds need_locks \
14907     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14908     lt_cv_sys_global_symbol_to_c_name_address \
14909     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14910     old_postinstall_cmds old_postuninstall_cmds \
14911     compiler_F77 \
14912     CC_F77 \
14913     LD_F77 \
14914     lt_prog_compiler_wl_F77 \
14915     lt_prog_compiler_pic_F77 \
14916     lt_prog_compiler_static_F77 \
14917     lt_prog_compiler_no_builtin_flag_F77 \
14918     export_dynamic_flag_spec_F77 \
14919     thread_safe_flag_spec_F77 \
14920     whole_archive_flag_spec_F77 \
14921     enable_shared_with_static_runtimes_F77 \
14922     old_archive_cmds_F77 \
14923     old_archive_from_new_cmds_F77 \
14924     predep_objects_F77 \
14925     postdep_objects_F77 \
14926     predeps_F77 \
14927     postdeps_F77 \
14928     compiler_lib_search_path_F77 \
14929     archive_cmds_F77 \
14930     archive_expsym_cmds_F77 \
14931     postinstall_cmds_F77 \
14932     postuninstall_cmds_F77 \
14933     old_archive_from_expsyms_cmds_F77 \
14934     allow_undefined_flag_F77 \
14935     no_undefined_flag_F77 \
14936     export_symbols_cmds_F77 \
14937     hardcode_libdir_flag_spec_F77 \
14938     hardcode_libdir_flag_spec_ld_F77 \
14939     hardcode_libdir_separator_F77 \
14940     hardcode_automatic_F77 \
14941     module_cmds_F77 \
14942     module_expsym_cmds_F77 \
14943     lt_cv_prog_compiler_c_o_F77 \
14944     exclude_expsyms_F77 \
14945     include_expsyms_F77; do
14946
14947     case $var in
14948     old_archive_cmds_F77 | \
14949     old_archive_from_new_cmds_F77 | \
14950     archive_cmds_F77 | \
14951     archive_expsym_cmds_F77 | \
14952     module_cmds_F77 | \
14953     module_expsym_cmds_F77 | \
14954     old_archive_from_expsyms_cmds_F77 | \
14955     export_symbols_cmds_F77 | \
14956     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14957     postinstall_cmds | postuninstall_cmds | \
14958     old_postinstall_cmds | old_postuninstall_cmds | \
14959     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14960       # Double-quote double-evaled strings.
14961       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14962       ;;
14963     *)
14964       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14965       ;;
14966     esac
14967   done
14968
14969   case $lt_echo in
14970   *'\$0 --fallback-echo"')
14971     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14972     ;;
14973   esac
14974
14975 cfgfile="$ofile"
14976
14977   cat <<__EOF__ >> "$cfgfile"
14978 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14979
14980 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14981
14982 # Shell to use when invoking shell scripts.
14983 SHELL=$lt_SHELL
14984
14985 # Whether or not to build shared libraries.
14986 build_libtool_libs=$enable_shared
14987
14988 # Whether or not to build static libraries.
14989 build_old_libs=$enable_static
14990
14991 # Whether or not to add -lc for building shared libraries.
14992 build_libtool_need_lc=$archive_cmds_need_lc_F77
14993
14994 # Whether or not to disallow shared libs when runtime libs are static
14995 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14996
14997 # Whether or not to optimize for fast installation.
14998 fast_install=$enable_fast_install
14999
15000 # The host system.
15001 host_alias=$host_alias
15002 host=$host
15003
15004 # An echo program that does not interpret backslashes.
15005 echo=$lt_echo
15006
15007 # The archiver.
15008 AR=$lt_AR
15009 AR_FLAGS=$lt_AR_FLAGS
15010
15011 # A C compiler.
15012 LTCC=$lt_LTCC
15013
15014 # A language-specific compiler.
15015 CC=$lt_compiler_F77
15016
15017 # Is the compiler the GNU C compiler?
15018 with_gcc=$GCC_F77
15019
15020 # An ERE matcher.
15021 EGREP=$lt_EGREP
15022
15023 # The linker used to build libraries.
15024 LD=$lt_LD_F77
15025
15026 # Whether we need hard or soft links.
15027 LN_S=$lt_LN_S
15028
15029 # A BSD-compatible nm program.
15030 NM=$lt_NM
15031
15032 # A symbol stripping program
15033 STRIP=$lt_STRIP
15034
15035 # Used to examine libraries when file_magic_cmd begins "file"
15036 MAGIC_CMD=$MAGIC_CMD
15037
15038 # Used on cygwin: DLL creation program.
15039 DLLTOOL="$DLLTOOL"
15040
15041 # Used on cygwin: object dumper.
15042 OBJDUMP="$OBJDUMP"
15043
15044 # Used on cygwin: assembler.
15045 AS="$AS"
15046
15047 # The name of the directory that contains temporary libtool files.
15048 objdir=$objdir
15049
15050 # How to create reloadable object files.
15051 reload_flag=$lt_reload_flag
15052 reload_cmds=$lt_reload_cmds
15053
15054 # How to pass a linker flag through the compiler.
15055 wl=$lt_lt_prog_compiler_wl_F77
15056
15057 # Object file suffix (normally "o").
15058 objext="$ac_objext"
15059
15060 # Old archive suffix (normally "a").
15061 libext="$libext"
15062
15063 # Shared library suffix (normally ".so").
15064 shrext='$shrext'
15065
15066 # Executable file suffix (normally "").
15067 exeext="$exeext"
15068
15069 # Additional compiler flags for building library objects.
15070 pic_flag=$lt_lt_prog_compiler_pic_F77
15071 pic_mode=$pic_mode
15072
15073 # What is the maximum length of a command?
15074 max_cmd_len=$lt_cv_sys_max_cmd_len
15075
15076 # Does compiler simultaneously support -c and -o options?
15077 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15078
15079 # Must we lock files when doing compilation ?
15080 need_locks=$lt_need_locks
15081
15082 # Do we need the lib prefix for modules?
15083 need_lib_prefix=$need_lib_prefix
15084
15085 # Do we need a version for libraries?
15086 need_version=$need_version
15087
15088 # Whether dlopen is supported.
15089 dlopen_support=$enable_dlopen
15090
15091 # Whether dlopen of programs is supported.
15092 dlopen_self=$enable_dlopen_self
15093
15094 # Whether dlopen of statically linked programs is supported.
15095 dlopen_self_static=$enable_dlopen_self_static
15096
15097 # Compiler flag to prevent dynamic linking.
15098 link_static_flag=$lt_lt_prog_compiler_static_F77
15099
15100 # Compiler flag to turn off builtin functions.
15101 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15102
15103 # Compiler flag to allow reflexive dlopens.
15104 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15105
15106 # Compiler flag to generate shared objects directly from archives.
15107 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15108
15109 # Compiler flag to generate thread-safe objects.
15110 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15111
15112 # Library versioning type.
15113 version_type=$version_type
15114
15115 # Format of library name prefix.
15116 libname_spec=$lt_libname_spec
15117
15118 # List of archive names.  First name is the real one, the rest are links.
15119 # The last name is the one that the linker finds with -lNAME.
15120 library_names_spec=$lt_library_names_spec
15121
15122 # The coded name of the library, if different from the real name.
15123 soname_spec=$lt_soname_spec
15124
15125 # Commands used to build and install an old-style archive.
15126 RANLIB=$lt_RANLIB
15127 old_archive_cmds=$lt_old_archive_cmds_F77
15128 old_postinstall_cmds=$lt_old_postinstall_cmds
15129 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15130
15131 # Create an old-style archive from a shared archive.
15132 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15133
15134 # Create a temporary old-style archive to link instead of a shared archive.
15135 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15136
15137 # Commands used to build and install a shared archive.
15138 archive_cmds=$lt_archive_cmds_F77
15139 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15140 postinstall_cmds=$lt_postinstall_cmds
15141 postuninstall_cmds=$lt_postuninstall_cmds
15142
15143 # Commands used to build a loadable module (assumed same as above if empty)
15144 module_cmds=$lt_module_cmds_F77
15145 module_expsym_cmds=$lt_module_expsym_cmds_F77
15146
15147 # Commands to strip libraries.
15148 old_striplib=$lt_old_striplib
15149 striplib=$lt_striplib
15150
15151 # Dependencies to place before the objects being linked to create a
15152 # shared library.
15153 predep_objects=$lt_predep_objects_F77
15154
15155 # Dependencies to place after the objects being linked to create a
15156 # shared library.
15157 postdep_objects=$lt_postdep_objects_F77
15158
15159 # Dependencies to place before the objects being linked to create a
15160 # shared library.
15161 predeps=$lt_predeps_F77
15162
15163 # Dependencies to place after the objects being linked to create a
15164 # shared library.
15165 postdeps=$lt_postdeps_F77
15166
15167 # The library search path used internally by the compiler when linking
15168 # a shared library.
15169 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15170
15171 # Method to check whether dependent libraries are shared objects.
15172 deplibs_check_method=$lt_deplibs_check_method
15173
15174 # Command to use when deplibs_check_method == file_magic.
15175 file_magic_cmd=$lt_file_magic_cmd
15176
15177 # Flag that allows shared libraries with undefined symbols to be built.
15178 allow_undefined_flag=$lt_allow_undefined_flag_F77
15179
15180 # Flag that forces no undefined symbols.
15181 no_undefined_flag=$lt_no_undefined_flag_F77
15182
15183 # Commands used to finish a libtool library installation in a directory.
15184 finish_cmds=$lt_finish_cmds
15185
15186 # Same as above, but a single script fragment to be evaled but not shown.
15187 finish_eval=$lt_finish_eval
15188
15189 # Take the output of nm and produce a listing of raw symbols and C names.
15190 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15191
15192 # Transform the output of nm in a proper C declaration
15193 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15194
15195 # Transform the output of nm in a C name address pair
15196 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15197
15198 # This is the shared library runtime path variable.
15199 runpath_var=$runpath_var
15200
15201 # This is the shared library path variable.
15202 shlibpath_var=$shlibpath_var
15203
15204 # Is shlibpath searched before the hard-coded library search path?
15205 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15206
15207 # How to hardcode a shared library path into an executable.
15208 hardcode_action=$hardcode_action_F77
15209
15210 # Whether we should hardcode library paths into libraries.
15211 hardcode_into_libs=$hardcode_into_libs
15212
15213 # Flag to hardcode \$libdir into a binary during linking.
15214 # This must work even if \$libdir does not exist.
15215 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15216
15217 # If ld is used when linking, flag to hardcode \$libdir into
15218 # a binary during linking. This must work even if \$libdir does
15219 # not exist.
15220 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15221
15222 # Whether we need a single -rpath flag with a separated argument.
15223 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15224
15225 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15226 # resulting binary.
15227 hardcode_direct=$hardcode_direct_F77
15228
15229 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15230 # resulting binary.
15231 hardcode_minus_L=$hardcode_minus_L_F77
15232
15233 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15234 # the resulting binary.
15235 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15236
15237 # Set to yes if building a shared library automatically hardcodes DIR into the library
15238 # and all subsequent libraries and executables linked against it.
15239 hardcode_automatic=$hardcode_automatic_F77
15240
15241 # Variables whose values should be saved in libtool wrapper scripts and
15242 # restored at relink time.
15243 variables_saved_for_relink="$variables_saved_for_relink"
15244
15245 # Whether libtool must link a program against all its dependency libraries.
15246 link_all_deplibs=$link_all_deplibs_F77
15247
15248 # Compile-time system search path for libraries
15249 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15250
15251 # Run-time system search path for libraries
15252 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15253
15254 # Fix the shell variable \$srcfile for the compiler.
15255 fix_srcfile_path="$fix_srcfile_path_F77"
15256
15257 # Set to yes if exported symbols are required.
15258 always_export_symbols=$always_export_symbols_F77
15259
15260 # The commands to list exported symbols.
15261 export_symbols_cmds=$lt_export_symbols_cmds_F77
15262
15263 # The commands to extract the exported symbol list from a shared archive.
15264 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15265
15266 # Symbols that should not be listed in the preloaded symbols.
15267 exclude_expsyms=$lt_exclude_expsyms_F77
15268
15269 # Symbols that must always be exported.
15270 include_expsyms=$lt_include_expsyms_F77
15271
15272 # ### END LIBTOOL TAG CONFIG: $tagname
15273
15274 __EOF__
15275
15276
15277 else
15278   # If there is no Makefile yet, we rely on a make rule to execute
15279   # `config.status --recheck' to rerun these tests and create the
15280   # libtool script then.
15281   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15282   if test -f "$ltmain_in"; then
15283     test -f Makefile && make "$ltmain"
15284   fi
15285 fi
15286
15287
15288 ac_ext=c
15289 ac_cpp='$CPP $CPPFLAGS'
15290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15293
15294 CC="$lt_save_CC"
15295
15296         else
15297           tagname=""
15298         fi
15299         ;;
15300
15301       GCJ)
15302         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15303
15304
15305 # Source file extension for Java test sources.
15306 ac_ext=java
15307
15308 # Object file extension for compiled Java test sources.
15309 objext=o
15310 objext_GCJ=$objext
15311
15312 # Code to be used in simple compile tests
15313 lt_simple_compile_test_code="class foo {}\n"
15314
15315 # Code to be used in simple link tests
15316 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15317
15318 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15319
15320 # If no C compiler was specified, use CC.
15321 LTCC=${LTCC-"$CC"}
15322
15323 # Allow CC to be a program name with arguments.
15324 compiler=$CC
15325
15326
15327 # Allow CC to be a program name with arguments.
15328 lt_save_CC="$CC"
15329 CC=${GCJ-"gcj"}
15330 compiler=$CC
15331 compiler_GCJ=$CC
15332
15333 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15334 archive_cmds_need_lc_GCJ=no
15335
15336 ## CAVEAT EMPTOR:
15337 ## There is no encapsulation within the following macros, do not change
15338 ## the running order or otherwise move them around unless you know exactly
15339 ## what you are doing...
15340
15341 lt_prog_compiler_no_builtin_flag_GCJ=
15342
15343 if test "$GCC" = yes; then
15344   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15345
15346
15347 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15348 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
15349 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15350   echo $ECHO_N "(cached) $ECHO_C" >&6
15351 else
15352   lt_cv_prog_compiler_rtti_exceptions=no
15353   ac_outfile=conftest.$ac_objext
15354    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15355    lt_compiler_flag="-fno-rtti -fno-exceptions"
15356    # Insert the option either (1) after the last *FLAGS variable, or
15357    # (2) before a word containing "conftest.", or (3) at the end.
15358    # Note that $ac_compile itself does not contain backslashes and begins
15359    # with a dollar sign (not a hyphen), so the echo should work correctly.
15360    # The option is referenced via a variable to avoid confusing sed.
15361    lt_compile=`echo "$ac_compile" | $SED \
15362    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15363    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15364    -e 's:$: $lt_compiler_flag:'`
15365    (eval echo "\"\$as_me:15365: $lt_compile\"" >&5)
15366    (eval "$lt_compile" 2>conftest.err)
15367    ac_status=$?
15368    cat conftest.err >&5
15369    echo "$as_me:15369: \$? = $ac_status" >&5
15370    if (exit $ac_status) && test -s "$ac_outfile"; then
15371      # The compiler can only warn and ignore the option if not recognized
15372      # So say no if there are warnings
15373      if test ! -s conftest.err; then
15374        lt_cv_prog_compiler_rtti_exceptions=yes
15375      fi
15376    fi
15377    $rm conftest*
15378
15379 fi
15380 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15381 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15382
15383 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15384     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15385 else
15386     :
15387 fi
15388
15389 fi
15390
15391 lt_prog_compiler_wl_GCJ=
15392 lt_prog_compiler_pic_GCJ=
15393 lt_prog_compiler_static_GCJ=
15394
15395 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15396 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15397
15398   if test "$GCC" = yes; then
15399     lt_prog_compiler_wl_GCJ='-Wl,'
15400     lt_prog_compiler_static_GCJ='-static'
15401
15402     case $host_os in
15403       aix*)
15404       # All AIX code is PIC.
15405       if test "$host_cpu" = ia64; then
15406         # AIX 5 now supports IA64 processor
15407         lt_prog_compiler_static_GCJ='-Bstatic'
15408       fi
15409       ;;
15410
15411     amigaos*)
15412       # FIXME: we need at least 68020 code to build shared libraries, but
15413       # adding the `-m68020' flag to GCC prevents building anything better,
15414       # like `-m68040'.
15415       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15416       ;;
15417
15418     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15419       # PIC is the default for these OSes.
15420       ;;
15421
15422     mingw* | pw32* | os2*)
15423       # This hack is so that the source file can tell whether it is being
15424       # built for inclusion in a dll (and should export symbols for example).
15425       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15426       ;;
15427
15428     darwin* | rhapsody*)
15429       # PIC is the default on this platform
15430       # Common symbols not allowed in MH_DYLIB files
15431       lt_prog_compiler_pic_GCJ='-fno-common'
15432       ;;
15433
15434     msdosdjgpp*)
15435       # Just because we use GCC doesn't mean we suddenly get shared libraries
15436       # on systems that don't support them.
15437       lt_prog_compiler_can_build_shared_GCJ=no
15438       enable_shared=no
15439       ;;
15440
15441     sysv4*MP*)
15442       if test -d /usr/nec; then
15443         lt_prog_compiler_pic_GCJ=-Kconform_pic
15444       fi
15445       ;;
15446
15447     hpux*)
15448       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15449       # not for PA HP-UX.
15450       case "$host_cpu" in
15451       hppa*64*|ia64*)
15452         # +Z the default
15453         ;;
15454       *)
15455         lt_prog_compiler_pic_GCJ='-fPIC'
15456         ;;
15457       esac
15458       ;;
15459
15460     *)
15461       lt_prog_compiler_pic_GCJ='-fPIC'
15462       ;;
15463     esac
15464   else
15465     # PORTME Check for flag to pass linker flags through the system compiler.
15466     case $host_os in
15467     aix*)
15468       lt_prog_compiler_wl_GCJ='-Wl,'
15469       if test "$host_cpu" = ia64; then
15470         # AIX 5 now supports IA64 processor
15471         lt_prog_compiler_static_GCJ='-Bstatic'
15472       else
15473         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15474       fi
15475       ;;
15476
15477     mingw* | pw32* | os2*)
15478       # This hack is so that the source file can tell whether it is being
15479       # built for inclusion in a dll (and should export symbols for example).
15480       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15481       ;;
15482
15483     hpux9* | hpux10* | hpux11*)
15484       lt_prog_compiler_wl_GCJ='-Wl,'
15485       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15486       # not for PA HP-UX.
15487       case "$host_cpu" in
15488       hppa*64*|ia64*)
15489         # +Z the default
15490         ;;
15491       *)
15492         lt_prog_compiler_pic_GCJ='+Z'
15493         ;;
15494       esac
15495       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15496       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15497       ;;
15498
15499     irix5* | irix6* | nonstopux*)
15500       lt_prog_compiler_wl_GCJ='-Wl,'
15501       # PIC (with -KPIC) is the default.
15502       lt_prog_compiler_static_GCJ='-non_shared'
15503       ;;
15504
15505     newsos6)
15506       lt_prog_compiler_pic_GCJ='-KPIC'
15507       lt_prog_compiler_static_GCJ='-Bstatic'
15508       ;;
15509
15510     linux*)
15511       case $CC in
15512       icc* | ecc*)
15513         lt_prog_compiler_wl_GCJ='-Wl,'
15514         lt_prog_compiler_pic_GCJ='-KPIC'
15515         lt_prog_compiler_static_GCJ='-static'
15516         ;;
15517       ccc*)
15518         lt_prog_compiler_wl_GCJ='-Wl,'
15519         # All Alpha code is PIC.
15520         lt_prog_compiler_static_GCJ='-non_shared'
15521         ;;
15522       esac
15523       ;;
15524
15525     osf3* | osf4* | osf5*)
15526       lt_prog_compiler_wl_GCJ='-Wl,'
15527       # All OSF/1 code is PIC.
15528       lt_prog_compiler_static_GCJ='-non_shared'
15529       ;;
15530
15531     sco3.2v5*)
15532       lt_prog_compiler_pic_GCJ='-Kpic'
15533       lt_prog_compiler_static_GCJ='-dn'
15534       ;;
15535
15536     solaris*)
15537       lt_prog_compiler_wl_GCJ='-Wl,'
15538       lt_prog_compiler_pic_GCJ='-KPIC'
15539       lt_prog_compiler_static_GCJ='-Bstatic'
15540       ;;
15541
15542     sunos4*)
15543       lt_prog_compiler_wl_GCJ='-Qoption ld '
15544       lt_prog_compiler_pic_GCJ='-PIC'
15545       lt_prog_compiler_static_GCJ='-Bstatic'
15546       ;;
15547
15548     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15549       lt_prog_compiler_wl_GCJ='-Wl,'
15550       lt_prog_compiler_pic_GCJ='-KPIC'
15551       lt_prog_compiler_static_GCJ='-Bstatic'
15552       ;;
15553
15554     sysv4*MP*)
15555       if test -d /usr/nec ;then
15556         lt_prog_compiler_pic_GCJ='-Kconform_pic'
15557         lt_prog_compiler_static_GCJ='-Bstatic'
15558       fi
15559       ;;
15560
15561     uts4*)
15562       lt_prog_compiler_pic_GCJ='-pic'
15563       lt_prog_compiler_static_GCJ='-Bstatic'
15564       ;;
15565
15566     *)
15567       lt_prog_compiler_can_build_shared_GCJ=no
15568       ;;
15569     esac
15570   fi
15571
15572 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15573 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
15574
15575 #
15576 # Check to make sure the PIC flag actually works.
15577 #
15578 if test -n "$lt_prog_compiler_pic_GCJ"; then
15579
15580 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15581 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
15582 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15583   echo $ECHO_N "(cached) $ECHO_C" >&6
15584 else
15585   lt_prog_compiler_pic_works_GCJ=no
15586   ac_outfile=conftest.$ac_objext
15587    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15588    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15589    # Insert the option either (1) after the last *FLAGS variable, or
15590    # (2) before a word containing "conftest.", or (3) at the end.
15591    # Note that $ac_compile itself does not contain backslashes and begins
15592    # with a dollar sign (not a hyphen), so the echo should work correctly.
15593    # The option is referenced via a variable to avoid confusing sed.
15594    lt_compile=`echo "$ac_compile" | $SED \
15595    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15596    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15597    -e 's:$: $lt_compiler_flag:'`
15598    (eval echo "\"\$as_me:15598: $lt_compile\"" >&5)
15599    (eval "$lt_compile" 2>conftest.err)
15600    ac_status=$?
15601    cat conftest.err >&5
15602    echo "$as_me:15602: \$? = $ac_status" >&5
15603    if (exit $ac_status) && test -s "$ac_outfile"; then
15604      # The compiler can only warn and ignore the option if not recognized
15605      # So say no if there are warnings
15606      if test ! -s conftest.err; then
15607        lt_prog_compiler_pic_works_GCJ=yes
15608      fi
15609    fi
15610    $rm conftest*
15611
15612 fi
15613 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15614 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
15615
15616 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15617     case $lt_prog_compiler_pic_GCJ in
15618      "" | " "*) ;;
15619      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15620      esac
15621 else
15622     lt_prog_compiler_pic_GCJ=
15623      lt_prog_compiler_can_build_shared_GCJ=no
15624 fi
15625
15626 fi
15627 case "$host_os" in
15628   # For platforms which do not support PIC, -DPIC is meaningless:
15629   *djgpp*)
15630     lt_prog_compiler_pic_GCJ=
15631     ;;
15632   *)
15633     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15634     ;;
15635 esac
15636
15637 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15638 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15639 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15640   echo $ECHO_N "(cached) $ECHO_C" >&6
15641 else
15642   lt_cv_prog_compiler_c_o_GCJ=no
15643    $rm -r conftest 2>/dev/null
15644    mkdir conftest
15645    cd conftest
15646    mkdir out
15647    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15648
15649    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15650    # that will create temporary files in the current directory regardless of
15651    # the output directory.  Thus, making CWD read-only will cause this test
15652    # to fail, enabling locking or at least warning the user not to do parallel
15653    # builds.
15654    chmod -w .
15655
15656    lt_compiler_flag="-o out/conftest2.$ac_objext"
15657    # Insert the option either (1) after the last *FLAGS variable, or
15658    # (2) before a word containing "conftest.", or (3) at the end.
15659    # Note that $ac_compile itself does not contain backslashes and begins
15660    # with a dollar sign (not a hyphen), so the echo should work correctly.
15661    lt_compile=`echo "$ac_compile" | $SED \
15662    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15663    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15664    -e 's:$: $lt_compiler_flag:'`
15665    (eval echo "\"\$as_me:15665: $lt_compile\"" >&5)
15666    (eval "$lt_compile" 2>out/conftest.err)
15667    ac_status=$?
15668    cat out/conftest.err >&5
15669    echo "$as_me:15669: \$? = $ac_status" >&5
15670    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15671    then
15672      # The compiler can only warn and ignore the option if not recognized
15673      # So say no if there are warnings
15674      if test ! -s out/conftest.err; then
15675        lt_cv_prog_compiler_c_o_GCJ=yes
15676      fi
15677    fi
15678    chmod u+w .
15679    $rm conftest*
15680    # SGI C++ compiler will create directory out/ii_files/ for
15681    # template instantiation
15682    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15683    $rm out/* && rmdir out
15684    cd ..
15685    rmdir conftest
15686    $rm conftest*
15687
15688 fi
15689 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15690 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
15691
15692
15693 hard_links="nottested"
15694 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15695   # do not overwrite the value of need_locks provided by the user
15696   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15697 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15698   hard_links=yes
15699   $rm conftest*
15700   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15701   touch conftest.a
15702   ln conftest.a conftest.b 2>&5 || hard_links=no
15703   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15704   { echo "$as_me:$LINENO: result: $hard_links" >&5
15705 echo "${ECHO_T}$hard_links" >&6; }
15706   if test "$hard_links" = no; then
15707     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15708 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15709     need_locks=warn
15710   fi
15711 else
15712   need_locks=no
15713 fi
15714
15715 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15716 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15717
15718   runpath_var=
15719   allow_undefined_flag_GCJ=
15720   enable_shared_with_static_runtimes_GCJ=no
15721   archive_cmds_GCJ=
15722   archive_expsym_cmds_GCJ=
15723   old_archive_From_new_cmds_GCJ=
15724   old_archive_from_expsyms_cmds_GCJ=
15725   export_dynamic_flag_spec_GCJ=
15726   whole_archive_flag_spec_GCJ=
15727   thread_safe_flag_spec_GCJ=
15728   hardcode_libdir_flag_spec_GCJ=
15729   hardcode_libdir_flag_spec_ld_GCJ=
15730   hardcode_libdir_separator_GCJ=
15731   hardcode_direct_GCJ=no
15732   hardcode_minus_L_GCJ=no
15733   hardcode_shlibpath_var_GCJ=unsupported
15734   link_all_deplibs_GCJ=unknown
15735   hardcode_automatic_GCJ=no
15736   module_cmds_GCJ=
15737   module_expsym_cmds_GCJ=
15738   always_export_symbols_GCJ=no
15739   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15740   # include_expsyms should be a list of space-separated symbols to be *always*
15741   # included in the symbol list
15742   include_expsyms_GCJ=
15743   # exclude_expsyms can be an extended regexp of symbols to exclude
15744   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15745   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15746   # as well as any symbol that contains `d'.
15747   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15748   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15749   # platforms (ab)use it in PIC code, but their linkers get confused if
15750   # the symbol is explicitly referenced.  Since portable code cannot
15751   # rely on this symbol name, it's probably fine to never include it in
15752   # preloaded symbol tables.
15753   extract_expsyms_cmds=
15754
15755   case $host_os in
15756   cygwin* | mingw* | pw32*)
15757     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15758     # When not using gcc, we currently assume that we are using
15759     # Microsoft Visual C++.
15760     if test "$GCC" != yes; then
15761       with_gnu_ld=no
15762     fi
15763     ;;
15764   openbsd*)
15765     with_gnu_ld=no
15766     ;;
15767   esac
15768
15769   ld_shlibs_GCJ=yes
15770   if test "$with_gnu_ld" = yes; then
15771     # If archive_cmds runs LD, not CC, wlarc should be empty
15772     wlarc='${wl}'
15773
15774     # See if GNU ld supports shared libraries.
15775     case $host_os in
15776     aix3* | aix4* | aix5*)
15777       # On AIX/PPC, the GNU linker is very broken
15778       if test "$host_cpu" != ia64; then
15779         ld_shlibs_GCJ=no
15780         cat <<EOF 1>&2
15781
15782 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15783 *** to be unable to reliably create shared libraries on AIX.
15784 *** Therefore, libtool is disabling shared libraries support.  If you
15785 *** really care for shared libraries, you may want to modify your PATH
15786 *** so that a non-GNU linker is found, and then restart.
15787
15788 EOF
15789       fi
15790       ;;
15791
15792     amigaos*)
15793       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)'
15794       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15795       hardcode_minus_L_GCJ=yes
15796
15797       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15798       # that the semantics of dynamic libraries on AmigaOS, at least up
15799       # to version 4, is to share data among multiple programs linked
15800       # with the same dynamic library.  Since this doesn't match the
15801       # behavior of shared libraries on other platforms, we can't use
15802       # them.
15803       ld_shlibs_GCJ=no
15804       ;;
15805
15806     beos*)
15807       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15808         allow_undefined_flag_GCJ=unsupported
15809         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15810         # support --undefined.  This deserves some investigation.  FIXME
15811         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15812       else
15813         ld_shlibs_GCJ=no
15814       fi
15815       ;;
15816
15817     cygwin* | mingw* | pw32*)
15818       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15819       # as there is no search path for DLLs.
15820       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15821       allow_undefined_flag_GCJ=unsupported
15822       always_export_symbols_GCJ=no
15823       enable_shared_with_static_runtimes_GCJ=yes
15824       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15825
15826       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15827         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15828         # If the export-symbols file already is a .def file (1st line
15829         # is EXPORTS), use it as is; otherwise, prepend...
15830         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15831           cp $export_symbols $output_objdir/$soname.def;
15832         else
15833           echo EXPORTS > $output_objdir/$soname.def;
15834           cat $export_symbols >> $output_objdir/$soname.def;
15835         fi~
15836         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15837       else
15838         ld_shlibs=no
15839       fi
15840       ;;
15841
15842     netbsd*)
15843       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15844         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15845         wlarc=
15846       else
15847         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15848         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15849       fi
15850       ;;
15851
15852     solaris* | sysv5*)
15853       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15854         ld_shlibs_GCJ=no
15855         cat <<EOF 1>&2
15856
15857 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15858 *** create shared libraries on Solaris systems.  Therefore, libtool
15859 *** is disabling shared libraries support.  We urge you to upgrade GNU
15860 *** binutils to release 2.9.1 or newer.  Another option is to modify
15861 *** your PATH or compiler configuration so that the native linker is
15862 *** used, and then restart.
15863
15864 EOF
15865       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15866         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15867         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15868       else
15869         ld_shlibs_GCJ=no
15870       fi
15871       ;;
15872
15873     sunos4*)
15874       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15875       wlarc=
15876       hardcode_direct_GCJ=yes
15877       hardcode_shlibpath_var_GCJ=no
15878       ;;
15879
15880   linux*)
15881     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
15882         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15883         archive_cmds_GCJ="$tmp_archive_cmds"
15884       supports_anon_versioning=no
15885       case `$LD -v 2>/dev/null` in
15886         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15887         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15888         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15889         *\ 2.11.*) ;; # other 2.11 versions
15890         *) supports_anon_versioning=yes ;;
15891       esac
15892       if test $supports_anon_versioning = yes; then
15893         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15894 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15895 $echo "local: *; };" >> $output_objdir/$libname.ver~
15896         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15897       else
15898         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
15899       fi
15900     else
15901       ld_shlibs_GCJ=no
15902     fi
15903     ;;
15904
15905     *)
15906       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15907         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15908         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15909       else
15910         ld_shlibs_GCJ=no
15911       fi
15912       ;;
15913     esac
15914
15915     if test "$ld_shlibs_GCJ" = yes; then
15916       runpath_var=LD_RUN_PATH
15917       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15918       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15919       # ancient GNU ld didn't support --whole-archive et. al.
15920       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15921         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15922       else
15923         whole_archive_flag_spec_GCJ=
15924       fi
15925     fi
15926   else
15927     # PORTME fill in a description of your system's linker (not GNU ld)
15928     case $host_os in
15929     aix3*)
15930       allow_undefined_flag_GCJ=unsupported
15931       always_export_symbols_GCJ=yes
15932       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'
15933       # Note: this linker hardcodes the directories in LIBPATH if there
15934       # are no directories specified by -L.
15935       hardcode_minus_L_GCJ=yes
15936       if test "$GCC" = yes && test -z "$link_static_flag"; then
15937         # Neither direct hardcoding nor static linking is supported with a
15938         # broken collect2.
15939         hardcode_direct_GCJ=unsupported
15940       fi
15941       ;;
15942
15943     aix4* | aix5*)
15944       if test "$host_cpu" = ia64; then
15945         # On IA64, the linker does run time linking by default, so we don't
15946         # have to do anything special.
15947         aix_use_runtimelinking=no
15948         exp_sym_flag='-Bexport'
15949         no_entry_flag=""
15950       else
15951         # If we're using GNU nm, then we don't want the "-C" option.
15952         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15953         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15954           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'
15955         else
15956           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'
15957         fi
15958         aix_use_runtimelinking=no
15959
15960         # Test if we are trying to use run time linking or normal
15961         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15962         # need to do runtime linking.
15963         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15964           for ld_flag in $LDFLAGS; do
15965           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15966             aix_use_runtimelinking=yes
15967             break
15968           fi
15969           done
15970         esac
15971
15972         exp_sym_flag='-bexport'
15973         no_entry_flag='-bnoentry'
15974       fi
15975
15976       # When large executables or shared objects are built, AIX ld can
15977       # have problems creating the table of contents.  If linking a library
15978       # or program results in "error TOC overflow" add -mminimal-toc to
15979       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15980       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15981
15982       archive_cmds_GCJ=''
15983       hardcode_direct_GCJ=yes
15984       hardcode_libdir_separator_GCJ=':'
15985       link_all_deplibs_GCJ=yes
15986
15987       if test "$GCC" = yes; then
15988         case $host_os in aix4.012|aix4.012.*)
15989         # We only want to do this on AIX 4.2 and lower, the check
15990         # below for broken collect2 doesn't work under 4.3+
15991           collect2name=`${CC} -print-prog-name=collect2`
15992           if test -f "$collect2name" && \
15993            strings "$collect2name" | grep resolve_lib_name >/dev/null
15994           then
15995           # We have reworked collect2
15996           hardcode_direct_GCJ=yes
15997           else
15998           # We have old collect2
15999           hardcode_direct_GCJ=unsupported
16000           # It fails to find uninstalled libraries when the uninstalled
16001           # path is not listed in the libpath.  Setting hardcode_minus_L
16002           # to unsupported forces relinking
16003           hardcode_minus_L_GCJ=yes
16004           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16005           hardcode_libdir_separator_GCJ=
16006           fi
16007         esac
16008         shared_flag='-shared'
16009       else
16010         # not using gcc
16011         if test "$host_cpu" = ia64; then
16012         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16013         # chokes on -Wl,-G. The following line is correct:
16014           shared_flag='-G'
16015         else
16016         if test "$aix_use_runtimelinking" = yes; then
16017             shared_flag='${wl}-G'
16018           else
16019             shared_flag='${wl}-bM:SRE'
16020         fi
16021         fi
16022       fi
16023
16024       # It seems that -bexpall does not export symbols beginning with
16025       # underscore (_), so it is better to generate a list of symbols to export.
16026       always_export_symbols_GCJ=yes
16027       if test "$aix_use_runtimelinking" = yes; then
16028         # Warning - without using the other runtime loading flags (-brtl),
16029         # -berok will link without error, but may produce a broken library.
16030         allow_undefined_flag_GCJ='-berok'
16031        # Determine the default libpath from the value encoded in an empty executable.
16032        cat >conftest.$ac_ext <<_ACEOF
16033 /* confdefs.h.  */
16034 _ACEOF
16035 cat confdefs.h >>conftest.$ac_ext
16036 cat >>conftest.$ac_ext <<_ACEOF
16037 /* end confdefs.h.  */
16038
16039 int
16040 main ()
16041 {
16042
16043   ;
16044   return 0;
16045 }
16046 _ACEOF
16047 rm -f conftest.$ac_objext conftest$ac_exeext
16048 if { (ac_try="$ac_link"
16049 case "(($ac_try" in
16050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16051   *) ac_try_echo=$ac_try;;
16052 esac
16053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16054   (eval "$ac_link") 2>conftest.er1
16055   ac_status=$?
16056   grep -v '^ *+' conftest.er1 >conftest.err
16057   rm -f conftest.er1
16058   cat conftest.err >&5
16059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16060   (exit $ac_status); } && {
16061          test -z "$ac_c_werror_flag" ||
16062          test ! -s conftest.err
16063        } && test -s conftest$ac_exeext &&
16064        $as_test_x conftest$ac_exeext; then
16065
16066 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16067 }'`
16068 # Check for a 64-bit object if we didn't find anything.
16069 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; }
16070 }'`; fi
16071 else
16072   echo "$as_me: failed program was:" >&5
16073 sed 's/^/| /' conftest.$ac_ext >&5
16074
16075
16076 fi
16077
16078 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16079       conftest$ac_exeext conftest.$ac_ext
16080 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16081
16082        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16083         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"
16084        else
16085         if test "$host_cpu" = ia64; then
16086           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16087           allow_undefined_flag_GCJ="-z nodefs"
16088           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"
16089         else
16090          # Determine the default libpath from the value encoded in an empty executable.
16091          cat >conftest.$ac_ext <<_ACEOF
16092 /* confdefs.h.  */
16093 _ACEOF
16094 cat confdefs.h >>conftest.$ac_ext
16095 cat >>conftest.$ac_ext <<_ACEOF
16096 /* end confdefs.h.  */
16097
16098 int
16099 main ()
16100 {
16101
16102   ;
16103   return 0;
16104 }
16105 _ACEOF
16106 rm -f conftest.$ac_objext conftest$ac_exeext
16107 if { (ac_try="$ac_link"
16108 case "(($ac_try" in
16109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16110   *) ac_try_echo=$ac_try;;
16111 esac
16112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16113   (eval "$ac_link") 2>conftest.er1
16114   ac_status=$?
16115   grep -v '^ *+' conftest.er1 >conftest.err
16116   rm -f conftest.er1
16117   cat conftest.err >&5
16118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16119   (exit $ac_status); } && {
16120          test -z "$ac_c_werror_flag" ||
16121          test ! -s conftest.err
16122        } && test -s conftest$ac_exeext &&
16123        $as_test_x conftest$ac_exeext; then
16124
16125 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16126 }'`
16127 # Check for a 64-bit object if we didn't find anything.
16128 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; }
16129 }'`; fi
16130 else
16131   echo "$as_me: failed program was:" >&5
16132 sed 's/^/| /' conftest.$ac_ext >&5
16133
16134
16135 fi
16136
16137 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16138       conftest$ac_exeext conftest.$ac_ext
16139 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16140
16141          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16142           # Warning - without using the other run time loading flags,
16143           # -berok will link without error, but may produce a broken library.
16144           no_undefined_flag_GCJ=' ${wl}-bernotok'
16145           allow_undefined_flag_GCJ=' ${wl}-berok'
16146           # -bexpall does not export symbols beginning with underscore (_)
16147           always_export_symbols_GCJ=yes
16148           # Exported symbols can be pulled into shared objects from archives
16149           whole_archive_flag_spec_GCJ=' '
16150           archive_cmds_need_lc_GCJ=yes
16151           # This is similar to how AIX traditionally builds it's shared libraries.
16152           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'
16153         fi
16154       fi
16155       ;;
16156
16157     amigaos*)
16158       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)'
16159       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16160       hardcode_minus_L_GCJ=yes
16161       # see comment about different semantics on the GNU ld section
16162       ld_shlibs_GCJ=no
16163       ;;
16164
16165     bsdi4*)
16166       export_dynamic_flag_spec_GCJ=-rdynamic
16167       ;;
16168
16169     cygwin* | mingw* | pw32*)
16170       # When not using gcc, we currently assume that we are using
16171       # Microsoft Visual C++.
16172       # hardcode_libdir_flag_spec is actually meaningless, as there is
16173       # no search path for DLLs.
16174       hardcode_libdir_flag_spec_GCJ=' '
16175       allow_undefined_flag_GCJ=unsupported
16176       # Tell ltmain to make .lib files, not .a files.
16177       libext=lib
16178       # Tell ltmain to make .dll files, not .so files.
16179       shrext=".dll"
16180       # FIXME: Setting linknames here is a bad hack.
16181       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16182       # The linker will automatically build a .lib file if we build a DLL.
16183       old_archive_From_new_cmds_GCJ='true'
16184       # FIXME: Should let the user specify the lib program.
16185       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16186       fix_srcfile_path='`cygpath -w "$srcfile"`'
16187       enable_shared_with_static_runtimes_GCJ=yes
16188       ;;
16189
16190     darwin* | rhapsody*)
16191     if test "$GXX" = yes ; then
16192       archive_cmds_need_lc_GCJ=no
16193       case "$host_os" in
16194       rhapsody* | darwin1.[012])
16195         allow_undefined_flag_GCJ='-undefined suppress'
16196         ;;
16197       *) # Darwin 1.3 on
16198       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16199         allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16200       else
16201         case ${MACOSX_DEPLOYMENT_TARGET} in
16202           10.[012])
16203             allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16204             ;;
16205           10.*)
16206             allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16207             ;;
16208         esac
16209       fi
16210         ;;
16211       esac
16212         lt_int_apple_cc_single_mod=no
16213         output_verbose_link_cmd='echo'
16214         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16215           lt_int_apple_cc_single_mod=yes
16216         fi
16217         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16218           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16219         else
16220         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'
16221       fi
16222       module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16223       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16224         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16225           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}'
16226         else
16227           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}'
16228         fi
16229           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}'
16230       hardcode_direct_GCJ=no
16231       hardcode_automatic_GCJ=yes
16232       hardcode_shlibpath_var_GCJ=unsupported
16233       whole_archive_flag_spec_GCJ='-all_load $convenience'
16234       link_all_deplibs_GCJ=yes
16235     else
16236       ld_shlibs_GCJ=no
16237     fi
16238       ;;
16239
16240     dgux*)
16241       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16242       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16243       hardcode_shlibpath_var_GCJ=no
16244       ;;
16245
16246     freebsd1*)
16247       ld_shlibs_GCJ=no
16248       ;;
16249
16250     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16251     # support.  Future versions do this automatically, but an explicit c++rt0.o
16252     # does not break anything, and helps significantly (at the cost of a little
16253     # extra space).
16254     freebsd2.2*)
16255       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16256       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16257       hardcode_direct_GCJ=yes
16258       hardcode_shlibpath_var_GCJ=no
16259       ;;
16260
16261     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16262     freebsd2*)
16263       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16264       hardcode_direct_GCJ=yes
16265       hardcode_minus_L_GCJ=yes
16266       hardcode_shlibpath_var_GCJ=no
16267       ;;
16268
16269     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16270     freebsd* | kfreebsd*-gnu)
16271       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16272       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16273       hardcode_direct_GCJ=yes
16274       hardcode_shlibpath_var_GCJ=no
16275       ;;
16276
16277     hpux9*)
16278       if test "$GCC" = yes; then
16279         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'
16280       else
16281         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'
16282       fi
16283       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16284       hardcode_libdir_separator_GCJ=:
16285       hardcode_direct_GCJ=yes
16286
16287       # hardcode_minus_L: Not really in the search PATH,
16288       # but as the default location of the library.
16289       hardcode_minus_L_GCJ=yes
16290       export_dynamic_flag_spec_GCJ='${wl}-E'
16291       ;;
16292
16293     hpux10* | hpux11*)
16294       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16295         case "$host_cpu" in
16296         hppa*64*|ia64*)
16297           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16298           ;;
16299         *)
16300           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16301           ;;
16302         esac
16303       else
16304         case "$host_cpu" in
16305         hppa*64*|ia64*)
16306           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16307           ;;
16308         *)
16309           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16310           ;;
16311         esac
16312       fi
16313       if test "$with_gnu_ld" = no; then
16314         case "$host_cpu" in
16315         hppa*64*)
16316           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16317           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16318           hardcode_libdir_separator_GCJ=:
16319           hardcode_direct_GCJ=no
16320           hardcode_shlibpath_var_GCJ=no
16321           ;;
16322         ia64*)
16323           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16324           hardcode_direct_GCJ=no
16325           hardcode_shlibpath_var_GCJ=no
16326
16327           # hardcode_minus_L: Not really in the search PATH,
16328           # but as the default location of the library.
16329           hardcode_minus_L_GCJ=yes
16330           ;;
16331         *)
16332           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16333           hardcode_libdir_separator_GCJ=:
16334           hardcode_direct_GCJ=yes
16335           export_dynamic_flag_spec_GCJ='${wl}-E'
16336
16337           # hardcode_minus_L: Not really in the search PATH,
16338           # but as the default location of the library.
16339           hardcode_minus_L_GCJ=yes
16340           ;;
16341         esac
16342       fi
16343       ;;
16344
16345     irix5* | irix6* | nonstopux*)
16346       if test "$GCC" = yes; then
16347         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'
16348       else
16349         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'
16350         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16351       fi
16352       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16353       hardcode_libdir_separator_GCJ=:
16354       link_all_deplibs_GCJ=yes
16355       ;;
16356
16357     netbsd*)
16358       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16359         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16360       else
16361         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16362       fi
16363       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16364       hardcode_direct_GCJ=yes
16365       hardcode_shlibpath_var_GCJ=no
16366       ;;
16367
16368     newsos6)
16369       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16370       hardcode_direct_GCJ=yes
16371       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16372       hardcode_libdir_separator_GCJ=:
16373       hardcode_shlibpath_var_GCJ=no
16374       ;;
16375
16376     openbsd*)
16377       hardcode_direct_GCJ=yes
16378       hardcode_shlibpath_var_GCJ=no
16379       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16380         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16381         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16382         export_dynamic_flag_spec_GCJ='${wl}-E'
16383       else
16384        case $host_os in
16385          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16386            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16387            hardcode_libdir_flag_spec_GCJ='-R$libdir'
16388            ;;
16389          *)
16390            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16391            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16392            ;;
16393        esac
16394       fi
16395       ;;
16396
16397     os2*)
16398       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16399       hardcode_minus_L_GCJ=yes
16400       allow_undefined_flag_GCJ=unsupported
16401       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'
16402       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16403       ;;
16404
16405     osf3*)
16406       if test "$GCC" = yes; then
16407         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16408         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'
16409       else
16410         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16411         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'
16412       fi
16413       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16414       hardcode_libdir_separator_GCJ=:
16415       ;;
16416
16417     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16418       if test "$GCC" = yes; then
16419         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16420         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'
16421         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16422       else
16423         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16424         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'
16425         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~
16426         $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'
16427
16428         # Both c and cxx compiler support -rpath directly
16429         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16430       fi
16431       hardcode_libdir_separator_GCJ=:
16432       ;;
16433
16434     sco3.2v5*)
16435       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16436       hardcode_shlibpath_var_GCJ=no
16437       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16438       runpath_var=LD_RUN_PATH
16439       hardcode_runpath_var=yes
16440       ;;
16441
16442     solaris*)
16443       no_undefined_flag_GCJ=' -z text'
16444       if test "$GCC" = yes; then
16445         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16446         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16447           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16448       else
16449         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16450         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16451         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16452       fi
16453       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16454       hardcode_shlibpath_var_GCJ=no
16455       case $host_os in
16456       solaris2.[0-5] | solaris2.[0-5].*) ;;
16457       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16458         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16459       esac
16460       link_all_deplibs_GCJ=yes
16461       ;;
16462
16463     sunos4*)
16464       if test "x$host_vendor" = xsequent; then
16465         # Use $CC to link under sequent, because it throws in some extra .o
16466         # files that make .init and .fini sections work.
16467         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16468       else
16469         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16470       fi
16471       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16472       hardcode_direct_GCJ=yes
16473       hardcode_minus_L_GCJ=yes
16474       hardcode_shlibpath_var_GCJ=no
16475       ;;
16476
16477     sysv4)
16478       case $host_vendor in
16479         sni)
16480           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16481           hardcode_direct_GCJ=yes # is this really true???
16482         ;;
16483         siemens)
16484           ## LD is ld it makes a PLAMLIB
16485           ## CC just makes a GrossModule.
16486           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16487           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16488           hardcode_direct_GCJ=no
16489         ;;
16490         motorola)
16491           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16492           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16493         ;;
16494       esac
16495       runpath_var='LD_RUN_PATH'
16496       hardcode_shlibpath_var_GCJ=no
16497       ;;
16498
16499     sysv4.3*)
16500       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16501       hardcode_shlibpath_var_GCJ=no
16502       export_dynamic_flag_spec_GCJ='-Bexport'
16503       ;;
16504
16505     sysv4*MP*)
16506       if test -d /usr/nec; then
16507         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16508         hardcode_shlibpath_var_GCJ=no
16509         runpath_var=LD_RUN_PATH
16510         hardcode_runpath_var=yes
16511         ld_shlibs_GCJ=yes
16512       fi
16513       ;;
16514
16515     sysv4.2uw2*)
16516       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16517       hardcode_direct_GCJ=yes
16518       hardcode_minus_L_GCJ=no
16519       hardcode_shlibpath_var_GCJ=no
16520       hardcode_runpath_var=yes
16521       runpath_var=LD_RUN_PATH
16522       ;;
16523
16524    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16525       no_undefined_flag_GCJ='${wl}-z ${wl}text'
16526       if test "$GCC" = yes; then
16527         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16528       else
16529         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16530       fi
16531       runpath_var='LD_RUN_PATH'
16532       hardcode_shlibpath_var_GCJ=no
16533       ;;
16534
16535     sysv5*)
16536       no_undefined_flag_GCJ=' -z text'
16537       # $CC -shared without GNU ld will not create a library from C++
16538       # object files and a static libstdc++, better avoid it by now
16539       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16540       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16541                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16542       hardcode_libdir_flag_spec_GCJ=
16543       hardcode_shlibpath_var_GCJ=no
16544       runpath_var='LD_RUN_PATH'
16545       ;;
16546
16547     uts4*)
16548       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16549       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16550       hardcode_shlibpath_var_GCJ=no
16551       ;;
16552
16553     *)
16554       ld_shlibs_GCJ=no
16555       ;;
16556     esac
16557   fi
16558
16559 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16560 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
16561 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16562
16563 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16564 if test "$GCC" = yes; then
16565   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16566 fi
16567
16568 #
16569 # Do we need to explicitly link libc?
16570 #
16571 case "x$archive_cmds_need_lc_GCJ" in
16572 x|xyes)
16573   # Assume -lc should be added
16574   archive_cmds_need_lc_GCJ=yes
16575
16576   if test "$enable_shared" = yes && test "$GCC" = yes; then
16577     case $archive_cmds_GCJ in
16578     *'~'*)
16579       # FIXME: we may have to deal with multi-command sequences.
16580       ;;
16581     '$CC '*)
16582       # Test whether the compiler implicitly links with -lc since on some
16583       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16584       # to ld, don't add -lc before -lgcc.
16585       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16586 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16587       $rm conftest*
16588       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16589
16590       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16591   (eval $ac_compile) 2>&5
16592   ac_status=$?
16593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16594   (exit $ac_status); } 2>conftest.err; then
16595         soname=conftest
16596         lib=conftest
16597         libobjs=conftest.$ac_objext
16598         deplibs=
16599         wl=$lt_prog_compiler_wl_GCJ
16600         compiler_flags=-v
16601         linker_flags=-v
16602         verstring=
16603         output_objdir=.
16604         libname=conftest
16605         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16606         allow_undefined_flag_GCJ=
16607         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16608   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16609   ac_status=$?
16610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16611   (exit $ac_status); }
16612         then
16613           archive_cmds_need_lc_GCJ=no
16614         else
16615           archive_cmds_need_lc_GCJ=yes
16616         fi
16617         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16618       else
16619         cat conftest.err 1>&5
16620       fi
16621       $rm conftest*
16622       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16623 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
16624       ;;
16625     esac
16626   fi
16627   ;;
16628 esac
16629
16630 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16631 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16632 library_names_spec=
16633 libname_spec='lib$name'
16634 soname_spec=
16635 shrext=".so"
16636 postinstall_cmds=
16637 postuninstall_cmds=
16638 finish_cmds=
16639 finish_eval=
16640 shlibpath_var=
16641 shlibpath_overrides_runpath=unknown
16642 version_type=none
16643 dynamic_linker="$host_os ld.so"
16644 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16645 if test "$GCC" = yes; then
16646   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16647   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16648     # if the path contains ";" then we assume it to be the separator
16649     # otherwise default to the standard path separator (i.e. ":") - it is
16650     # assumed that no part of a normal pathname contains ";" but that should
16651     # okay in the real world where ";" in dirpaths is itself problematic.
16652     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16653   else
16654     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16655   fi
16656 else
16657   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16658 fi
16659 need_lib_prefix=unknown
16660 hardcode_into_libs=no
16661
16662 # when you set need_version to no, make sure it does not cause -set_version
16663 # flags to be left without arguments
16664 need_version=unknown
16665
16666 case $host_os in
16667 aix3*)
16668   version_type=linux
16669   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16670   shlibpath_var=LIBPATH
16671
16672   # AIX 3 has no versioning support, so we append a major version to the name.
16673   soname_spec='${libname}${release}${shared_ext}$major'
16674   ;;
16675
16676 aix4* | aix5*)
16677   version_type=linux
16678   need_lib_prefix=no
16679   need_version=no
16680   hardcode_into_libs=yes
16681   if test "$host_cpu" = ia64; then
16682     # AIX 5 supports IA64
16683     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16684     shlibpath_var=LD_LIBRARY_PATH
16685   else
16686     # With GCC up to 2.95.x, collect2 would create an import file
16687     # for dependence libraries.  The import file would start with
16688     # the line `#! .'.  This would cause the generated library to
16689     # depend on `.', always an invalid library.  This was fixed in
16690     # development snapshots of GCC prior to 3.0.
16691     case $host_os in
16692       aix4 | aix4.[01] | aix4.[01].*)
16693       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16694            echo ' yes '
16695            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16696         :
16697       else
16698         can_build_shared=no
16699       fi
16700       ;;
16701     esac
16702     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16703     # soname into executable. Probably we can add versioning support to
16704     # collect2, so additional links can be useful in future.
16705     if test "$aix_use_runtimelinking" = yes; then
16706       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16707       # instead of lib<name>.a to let people know that these are not
16708       # typical AIX shared libraries.
16709       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16710     else
16711       # We preserve .a as extension for shared libraries through AIX4.2
16712       # and later when we are not doing run time linking.
16713       library_names_spec='${libname}${release}.a $libname.a'
16714       soname_spec='${libname}${release}${shared_ext}$major'
16715     fi
16716     shlibpath_var=LIBPATH
16717   fi
16718   ;;
16719
16720 amigaos*)
16721   library_names_spec='$libname.ixlibrary $libname.a'
16722   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16723   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'
16724   ;;
16725
16726 beos*)
16727   library_names_spec='${libname}${shared_ext}'
16728   dynamic_linker="$host_os ld.so"
16729   shlibpath_var=LIBRARY_PATH
16730   ;;
16731
16732 bsdi4*)
16733   version_type=linux
16734   need_version=no
16735   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16736   soname_spec='${libname}${release}${shared_ext}$major'
16737   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16738   shlibpath_var=LD_LIBRARY_PATH
16739   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16740   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16741   # the default ld.so.conf also contains /usr/contrib/lib and
16742   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16743   # libtool to hard-code these into programs
16744   ;;
16745
16746 cygwin* | mingw* | pw32*)
16747   version_type=windows
16748   shrext=".dll"
16749   need_version=no
16750   need_lib_prefix=no
16751
16752   case $GCC,$host_os in
16753   yes,cygwin* | yes,mingw* | yes,pw32*)
16754     library_names_spec='$libname.dll.a'
16755     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16756     postinstall_cmds='base_file=`basename \${file}`~
16757       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16758       dldir=$destdir/`dirname \$dlpath`~
16759       test -d \$dldir || mkdir -p \$dldir~
16760       $install_prog $dir/$dlname \$dldir/$dlname'
16761     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16762       dlpath=$dir/\$dldll~
16763        $rm \$dlpath'
16764     shlibpath_overrides_runpath=yes
16765
16766     case $host_os in
16767     cygwin*)
16768       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16769       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16770       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16771       ;;
16772     mingw*)
16773       # MinGW DLLs use traditional 'lib' prefix
16774       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16775       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16776       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16777         # It is most probably a Windows format PATH printed by
16778         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16779         # path with ; separators, and with drive letters. We can handle the
16780         # drive letters (cygwin fileutils understands them), so leave them,
16781         # especially as we might pass files found there to a mingw objdump,
16782         # which wouldn't understand a cygwinified path. Ahh.
16783         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16784       else
16785         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16786       fi
16787       ;;
16788     pw32*)
16789       # pw32 DLLs use 'pw' prefix rather than 'lib'
16790       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16791       ;;
16792     esac
16793     ;;
16794
16795   *)
16796     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16797     ;;
16798   esac
16799   dynamic_linker='Win32 ld.exe'
16800   # FIXME: first we should search . and the directory the executable is in
16801   shlibpath_var=PATH
16802   ;;
16803
16804 darwin* | rhapsody*)
16805   dynamic_linker="$host_os dyld"
16806   version_type=darwin
16807   need_lib_prefix=no
16808   need_version=no
16809   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16810   soname_spec='${libname}${release}${major}$shared_ext'
16811   shlibpath_overrides_runpath=yes
16812   shlibpath_var=DYLD_LIBRARY_PATH
16813   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16814   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16815   if test "$GCC" = yes; then
16816     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"`
16817   else
16818     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16819   fi
16820   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16821   ;;
16822
16823 dgux*)
16824   version_type=linux
16825   need_lib_prefix=no
16826   need_version=no
16827   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16828   soname_spec='${libname}${release}${shared_ext}$major'
16829   shlibpath_var=LD_LIBRARY_PATH
16830   ;;
16831
16832 freebsd1*)
16833   dynamic_linker=no
16834   ;;
16835
16836 kfreebsd*-gnu)
16837   version_type=linux
16838   need_lib_prefix=no
16839   need_version=no
16840   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16841   soname_spec='${libname}${release}${shared_ext}$major'
16842   shlibpath_var=LD_LIBRARY_PATH
16843   shlibpath_overrides_runpath=no
16844   hardcode_into_libs=yes
16845   dynamic_linker='GNU ld.so'
16846   ;;
16847
16848 freebsd*)
16849   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16850   version_type=freebsd-$objformat
16851   case $version_type in
16852     freebsd-elf*)
16853       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16854       need_version=no
16855       need_lib_prefix=no
16856       ;;
16857     freebsd-*)
16858       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16859       need_version=yes
16860       ;;
16861   esac
16862   shlibpath_var=LD_LIBRARY_PATH
16863   case $host_os in
16864   freebsd2*)
16865     shlibpath_overrides_runpath=yes
16866     ;;
16867   freebsd3.01* | freebsdelf3.01*)
16868     shlibpath_overrides_runpath=yes
16869     hardcode_into_libs=yes
16870     ;;
16871   *) # from 3.2 on
16872     shlibpath_overrides_runpath=no
16873     hardcode_into_libs=yes
16874     ;;
16875   esac
16876   ;;
16877
16878 gnu*)
16879   version_type=linux
16880   need_lib_prefix=no
16881   need_version=no
16882   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16883   soname_spec='${libname}${release}${shared_ext}$major'
16884   shlibpath_var=LD_LIBRARY_PATH
16885   hardcode_into_libs=yes
16886   ;;
16887
16888 hpux9* | hpux10* | hpux11*)
16889   # Give a soname corresponding to the major version so that dld.sl refuses to
16890   # link against other versions.
16891   version_type=sunos
16892   need_lib_prefix=no
16893   need_version=no
16894   case "$host_cpu" in
16895   ia64*)
16896     shrext='.so'
16897     hardcode_into_libs=yes
16898     dynamic_linker="$host_os dld.so"
16899     shlibpath_var=LD_LIBRARY_PATH
16900     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16901     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16902     soname_spec='${libname}${release}${shared_ext}$major'
16903     if test "X$HPUX_IA64_MODE" = X32; then
16904       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16905     else
16906       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16907     fi
16908     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16909     ;;
16910    hppa*64*)
16911      shrext='.sl'
16912      hardcode_into_libs=yes
16913      dynamic_linker="$host_os dld.sl"
16914      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16915      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16916      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16917      soname_spec='${libname}${release}${shared_ext}$major'
16918      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16919      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16920      ;;
16921    *)
16922     shrext='.sl'
16923     dynamic_linker="$host_os dld.sl"
16924     shlibpath_var=SHLIB_PATH
16925     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16926     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16927     soname_spec='${libname}${release}${shared_ext}$major'
16928     ;;
16929   esac
16930   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16931   postinstall_cmds='chmod 555 $lib'
16932   ;;
16933
16934 irix5* | irix6* | nonstopux*)
16935   case $host_os in
16936     nonstopux*) version_type=nonstopux ;;
16937     *)
16938         if test "$lt_cv_prog_gnu_ld" = yes; then
16939                 version_type=linux
16940         else
16941                 version_type=irix
16942         fi ;;
16943   esac
16944   need_lib_prefix=no
16945   need_version=no
16946   soname_spec='${libname}${release}${shared_ext}$major'
16947   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16948   case $host_os in
16949   irix5* | nonstopux*)
16950     libsuff= shlibsuff=
16951     ;;
16952   *)
16953     case $LD in # libtool.m4 will add one of these switches to LD
16954     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16955       libsuff= shlibsuff= libmagic=32-bit;;
16956     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16957       libsuff=32 shlibsuff=N32 libmagic=N32;;
16958     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16959       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16960     *) libsuff= shlibsuff= libmagic=never-match;;
16961     esac
16962     ;;
16963   esac
16964   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16965   shlibpath_overrides_runpath=no
16966   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16967   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16968   hardcode_into_libs=yes
16969   ;;
16970
16971 # No shared lib support for Linux oldld, aout, or coff.
16972 linux*oldld* | linux*aout* | linux*coff*)
16973   dynamic_linker=no
16974   ;;
16975
16976 # This must be Linux ELF.
16977 linux*)
16978   version_type=linux
16979   need_lib_prefix=no
16980   need_version=no
16981   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16982   soname_spec='${libname}${release}${shared_ext}$major'
16983   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16984   shlibpath_var=LD_LIBRARY_PATH
16985   shlibpath_overrides_runpath=no
16986   # This implies no fast_install, which is unacceptable.
16987   # Some rework will be needed to allow for fast_install
16988   # before this can be enabled.
16989   hardcode_into_libs=yes
16990
16991   # We used to test for /lib/ld.so.1 and disable shared libraries on
16992   # powerpc, because MkLinux only supported shared libraries with the
16993   # GNU dynamic linker.  Since this was broken with cross compilers,
16994   # most powerpc-linux boxes support dynamic linking these days and
16995   # people can always --disable-shared, the test was removed, and we
16996   # assume the GNU/Linux dynamic linker is in use.
16997   dynamic_linker='GNU/Linux ld.so'
16998   ;;
16999
17000 netbsd*)
17001   version_type=sunos
17002   need_lib_prefix=no
17003   need_version=no
17004   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17005     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17006     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17007     dynamic_linker='NetBSD (a.out) ld.so'
17008   else
17009     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
17010     soname_spec='${libname}${release}${shared_ext}$major'
17011     dynamic_linker='NetBSD ld.elf_so'
17012   fi
17013   shlibpath_var=LD_LIBRARY_PATH
17014   shlibpath_overrides_runpath=yes
17015   hardcode_into_libs=yes
17016   ;;
17017
17018 newsos6)
17019   version_type=linux
17020   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17021   shlibpath_var=LD_LIBRARY_PATH
17022   shlibpath_overrides_runpath=yes
17023   ;;
17024
17025 nto-qnx*)
17026   version_type=linux
17027   need_lib_prefix=no
17028   need_version=no
17029   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17030   soname_spec='${libname}${release}${shared_ext}$major'
17031   shlibpath_var=LD_LIBRARY_PATH
17032   shlibpath_overrides_runpath=yes
17033   ;;
17034
17035 openbsd*)
17036   version_type=sunos
17037   need_lib_prefix=no
17038   need_version=no
17039   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17040   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17041   shlibpath_var=LD_LIBRARY_PATH
17042   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17043     case $host_os in
17044       openbsd2.[89] | openbsd2.[89].*)
17045         shlibpath_overrides_runpath=no
17046         ;;
17047       *)
17048         shlibpath_overrides_runpath=yes
17049         ;;
17050       esac
17051   else
17052     shlibpath_overrides_runpath=yes
17053   fi
17054   ;;
17055
17056 os2*)
17057   libname_spec='$name'
17058   shrext=".dll"
17059   need_lib_prefix=no
17060   library_names_spec='$libname${shared_ext} $libname.a'
17061   dynamic_linker='OS/2 ld.exe'
17062   shlibpath_var=LIBPATH
17063   ;;
17064
17065 osf3* | osf4* | osf5*)
17066   version_type=osf
17067   need_lib_prefix=no
17068   need_version=no
17069   soname_spec='${libname}${release}${shared_ext}$major'
17070   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17071   shlibpath_var=LD_LIBRARY_PATH
17072   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17073   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17074   ;;
17075
17076 sco3.2v5*)
17077   version_type=osf
17078   soname_spec='${libname}${release}${shared_ext}$major'
17079   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17080   shlibpath_var=LD_LIBRARY_PATH
17081   ;;
17082
17083 solaris*)
17084   version_type=linux
17085   need_lib_prefix=no
17086   need_version=no
17087   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17088   soname_spec='${libname}${release}${shared_ext}$major'
17089   shlibpath_var=LD_LIBRARY_PATH
17090   shlibpath_overrides_runpath=yes
17091   hardcode_into_libs=yes
17092   # ldd complains unless libraries are executable
17093   postinstall_cmds='chmod +x $lib'
17094   ;;
17095
17096 sunos4*)
17097   version_type=sunos
17098   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17099   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17100   shlibpath_var=LD_LIBRARY_PATH
17101   shlibpath_overrides_runpath=yes
17102   if test "$with_gnu_ld" = yes; then
17103     need_lib_prefix=no
17104   fi
17105   need_version=yes
17106   ;;
17107
17108 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17109   version_type=linux
17110   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17111   soname_spec='${libname}${release}${shared_ext}$major'
17112   shlibpath_var=LD_LIBRARY_PATH
17113   case $host_vendor in
17114     sni)
17115       shlibpath_overrides_runpath=no
17116       need_lib_prefix=no
17117       export_dynamic_flag_spec='${wl}-Blargedynsym'
17118       runpath_var=LD_RUN_PATH
17119       ;;
17120     siemens)
17121       need_lib_prefix=no
17122       ;;
17123     motorola)
17124       need_lib_prefix=no
17125       need_version=no
17126       shlibpath_overrides_runpath=no
17127       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17128       ;;
17129   esac
17130   ;;
17131
17132 sysv4*MP*)
17133   if test -d /usr/nec ;then
17134     version_type=linux
17135     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17136     soname_spec='$libname${shared_ext}.$major'
17137     shlibpath_var=LD_LIBRARY_PATH
17138   fi
17139   ;;
17140
17141 uts4*)
17142   version_type=linux
17143   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17144   soname_spec='${libname}${release}${shared_ext}$major'
17145   shlibpath_var=LD_LIBRARY_PATH
17146   ;;
17147
17148 *)
17149   dynamic_linker=no
17150   ;;
17151 esac
17152 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17153 echo "${ECHO_T}$dynamic_linker" >&6; }
17154 test "$dynamic_linker" = no && can_build_shared=no
17155
17156 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17157 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17158 hardcode_action_GCJ=
17159 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17160    test -n "$runpath_var GCJ" || \
17161    test "X$hardcode_automatic_GCJ"="Xyes" ; then
17162
17163   # We can hardcode non-existant directories.
17164   if test "$hardcode_direct_GCJ" != no &&
17165      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17166      # have to relink, otherwise we might link with an installed library
17167      # when we should be linking with a yet-to-be-installed one
17168      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17169      test "$hardcode_minus_L_GCJ" != no; then
17170     # Linking always hardcodes the temporary library directory.
17171     hardcode_action_GCJ=relink
17172   else
17173     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17174     hardcode_action_GCJ=immediate
17175   fi
17176 else
17177   # We cannot hardcode anything, or else we can only hardcode existing
17178   # directories.
17179   hardcode_action_GCJ=unsupported
17180 fi
17181 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17182 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
17183
17184 if test "$hardcode_action_GCJ" = relink; then
17185   # Fast installation is not supported
17186   enable_fast_install=no
17187 elif test "$shlibpath_overrides_runpath" = yes ||
17188      test "$enable_shared" = no; then
17189   # Fast installation is not necessary
17190   enable_fast_install=needless
17191 fi
17192
17193 striplib=
17194 old_striplib=
17195 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17196 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
17197 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17198   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17199   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17200   { echo "$as_me:$LINENO: result: yes" >&5
17201 echo "${ECHO_T}yes" >&6; }
17202 else
17203 # FIXME - insert some real tests, host_os isn't really good enough
17204   case $host_os in
17205    darwin*)
17206        if test -n "$STRIP" ; then
17207          striplib="$STRIP -x"
17208          { echo "$as_me:$LINENO: result: yes" >&5
17209 echo "${ECHO_T}yes" >&6; }
17210        else
17211   { echo "$as_me:$LINENO: result: no" >&5
17212 echo "${ECHO_T}no" >&6; }
17213 fi
17214        ;;
17215    *)
17216   { echo "$as_me:$LINENO: result: no" >&5
17217 echo "${ECHO_T}no" >&6; }
17218     ;;
17219   esac
17220 fi
17221
17222 if test "x$enable_dlopen" != xyes; then
17223   enable_dlopen=unknown
17224   enable_dlopen_self=unknown
17225   enable_dlopen_self_static=unknown
17226 else
17227   lt_cv_dlopen=no
17228   lt_cv_dlopen_libs=
17229
17230   case $host_os in
17231   beos*)
17232     lt_cv_dlopen="load_add_on"
17233     lt_cv_dlopen_libs=
17234     lt_cv_dlopen_self=yes
17235     ;;
17236
17237   mingw* | pw32*)
17238     lt_cv_dlopen="LoadLibrary"
17239     lt_cv_dlopen_libs=
17240    ;;
17241
17242   cygwin*)
17243     lt_cv_dlopen="dlopen"
17244     lt_cv_dlopen_libs=
17245    ;;
17246
17247   darwin*)
17248   # if libdl is installed we need to link against it
17249     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17250 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17251 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17252   echo $ECHO_N "(cached) $ECHO_C" >&6
17253 else
17254   ac_check_lib_save_LIBS=$LIBS
17255 LIBS="-ldl  $LIBS"
17256 cat >conftest.$ac_ext <<_ACEOF
17257 /* confdefs.h.  */
17258 _ACEOF
17259 cat confdefs.h >>conftest.$ac_ext
17260 cat >>conftest.$ac_ext <<_ACEOF
17261 /* end confdefs.h.  */
17262
17263 /* Override any GCC internal prototype to avoid an error.
17264    Use char because int might match the return type of a GCC
17265    builtin and then its argument prototype would still apply.  */
17266 #ifdef __cplusplus
17267 extern "C"
17268 #endif
17269 char dlopen ();
17270 int
17271 main ()
17272 {
17273 return dlopen ();
17274   ;
17275   return 0;
17276 }
17277 _ACEOF
17278 rm -f conftest.$ac_objext conftest$ac_exeext
17279 if { (ac_try="$ac_link"
17280 case "(($ac_try" in
17281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17282   *) ac_try_echo=$ac_try;;
17283 esac
17284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17285   (eval "$ac_link") 2>conftest.er1
17286   ac_status=$?
17287   grep -v '^ *+' conftest.er1 >conftest.err
17288   rm -f conftest.er1
17289   cat conftest.err >&5
17290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17291   (exit $ac_status); } && {
17292          test -z "$ac_c_werror_flag" ||
17293          test ! -s conftest.err
17294        } && test -s conftest$ac_exeext &&
17295        $as_test_x conftest$ac_exeext; then
17296   ac_cv_lib_dl_dlopen=yes
17297 else
17298   echo "$as_me: failed program was:" >&5
17299 sed 's/^/| /' conftest.$ac_ext >&5
17300
17301         ac_cv_lib_dl_dlopen=no
17302 fi
17303
17304 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17305       conftest$ac_exeext conftest.$ac_ext
17306 LIBS=$ac_check_lib_save_LIBS
17307 fi
17308 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17309 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17310 if test $ac_cv_lib_dl_dlopen = yes; then
17311   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17312 else
17313
17314     lt_cv_dlopen="dyld"
17315     lt_cv_dlopen_libs=
17316     lt_cv_dlopen_self=yes
17317
17318 fi
17319
17320    ;;
17321
17322   *)
17323     { echo "$as_me:$LINENO: checking for shl_load" >&5
17324 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
17325 if test "${ac_cv_func_shl_load+set}" = set; then
17326   echo $ECHO_N "(cached) $ECHO_C" >&6
17327 else
17328   cat >conftest.$ac_ext <<_ACEOF
17329 /* confdefs.h.  */
17330 _ACEOF
17331 cat confdefs.h >>conftest.$ac_ext
17332 cat >>conftest.$ac_ext <<_ACEOF
17333 /* end confdefs.h.  */
17334 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17335    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17336 #define shl_load innocuous_shl_load
17337
17338 /* System header to define __stub macros and hopefully few prototypes,
17339     which can conflict with char shl_load (); below.
17340     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17341     <limits.h> exists even on freestanding compilers.  */
17342
17343 #ifdef __STDC__
17344 # include <limits.h>
17345 #else
17346 # include <assert.h>
17347 #endif
17348
17349 #undef shl_load
17350
17351 /* Override any GCC internal prototype to avoid an error.
17352    Use char because int might match the return type of a GCC
17353    builtin and then its argument prototype would still apply.  */
17354 #ifdef __cplusplus
17355 extern "C"
17356 #endif
17357 char shl_load ();
17358 /* The GNU C library defines this for functions which it implements
17359     to always fail with ENOSYS.  Some functions are actually named
17360     something starting with __ and the normal name is an alias.  */
17361 #if defined __stub_shl_load || defined __stub___shl_load
17362 choke me
17363 #endif
17364
17365 int
17366 main ()
17367 {
17368 return shl_load ();
17369   ;
17370   return 0;
17371 }
17372 _ACEOF
17373 rm -f conftest.$ac_objext conftest$ac_exeext
17374 if { (ac_try="$ac_link"
17375 case "(($ac_try" in
17376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17377   *) ac_try_echo=$ac_try;;
17378 esac
17379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17380   (eval "$ac_link") 2>conftest.er1
17381   ac_status=$?
17382   grep -v '^ *+' conftest.er1 >conftest.err
17383   rm -f conftest.er1
17384   cat conftest.err >&5
17385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17386   (exit $ac_status); } && {
17387          test -z "$ac_c_werror_flag" ||
17388          test ! -s conftest.err
17389        } && test -s conftest$ac_exeext &&
17390        $as_test_x conftest$ac_exeext; then
17391   ac_cv_func_shl_load=yes
17392 else
17393   echo "$as_me: failed program was:" >&5
17394 sed 's/^/| /' conftest.$ac_ext >&5
17395
17396         ac_cv_func_shl_load=no
17397 fi
17398
17399 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17400       conftest$ac_exeext conftest.$ac_ext
17401 fi
17402 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17403 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
17404 if test $ac_cv_func_shl_load = yes; then
17405   lt_cv_dlopen="shl_load"
17406 else
17407   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17408 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
17409 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17410   echo $ECHO_N "(cached) $ECHO_C" >&6
17411 else
17412   ac_check_lib_save_LIBS=$LIBS
17413 LIBS="-ldld  $LIBS"
17414 cat >conftest.$ac_ext <<_ACEOF
17415 /* confdefs.h.  */
17416 _ACEOF
17417 cat confdefs.h >>conftest.$ac_ext
17418 cat >>conftest.$ac_ext <<_ACEOF
17419 /* end confdefs.h.  */
17420
17421 /* Override any GCC internal prototype to avoid an error.
17422    Use char because int might match the return type of a GCC
17423    builtin and then its argument prototype would still apply.  */
17424 #ifdef __cplusplus
17425 extern "C"
17426 #endif
17427 char shl_load ();
17428 int
17429 main ()
17430 {
17431 return shl_load ();
17432   ;
17433   return 0;
17434 }
17435 _ACEOF
17436 rm -f conftest.$ac_objext conftest$ac_exeext
17437 if { (ac_try="$ac_link"
17438 case "(($ac_try" in
17439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17440   *) ac_try_echo=$ac_try;;
17441 esac
17442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17443   (eval "$ac_link") 2>conftest.er1
17444   ac_status=$?
17445   grep -v '^ *+' conftest.er1 >conftest.err
17446   rm -f conftest.er1
17447   cat conftest.err >&5
17448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17449   (exit $ac_status); } && {
17450          test -z "$ac_c_werror_flag" ||
17451          test ! -s conftest.err
17452        } && test -s conftest$ac_exeext &&
17453        $as_test_x conftest$ac_exeext; then
17454   ac_cv_lib_dld_shl_load=yes
17455 else
17456   echo "$as_me: failed program was:" >&5
17457 sed 's/^/| /' conftest.$ac_ext >&5
17458
17459         ac_cv_lib_dld_shl_load=no
17460 fi
17461
17462 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17463       conftest$ac_exeext conftest.$ac_ext
17464 LIBS=$ac_check_lib_save_LIBS
17465 fi
17466 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17467 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
17468 if test $ac_cv_lib_dld_shl_load = yes; then
17469   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17470 else
17471   { echo "$as_me:$LINENO: checking for dlopen" >&5
17472 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
17473 if test "${ac_cv_func_dlopen+set}" = set; then
17474   echo $ECHO_N "(cached) $ECHO_C" >&6
17475 else
17476   cat >conftest.$ac_ext <<_ACEOF
17477 /* confdefs.h.  */
17478 _ACEOF
17479 cat confdefs.h >>conftest.$ac_ext
17480 cat >>conftest.$ac_ext <<_ACEOF
17481 /* end confdefs.h.  */
17482 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17483    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17484 #define dlopen innocuous_dlopen
17485
17486 /* System header to define __stub macros and hopefully few prototypes,
17487     which can conflict with char dlopen (); below.
17488     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17489     <limits.h> exists even on freestanding compilers.  */
17490
17491 #ifdef __STDC__
17492 # include <limits.h>
17493 #else
17494 # include <assert.h>
17495 #endif
17496
17497 #undef dlopen
17498
17499 /* Override any GCC internal prototype to avoid an error.
17500    Use char because int might match the return type of a GCC
17501    builtin and then its argument prototype would still apply.  */
17502 #ifdef __cplusplus
17503 extern "C"
17504 #endif
17505 char dlopen ();
17506 /* The GNU C library defines this for functions which it implements
17507     to always fail with ENOSYS.  Some functions are actually named
17508     something starting with __ and the normal name is an alias.  */
17509 #if defined __stub_dlopen || defined __stub___dlopen
17510 choke me
17511 #endif
17512
17513 int
17514 main ()
17515 {
17516 return dlopen ();
17517   ;
17518   return 0;
17519 }
17520 _ACEOF
17521 rm -f conftest.$ac_objext conftest$ac_exeext
17522 if { (ac_try="$ac_link"
17523 case "(($ac_try" in
17524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17525   *) ac_try_echo=$ac_try;;
17526 esac
17527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17528   (eval "$ac_link") 2>conftest.er1
17529   ac_status=$?
17530   grep -v '^ *+' conftest.er1 >conftest.err
17531   rm -f conftest.er1
17532   cat conftest.err >&5
17533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17534   (exit $ac_status); } && {
17535          test -z "$ac_c_werror_flag" ||
17536          test ! -s conftest.err
17537        } && test -s conftest$ac_exeext &&
17538        $as_test_x conftest$ac_exeext; then
17539   ac_cv_func_dlopen=yes
17540 else
17541   echo "$as_me: failed program was:" >&5
17542 sed 's/^/| /' conftest.$ac_ext >&5
17543
17544         ac_cv_func_dlopen=no
17545 fi
17546
17547 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17548       conftest$ac_exeext conftest.$ac_ext
17549 fi
17550 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17551 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
17552 if test $ac_cv_func_dlopen = yes; then
17553   lt_cv_dlopen="dlopen"
17554 else
17555   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17556 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17557 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17558   echo $ECHO_N "(cached) $ECHO_C" >&6
17559 else
17560   ac_check_lib_save_LIBS=$LIBS
17561 LIBS="-ldl  $LIBS"
17562 cat >conftest.$ac_ext <<_ACEOF
17563 /* confdefs.h.  */
17564 _ACEOF
17565 cat confdefs.h >>conftest.$ac_ext
17566 cat >>conftest.$ac_ext <<_ACEOF
17567 /* end confdefs.h.  */
17568
17569 /* Override any GCC internal prototype to avoid an error.
17570    Use char because int might match the return type of a GCC
17571    builtin and then its argument prototype would still apply.  */
17572 #ifdef __cplusplus
17573 extern "C"
17574 #endif
17575 char dlopen ();
17576 int
17577 main ()
17578 {
17579 return dlopen ();
17580   ;
17581   return 0;
17582 }
17583 _ACEOF
17584 rm -f conftest.$ac_objext conftest$ac_exeext
17585 if { (ac_try="$ac_link"
17586 case "(($ac_try" in
17587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17588   *) ac_try_echo=$ac_try;;
17589 esac
17590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17591   (eval "$ac_link") 2>conftest.er1
17592   ac_status=$?
17593   grep -v '^ *+' conftest.er1 >conftest.err
17594   rm -f conftest.er1
17595   cat conftest.err >&5
17596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17597   (exit $ac_status); } && {
17598          test -z "$ac_c_werror_flag" ||
17599          test ! -s conftest.err
17600        } && test -s conftest$ac_exeext &&
17601        $as_test_x conftest$ac_exeext; then
17602   ac_cv_lib_dl_dlopen=yes
17603 else
17604   echo "$as_me: failed program was:" >&5
17605 sed 's/^/| /' conftest.$ac_ext >&5
17606
17607         ac_cv_lib_dl_dlopen=no
17608 fi
17609
17610 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17611       conftest$ac_exeext conftest.$ac_ext
17612 LIBS=$ac_check_lib_save_LIBS
17613 fi
17614 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17615 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17616 if test $ac_cv_lib_dl_dlopen = yes; then
17617   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17618 else
17619   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17620 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17621 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17622   echo $ECHO_N "(cached) $ECHO_C" >&6
17623 else
17624   ac_check_lib_save_LIBS=$LIBS
17625 LIBS="-lsvld  $LIBS"
17626 cat >conftest.$ac_ext <<_ACEOF
17627 /* confdefs.h.  */
17628 _ACEOF
17629 cat confdefs.h >>conftest.$ac_ext
17630 cat >>conftest.$ac_ext <<_ACEOF
17631 /* end confdefs.h.  */
17632
17633 /* Override any GCC internal prototype to avoid an error.
17634    Use char because int might match the return type of a GCC
17635    builtin and then its argument prototype would still apply.  */
17636 #ifdef __cplusplus
17637 extern "C"
17638 #endif
17639 char dlopen ();
17640 int
17641 main ()
17642 {
17643 return dlopen ();
17644   ;
17645   return 0;
17646 }
17647 _ACEOF
17648 rm -f conftest.$ac_objext conftest$ac_exeext
17649 if { (ac_try="$ac_link"
17650 case "(($ac_try" in
17651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17652   *) ac_try_echo=$ac_try;;
17653 esac
17654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17655   (eval "$ac_link") 2>conftest.er1
17656   ac_status=$?
17657   grep -v '^ *+' conftest.er1 >conftest.err
17658   rm -f conftest.er1
17659   cat conftest.err >&5
17660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17661   (exit $ac_status); } && {
17662          test -z "$ac_c_werror_flag" ||
17663          test ! -s conftest.err
17664        } && test -s conftest$ac_exeext &&
17665        $as_test_x conftest$ac_exeext; then
17666   ac_cv_lib_svld_dlopen=yes
17667 else
17668   echo "$as_me: failed program was:" >&5
17669 sed 's/^/| /' conftest.$ac_ext >&5
17670
17671         ac_cv_lib_svld_dlopen=no
17672 fi
17673
17674 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17675       conftest$ac_exeext conftest.$ac_ext
17676 LIBS=$ac_check_lib_save_LIBS
17677 fi
17678 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17679 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17680 if test $ac_cv_lib_svld_dlopen = yes; then
17681   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17682 else
17683   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17684 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17685 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17686   echo $ECHO_N "(cached) $ECHO_C" >&6
17687 else
17688   ac_check_lib_save_LIBS=$LIBS
17689 LIBS="-ldld  $LIBS"
17690 cat >conftest.$ac_ext <<_ACEOF
17691 /* confdefs.h.  */
17692 _ACEOF
17693 cat confdefs.h >>conftest.$ac_ext
17694 cat >>conftest.$ac_ext <<_ACEOF
17695 /* end confdefs.h.  */
17696
17697 /* Override any GCC internal prototype to avoid an error.
17698    Use char because int might match the return type of a GCC
17699    builtin and then its argument prototype would still apply.  */
17700 #ifdef __cplusplus
17701 extern "C"
17702 #endif
17703 char dld_link ();
17704 int
17705 main ()
17706 {
17707 return dld_link ();
17708   ;
17709   return 0;
17710 }
17711 _ACEOF
17712 rm -f conftest.$ac_objext conftest$ac_exeext
17713 if { (ac_try="$ac_link"
17714 case "(($ac_try" in
17715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17716   *) ac_try_echo=$ac_try;;
17717 esac
17718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17719   (eval "$ac_link") 2>conftest.er1
17720   ac_status=$?
17721   grep -v '^ *+' conftest.er1 >conftest.err
17722   rm -f conftest.er1
17723   cat conftest.err >&5
17724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17725   (exit $ac_status); } && {
17726          test -z "$ac_c_werror_flag" ||
17727          test ! -s conftest.err
17728        } && test -s conftest$ac_exeext &&
17729        $as_test_x conftest$ac_exeext; then
17730   ac_cv_lib_dld_dld_link=yes
17731 else
17732   echo "$as_me: failed program was:" >&5
17733 sed 's/^/| /' conftest.$ac_ext >&5
17734
17735         ac_cv_lib_dld_dld_link=no
17736 fi
17737
17738 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17739       conftest$ac_exeext conftest.$ac_ext
17740 LIBS=$ac_check_lib_save_LIBS
17741 fi
17742 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17743 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17744 if test $ac_cv_lib_dld_dld_link = yes; then
17745   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17746 fi
17747
17748
17749 fi
17750
17751
17752 fi
17753
17754
17755 fi
17756
17757
17758 fi
17759
17760
17761 fi
17762
17763     ;;
17764   esac
17765
17766   if test "x$lt_cv_dlopen" != xno; then
17767     enable_dlopen=yes
17768   else
17769     enable_dlopen=no
17770   fi
17771
17772   case $lt_cv_dlopen in
17773   dlopen)
17774     save_CPPFLAGS="$CPPFLAGS"
17775     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17776
17777     save_LDFLAGS="$LDFLAGS"
17778     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17779
17780     save_LIBS="$LIBS"
17781     LIBS="$lt_cv_dlopen_libs $LIBS"
17782
17783     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17784 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17785 if test "${lt_cv_dlopen_self+set}" = set; then
17786   echo $ECHO_N "(cached) $ECHO_C" >&6
17787 else
17788           if test "$cross_compiling" = yes; then :
17789   lt_cv_dlopen_self=cross
17790 else
17791   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17792   lt_status=$lt_dlunknown
17793   cat > conftest.$ac_ext <<EOF
17794 #line 17794 "configure"
17795 #include "confdefs.h"
17796
17797 #if HAVE_DLFCN_H
17798 #include <dlfcn.h>
17799 #endif
17800
17801 #include <stdio.h>
17802
17803 #ifdef RTLD_GLOBAL
17804 #  define LT_DLGLOBAL           RTLD_GLOBAL
17805 #else
17806 #  ifdef DL_GLOBAL
17807 #    define LT_DLGLOBAL         DL_GLOBAL
17808 #  else
17809 #    define LT_DLGLOBAL         0
17810 #  endif
17811 #endif
17812
17813 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17814    find out it does not work in some platform. */
17815 #ifndef LT_DLLAZY_OR_NOW
17816 #  ifdef RTLD_LAZY
17817 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17818 #  else
17819 #    ifdef DL_LAZY
17820 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17821 #    else
17822 #      ifdef RTLD_NOW
17823 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17824 #      else
17825 #        ifdef DL_NOW
17826 #          define LT_DLLAZY_OR_NOW      DL_NOW
17827 #        else
17828 #          define LT_DLLAZY_OR_NOW      0
17829 #        endif
17830 #      endif
17831 #    endif
17832 #  endif
17833 #endif
17834
17835 #ifdef __cplusplus
17836 extern "C" void exit (int);
17837 #endif
17838
17839 void fnord() { int i=42;}
17840 int main ()
17841 {
17842   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17843   int status = $lt_dlunknown;
17844
17845   if (self)
17846     {
17847       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17848       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17849       /* dlclose (self); */
17850     }
17851
17852     exit (status);
17853 }
17854 EOF
17855   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17856   (eval $ac_link) 2>&5
17857   ac_status=$?
17858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17859   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17860     (./conftest; exit; ) 2>/dev/null
17861     lt_status=$?
17862     case x$lt_status in
17863       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17864       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17865       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17866     esac
17867   else :
17868     # compilation failed
17869     lt_cv_dlopen_self=no
17870   fi
17871 fi
17872 rm -fr conftest*
17873
17874
17875 fi
17876 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17877 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17878
17879     if test "x$lt_cv_dlopen_self" = xyes; then
17880       LDFLAGS="$LDFLAGS $link_static_flag"
17881       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17882 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17883 if test "${lt_cv_dlopen_self_static+set}" = set; then
17884   echo $ECHO_N "(cached) $ECHO_C" >&6
17885 else
17886           if test "$cross_compiling" = yes; then :
17887   lt_cv_dlopen_self_static=cross
17888 else
17889   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17890   lt_status=$lt_dlunknown
17891   cat > conftest.$ac_ext <<EOF
17892 #line 17892 "configure"
17893 #include "confdefs.h"
17894
17895 #if HAVE_DLFCN_H
17896 #include <dlfcn.h>
17897 #endif
17898
17899 #include <stdio.h>
17900
17901 #ifdef RTLD_GLOBAL
17902 #  define LT_DLGLOBAL           RTLD_GLOBAL
17903 #else
17904 #  ifdef DL_GLOBAL
17905 #    define LT_DLGLOBAL         DL_GLOBAL
17906 #  else
17907 #    define LT_DLGLOBAL         0
17908 #  endif
17909 #endif
17910
17911 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17912    find out it does not work in some platform. */
17913 #ifndef LT_DLLAZY_OR_NOW
17914 #  ifdef RTLD_LAZY
17915 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17916 #  else
17917 #    ifdef DL_LAZY
17918 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17919 #    else
17920 #      ifdef RTLD_NOW
17921 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17922 #      else
17923 #        ifdef DL_NOW
17924 #          define LT_DLLAZY_OR_NOW      DL_NOW
17925 #        else
17926 #          define LT_DLLAZY_OR_NOW      0
17927 #        endif
17928 #      endif
17929 #    endif
17930 #  endif
17931 #endif
17932
17933 #ifdef __cplusplus
17934 extern "C" void exit (int);
17935 #endif
17936
17937 void fnord() { int i=42;}
17938 int main ()
17939 {
17940   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17941   int status = $lt_dlunknown;
17942
17943   if (self)
17944     {
17945       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17946       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17947       /* dlclose (self); */
17948     }
17949
17950     exit (status);
17951 }
17952 EOF
17953   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17954   (eval $ac_link) 2>&5
17955   ac_status=$?
17956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17957   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17958     (./conftest; exit; ) 2>/dev/null
17959     lt_status=$?
17960     case x$lt_status in
17961       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17962       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17963       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17964     esac
17965   else :
17966     # compilation failed
17967     lt_cv_dlopen_self_static=no
17968   fi
17969 fi
17970 rm -fr conftest*
17971
17972
17973 fi
17974 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17975 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17976     fi
17977
17978     CPPFLAGS="$save_CPPFLAGS"
17979     LDFLAGS="$save_LDFLAGS"
17980     LIBS="$save_LIBS"
17981     ;;
17982   esac
17983
17984   case $lt_cv_dlopen_self in
17985   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17986   *) enable_dlopen_self=unknown ;;
17987   esac
17988
17989   case $lt_cv_dlopen_self_static in
17990   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17991   *) enable_dlopen_self_static=unknown ;;
17992   esac
17993 fi
17994
17995
17996 # The else clause should only fire when bootstrapping the
17997 # libtool distribution, otherwise you forgot to ship ltmain.sh
17998 # with your package, and you will get complaints that there are
17999 # no rules to generate ltmain.sh.
18000 if test -f "$ltmain"; then
18001   # See if we are running on zsh, and set the options which allow our commands through
18002   # without removal of \ escapes.
18003   if test -n "${ZSH_VERSION+set}" ; then
18004     setopt NO_GLOB_SUBST
18005   fi
18006   # Now quote all the things that may contain metacharacters while being
18007   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18008   # variables and quote the copies for generation of the libtool script.
18009   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18010     SED SHELL STRIP \
18011     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18012     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18013     deplibs_check_method reload_flag reload_cmds need_locks \
18014     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18015     lt_cv_sys_global_symbol_to_c_name_address \
18016     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18017     old_postinstall_cmds old_postuninstall_cmds \
18018     compiler_GCJ \
18019     CC_GCJ \
18020     LD_GCJ \
18021     lt_prog_compiler_wl_GCJ \
18022     lt_prog_compiler_pic_GCJ \
18023     lt_prog_compiler_static_GCJ \
18024     lt_prog_compiler_no_builtin_flag_GCJ \
18025     export_dynamic_flag_spec_GCJ \
18026     thread_safe_flag_spec_GCJ \
18027     whole_archive_flag_spec_GCJ \
18028     enable_shared_with_static_runtimes_GCJ \
18029     old_archive_cmds_GCJ \
18030     old_archive_from_new_cmds_GCJ \
18031     predep_objects_GCJ \
18032     postdep_objects_GCJ \
18033     predeps_GCJ \
18034     postdeps_GCJ \
18035     compiler_lib_search_path_GCJ \
18036     archive_cmds_GCJ \
18037     archive_expsym_cmds_GCJ \
18038     postinstall_cmds_GCJ \
18039     postuninstall_cmds_GCJ \
18040     old_archive_from_expsyms_cmds_GCJ \
18041     allow_undefined_flag_GCJ \
18042     no_undefined_flag_GCJ \
18043     export_symbols_cmds_GCJ \
18044     hardcode_libdir_flag_spec_GCJ \
18045     hardcode_libdir_flag_spec_ld_GCJ \
18046     hardcode_libdir_separator_GCJ \
18047     hardcode_automatic_GCJ \
18048     module_cmds_GCJ \
18049     module_expsym_cmds_GCJ \
18050     lt_cv_prog_compiler_c_o_GCJ \
18051     exclude_expsyms_GCJ \
18052     include_expsyms_GCJ; do
18053
18054     case $var in
18055     old_archive_cmds_GCJ | \
18056     old_archive_from_new_cmds_GCJ | \
18057     archive_cmds_GCJ | \
18058     archive_expsym_cmds_GCJ | \
18059     module_cmds_GCJ | \
18060     module_expsym_cmds_GCJ | \
18061     old_archive_from_expsyms_cmds_GCJ | \
18062     export_symbols_cmds_GCJ | \
18063     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18064     postinstall_cmds | postuninstall_cmds | \
18065     old_postinstall_cmds | old_postuninstall_cmds | \
18066     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18067       # Double-quote double-evaled strings.
18068       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18069       ;;
18070     *)
18071       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18072       ;;
18073     esac
18074   done
18075
18076   case $lt_echo in
18077   *'\$0 --fallback-echo"')
18078     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18079     ;;
18080   esac
18081
18082 cfgfile="$ofile"
18083
18084   cat <<__EOF__ >> "$cfgfile"
18085 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18086
18087 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18088
18089 # Shell to use when invoking shell scripts.
18090 SHELL=$lt_SHELL
18091
18092 # Whether or not to build shared libraries.
18093 build_libtool_libs=$enable_shared
18094
18095 # Whether or not to build static libraries.
18096 build_old_libs=$enable_static
18097
18098 # Whether or not to add -lc for building shared libraries.
18099 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18100
18101 # Whether or not to disallow shared libs when runtime libs are static
18102 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18103
18104 # Whether or not to optimize for fast installation.
18105 fast_install=$enable_fast_install
18106
18107 # The host system.
18108 host_alias=$host_alias
18109 host=$host
18110
18111 # An echo program that does not interpret backslashes.
18112 echo=$lt_echo
18113
18114 # The archiver.
18115 AR=$lt_AR
18116 AR_FLAGS=$lt_AR_FLAGS
18117
18118 # A C compiler.
18119 LTCC=$lt_LTCC
18120
18121 # A language-specific compiler.
18122 CC=$lt_compiler_GCJ
18123
18124 # Is the compiler the GNU C compiler?
18125 with_gcc=$GCC_GCJ
18126
18127 # An ERE matcher.
18128 EGREP=$lt_EGREP
18129
18130 # The linker used to build libraries.
18131 LD=$lt_LD_GCJ
18132
18133 # Whether we need hard or soft links.
18134 LN_S=$lt_LN_S
18135
18136 # A BSD-compatible nm program.
18137 NM=$lt_NM
18138
18139 # A symbol stripping program
18140 STRIP=$lt_STRIP
18141
18142 # Used to examine libraries when file_magic_cmd begins "file"
18143 MAGIC_CMD=$MAGIC_CMD
18144
18145 # Used on cygwin: DLL creation program.
18146 DLLTOOL="$DLLTOOL"
18147
18148 # Used on cygwin: object dumper.
18149 OBJDUMP="$OBJDUMP"
18150
18151 # Used on cygwin: assembler.
18152 AS="$AS"
18153
18154 # The name of the directory that contains temporary libtool files.
18155 objdir=$objdir
18156
18157 # How to create reloadable object files.
18158 reload_flag=$lt_reload_flag
18159 reload_cmds=$lt_reload_cmds
18160
18161 # How to pass a linker flag through the compiler.
18162 wl=$lt_lt_prog_compiler_wl_GCJ
18163
18164 # Object file suffix (normally "o").
18165 objext="$ac_objext"
18166
18167 # Old archive suffix (normally "a").
18168 libext="$libext"
18169
18170 # Shared library suffix (normally ".so").
18171 shrext='$shrext'
18172
18173 # Executable file suffix (normally "").
18174 exeext="$exeext"
18175
18176 # Additional compiler flags for building library objects.
18177 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18178 pic_mode=$pic_mode
18179
18180 # What is the maximum length of a command?
18181 max_cmd_len=$lt_cv_sys_max_cmd_len
18182
18183 # Does compiler simultaneously support -c and -o options?
18184 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18185
18186 # Must we lock files when doing compilation ?
18187 need_locks=$lt_need_locks
18188
18189 # Do we need the lib prefix for modules?
18190 need_lib_prefix=$need_lib_prefix
18191
18192 # Do we need a version for libraries?
18193 need_version=$need_version
18194
18195 # Whether dlopen is supported.
18196 dlopen_support=$enable_dlopen
18197
18198 # Whether dlopen of programs is supported.
18199 dlopen_self=$enable_dlopen_self
18200
18201 # Whether dlopen of statically linked programs is supported.
18202 dlopen_self_static=$enable_dlopen_self_static
18203
18204 # Compiler flag to prevent dynamic linking.
18205 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18206
18207 # Compiler flag to turn off builtin functions.
18208 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18209
18210 # Compiler flag to allow reflexive dlopens.
18211 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18212
18213 # Compiler flag to generate shared objects directly from archives.
18214 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18215
18216 # Compiler flag to generate thread-safe objects.
18217 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18218
18219 # Library versioning type.
18220 version_type=$version_type
18221
18222 # Format of library name prefix.
18223 libname_spec=$lt_libname_spec
18224
18225 # List of archive names.  First name is the real one, the rest are links.
18226 # The last name is the one that the linker finds with -lNAME.
18227 library_names_spec=$lt_library_names_spec
18228
18229 # The coded name of the library, if different from the real name.
18230 soname_spec=$lt_soname_spec
18231
18232 # Commands used to build and install an old-style archive.
18233 RANLIB=$lt_RANLIB
18234 old_archive_cmds=$lt_old_archive_cmds_GCJ
18235 old_postinstall_cmds=$lt_old_postinstall_cmds
18236 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18237
18238 # Create an old-style archive from a shared archive.
18239 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18240
18241 # Create a temporary old-style archive to link instead of a shared archive.
18242 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18243
18244 # Commands used to build and install a shared archive.
18245 archive_cmds=$lt_archive_cmds_GCJ
18246 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18247 postinstall_cmds=$lt_postinstall_cmds
18248 postuninstall_cmds=$lt_postuninstall_cmds
18249
18250 # Commands used to build a loadable module (assumed same as above if empty)
18251 module_cmds=$lt_module_cmds_GCJ
18252 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18253
18254 # Commands to strip libraries.
18255 old_striplib=$lt_old_striplib
18256 striplib=$lt_striplib
18257
18258 # Dependencies to place before the objects being linked to create a
18259 # shared library.
18260 predep_objects=$lt_predep_objects_GCJ
18261
18262 # Dependencies to place after the objects being linked to create a
18263 # shared library.
18264 postdep_objects=$lt_postdep_objects_GCJ
18265
18266 # Dependencies to place before the objects being linked to create a
18267 # shared library.
18268 predeps=$lt_predeps_GCJ
18269
18270 # Dependencies to place after the objects being linked to create a
18271 # shared library.
18272 postdeps=$lt_postdeps_GCJ
18273
18274 # The library search path used internally by the compiler when linking
18275 # a shared library.
18276 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18277
18278 # Method to check whether dependent libraries are shared objects.
18279 deplibs_check_method=$lt_deplibs_check_method
18280
18281 # Command to use when deplibs_check_method == file_magic.
18282 file_magic_cmd=$lt_file_magic_cmd
18283
18284 # Flag that allows shared libraries with undefined symbols to be built.
18285 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18286
18287 # Flag that forces no undefined symbols.
18288 no_undefined_flag=$lt_no_undefined_flag_GCJ
18289
18290 # Commands used to finish a libtool library installation in a directory.
18291 finish_cmds=$lt_finish_cmds
18292
18293 # Same as above, but a single script fragment to be evaled but not shown.
18294 finish_eval=$lt_finish_eval
18295
18296 # Take the output of nm and produce a listing of raw symbols and C names.
18297 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18298
18299 # Transform the output of nm in a proper C declaration
18300 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18301
18302 # Transform the output of nm in a C name address pair
18303 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18304
18305 # This is the shared library runtime path variable.
18306 runpath_var=$runpath_var
18307
18308 # This is the shared library path variable.
18309 shlibpath_var=$shlibpath_var
18310
18311 # Is shlibpath searched before the hard-coded library search path?
18312 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18313
18314 # How to hardcode a shared library path into an executable.
18315 hardcode_action=$hardcode_action_GCJ
18316
18317 # Whether we should hardcode library paths into libraries.
18318 hardcode_into_libs=$hardcode_into_libs
18319
18320 # Flag to hardcode \$libdir into a binary during linking.
18321 # This must work even if \$libdir does not exist.
18322 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18323
18324 # If ld is used when linking, flag to hardcode \$libdir into
18325 # a binary during linking. This must work even if \$libdir does
18326 # not exist.
18327 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18328
18329 # Whether we need a single -rpath flag with a separated argument.
18330 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18331
18332 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18333 # resulting binary.
18334 hardcode_direct=$hardcode_direct_GCJ
18335
18336 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18337 # resulting binary.
18338 hardcode_minus_L=$hardcode_minus_L_GCJ
18339
18340 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18341 # the resulting binary.
18342 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18343
18344 # Set to yes if building a shared library automatically hardcodes DIR into the library
18345 # and all subsequent libraries and executables linked against it.
18346 hardcode_automatic=$hardcode_automatic_GCJ
18347
18348 # Variables whose values should be saved in libtool wrapper scripts and
18349 # restored at relink time.
18350 variables_saved_for_relink="$variables_saved_for_relink"
18351
18352 # Whether libtool must link a program against all its dependency libraries.
18353 link_all_deplibs=$link_all_deplibs_GCJ
18354
18355 # Compile-time system search path for libraries
18356 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18357
18358 # Run-time system search path for libraries
18359 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18360
18361 # Fix the shell variable \$srcfile for the compiler.
18362 fix_srcfile_path="$fix_srcfile_path_GCJ"
18363
18364 # Set to yes if exported symbols are required.
18365 always_export_symbols=$always_export_symbols_GCJ
18366
18367 # The commands to list exported symbols.
18368 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18369
18370 # The commands to extract the exported symbol list from a shared archive.
18371 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18372
18373 # Symbols that should not be listed in the preloaded symbols.
18374 exclude_expsyms=$lt_exclude_expsyms_GCJ
18375
18376 # Symbols that must always be exported.
18377 include_expsyms=$lt_include_expsyms_GCJ
18378
18379 # ### END LIBTOOL TAG CONFIG: $tagname
18380
18381 __EOF__
18382
18383
18384 else
18385   # If there is no Makefile yet, we rely on a make rule to execute
18386   # `config.status --recheck' to rerun these tests and create the
18387   # libtool script then.
18388   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18389   if test -f "$ltmain_in"; then
18390     test -f Makefile && make "$ltmain"
18391   fi
18392 fi
18393
18394
18395 ac_ext=c
18396 ac_cpp='$CPP $CPPFLAGS'
18397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18399 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18400
18401 CC="$lt_save_CC"
18402
18403         else
18404           tagname=""
18405         fi
18406         ;;
18407
18408       RC)
18409
18410
18411 # Source file extension for RC test sources.
18412 ac_ext=rc
18413
18414 # Object file extension for compiled RC test sources.
18415 objext=o
18416 objext_RC=$objext
18417
18418 # Code to be used in simple compile tests
18419 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18420
18421 # Code to be used in simple link tests
18422 lt_simple_link_test_code="$lt_simple_compile_test_code"
18423
18424 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18425
18426 # If no C compiler was specified, use CC.
18427 LTCC=${LTCC-"$CC"}
18428
18429 # Allow CC to be a program name with arguments.
18430 compiler=$CC
18431
18432
18433 # Allow CC to be a program name with arguments.
18434 lt_save_CC="$CC"
18435 CC=${RC-"windres"}
18436 compiler=$CC
18437 compiler_RC=$CC
18438 lt_cv_prog_compiler_c_o_RC=yes
18439
18440 # The else clause should only fire when bootstrapping the
18441 # libtool distribution, otherwise you forgot to ship ltmain.sh
18442 # with your package, and you will get complaints that there are
18443 # no rules to generate ltmain.sh.
18444 if test -f "$ltmain"; then
18445   # See if we are running on zsh, and set the options which allow our commands through
18446   # without removal of \ escapes.
18447   if test -n "${ZSH_VERSION+set}" ; then
18448     setopt NO_GLOB_SUBST
18449   fi
18450   # Now quote all the things that may contain metacharacters while being
18451   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18452   # variables and quote the copies for generation of the libtool script.
18453   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18454     SED SHELL STRIP \
18455     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18456     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18457     deplibs_check_method reload_flag reload_cmds need_locks \
18458     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18459     lt_cv_sys_global_symbol_to_c_name_address \
18460     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18461     old_postinstall_cmds old_postuninstall_cmds \
18462     compiler_RC \
18463     CC_RC \
18464     LD_RC \
18465     lt_prog_compiler_wl_RC \
18466     lt_prog_compiler_pic_RC \
18467     lt_prog_compiler_static_RC \
18468     lt_prog_compiler_no_builtin_flag_RC \
18469     export_dynamic_flag_spec_RC \
18470     thread_safe_flag_spec_RC \
18471     whole_archive_flag_spec_RC \
18472     enable_shared_with_static_runtimes_RC \
18473     old_archive_cmds_RC \
18474     old_archive_from_new_cmds_RC \
18475     predep_objects_RC \
18476     postdep_objects_RC \
18477     predeps_RC \
18478     postdeps_RC \
18479     compiler_lib_search_path_RC \
18480     archive_cmds_RC \
18481     archive_expsym_cmds_RC \
18482     postinstall_cmds_RC \
18483     postuninstall_cmds_RC \
18484     old_archive_from_expsyms_cmds_RC \
18485     allow_undefined_flag_RC \
18486     no_undefined_flag_RC \
18487     export_symbols_cmds_RC \
18488     hardcode_libdir_flag_spec_RC \
18489     hardcode_libdir_flag_spec_ld_RC \
18490     hardcode_libdir_separator_RC \
18491     hardcode_automatic_RC \
18492     module_cmds_RC \
18493     module_expsym_cmds_RC \
18494     lt_cv_prog_compiler_c_o_RC \
18495     exclude_expsyms_RC \
18496     include_expsyms_RC; do
18497
18498     case $var in
18499     old_archive_cmds_RC | \
18500     old_archive_from_new_cmds_RC | \
18501     archive_cmds_RC | \
18502     archive_expsym_cmds_RC | \
18503     module_cmds_RC | \
18504     module_expsym_cmds_RC | \
18505     old_archive_from_expsyms_cmds_RC | \
18506     export_symbols_cmds_RC | \
18507     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18508     postinstall_cmds | postuninstall_cmds | \
18509     old_postinstall_cmds | old_postuninstall_cmds | \
18510     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18511       # Double-quote double-evaled strings.
18512       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18513       ;;
18514     *)
18515       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18516       ;;
18517     esac
18518   done
18519
18520   case $lt_echo in
18521   *'\$0 --fallback-echo"')
18522     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18523     ;;
18524   esac
18525
18526 cfgfile="$ofile"
18527
18528   cat <<__EOF__ >> "$cfgfile"
18529 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18530
18531 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18532
18533 # Shell to use when invoking shell scripts.
18534 SHELL=$lt_SHELL
18535
18536 # Whether or not to build shared libraries.
18537 build_libtool_libs=$enable_shared
18538
18539 # Whether or not to build static libraries.
18540 build_old_libs=$enable_static
18541
18542 # Whether or not to add -lc for building shared libraries.
18543 build_libtool_need_lc=$archive_cmds_need_lc_RC
18544
18545 # Whether or not to disallow shared libs when runtime libs are static
18546 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18547
18548 # Whether or not to optimize for fast installation.
18549 fast_install=$enable_fast_install
18550
18551 # The host system.
18552 host_alias=$host_alias
18553 host=$host
18554
18555 # An echo program that does not interpret backslashes.
18556 echo=$lt_echo
18557
18558 # The archiver.
18559 AR=$lt_AR
18560 AR_FLAGS=$lt_AR_FLAGS
18561
18562 # A C compiler.
18563 LTCC=$lt_LTCC
18564
18565 # A language-specific compiler.
18566 CC=$lt_compiler_RC
18567
18568 # Is the compiler the GNU C compiler?
18569 with_gcc=$GCC_RC
18570
18571 # An ERE matcher.
18572 EGREP=$lt_EGREP
18573
18574 # The linker used to build libraries.
18575 LD=$lt_LD_RC
18576
18577 # Whether we need hard or soft links.
18578 LN_S=$lt_LN_S
18579
18580 # A BSD-compatible nm program.
18581 NM=$lt_NM
18582
18583 # A symbol stripping program
18584 STRIP=$lt_STRIP
18585
18586 # Used to examine libraries when file_magic_cmd begins "file"
18587 MAGIC_CMD=$MAGIC_CMD
18588
18589 # Used on cygwin: DLL creation program.
18590 DLLTOOL="$DLLTOOL"
18591
18592 # Used on cygwin: object dumper.
18593 OBJDUMP="$OBJDUMP"
18594
18595 # Used on cygwin: assembler.
18596 AS="$AS"
18597
18598 # The name of the directory that contains temporary libtool files.
18599 objdir=$objdir
18600
18601 # How to create reloadable object files.
18602 reload_flag=$lt_reload_flag
18603 reload_cmds=$lt_reload_cmds
18604
18605 # How to pass a linker flag through the compiler.
18606 wl=$lt_lt_prog_compiler_wl_RC
18607
18608 # Object file suffix (normally "o").
18609 objext="$ac_objext"
18610
18611 # Old archive suffix (normally "a").
18612 libext="$libext"
18613
18614 # Shared library suffix (normally ".so").
18615 shrext='$shrext'
18616
18617 # Executable file suffix (normally "").
18618 exeext="$exeext"
18619
18620 # Additional compiler flags for building library objects.
18621 pic_flag=$lt_lt_prog_compiler_pic_RC
18622 pic_mode=$pic_mode
18623
18624 # What is the maximum length of a command?
18625 max_cmd_len=$lt_cv_sys_max_cmd_len
18626
18627 # Does compiler simultaneously support -c and -o options?
18628 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18629
18630 # Must we lock files when doing compilation ?
18631 need_locks=$lt_need_locks
18632
18633 # Do we need the lib prefix for modules?
18634 need_lib_prefix=$need_lib_prefix
18635
18636 # Do we need a version for libraries?
18637 need_version=$need_version
18638
18639 # Whether dlopen is supported.
18640 dlopen_support=$enable_dlopen
18641
18642 # Whether dlopen of programs is supported.
18643 dlopen_self=$enable_dlopen_self
18644
18645 # Whether dlopen of statically linked programs is supported.
18646 dlopen_self_static=$enable_dlopen_self_static
18647
18648 # Compiler flag to prevent dynamic linking.
18649 link_static_flag=$lt_lt_prog_compiler_static_RC
18650
18651 # Compiler flag to turn off builtin functions.
18652 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18653
18654 # Compiler flag to allow reflexive dlopens.
18655 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18656
18657 # Compiler flag to generate shared objects directly from archives.
18658 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18659
18660 # Compiler flag to generate thread-safe objects.
18661 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18662
18663 # Library versioning type.
18664 version_type=$version_type
18665
18666 # Format of library name prefix.
18667 libname_spec=$lt_libname_spec
18668
18669 # List of archive names.  First name is the real one, the rest are links.
18670 # The last name is the one that the linker finds with -lNAME.
18671 library_names_spec=$lt_library_names_spec
18672
18673 # The coded name of the library, if different from the real name.
18674 soname_spec=$lt_soname_spec
18675
18676 # Commands used to build and install an old-style archive.
18677 RANLIB=$lt_RANLIB
18678 old_archive_cmds=$lt_old_archive_cmds_RC
18679 old_postinstall_cmds=$lt_old_postinstall_cmds
18680 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18681
18682 # Create an old-style archive from a shared archive.
18683 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18684
18685 # Create a temporary old-style archive to link instead of a shared archive.
18686 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18687
18688 # Commands used to build and install a shared archive.
18689 archive_cmds=$lt_archive_cmds_RC
18690 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18691 postinstall_cmds=$lt_postinstall_cmds
18692 postuninstall_cmds=$lt_postuninstall_cmds
18693
18694 # Commands used to build a loadable module (assumed same as above if empty)
18695 module_cmds=$lt_module_cmds_RC
18696 module_expsym_cmds=$lt_module_expsym_cmds_RC
18697
18698 # Commands to strip libraries.
18699 old_striplib=$lt_old_striplib
18700 striplib=$lt_striplib
18701
18702 # Dependencies to place before the objects being linked to create a
18703 # shared library.
18704 predep_objects=$lt_predep_objects_RC
18705
18706 # Dependencies to place after the objects being linked to create a
18707 # shared library.
18708 postdep_objects=$lt_postdep_objects_RC
18709
18710 # Dependencies to place before the objects being linked to create a
18711 # shared library.
18712 predeps=$lt_predeps_RC
18713
18714 # Dependencies to place after the objects being linked to create a
18715 # shared library.
18716 postdeps=$lt_postdeps_RC
18717
18718 # The library search path used internally by the compiler when linking
18719 # a shared library.
18720 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18721
18722 # Method to check whether dependent libraries are shared objects.
18723 deplibs_check_method=$lt_deplibs_check_method
18724
18725 # Command to use when deplibs_check_method == file_magic.
18726 file_magic_cmd=$lt_file_magic_cmd
18727
18728 # Flag that allows shared libraries with undefined symbols to be built.
18729 allow_undefined_flag=$lt_allow_undefined_flag_RC
18730
18731 # Flag that forces no undefined symbols.
18732 no_undefined_flag=$lt_no_undefined_flag_RC
18733
18734 # Commands used to finish a libtool library installation in a directory.
18735 finish_cmds=$lt_finish_cmds
18736
18737 # Same as above, but a single script fragment to be evaled but not shown.
18738 finish_eval=$lt_finish_eval
18739
18740 # Take the output of nm and produce a listing of raw symbols and C names.
18741 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18742
18743 # Transform the output of nm in a proper C declaration
18744 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18745
18746 # Transform the output of nm in a C name address pair
18747 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18748
18749 # This is the shared library runtime path variable.
18750 runpath_var=$runpath_var
18751
18752 # This is the shared library path variable.
18753 shlibpath_var=$shlibpath_var
18754
18755 # Is shlibpath searched before the hard-coded library search path?
18756 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18757
18758 # How to hardcode a shared library path into an executable.
18759 hardcode_action=$hardcode_action_RC
18760
18761 # Whether we should hardcode library paths into libraries.
18762 hardcode_into_libs=$hardcode_into_libs
18763
18764 # Flag to hardcode \$libdir into a binary during linking.
18765 # This must work even if \$libdir does not exist.
18766 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18767
18768 # If ld is used when linking, flag to hardcode \$libdir into
18769 # a binary during linking. This must work even if \$libdir does
18770 # not exist.
18771 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18772
18773 # Whether we need a single -rpath flag with a separated argument.
18774 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18775
18776 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18777 # resulting binary.
18778 hardcode_direct=$hardcode_direct_RC
18779
18780 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18781 # resulting binary.
18782 hardcode_minus_L=$hardcode_minus_L_RC
18783
18784 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18785 # the resulting binary.
18786 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18787
18788 # Set to yes if building a shared library automatically hardcodes DIR into the library
18789 # and all subsequent libraries and executables linked against it.
18790 hardcode_automatic=$hardcode_automatic_RC
18791
18792 # Variables whose values should be saved in libtool wrapper scripts and
18793 # restored at relink time.
18794 variables_saved_for_relink="$variables_saved_for_relink"
18795
18796 # Whether libtool must link a program against all its dependency libraries.
18797 link_all_deplibs=$link_all_deplibs_RC
18798
18799 # Compile-time system search path for libraries
18800 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18801
18802 # Run-time system search path for libraries
18803 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18804
18805 # Fix the shell variable \$srcfile for the compiler.
18806 fix_srcfile_path="$fix_srcfile_path_RC"
18807
18808 # Set to yes if exported symbols are required.
18809 always_export_symbols=$always_export_symbols_RC
18810
18811 # The commands to list exported symbols.
18812 export_symbols_cmds=$lt_export_symbols_cmds_RC
18813
18814 # The commands to extract the exported symbol list from a shared archive.
18815 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18816
18817 # Symbols that should not be listed in the preloaded symbols.
18818 exclude_expsyms=$lt_exclude_expsyms_RC
18819
18820 # Symbols that must always be exported.
18821 include_expsyms=$lt_include_expsyms_RC
18822
18823 # ### END LIBTOOL TAG CONFIG: $tagname
18824
18825 __EOF__
18826
18827
18828 else
18829   # If there is no Makefile yet, we rely on a make rule to execute
18830   # `config.status --recheck' to rerun these tests and create the
18831   # libtool script then.
18832   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18833   if test -f "$ltmain_in"; then
18834     test -f Makefile && make "$ltmain"
18835   fi
18836 fi
18837
18838
18839 ac_ext=c
18840 ac_cpp='$CPP $CPPFLAGS'
18841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18844
18845 CC="$lt_save_CC"
18846
18847         ;;
18848
18849       *)
18850         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18851 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18852    { (exit 1); exit 1; }; }
18853         ;;
18854       esac
18855
18856       # Append the new tag name to the list of available tags.
18857       if test -n "$tagname" ; then
18858       available_tags="$available_tags $tagname"
18859     fi
18860     fi
18861   done
18862   IFS="$lt_save_ifs"
18863
18864   # Now substitute the updated list of available tags.
18865   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18866     mv "${ofile}T" "$ofile"
18867     chmod +x "$ofile"
18868   else
18869     rm -f "${ofile}T"
18870     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18871 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18872    { (exit 1); exit 1; }; }
18873   fi
18874 fi
18875
18876
18877
18878 # This can be used to rebuild libtool when needed
18879 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18880
18881 # Always use our own libtool.
18882 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18883
18884 # Prevent multiple expansion
18885
18886
18887
18888
18889
18890
18891
18892
18893
18894
18895
18896
18897
18898
18899
18900
18901
18902
18903
18904
18905 #  AC_CHECK_PROGS(LIBTOOL, glibtool libtool, libtool, \
18906 #       /usr/local/bin:/opt/bin:/sw/bin:/usr/bin:/bin)
18907
18908 # Settings for optional paths
18909
18910 # Check whether --with-site_includes was given.
18911 if test "${with_site_includes+set}" = set; then
18912   withval=$with_site_includes; for dir in `echo "$with_site_includes"|sed 's/:/ /'`
18913 do
18914     SITE_INCLUDES_CFLAGS="$SITE_INCLUDES_CFLAGS -I$dir"
18915 done
18916 CFLAGS=`echo "$SITE_INCLUDES_CFLAGS $CFLAGS"|sed 's/^  *//'`
18917
18918 else
18919   if test -f /sw/include/db3/db.h; then
18920         CFLAGS="-I/sw/include/db3 $CFLAGS"
18921 elif test -f /sw/include/db4/db.h; then
18922         CFLAGS="-I/sw/include/db4 $CFLAGS"
18923 fi
18924
18925 fi
18926
18927
18928
18929 # Check whether --with-site_libraries was given.
18930 if test "${with_site_libraries+set}" = set; then
18931   withval=$with_site_libraries; for dir in `echo "$with_site_libraries"|sed 's/:/ /'`
18932 do
18933     SITE_LIBS="$SITE_LIBS -L$dir"
18934 done
18935 LIBS=`echo "$SITE_LIBS $LIBS"|sed 's/^  *//'`
18936 LIBS="-ldb $LIBS"
18937
18938 else
18939   if test -f /sw/include/db3/db.h; then
18940         LIBS="-L/sw/lib -ldb-3 $LIBS"
18941 elif test -f /sw/include/db4/db.h; then
18942         LIBS="-L/sw/lib -ldb-4 $LIBS"
18943 else
18944         LIBS="-ldb $LIBS"
18945 fi
18946
18947 fi
18948
18949
18950 # Checks for libraries.
18951
18952 # Checks for header files.
18953
18954 # Checks for typedefs, structures, and compiler characteristics.
18955 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18956 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
18957 if test "${ac_cv_c_const+set}" = set; then
18958   echo $ECHO_N "(cached) $ECHO_C" >&6
18959 else
18960   cat >conftest.$ac_ext <<_ACEOF
18961 /* confdefs.h.  */
18962 _ACEOF
18963 cat confdefs.h >>conftest.$ac_ext
18964 cat >>conftest.$ac_ext <<_ACEOF
18965 /* end confdefs.h.  */
18966
18967 int
18968 main ()
18969 {
18970 /* FIXME: Include the comments suggested by Paul. */
18971 #ifndef __cplusplus
18972   /* Ultrix mips cc rejects this.  */
18973   typedef int charset[2];
18974   const charset cs;
18975   /* SunOS 4.1.1 cc rejects this.  */
18976   char const *const *pcpcc;
18977   char **ppc;
18978   /* NEC SVR4.0.2 mips cc rejects this.  */
18979   struct point {int x, y;};
18980   static struct point const zero = {0,0};
18981   /* AIX XL C 1.02.0.0 rejects this.
18982      It does not let you subtract one const X* pointer from another in
18983      an arm of an if-expression whose if-part is not a constant
18984      expression */
18985   const char *g = "string";
18986   pcpcc = &g + (g ? g-g : 0);
18987   /* HPUX 7.0 cc rejects these. */
18988   ++pcpcc;
18989   ppc = (char**) pcpcc;
18990   pcpcc = (char const *const *) ppc;
18991   { /* SCO 3.2v4 cc rejects this.  */
18992     char *t;
18993     char const *s = 0 ? (char *) 0 : (char const *) 0;
18994
18995     *t++ = 0;
18996     if (s) return 0;
18997   }
18998   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
18999     int x[] = {25, 17};
19000     const int *foo = &x[0];
19001     ++foo;
19002   }
19003   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19004     typedef const int *iptr;
19005     iptr p = 0;
19006     ++p;
19007   }
19008   { /* AIX XL C 1.02.0.0 rejects this saying
19009        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19010     struct s { int j; const int *ap[3]; };
19011     struct s *b; b->j = 5;
19012   }
19013   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19014     const int foo = 10;
19015     if (!foo) return 0;
19016   }
19017   return !cs[0] && !zero.x;
19018 #endif
19019
19020   ;
19021   return 0;
19022 }
19023 _ACEOF
19024 rm -f conftest.$ac_objext
19025 if { (ac_try="$ac_compile"
19026 case "(($ac_try" in
19027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19028   *) ac_try_echo=$ac_try;;
19029 esac
19030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19031   (eval "$ac_compile") 2>conftest.er1
19032   ac_status=$?
19033   grep -v '^ *+' conftest.er1 >conftest.err
19034   rm -f conftest.er1
19035   cat conftest.err >&5
19036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19037   (exit $ac_status); } && {
19038          test -z "$ac_c_werror_flag" ||
19039          test ! -s conftest.err
19040        } && test -s conftest.$ac_objext; then
19041   ac_cv_c_const=yes
19042 else
19043   echo "$as_me: failed program was:" >&5
19044 sed 's/^/| /' conftest.$ac_ext >&5
19045
19046         ac_cv_c_const=no
19047 fi
19048
19049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19050 fi
19051 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19052 echo "${ECHO_T}$ac_cv_c_const" >&6; }
19053 if test $ac_cv_c_const = no; then
19054
19055 cat >>confdefs.h <<\_ACEOF
19056 #define const
19057 _ACEOF
19058
19059 fi
19060
19061 { echo "$as_me:$LINENO: checking for inline" >&5
19062 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
19063 if test "${ac_cv_c_inline+set}" = set; then
19064   echo $ECHO_N "(cached) $ECHO_C" >&6
19065 else
19066   ac_cv_c_inline=no
19067 for ac_kw in inline __inline__ __inline; do
19068   cat >conftest.$ac_ext <<_ACEOF
19069 /* confdefs.h.  */
19070 _ACEOF
19071 cat confdefs.h >>conftest.$ac_ext
19072 cat >>conftest.$ac_ext <<_ACEOF
19073 /* end confdefs.h.  */
19074 #ifndef __cplusplus
19075 typedef int foo_t;
19076 static $ac_kw foo_t static_foo () {return 0; }
19077 $ac_kw foo_t foo () {return 0; }
19078 #endif
19079
19080 _ACEOF
19081 rm -f conftest.$ac_objext
19082 if { (ac_try="$ac_compile"
19083 case "(($ac_try" in
19084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19085   *) ac_try_echo=$ac_try;;
19086 esac
19087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19088   (eval "$ac_compile") 2>conftest.er1
19089   ac_status=$?
19090   grep -v '^ *+' conftest.er1 >conftest.err
19091   rm -f conftest.er1
19092   cat conftest.err >&5
19093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19094   (exit $ac_status); } && {
19095          test -z "$ac_c_werror_flag" ||
19096          test ! -s conftest.err
19097        } && test -s conftest.$ac_objext; then
19098   ac_cv_c_inline=$ac_kw
19099 else
19100   echo "$as_me: failed program was:" >&5
19101 sed 's/^/| /' conftest.$ac_ext >&5
19102
19103
19104 fi
19105
19106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19107   test "$ac_cv_c_inline" != no && break
19108 done
19109
19110 fi
19111 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
19112 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
19113
19114
19115 case $ac_cv_c_inline in
19116   inline | yes) ;;
19117   *)
19118     case $ac_cv_c_inline in
19119       no) ac_val=;;
19120       *) ac_val=$ac_cv_c_inline;;
19121     esac
19122     cat >>confdefs.h <<_ACEOF
19123 #ifndef __cplusplus
19124 #define inline $ac_val
19125 #endif
19126 _ACEOF
19127     ;;
19128 esac
19129
19130
19131 # Checks for library functions.
19132 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19133 # for constant arguments.  Useless!
19134 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
19135 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
19136 if test "${ac_cv_working_alloca_h+set}" = set; then
19137   echo $ECHO_N "(cached) $ECHO_C" >&6
19138 else
19139   cat >conftest.$ac_ext <<_ACEOF
19140 /* confdefs.h.  */
19141 _ACEOF
19142 cat confdefs.h >>conftest.$ac_ext
19143 cat >>conftest.$ac_ext <<_ACEOF
19144 /* end confdefs.h.  */
19145 #include <alloca.h>
19146 int
19147 main ()
19148 {
19149 char *p = (char *) alloca (2 * sizeof (int));
19150                           if (p) return 0;
19151   ;
19152   return 0;
19153 }
19154 _ACEOF
19155 rm -f conftest.$ac_objext conftest$ac_exeext
19156 if { (ac_try="$ac_link"
19157 case "(($ac_try" in
19158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19159   *) ac_try_echo=$ac_try;;
19160 esac
19161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19162   (eval "$ac_link") 2>conftest.er1
19163   ac_status=$?
19164   grep -v '^ *+' conftest.er1 >conftest.err
19165   rm -f conftest.er1
19166   cat conftest.err >&5
19167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19168   (exit $ac_status); } && {
19169          test -z "$ac_c_werror_flag" ||
19170          test ! -s conftest.err
19171        } && test -s conftest$ac_exeext &&
19172        $as_test_x conftest$ac_exeext; then
19173   ac_cv_working_alloca_h=yes
19174 else
19175   echo "$as_me: failed program was:" >&5
19176 sed 's/^/| /' conftest.$ac_ext >&5
19177
19178         ac_cv_working_alloca_h=no
19179 fi
19180
19181 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19182       conftest$ac_exeext conftest.$ac_ext
19183 fi
19184 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19185 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
19186 if test $ac_cv_working_alloca_h = yes; then
19187
19188 cat >>confdefs.h <<\_ACEOF
19189 #define HAVE_ALLOCA_H 1
19190 _ACEOF
19191
19192 fi
19193
19194 { echo "$as_me:$LINENO: checking for alloca" >&5
19195 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
19196 if test "${ac_cv_func_alloca_works+set}" = set; then
19197   echo $ECHO_N "(cached) $ECHO_C" >&6
19198 else
19199   cat >conftest.$ac_ext <<_ACEOF
19200 /* confdefs.h.  */
19201 _ACEOF
19202 cat confdefs.h >>conftest.$ac_ext
19203 cat >>conftest.$ac_ext <<_ACEOF
19204 /* end confdefs.h.  */
19205 #ifdef __GNUC__
19206 # define alloca __builtin_alloca
19207 #else
19208 # ifdef _MSC_VER
19209 #  include <malloc.h>
19210 #  define alloca _alloca
19211 # else
19212 #  ifdef HAVE_ALLOCA_H
19213 #   include <alloca.h>
19214 #  else
19215 #   ifdef _AIX
19216  #pragma alloca
19217 #   else
19218 #    ifndef alloca /* predefined by HP cc +Olibcalls */
19219 char *alloca ();
19220 #    endif
19221 #   endif
19222 #  endif
19223 # endif
19224 #endif
19225
19226 int
19227 main ()
19228 {
19229 char *p = (char *) alloca (1);
19230                                     if (p) return 0;
19231   ;
19232   return 0;
19233 }
19234 _ACEOF
19235 rm -f conftest.$ac_objext conftest$ac_exeext
19236 if { (ac_try="$ac_link"
19237 case "(($ac_try" in
19238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19239   *) ac_try_echo=$ac_try;;
19240 esac
19241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19242   (eval "$ac_link") 2>conftest.er1
19243   ac_status=$?
19244   grep -v '^ *+' conftest.er1 >conftest.err
19245   rm -f conftest.er1
19246   cat conftest.err >&5
19247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19248   (exit $ac_status); } && {
19249          test -z "$ac_c_werror_flag" ||
19250          test ! -s conftest.err
19251        } && test -s conftest$ac_exeext &&
19252        $as_test_x conftest$ac_exeext; then
19253   ac_cv_func_alloca_works=yes
19254 else
19255   echo "$as_me: failed program was:" >&5
19256 sed 's/^/| /' conftest.$ac_ext >&5
19257
19258         ac_cv_func_alloca_works=no
19259 fi
19260
19261 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19262       conftest$ac_exeext conftest.$ac_ext
19263 fi
19264 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19265 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
19266
19267 if test $ac_cv_func_alloca_works = yes; then
19268
19269 cat >>confdefs.h <<\_ACEOF
19270 #define HAVE_ALLOCA 1
19271 _ACEOF
19272
19273 else
19274   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19275 # that cause trouble.  Some versions do not even contain alloca or
19276 # contain a buggy version.  If you still want to use their alloca,
19277 # use ar to extract alloca.o from them instead of compiling alloca.c.
19278
19279 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19280
19281 cat >>confdefs.h <<\_ACEOF
19282 #define C_ALLOCA 1
19283 _ACEOF
19284
19285
19286 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19287 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
19288 if test "${ac_cv_os_cray+set}" = set; then
19289   echo $ECHO_N "(cached) $ECHO_C" >&6
19290 else
19291   cat >conftest.$ac_ext <<_ACEOF
19292 /* confdefs.h.  */
19293 _ACEOF
19294 cat confdefs.h >>conftest.$ac_ext
19295 cat >>conftest.$ac_ext <<_ACEOF
19296 /* end confdefs.h.  */
19297 #if defined CRAY && ! defined CRAY2
19298 webecray
19299 #else
19300 wenotbecray
19301 #endif
19302
19303 _ACEOF
19304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19305   $EGREP "webecray" >/dev/null 2>&1; then
19306   ac_cv_os_cray=yes
19307 else
19308   ac_cv_os_cray=no
19309 fi
19310 rm -f conftest*
19311
19312 fi
19313 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19314 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
19315 if test $ac_cv_os_cray = yes; then
19316   for ac_func in _getb67 GETB67 getb67; do
19317     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19318 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19319 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19320 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19321   echo $ECHO_N "(cached) $ECHO_C" >&6
19322 else
19323   cat >conftest.$ac_ext <<_ACEOF
19324 /* confdefs.h.  */
19325 _ACEOF
19326 cat confdefs.h >>conftest.$ac_ext
19327 cat >>conftest.$ac_ext <<_ACEOF
19328 /* end confdefs.h.  */
19329 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19330    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19331 #define $ac_func innocuous_$ac_func
19332
19333 /* System header to define __stub macros and hopefully few prototypes,
19334     which can conflict with char $ac_func (); below.
19335     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19336     <limits.h> exists even on freestanding compilers.  */
19337
19338 #ifdef __STDC__
19339 # include <limits.h>
19340 #else
19341 # include <assert.h>
19342 #endif
19343
19344 #undef $ac_func
19345
19346 /* Override any GCC internal prototype to avoid an error.
19347    Use char because int might match the return type of a GCC
19348    builtin and then its argument prototype would still apply.  */
19349 #ifdef __cplusplus
19350 extern "C"
19351 #endif
19352 char $ac_func ();
19353 /* The GNU C library defines this for functions which it implements
19354     to always fail with ENOSYS.  Some functions are actually named
19355     something starting with __ and the normal name is an alias.  */
19356 #if defined __stub_$ac_func || defined __stub___$ac_func
19357 choke me
19358 #endif
19359
19360 int
19361 main ()
19362 {
19363 return $ac_func ();
19364   ;
19365   return 0;
19366 }
19367 _ACEOF
19368 rm -f conftest.$ac_objext conftest$ac_exeext
19369 if { (ac_try="$ac_link"
19370 case "(($ac_try" in
19371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19372   *) ac_try_echo=$ac_try;;
19373 esac
19374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19375   (eval "$ac_link") 2>conftest.er1
19376   ac_status=$?
19377   grep -v '^ *+' conftest.er1 >conftest.err
19378   rm -f conftest.er1
19379   cat conftest.err >&5
19380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19381   (exit $ac_status); } && {
19382          test -z "$ac_c_werror_flag" ||
19383          test ! -s conftest.err
19384        } && test -s conftest$ac_exeext &&
19385        $as_test_x conftest$ac_exeext; then
19386   eval "$as_ac_var=yes"
19387 else
19388   echo "$as_me: failed program was:" >&5
19389 sed 's/^/| /' conftest.$ac_ext >&5
19390
19391         eval "$as_ac_var=no"
19392 fi
19393
19394 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19395       conftest$ac_exeext conftest.$ac_ext
19396 fi
19397 ac_res=`eval echo '${'$as_ac_var'}'`
19398                { echo "$as_me:$LINENO: result: $ac_res" >&5
19399 echo "${ECHO_T}$ac_res" >&6; }
19400 if test `eval echo '${'$as_ac_var'}'` = yes; then
19401
19402 cat >>confdefs.h <<_ACEOF
19403 #define CRAY_STACKSEG_END $ac_func
19404 _ACEOF
19405
19406     break
19407 fi
19408
19409   done
19410 fi
19411
19412 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19413 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
19414 if test "${ac_cv_c_stack_direction+set}" = set; then
19415   echo $ECHO_N "(cached) $ECHO_C" >&6
19416 else
19417   if test "$cross_compiling" = yes; then
19418   ac_cv_c_stack_direction=0
19419 else
19420   cat >conftest.$ac_ext <<_ACEOF
19421 /* confdefs.h.  */
19422 _ACEOF
19423 cat confdefs.h >>conftest.$ac_ext
19424 cat >>conftest.$ac_ext <<_ACEOF
19425 /* end confdefs.h.  */
19426 $ac_includes_default
19427 int
19428 find_stack_direction ()
19429 {
19430   static char *addr = 0;
19431   auto char dummy;
19432   if (addr == 0)
19433     {
19434       addr = &dummy;
19435       return find_stack_direction ();
19436     }
19437   else
19438     return (&dummy > addr) ? 1 : -1;
19439 }
19440
19441 int
19442 main ()
19443 {
19444   return find_stack_direction () < 0;
19445 }
19446 _ACEOF
19447 rm -f conftest$ac_exeext
19448 if { (ac_try="$ac_link"
19449 case "(($ac_try" in
19450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19451   *) ac_try_echo=$ac_try;;
19452 esac
19453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19454   (eval "$ac_link") 2>&5
19455   ac_status=$?
19456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19457   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19458   { (case "(($ac_try" in
19459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19460   *) ac_try_echo=$ac_try;;
19461 esac
19462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19463   (eval "$ac_try") 2>&5
19464   ac_status=$?
19465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19466   (exit $ac_status); }; }; then
19467   ac_cv_c_stack_direction=1
19468 else
19469   echo "$as_me: program exited with status $ac_status" >&5
19470 echo "$as_me: failed program was:" >&5
19471 sed 's/^/| /' conftest.$ac_ext >&5
19472
19473 ( exit $ac_status )
19474 ac_cv_c_stack_direction=-1
19475 fi
19476 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19477 fi
19478
19479
19480 fi
19481 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19482 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
19483
19484 cat >>confdefs.h <<_ACEOF
19485 #define STACK_DIRECTION $ac_cv_c_stack_direction
19486 _ACEOF
19487
19488
19489 fi
19490
19491
19492 cat >>confdefs.h <<\_ACEOF
19493 #define _GNU_SOURCE 1
19494 _ACEOF
19495
19496
19497
19498 { echo "$as_me:$LINENO: checking for AIX" >&5
19499 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
19500 cat >conftest.$ac_ext <<_ACEOF
19501 /* confdefs.h.  */
19502 _ACEOF
19503 cat confdefs.h >>conftest.$ac_ext
19504 cat >>conftest.$ac_ext <<_ACEOF
19505 /* end confdefs.h.  */
19506 #ifdef _AIX
19507   yes
19508 #endif
19509
19510 _ACEOF
19511 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19512   $EGREP "yes" >/dev/null 2>&1; then
19513   { echo "$as_me:$LINENO: result: yes" >&5
19514 echo "${ECHO_T}yes" >&6; }
19515 cat >>confdefs.h <<\_ACEOF
19516 #define _ALL_SOURCE 1
19517 _ACEOF
19518
19519 else
19520   { echo "$as_me:$LINENO: result: no" >&5
19521 echo "${ECHO_T}no" >&6; }
19522 fi
19523 rm -f conftest*
19524
19525
19526 if test "${ac_cv_header_minix_config_h+set}" = set; then
19527   { echo "$as_me:$LINENO: checking for minix/config.h" >&5
19528 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
19529 if test "${ac_cv_header_minix_config_h+set}" = set; then
19530   echo $ECHO_N "(cached) $ECHO_C" >&6
19531 fi
19532 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
19533 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
19534 else
19535   # Is the header compilable?
19536 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
19537 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
19538 cat >conftest.$ac_ext <<_ACEOF
19539 /* confdefs.h.  */
19540 _ACEOF
19541 cat confdefs.h >>conftest.$ac_ext
19542 cat >>conftest.$ac_ext <<_ACEOF
19543 /* end confdefs.h.  */
19544 $ac_includes_default
19545 #include <minix/config.h>
19546 _ACEOF
19547 rm -f conftest.$ac_objext
19548 if { (ac_try="$ac_compile"
19549 case "(($ac_try" in
19550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19551   *) ac_try_echo=$ac_try;;
19552 esac
19553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19554   (eval "$ac_compile") 2>conftest.er1
19555   ac_status=$?
19556   grep -v '^ *+' conftest.er1 >conftest.err
19557   rm -f conftest.er1
19558   cat conftest.err >&5
19559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19560   (exit $ac_status); } && {
19561          test -z "$ac_c_werror_flag" ||
19562          test ! -s conftest.err
19563        } && test -s conftest.$ac_objext; then
19564   ac_header_compiler=yes
19565 else
19566   echo "$as_me: failed program was:" >&5
19567 sed 's/^/| /' conftest.$ac_ext >&5
19568
19569         ac_header_compiler=no
19570 fi
19571
19572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19573 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19574 echo "${ECHO_T}$ac_header_compiler" >&6; }
19575
19576 # Is the header present?
19577 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
19578 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
19579 cat >conftest.$ac_ext <<_ACEOF
19580 /* confdefs.h.  */
19581 _ACEOF
19582 cat confdefs.h >>conftest.$ac_ext
19583 cat >>conftest.$ac_ext <<_ACEOF
19584 /* end confdefs.h.  */
19585 #include <minix/config.h>
19586 _ACEOF
19587 if { (ac_try="$ac_cpp conftest.$ac_ext"
19588 case "(($ac_try" in
19589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19590   *) ac_try_echo=$ac_try;;
19591 esac
19592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19593   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19594   ac_status=$?
19595   grep -v '^ *+' conftest.er1 >conftest.err
19596   rm -f conftest.er1
19597   cat conftest.err >&5
19598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19599   (exit $ac_status); } >/dev/null && {
19600          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19601          test ! -s conftest.err
19602        }; then
19603   ac_header_preproc=yes
19604 else
19605   echo "$as_me: failed program was:" >&5
19606 sed 's/^/| /' conftest.$ac_ext >&5
19607
19608   ac_header_preproc=no
19609 fi
19610
19611 rm -f conftest.err conftest.$ac_ext
19612 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19613 echo "${ECHO_T}$ac_header_preproc" >&6; }
19614
19615 # So?  What about this header?
19616 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19617   yes:no: )
19618     { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
19619 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19620     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
19621 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
19622     ac_header_preproc=yes
19623     ;;
19624   no:yes:* )
19625     { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
19626 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
19627     { echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
19628 echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
19629     { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
19630 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
19631     { echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
19632 echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
19633     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
19634 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
19635     { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
19636 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
19637     ( cat <<\_ASBOX
19638 ## -------------------------------- ##
19639 ## Report this to chise-en@m17n.org ##
19640 ## -------------------------------- ##
19641 _ASBOX
19642      ) | sed "s/^/$as_me: WARNING:     /" >&2
19643     ;;
19644 esac
19645 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
19646 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
19647 if test "${ac_cv_header_minix_config_h+set}" = set; then
19648   echo $ECHO_N "(cached) $ECHO_C" >&6
19649 else
19650   ac_cv_header_minix_config_h=$ac_header_preproc
19651 fi
19652 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
19653 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
19654
19655 fi
19656 if test $ac_cv_header_minix_config_h = yes; then
19657   MINIX=yes
19658 else
19659   MINIX=
19660 fi
19661
19662
19663 if test "$MINIX" = yes; then
19664
19665 cat >>confdefs.h <<\_ACEOF
19666 #define _POSIX_SOURCE 1
19667 _ACEOF
19668
19669
19670 cat >>confdefs.h <<\_ACEOF
19671 #define _POSIX_1_SOURCE 2
19672 _ACEOF
19673
19674
19675 cat >>confdefs.h <<\_ACEOF
19676 #define _MINIX 1
19677 _ACEOF
19678
19679 fi
19680
19681
19682
19683
19684
19685
19686
19687
19688
19689
19690
19691   { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
19692 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
19693 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
19694   echo $ECHO_N "(cached) $ECHO_C" >&6
19695 else
19696   cat >conftest.$ac_ext <<_ACEOF
19697 /* confdefs.h.  */
19698 _ACEOF
19699 cat confdefs.h >>conftest.$ac_ext
19700 cat >>conftest.$ac_ext <<_ACEOF
19701 /* end confdefs.h.  */
19702
19703 #         define __EXTENSIONS__ 1
19704           $ac_includes_default
19705 int
19706 main ()
19707 {
19708
19709   ;
19710   return 0;
19711 }
19712 _ACEOF
19713 rm -f conftest.$ac_objext
19714 if { (ac_try="$ac_compile"
19715 case "(($ac_try" in
19716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19717   *) ac_try_echo=$ac_try;;
19718 esac
19719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19720   (eval "$ac_compile") 2>conftest.er1
19721   ac_status=$?
19722   grep -v '^ *+' conftest.er1 >conftest.err
19723   rm -f conftest.er1
19724   cat conftest.err >&5
19725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19726   (exit $ac_status); } && {
19727          test -z "$ac_c_werror_flag" ||
19728          test ! -s conftest.err
19729        } && test -s conftest.$ac_objext; then
19730   ac_cv_safe_to_define___extensions__=yes
19731 else
19732   echo "$as_me: failed program was:" >&5
19733 sed 's/^/| /' conftest.$ac_ext >&5
19734
19735         ac_cv_safe_to_define___extensions__=no
19736 fi
19737
19738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19739 fi
19740 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
19741 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
19742   test $ac_cv_safe_to_define___extensions__ = yes &&
19743     cat >>confdefs.h <<\_ACEOF
19744 #define __EXTENSIONS__ 1
19745 _ACEOF
19746
19747   cat >>confdefs.h <<\_ACEOF
19748 #define _POSIX_PTHREAD_SEMANTICS 1
19749 _ACEOF
19750
19751   cat >>confdefs.h <<\_ACEOF
19752 #define _TANDEM_SOURCE 1
19753 _ACEOF
19754
19755
19756 { echo "$as_me:$LINENO: checking for working strnlen" >&5
19757 echo $ECHO_N "checking for working strnlen... $ECHO_C" >&6; }
19758 if test "${ac_cv_func_strnlen_working+set}" = set; then
19759   echo $ECHO_N "(cached) $ECHO_C" >&6
19760 else
19761   if test "$cross_compiling" = yes; then
19762   ac_cv_func_strnlen_working=no
19763 else
19764   cat >conftest.$ac_ext <<_ACEOF
19765 /* confdefs.h.  */
19766 _ACEOF
19767 cat confdefs.h >>conftest.$ac_ext
19768 cat >>conftest.$ac_ext <<_ACEOF
19769 /* end confdefs.h.  */
19770 $ac_includes_default
19771 int
19772 main ()
19773 {
19774
19775 #define S "foobar"
19776 #define S_LEN (sizeof S - 1)
19777
19778   /* At least one implementation is buggy: that of AIX 4.3 would
19779      give strnlen (S, 1) == 3.  */
19780
19781   int i;
19782   for (i = 0; i < S_LEN + 1; ++i)
19783     {
19784       int expected = i <= S_LEN ? i : S_LEN;
19785       if (strnlen (S, i) != expected)
19786         return 1;
19787     }
19788   return 0;
19789
19790   ;
19791   return 0;
19792 }
19793 _ACEOF
19794 rm -f conftest$ac_exeext
19795 if { (ac_try="$ac_link"
19796 case "(($ac_try" in
19797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19798   *) ac_try_echo=$ac_try;;
19799 esac
19800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19801   (eval "$ac_link") 2>&5
19802   ac_status=$?
19803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19804   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19805   { (case "(($ac_try" in
19806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19807   *) ac_try_echo=$ac_try;;
19808 esac
19809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19810   (eval "$ac_try") 2>&5
19811   ac_status=$?
19812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19813   (exit $ac_status); }; }; then
19814   ac_cv_func_strnlen_working=yes
19815 else
19816   echo "$as_me: program exited with status $ac_status" >&5
19817 echo "$as_me: failed program was:" >&5
19818 sed 's/^/| /' conftest.$ac_ext >&5
19819
19820 ( exit $ac_status )
19821 ac_cv_func_strnlen_working=no
19822 fi
19823 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19824 fi
19825
19826
19827 fi
19828 { echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
19829 echo "${ECHO_T}$ac_cv_func_strnlen_working" >&6; }
19830 test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in
19831   *" strnlen.$ac_objext "* ) ;;
19832   *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
19833  ;;
19834 esac
19835
19836
19837
19838
19839 for ac_func in strnlen
19840 do
19841 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19842 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19843 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19844 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19845   echo $ECHO_N "(cached) $ECHO_C" >&6
19846 else
19847   cat >conftest.$ac_ext <<_ACEOF
19848 /* confdefs.h.  */
19849 _ACEOF
19850 cat confdefs.h >>conftest.$ac_ext
19851 cat >>conftest.$ac_ext <<_ACEOF
19852 /* end confdefs.h.  */
19853 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19854    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19855 #define $ac_func innocuous_$ac_func
19856
19857 /* System header to define __stub macros and hopefully few prototypes,
19858     which can conflict with char $ac_func (); below.
19859     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19860     <limits.h> exists even on freestanding compilers.  */
19861
19862 #ifdef __STDC__
19863 # include <limits.h>
19864 #else
19865 # include <assert.h>
19866 #endif
19867
19868 #undef $ac_func
19869
19870 /* Override any GCC internal prototype to avoid an error.
19871    Use char because int might match the return type of a GCC
19872    builtin and then its argument prototype would still apply.  */
19873 #ifdef __cplusplus
19874 extern "C"
19875 #endif
19876 char $ac_func ();
19877 /* The GNU C library defines this for functions which it implements
19878     to always fail with ENOSYS.  Some functions are actually named
19879     something starting with __ and the normal name is an alias.  */
19880 #if defined __stub_$ac_func || defined __stub___$ac_func
19881 choke me
19882 #endif
19883
19884 int
19885 main ()
19886 {
19887 return $ac_func ();
19888   ;
19889   return 0;
19890 }
19891 _ACEOF
19892 rm -f conftest.$ac_objext conftest$ac_exeext
19893 if { (ac_try="$ac_link"
19894 case "(($ac_try" in
19895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19896   *) ac_try_echo=$ac_try;;
19897 esac
19898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19899   (eval "$ac_link") 2>conftest.er1
19900   ac_status=$?
19901   grep -v '^ *+' conftest.er1 >conftest.err
19902   rm -f conftest.er1
19903   cat conftest.err >&5
19904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19905   (exit $ac_status); } && {
19906          test -z "$ac_c_werror_flag" ||
19907          test ! -s conftest.err
19908        } && test -s conftest$ac_exeext &&
19909        $as_test_x conftest$ac_exeext; then
19910   eval "$as_ac_var=yes"
19911 else
19912   echo "$as_me: failed program was:" >&5
19913 sed 's/^/| /' conftest.$ac_ext >&5
19914
19915         eval "$as_ac_var=no"
19916 fi
19917
19918 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19919       conftest$ac_exeext conftest.$ac_ext
19920 fi
19921 ac_res=`eval echo '${'$as_ac_var'}'`
19922                { echo "$as_me:$LINENO: result: $ac_res" >&5
19923 echo "${ECHO_T}$ac_res" >&6; }
19924 if test `eval echo '${'$as_ac_var'}'` = yes; then
19925   cat >>confdefs.h <<_ACEOF
19926 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19927 _ACEOF
19928
19929 fi
19930 done
19931
19932
19933 ac_config_files="$ac_config_files Makefile"
19934
19935 cat >confcache <<\_ACEOF
19936 # This file is a shell script that caches the results of configure
19937 # tests run on this system so they can be shared between configure
19938 # scripts and configure runs, see configure's option --config-cache.
19939 # It is not useful on other systems.  If it contains results you don't
19940 # want to keep, you may remove or edit it.
19941 #
19942 # config.status only pays attention to the cache file if you give it
19943 # the --recheck option to rerun configure.
19944 #
19945 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19946 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19947 # following values.
19948
19949 _ACEOF
19950
19951 # The following way of writing the cache mishandles newlines in values,
19952 # but we know of no workaround that is simple, portable, and efficient.
19953 # So, we kill variables containing newlines.
19954 # Ultrix sh set writes to stderr and can't be redirected directly,
19955 # and sets the high bit in the cache file unless we assign to the vars.
19956 (
19957   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19958     eval ac_val=\$$ac_var
19959     case $ac_val in #(
19960     *${as_nl}*)
19961       case $ac_var in #(
19962       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
19963 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
19964       esac
19965       case $ac_var in #(
19966       _ | IFS | as_nl) ;; #(
19967       *) $as_unset $ac_var ;;
19968       esac ;;
19969     esac
19970   done
19971
19972   (set) 2>&1 |
19973     case $as_nl`(ac_space=' '; set) 2>&1` in #(
19974     *${as_nl}ac_space=\ *)
19975       # `set' does not quote correctly, so add quotes (double-quote
19976       # substitution turns \\\\ into \\, and sed turns \\ into \).
19977       sed -n \
19978         "s/'/'\\\\''/g;
19979           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19980       ;; #(
19981     *)
19982       # `set' quotes correctly as required by POSIX, so do not add quotes.
19983       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19984       ;;
19985     esac |
19986     sort
19987 ) |
19988   sed '
19989      /^ac_cv_env_/b end
19990      t clear
19991      :clear
19992      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19993      t end
19994      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19995      :end' >>confcache
19996 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19997   if test -w "$cache_file"; then
19998     test "x$cache_file" != "x/dev/null" &&
19999       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20000 echo "$as_me: updating cache $cache_file" >&6;}
20001     cat confcache >$cache_file
20002   else
20003     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20004 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20005   fi
20006 fi
20007 rm -f confcache
20008
20009 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20010 # Let make expand exec_prefix.
20011 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20012
20013 DEFS=-DHAVE_CONFIG_H
20014
20015 ac_libobjs=
20016 ac_ltlibobjs=
20017 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20018   # 1. Remove the extension, and $U if already installed.
20019   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20020   ac_i=`echo "$ac_i" | sed "$ac_script"`
20021   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20022   #    will be set to the directory where LIBOBJS objects are built.
20023   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20024   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20025 done
20026 LIBOBJS=$ac_libobjs
20027
20028 LTLIBOBJS=$ac_ltlibobjs
20029
20030
20031
20032 : ${CONFIG_STATUS=./config.status}
20033 ac_clean_files_save=$ac_clean_files
20034 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20035 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20036 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20037 cat >$CONFIG_STATUS <<_ACEOF
20038 #! $SHELL
20039 # Generated by $as_me.
20040 # Run this file to recreate the current configuration.
20041 # Compiler output produced by configure, useful for debugging
20042 # configure, is in config.log if it exists.
20043
20044 debug=false
20045 ac_cs_recheck=false
20046 ac_cs_silent=false
20047 SHELL=\${CONFIG_SHELL-$SHELL}
20048 _ACEOF
20049
20050 cat >>$CONFIG_STATUS <<\_ACEOF
20051 ## --------------------- ##
20052 ## M4sh Initialization.  ##
20053 ## --------------------- ##
20054
20055 # Be more Bourne compatible
20056 DUALCASE=1; export DUALCASE # for MKS sh
20057 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20058   emulate sh
20059   NULLCMD=:
20060   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20061   # is contrary to our usage.  Disable this feature.
20062   alias -g '${1+"$@"}'='"$@"'
20063   setopt NO_GLOB_SUBST
20064 else
20065   case `(set -o) 2>/dev/null` in
20066   *posix*) set -o posix ;;
20067 esac
20068
20069 fi
20070
20071
20072
20073
20074 # PATH needs CR
20075 # Avoid depending upon Character Ranges.
20076 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20077 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20078 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20079 as_cr_digits='0123456789'
20080 as_cr_alnum=$as_cr_Letters$as_cr_digits
20081
20082 # The user is always right.
20083 if test "${PATH_SEPARATOR+set}" != set; then
20084   echo "#! /bin/sh" >conf$$.sh
20085   echo  "exit 0"   >>conf$$.sh
20086   chmod +x conf$$.sh
20087   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20088     PATH_SEPARATOR=';'
20089   else
20090     PATH_SEPARATOR=:
20091   fi
20092   rm -f conf$$.sh
20093 fi
20094
20095 # Support unset when possible.
20096 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20097   as_unset=unset
20098 else
20099   as_unset=false
20100 fi
20101
20102
20103 # IFS
20104 # We need space, tab and new line, in precisely that order.  Quoting is
20105 # there to prevent editors from complaining about space-tab.
20106 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20107 # splitting by setting IFS to empty value.)
20108 as_nl='
20109 '
20110 IFS=" ""        $as_nl"
20111
20112 # Find who we are.  Look in the path if we contain no directory separator.
20113 case $0 in
20114   *[\\/]* ) as_myself=$0 ;;
20115   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20116 for as_dir in $PATH
20117 do
20118   IFS=$as_save_IFS
20119   test -z "$as_dir" && as_dir=.
20120   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20121 done
20122 IFS=$as_save_IFS
20123
20124      ;;
20125 esac
20126 # We did not find ourselves, most probably we were run as `sh COMMAND'
20127 # in which case we are not to be found in the path.
20128 if test "x$as_myself" = x; then
20129   as_myself=$0
20130 fi
20131 if test ! -f "$as_myself"; then
20132   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20133   { (exit 1); exit 1; }
20134 fi
20135
20136 # Work around bugs in pre-3.0 UWIN ksh.
20137 for as_var in ENV MAIL MAILPATH
20138 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20139 done
20140 PS1='$ '
20141 PS2='> '
20142 PS4='+ '
20143
20144 # NLS nuisances.
20145 for as_var in \
20146   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20147   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20148   LC_TELEPHONE LC_TIME
20149 do
20150   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20151     eval $as_var=C; export $as_var
20152   else
20153     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20154   fi
20155 done
20156
20157 # Required to use basename.
20158 if expr a : '\(a\)' >/dev/null 2>&1 &&
20159    test "X`expr 00001 : '.*\(...\)'`" = X001; then
20160   as_expr=expr
20161 else
20162   as_expr=false
20163 fi
20164
20165 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20166   as_basename=basename
20167 else
20168   as_basename=false
20169 fi
20170
20171
20172 # Name of the executable.
20173 as_me=`$as_basename -- "$0" ||
20174 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20175          X"$0" : 'X\(//\)$' \| \
20176          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20177 echo X/"$0" |
20178     sed '/^.*\/\([^/][^/]*\)\/*$/{
20179             s//\1/
20180             q
20181           }
20182           /^X\/\(\/\/\)$/{
20183             s//\1/
20184             q
20185           }
20186           /^X\/\(\/\).*/{
20187             s//\1/
20188             q
20189           }
20190           s/.*/./; q'`
20191
20192 # CDPATH.
20193 $as_unset CDPATH
20194
20195
20196
20197   as_lineno_1=$LINENO
20198   as_lineno_2=$LINENO
20199   test "x$as_lineno_1" != "x$as_lineno_2" &&
20200   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20201
20202   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20203   # uniformly replaced by the line number.  The first 'sed' inserts a
20204   # line-number line after each line using $LINENO; the second 'sed'
20205   # does the real work.  The second script uses 'N' to pair each
20206   # line-number line with the line containing $LINENO, and appends
20207   # trailing '-' during substitution so that $LINENO is not a special
20208   # case at line end.
20209   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20210   # scripts with optimization help from Paolo Bonzini.  Blame Lee
20211   # E. McMahon (1931-1989) for sed's syntax.  :-)
20212   sed -n '
20213     p
20214     /[$]LINENO/=
20215   ' <$as_myself |
20216     sed '
20217       s/[$]LINENO.*/&-/
20218       t lineno
20219       b
20220       :lineno
20221       N
20222       :loop
20223       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20224       t loop
20225       s/-\n.*//
20226     ' >$as_me.lineno &&
20227   chmod +x "$as_me.lineno" ||
20228     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20229    { (exit 1); exit 1; }; }
20230
20231   # Don't try to exec as it changes $[0], causing all sort of problems
20232   # (the dirname of $[0] is not the place where we might find the
20233   # original and so on.  Autoconf is especially sensitive to this).
20234   . "./$as_me.lineno"
20235   # Exit status is that of the last command.
20236   exit
20237 }
20238
20239
20240 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20241   as_dirname=dirname
20242 else
20243   as_dirname=false
20244 fi
20245
20246 ECHO_C= ECHO_N= ECHO_T=
20247 case `echo -n x` in
20248 -n*)
20249   case `echo 'x\c'` in
20250   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
20251   *)   ECHO_C='\c';;
20252   esac;;
20253 *)
20254   ECHO_N='-n';;
20255 esac
20256
20257 if expr a : '\(a\)' >/dev/null 2>&1 &&
20258    test "X`expr 00001 : '.*\(...\)'`" = X001; then
20259   as_expr=expr
20260 else
20261   as_expr=false
20262 fi
20263
20264 rm -f conf$$ conf$$.exe conf$$.file
20265 if test -d conf$$.dir; then
20266   rm -f conf$$.dir/conf$$.file
20267 else
20268   rm -f conf$$.dir
20269   mkdir conf$$.dir
20270 fi
20271 echo >conf$$.file
20272 if ln -s conf$$.file conf$$ 2>/dev/null; then
20273   as_ln_s='ln -s'
20274   # ... but there are two gotchas:
20275   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20276   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20277   # In both cases, we have to default to `cp -p'.
20278   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20279     as_ln_s='cp -p'
20280 elif ln conf$$.file conf$$ 2>/dev/null; then
20281   as_ln_s=ln
20282 else
20283   as_ln_s='cp -p'
20284 fi
20285 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20286 rmdir conf$$.dir 2>/dev/null
20287
20288 if mkdir -p . 2>/dev/null; then
20289   as_mkdir_p=:
20290 else
20291   test -d ./-p && rmdir ./-p
20292   as_mkdir_p=false
20293 fi
20294
20295 if test -x / >/dev/null 2>&1; then
20296   as_test_x='test -x'
20297 else
20298   if ls -dL / >/dev/null 2>&1; then
20299     as_ls_L_option=L
20300   else
20301     as_ls_L_option=
20302   fi
20303   as_test_x='
20304     eval sh -c '\''
20305       if test -d "$1"; then
20306         test -d "$1/.";
20307       else
20308         case $1 in
20309         -*)set "./$1";;
20310         esac;
20311         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
20312         ???[sx]*):;;*)false;;esac;fi
20313     '\'' sh
20314   '
20315 fi
20316 as_executable_p=$as_test_x
20317
20318 # Sed expression to map a string onto a valid CPP name.
20319 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20320
20321 # Sed expression to map a string onto a valid variable name.
20322 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20323
20324
20325 exec 6>&1
20326
20327 # Save the log message, to keep $[0] and so on meaningful, and to
20328 # report actual input values of CONFIG_FILES etc. instead of their
20329 # values after options handling.
20330 ac_log="
20331 This file was extended by concord $as_me 0.0.2, which was
20332 generated by GNU Autoconf 2.61.  Invocation command line was
20333
20334   CONFIG_FILES    = $CONFIG_FILES
20335   CONFIG_HEADERS  = $CONFIG_HEADERS
20336   CONFIG_LINKS    = $CONFIG_LINKS
20337   CONFIG_COMMANDS = $CONFIG_COMMANDS
20338   $ $0 $@
20339
20340 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20341 "
20342
20343 _ACEOF
20344
20345 cat >>$CONFIG_STATUS <<_ACEOF
20346 # Files that config.status was made for.
20347 config_files="$ac_config_files"
20348 config_headers="$ac_config_headers"
20349
20350 _ACEOF
20351
20352 cat >>$CONFIG_STATUS <<\_ACEOF
20353 ac_cs_usage="\
20354 \`$as_me' instantiates files from templates according to the
20355 current configuration.
20356
20357 Usage: $0 [OPTIONS] [FILE]...
20358
20359   -h, --help       print this help, then exit
20360   -V, --version    print version number and configuration settings, then exit
20361   -q, --quiet      do not print progress messages
20362   -d, --debug      don't remove temporary files
20363       --recheck    update $as_me by reconfiguring in the same conditions
20364   --file=FILE[:TEMPLATE]
20365                    instantiate the configuration file FILE
20366   --header=FILE[:TEMPLATE]
20367                    instantiate the configuration header FILE
20368
20369 Configuration files:
20370 $config_files
20371
20372 Configuration headers:
20373 $config_headers
20374
20375 Report bugs to <bug-autoconf@gnu.org>."
20376
20377 _ACEOF
20378 cat >>$CONFIG_STATUS <<_ACEOF
20379 ac_cs_version="\\
20380 concord config.status 0.0.2
20381 configured by $0, generated by GNU Autoconf 2.61,
20382   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20383
20384 Copyright (C) 2006 Free Software Foundation, Inc.
20385 This config.status script is free software; the Free Software Foundation
20386 gives unlimited permission to copy, distribute and modify it."
20387
20388 ac_pwd='$ac_pwd'
20389 srcdir='$srcdir'
20390 _ACEOF
20391
20392 cat >>$CONFIG_STATUS <<\_ACEOF
20393 # If no file are specified by the user, then we need to provide default
20394 # value.  By we need to know if files were specified by the user.
20395 ac_need_defaults=:
20396 while test $# != 0
20397 do
20398   case $1 in
20399   --*=*)
20400     ac_option=`expr "X$1" : 'X\([^=]*\)='`
20401     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20402     ac_shift=:
20403     ;;
20404   *)
20405     ac_option=$1
20406     ac_optarg=$2
20407     ac_shift=shift
20408     ;;
20409   esac
20410
20411   case $ac_option in
20412   # Handling of the options.
20413   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20414     ac_cs_recheck=: ;;
20415   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20416     echo "$ac_cs_version"; exit ;;
20417   --debug | --debu | --deb | --de | --d | -d )
20418     debug=: ;;
20419   --file | --fil | --fi | --f )
20420     $ac_shift
20421     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20422     ac_need_defaults=false;;
20423   --header | --heade | --head | --hea )
20424     $ac_shift
20425     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20426     ac_need_defaults=false;;
20427   --he | --h)
20428     # Conflict between --help and --header
20429     { echo "$as_me: error: ambiguous option: $1
20430 Try \`$0 --help' for more information." >&2
20431    { (exit 1); exit 1; }; };;
20432   --help | --hel | -h )
20433     echo "$ac_cs_usage"; exit ;;
20434   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20435   | -silent | --silent | --silen | --sile | --sil | --si | --s)
20436     ac_cs_silent=: ;;
20437
20438   # This is an error.
20439   -*) { echo "$as_me: error: unrecognized option: $1
20440 Try \`$0 --help' for more information." >&2
20441    { (exit 1); exit 1; }; } ;;
20442
20443   *) ac_config_targets="$ac_config_targets $1"
20444      ac_need_defaults=false ;;
20445
20446   esac
20447   shift
20448 done
20449
20450 ac_configure_extra_args=
20451
20452 if $ac_cs_silent; then
20453   exec 6>/dev/null
20454   ac_configure_extra_args="$ac_configure_extra_args --silent"
20455 fi
20456
20457 _ACEOF
20458 cat >>$CONFIG_STATUS <<_ACEOF
20459 if \$ac_cs_recheck; then
20460   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20461   CONFIG_SHELL=$SHELL
20462   export CONFIG_SHELL
20463   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20464 fi
20465
20466 _ACEOF
20467 cat >>$CONFIG_STATUS <<\_ACEOF
20468 exec 5>>config.log
20469 {
20470   echo
20471   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20472 ## Running $as_me. ##
20473 _ASBOX
20474   echo "$ac_log"
20475 } >&5
20476
20477 _ACEOF
20478 cat >>$CONFIG_STATUS <<_ACEOF
20479 _ACEOF
20480
20481 cat >>$CONFIG_STATUS <<\_ACEOF
20482
20483 # Handling of arguments.
20484 for ac_config_target in $ac_config_targets
20485 do
20486   case $ac_config_target in
20487     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20488     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20489
20490   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20491 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20492    { (exit 1); exit 1; }; };;
20493   esac
20494 done
20495
20496
20497 # If the user did not use the arguments to specify the items to instantiate,
20498 # then the envvar interface is used.  Set only those that are not.
20499 # We use the long form for the default assignment because of an extremely
20500 # bizarre bug on SunOS 4.1.3.
20501 if $ac_need_defaults; then
20502   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20503   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20504 fi
20505
20506 # Have a temporary directory for convenience.  Make it in the build tree
20507 # simply because there is no reason against having it here, and in addition,
20508 # creating and moving files from /tmp can sometimes cause problems.
20509 # Hook for its removal unless debugging.
20510 # Note that there is a small window in which the directory will not be cleaned:
20511 # after its creation but before its name has been assigned to `$tmp'.
20512 $debug ||
20513 {
20514   tmp=
20515   trap 'exit_status=$?
20516   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20517 ' 0
20518   trap '{ (exit 1); exit 1; }' 1 2 13 15
20519 }
20520 # Create a (secure) tmp directory for tmp files.
20521
20522 {
20523   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20524   test -n "$tmp" && test -d "$tmp"
20525 }  ||
20526 {
20527   tmp=./conf$$-$RANDOM
20528   (umask 077 && mkdir "$tmp")
20529 } ||
20530 {
20531    echo "$me: cannot create a temporary directory in ." >&2
20532    { (exit 1); exit 1; }
20533 }
20534
20535 #
20536 # Set up the sed scripts for CONFIG_FILES section.
20537 #
20538
20539 # No need to generate the scripts if there are no CONFIG_FILES.
20540 # This happens for instance when ./config.status config.h
20541 if test -n "$CONFIG_FILES"; then
20542
20543 _ACEOF
20544
20545
20546
20547 ac_delim='%!_!# '
20548 for ac_last_try in false false false false false :; do
20549   cat >conf$$subs.sed <<_ACEOF
20550 SHELL!$SHELL$ac_delim
20551 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20552 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20553 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20554 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20555 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20556 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20557 exec_prefix!$exec_prefix$ac_delim
20558 prefix!$prefix$ac_delim
20559 program_transform_name!$program_transform_name$ac_delim
20560 bindir!$bindir$ac_delim
20561 sbindir!$sbindir$ac_delim
20562 libexecdir!$libexecdir$ac_delim
20563 datarootdir!$datarootdir$ac_delim
20564 datadir!$datadir$ac_delim
20565 sysconfdir!$sysconfdir$ac_delim
20566 sharedstatedir!$sharedstatedir$ac_delim
20567 localstatedir!$localstatedir$ac_delim
20568 includedir!$includedir$ac_delim
20569 oldincludedir!$oldincludedir$ac_delim
20570 docdir!$docdir$ac_delim
20571 infodir!$infodir$ac_delim
20572 htmldir!$htmldir$ac_delim
20573 dvidir!$dvidir$ac_delim
20574 pdfdir!$pdfdir$ac_delim
20575 psdir!$psdir$ac_delim
20576 libdir!$libdir$ac_delim
20577 localedir!$localedir$ac_delim
20578 mandir!$mandir$ac_delim
20579 DEFS!$DEFS$ac_delim
20580 ECHO_C!$ECHO_C$ac_delim
20581 ECHO_N!$ECHO_N$ac_delim
20582 ECHO_T!$ECHO_T$ac_delim
20583 LIBS!$LIBS$ac_delim
20584 build_alias!$build_alias$ac_delim
20585 host_alias!$host_alias$ac_delim
20586 target_alias!$target_alias$ac_delim
20587 build!$build$ac_delim
20588 build_cpu!$build_cpu$ac_delim
20589 build_vendor!$build_vendor$ac_delim
20590 build_os!$build_os$ac_delim
20591 host!$host$ac_delim
20592 host_cpu!$host_cpu$ac_delim
20593 host_vendor!$host_vendor$ac_delim
20594 host_os!$host_os$ac_delim
20595 target!$target$ac_delim
20596 target_cpu!$target_cpu$ac_delim
20597 target_vendor!$target_vendor$ac_delim
20598 target_os!$target_os$ac_delim
20599 CC!$CC$ac_delim
20600 CFLAGS!$CFLAGS$ac_delim
20601 LDFLAGS!$LDFLAGS$ac_delim
20602 CPPFLAGS!$CPPFLAGS$ac_delim
20603 ac_ct_CC!$ac_ct_CC$ac_delim
20604 EXEEXT!$EXEEXT$ac_delim
20605 OBJEXT!$OBJEXT$ac_delim
20606 GREP!$GREP$ac_delim
20607 EGREP!$EGREP$ac_delim
20608 LN_S!$LN_S$ac_delim
20609 ECHO!$ECHO$ac_delim
20610 AR!$AR$ac_delim
20611 RANLIB!$RANLIB$ac_delim
20612 STRIP!$STRIP$ac_delim
20613 CPP!$CPP$ac_delim
20614 CXX!$CXX$ac_delim
20615 CXXFLAGS!$CXXFLAGS$ac_delim
20616 ac_ct_CXX!$ac_ct_CXX$ac_delim
20617 CXXCPP!$CXXCPP$ac_delim
20618 F77!$F77$ac_delim
20619 FFLAGS!$FFLAGS$ac_delim
20620 ac_ct_F77!$ac_ct_F77$ac_delim
20621 LIBTOOL!$LIBTOOL$ac_delim
20622 ALLOCA!$ALLOCA$ac_delim
20623 LIBOBJS!$LIBOBJS$ac_delim
20624 LTLIBOBJS!$LTLIBOBJS$ac_delim
20625 _ACEOF
20626
20627   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 75; then
20628     break
20629   elif $ac_last_try; then
20630     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20631 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20632    { (exit 1); exit 1; }; }
20633   else
20634     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20635   fi
20636 done
20637
20638 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20639 if test -n "$ac_eof"; then
20640   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20641   ac_eof=`expr $ac_eof + 1`
20642 fi
20643
20644 cat >>$CONFIG_STATUS <<_ACEOF
20645 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
20646 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
20647 _ACEOF
20648 sed '
20649 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20650 s/^/s,@/; s/!/@,|#_!!_#|/
20651 :n
20652 t n
20653 s/'"$ac_delim"'$/,g/; t
20654 s/$/\\/; p
20655 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20656 ' >>$CONFIG_STATUS <conf$$subs.sed
20657 rm -f conf$$subs.sed
20658 cat >>$CONFIG_STATUS <<_ACEOF
20659 :end
20660 s/|#_!!_#|//g
20661 CEOF$ac_eof
20662 _ACEOF
20663
20664
20665 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20666 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20667 # trailing colons and then remove the whole line if VPATH becomes empty
20668 # (actually we leave an empty line to preserve line numbers).
20669 if test "x$srcdir" = x.; then
20670   ac_vpsub='/^[  ]*VPATH[        ]*=/{
20671 s/:*\$(srcdir):*/:/
20672 s/:*\${srcdir}:*/:/
20673 s/:*@srcdir@:*/:/
20674 s/^\([^=]*=[     ]*\):*/\1/
20675 s/:*$//
20676 s/^[^=]*=[       ]*$//
20677 }'
20678 fi
20679
20680 cat >>$CONFIG_STATUS <<\_ACEOF
20681 fi # test -n "$CONFIG_FILES"
20682
20683
20684 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS
20685 do
20686   case $ac_tag in
20687   :[FHLC]) ac_mode=$ac_tag; continue;;
20688   esac
20689   case $ac_mode$ac_tag in
20690   :[FHL]*:*);;
20691   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
20692 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
20693    { (exit 1); exit 1; }; };;
20694   :[FH]-) ac_tag=-:-;;
20695   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20696   esac
20697   ac_save_IFS=$IFS
20698   IFS=:
20699   set x $ac_tag
20700   IFS=$ac_save_IFS
20701   shift
20702   ac_file=$1
20703   shift
20704
20705   case $ac_mode in
20706   :L) ac_source=$1;;
20707   :[FH])
20708     ac_file_inputs=
20709     for ac_f
20710     do
20711       case $ac_f in
20712       -) ac_f="$tmp/stdin";;
20713       *) # Look for the file first in the build tree, then in the source tree
20714          # (if the path is not absolute).  The absolute path cannot be DOS-style,
20715          # because $ac_f cannot contain `:'.
20716          test -f "$ac_f" ||
20717            case $ac_f in
20718            [\\/$]*) false;;
20719            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20720            esac ||
20721            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
20722 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
20723    { (exit 1); exit 1; }; };;
20724       esac
20725       ac_file_inputs="$ac_file_inputs $ac_f"
20726     done
20727
20728     # Let's still pretend it is `configure' which instantiates (i.e., don't
20729     # use $as_me), people would be surprised to read:
20730     #    /* config.h.  Generated by config.status.  */
20731     configure_input="Generated from "`IFS=:
20732           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
20733     if test x"$ac_file" != x-; then
20734       configure_input="$ac_file.  $configure_input"
20735       { echo "$as_me:$LINENO: creating $ac_file" >&5
20736 echo "$as_me: creating $ac_file" >&6;}
20737     fi
20738
20739     case $ac_tag in
20740     *:-:* | *:-) cat >"$tmp/stdin";;
20741     esac
20742     ;;
20743   esac
20744
20745   ac_dir=`$as_dirname -- "$ac_file" ||
20746 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20747          X"$ac_file" : 'X\(//\)[^/]' \| \
20748          X"$ac_file" : 'X\(//\)$' \| \
20749          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20750 echo X"$ac_file" |
20751     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20752             s//\1/
20753             q
20754           }
20755           /^X\(\/\/\)[^/].*/{
20756             s//\1/
20757             q
20758           }
20759           /^X\(\/\/\)$/{
20760             s//\1/
20761             q
20762           }
20763           /^X\(\/\).*/{
20764             s//\1/
20765             q
20766           }
20767           s/.*/./; q'`
20768   { as_dir="$ac_dir"
20769   case $as_dir in #(
20770   -*) as_dir=./$as_dir;;
20771   esac
20772   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20773     as_dirs=
20774     while :; do
20775       case $as_dir in #(
20776       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20777       *) as_qdir=$as_dir;;
20778       esac
20779       as_dirs="'$as_qdir' $as_dirs"
20780       as_dir=`$as_dirname -- "$as_dir" ||
20781 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20782          X"$as_dir" : 'X\(//\)[^/]' \| \
20783          X"$as_dir" : 'X\(//\)$' \| \
20784          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20785 echo X"$as_dir" |
20786     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20787             s//\1/
20788             q
20789           }
20790           /^X\(\/\/\)[^/].*/{
20791             s//\1/
20792             q
20793           }
20794           /^X\(\/\/\)$/{
20795             s//\1/
20796             q
20797           }
20798           /^X\(\/\).*/{
20799             s//\1/
20800             q
20801           }
20802           s/.*/./; q'`
20803       test -d "$as_dir" && break
20804     done
20805     test -z "$as_dirs" || eval "mkdir $as_dirs"
20806   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20807 echo "$as_me: error: cannot create directory $as_dir" >&2;}
20808    { (exit 1); exit 1; }; }; }
20809   ac_builddir=.
20810
20811 case "$ac_dir" in
20812 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20813 *)
20814   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20815   # A ".." for each directory in $ac_dir_suffix.
20816   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
20817   case $ac_top_builddir_sub in
20818   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20819   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20820   esac ;;
20821 esac
20822 ac_abs_top_builddir=$ac_pwd
20823 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20824 # for backward compatibility:
20825 ac_top_builddir=$ac_top_build_prefix
20826
20827 case $srcdir in
20828   .)  # We are building in place.
20829     ac_srcdir=.
20830     ac_top_srcdir=$ac_top_builddir_sub
20831     ac_abs_top_srcdir=$ac_pwd ;;
20832   [\\/]* | ?:[\\/]* )  # Absolute name.
20833     ac_srcdir=$srcdir$ac_dir_suffix;
20834     ac_top_srcdir=$srcdir
20835     ac_abs_top_srcdir=$srcdir ;;
20836   *) # Relative name.
20837     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20838     ac_top_srcdir=$ac_top_build_prefix$srcdir
20839     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20840 esac
20841 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20842
20843
20844   case $ac_mode in
20845   :F)
20846   #
20847   # CONFIG_FILE
20848   #
20849
20850 _ACEOF
20851
20852 cat >>$CONFIG_STATUS <<\_ACEOF
20853 # If the template does not know about datarootdir, expand it.
20854 # FIXME: This hack should be removed a few years after 2.60.
20855 ac_datarootdir_hack=; ac_datarootdir_seen=
20856
20857 case `sed -n '/datarootdir/ {
20858   p
20859   q
20860 }
20861 /@datadir@/p
20862 /@docdir@/p
20863 /@infodir@/p
20864 /@localedir@/p
20865 /@mandir@/p
20866 ' $ac_file_inputs` in
20867 *datarootdir*) ac_datarootdir_seen=yes;;
20868 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20869   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20870 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20871 _ACEOF
20872 cat >>$CONFIG_STATUS <<_ACEOF
20873   ac_datarootdir_hack='
20874   s&@datadir@&$datadir&g
20875   s&@docdir@&$docdir&g
20876   s&@infodir@&$infodir&g
20877   s&@localedir@&$localedir&g
20878   s&@mandir@&$mandir&g
20879     s&\\\${datarootdir}&$datarootdir&g' ;;
20880 esac
20881 _ACEOF
20882
20883 # Neutralize VPATH when `$srcdir' = `.'.
20884 # Shell code in configure.ac might set extrasub.
20885 # FIXME: do we really want to maintain this feature?
20886 cat >>$CONFIG_STATUS <<_ACEOF
20887   sed "$ac_vpsub
20888 $extrasub
20889 _ACEOF
20890 cat >>$CONFIG_STATUS <<\_ACEOF
20891 :t
20892 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20893 s&@configure_input@&$configure_input&;t t
20894 s&@top_builddir@&$ac_top_builddir_sub&;t t
20895 s&@srcdir@&$ac_srcdir&;t t
20896 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20897 s&@top_srcdir@&$ac_top_srcdir&;t t
20898 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20899 s&@builddir@&$ac_builddir&;t t
20900 s&@abs_builddir@&$ac_abs_builddir&;t t
20901 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20902 $ac_datarootdir_hack
20903 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
20904
20905 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20906   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
20907   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
20908   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20909 which seems to be undefined.  Please make sure it is defined." >&5
20910 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20911 which seems to be undefined.  Please make sure it is defined." >&2;}
20912
20913   rm -f "$tmp/stdin"
20914   case $ac_file in
20915   -) cat "$tmp/out"; rm -f "$tmp/out";;
20916   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
20917   esac
20918  ;;
20919   :H)
20920   #
20921   # CONFIG_HEADER
20922   #
20923 _ACEOF
20924
20925 # Transform confdefs.h into a sed script `conftest.defines', that
20926 # substitutes the proper values into config.h.in to produce config.h.
20927 rm -f conftest.defines conftest.tail
20928 # First, append a space to every undef/define line, to ease matching.
20929 echo 's/$/ /' >conftest.defines
20930 # Then, protect against being on the right side of a sed subst, or in
20931 # an unquoted here document, in config.status.  If some macros were
20932 # called several times there might be several #defines for the same
20933 # symbol, which is useless.  But do not sort them, since the last
20934 # AC_DEFINE must be honored.
20935 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20936 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
20937 # NAME is the cpp macro being defined, VALUE is the value it is being given.
20938 # PARAMS is the parameter list in the macro definition--in most cases, it's
20939 # just an empty string.
20940 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
20941 ac_dB='\\)[      (].*,\\1define\\2'
20942 ac_dC=' '
20943 ac_dD=' ,'
20944
20945 uniq confdefs.h |
20946   sed -n '
20947         t rset
20948         :rset
20949         s/^[     ]*#[    ]*define[       ][      ]*//
20950         t ok
20951         d
20952         :ok
20953         s/[\\&,]/\\&/g
20954         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
20955         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
20956   ' >>conftest.defines
20957
20958 # Remove the space that was appended to ease matching.
20959 # Then replace #undef with comments.  This is necessary, for
20960 # example, in the case of _POSIX_SOURCE, which is predefined and required
20961 # on some systems where configure will not decide to define it.
20962 # (The regexp can be short, since the line contains either #define or #undef.)
20963 echo 's/ $//
20964 s,^[     #]*u.*,/* & */,' >>conftest.defines
20965
20966 # Break up conftest.defines:
20967 ac_max_sed_lines=50
20968
20969 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
20970 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
20971 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
20972 # et cetera.
20973 ac_in='$ac_file_inputs'
20974 ac_out='"$tmp/out1"'
20975 ac_nxt='"$tmp/out2"'
20976
20977 while :
20978 do
20979   # Write a here document:
20980     cat >>$CONFIG_STATUS <<_ACEOF
20981     # First, check the format of the line:
20982     cat >"\$tmp/defines.sed" <<\\CEOF
20983 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
20984 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
20985 b
20986 :def
20987 _ACEOF
20988   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
20989   echo 'CEOF
20990     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
20991   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
20992   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
20993   grep . conftest.tail >/dev/null || break
20994   rm -f conftest.defines
20995   mv conftest.tail conftest.defines
20996 done
20997 rm -f conftest.defines conftest.tail
20998
20999 echo "ac_result=$ac_in" >>$CONFIG_STATUS
21000 cat >>$CONFIG_STATUS <<\_ACEOF
21001   if test x"$ac_file" != x-; then
21002     echo "/* $configure_input  */" >"$tmp/config.h"
21003     cat "$ac_result" >>"$tmp/config.h"
21004     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21005       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21006 echo "$as_me: $ac_file is unchanged" >&6;}
21007     else
21008       rm -f $ac_file
21009       mv "$tmp/config.h" $ac_file
21010     fi
21011   else
21012     echo "/* $configure_input  */"
21013     cat "$ac_result"
21014   fi
21015   rm -f "$tmp/out12"
21016  ;;
21017
21018
21019   esac
21020
21021 done # for ac_tag
21022
21023
21024 { (exit 0); exit 0; }
21025 _ACEOF
21026 chmod +x $CONFIG_STATUS
21027 ac_clean_files=$ac_clean_files_save
21028
21029
21030 # configure is writing to config.log, and then calls config.status.
21031 # config.status does its own redirection, appending to config.log.
21032 # Unfortunately, on DOS this fails, as config.log is still kept open
21033 # by configure, so config.status won't be able to write to it; its
21034 # output is simply discarded.  So we exec the FD to /dev/null,
21035 # effectively closing config.log, so it can be properly (re)opened and
21036 # appended to by config.status.  When coming back to configure, we
21037 # need to make the FD available again.
21038 if test "$no_create" != yes; then
21039   ac_cs_success=:
21040   ac_config_status_args=
21041   test "$silent" = yes &&
21042     ac_config_status_args="$ac_config_status_args --quiet"
21043   exec 5>/dev/null
21044   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21045   exec 5>>config.log
21046   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21047   # would make configure fail if this is the last instruction.
21048   $ac_cs_success || { (exit 1); exit 1; }
21049 fi
21050